/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --color-bg: #F2F4F7;
  --color-surface: #ffffff;
  --color-surface-muted: #F8F9FB;
  --color-text: #0F172A;
  --color-text-secondary: #334155;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-hover: #EEF4F6;
  --color-selected: #E8F3F5;
  --color-primary: #273449;
  --color-primary-strong: #2F3A4D;
  --color-teal: #12737F;
  --color-success: #0f8a5f;
  --color-danger: #dc2626;
  --color-focus: #12737F;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-modal: 0 22px 60px rgb(15 23 42 / 18%);
  --shadow-card: 0 12px 36px rgb(15 23 42 / 6%);
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: transparent transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: transparent; border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
.scrollbar-proximity, .scrollbar-scrolling { scrollbar-color: #94A3B8 transparent; }
.scrollbar-proximity::-webkit-scrollbar-thumb, .scrollbar-scrolling::-webkit-scrollbar-thumb { background: #94A3B8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html, body { height: 100%; }
html { text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.62; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ─── Public pages (no login required, e.g. meeting sign-off) ─────────── */
.app-shell { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--color-bg); }
.panel-card { width: min(100%, 520px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow-card); display: grid; grid-gap: 16px; gap: 16px; }
.panel-card h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.panel-card .muted { margin: 0; color: var(--color-text-muted); font-size: 13px; }
.eyebrow { margin: 0; color: var(--color-teal); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.meeting-day-list { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-day-card { border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-muted); padding: 14px; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-day-card strong { display: block; font-size: 15px; }
.meeting-day-card span { display: block; color: var(--color-text-muted); font-size: 13px; }
.auth-form { display: grid; grid-gap: 10px; gap: 10px; }
.auth-form textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 8px; background: white; color: var(--color-text); padding: 10px 12px; min-height: 80px; resize: vertical; font: inherit; font-size: 13px; }
.auth-form textarea:focus { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.primary-button { min-height: 44px; border: 0; border-radius: 10px; background: var(--color-primary); color: white; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.primary-button:disabled { opacity: 0.55; cursor: not-allowed; }
.secondary-button { min-height: 44px; border: 1px solid var(--color-border); border-radius: 10px; background: white; color: var(--color-text); padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.secondary-button:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 767px) { .panel-card { padding: 20px 16px; } }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 440px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-card); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--color-primary); color: white; font-weight: 700; margin-bottom: 16px; }
.login-card h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.login-card p { color: var(--color-text-muted); margin: 0 0 20px; }
.auth-divider { border-top: 1px solid var(--color-border); margin: 4px 0; }
.auth-section-title { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.checkbox-field { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: 14px; font-weight: 600; }
.checkbox-field input { width: 16px; height: 16px; accent-color: var(--color-primary); }
.field { display: grid; grid-gap: 6px; gap: 6px; font-weight: 600; color: var(--color-text); }
.field span { font-size: 13px; }
.field small { font-size: 12px; line-height: 1.4; font-weight: 600; }
.field-hint { color: var(--color-text-muted); }
.field-error { color: var(--color-danger); }
.meeting-availability-ok { color: #047857; }
/* 排程建議(設計稿2):圖例 + 與會者×時段矩陣 + 推薦卡 */
.meeting-scheduler { display: flex; flex-direction: column; gap: 12px; }
.meeting-scheduler-legend { display: flex; gap: 16px; font-size: 12px; color: var(--color-text-secondary); }
.meeting-scheduler-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-box { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-box.is-free { border: 1px solid var(--color-border); background: var(--color-surface); }
.legend-box.is-busy { background: #FDE9C8; }
.legend-box.is-recommend { border: 1px solid var(--color-primary); background: var(--color-hover); }
.meeting-matrix-scroll { overflow-x: auto; }
.meeting-matrix { border-collapse: separate; border-spacing: 4px; font-size: 11px; }
.meeting-matrix th { font-weight: 600; color: var(--color-text-muted); text-align: center; padding: 0 0 2px; }
.meeting-matrix td { width: 30px; height: 22px; border-radius: 5px; border: 1px solid var(--color-border); background: var(--color-surface); }
.meeting-matrix td:first-child, .meeting-matrix th:first-child { width: auto; border: 0; background: transparent; text-align: left; color: var(--color-text-secondary); font-weight: 600; padding-right: 8px; white-space: nowrap; }
.meeting-matrix td.is-free { background: var(--color-surface); border-color: var(--color-border); }
.meeting-matrix td.is-busy { background: #FDE9C8; border-color: #F5D9AE; }
.meeting-matrix td.is-recommend { border: 1px solid var(--color-primary); background: var(--color-hover); }
.meeting-reco-list { display: flex; flex-direction: column; gap: 10px; }
.meeting-reco-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-muted); padding: 12px 14px; }
.meeting-reco-card.is-best { border-color: var(--color-primary); }
.meeting-reco-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meeting-reco-info strong { font-size: 15px; color: var(--color-text); }
.meeting-reco-info span { font-size: 12px; color: var(--color-text-muted); }
.meeting-reco-info span.is-ok { color: #15803D; }
.meeting-reco-apply { flex: 0 0 auto; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 8px; padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }
.meeting-reco-apply:hover { background: var(--color-hover); }
.meeting-scheduler-hint { font-size: 11px; line-height: 1.6; color: var(--color-text-muted); margin: 4px 0 0; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; color: var(--color-text); padding: 10px 12px; }
.textarea { min-height: 92px; resize: vertical; }
.form-grid { display: grid; grid-gap: 12px; gap: 12px; }
.advanced { border-top: 1px solid var(--color-border); padding-top: 12px; color: var(--color-text-muted); }
.advanced summary { cursor: pointer; color: var(--color-primary); font-weight: 700; }
.button { border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: white; color: var(--color-text); padding: 9px 12px; font-weight: 700; transition: background 150ms ease, border-color 150ms ease; }
.button:hover:not(:disabled) { background: var(--color-hover); }
.button-primary { background: var(--color-primary); border-color: var(--color-primary); color: white; }
.button-primary:hover:not(:disabled) { background: var(--color-primary-strong); }
.button-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: white; color: var(--color-text); border: 1px solid var(--color-border); font-weight: 600; }
.button-google:hover:not(:disabled) { background: var(--color-hover); }
.button-google .google-icon { flex: 0 0 auto; display: block; }
.auth-error-text { color: var(--color-danger); font-size: 13px; font-weight: 600; margin: 0; }
.button-blue { background: var(--color-teal); border-color: var(--color-teal); color: white; }
.button-ghost { background: transparent; border-color: transparent; color: var(--color-text-muted); }
.button.is-danger { color: var(--color-danger); }
.button-compact { padding: 7px 10px; font-size: 12px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.notice { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; border-radius: var(--radius-sm); padding: 10px 12px; }
.error { border: 1px solid #fecaca; background: #fef2f2; color: var(--color-danger); border-radius: var(--radius-sm); padding: 10px 12px; }
.error .button { margin-left: 8px; }
.chat > .notice, .chat > .error { margin: 0 28px 10px; }
.typing-indicator { margin: 0 28px 8px; min-height: 20px; color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.workspace-feedback { position: fixed; top: 82px; left: 396px; right: 24px; z-index: 45; display: grid; grid-gap: 8px; gap: 8px; pointer-events: none; }
.workspace-feedback > * { pointer-events: auto; box-shadow: var(--shadow-card); }
.workspace-feedback .notice, .workspace-feedback .error { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workspace-feedback .error .button { margin-left: 0; }
.feedback-message { min-width: 0; overflow-wrap: anywhere; }
.feedback-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.feedback-close { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 999px; background: transparent; color: currentColor; font-size: 12px; font-weight: 900; line-height: 1; }
.feedback-close:hover { background: rgb(15 23 42 / 8%); }
.workspace.details-open .workspace-feedback { right: 436px; }
.workspace.sidebar-collapsed .workspace-feedback { left: 96px; }

.workspace { height: 100vh; display: grid; grid-template-columns: 72px 300px minmax(0, 1fr); background: var(--color-bg); overflow: hidden; }
.workspace.details-open { grid-template-columns: 72px 300px minmax(0, 1fr); }
.workspace.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.workspace.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
.workspace-onboarding-shell { min-height: 100vh; background: var(--color-bg); display: grid; grid-template-rows: 72px minmax(0, 1fr); }
.workspace-onboarding-shell .topbar { grid-column: 1; grid-row: 1; }
.workspace-onboarding { width: min(100%, 1040px); margin: 0 auto; padding: 48px 24px; display: grid; grid-gap: 24px; gap: 24px; align-content: start; }
.onboarding-intro { max-width: 720px; }
.onboarding-intro h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.04em; }
.onboarding-intro p { color: var(--color-text-muted); margin: 0; }
.onboarding-intro .section-label { margin: 0 0 8px; }
.onboarding-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; align-items: start; }
.onboarding-card { border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); padding: 20px; display: grid; grid-gap: 14px; gap: 14px; box-shadow: var(--shadow-card); }
.onboarding-card h2 { margin: 0; font-size: 18px; }
.onboarding-card p { color: var(--color-text-muted); margin: 0; }
.onboarding-feedback { display: grid; grid-gap: 8px; gap: 8px; }

.rail { grid-column: 1; grid-row: 1; background: #0F172A; color: white; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0 24px; }
.rail-spacer { flex: 1 1 auto; min-height: 12px; }
.rail-top { margin-top: 12px; }
.rail-bottom { margin-top: auto; }
.rail-group { display: grid; grid-gap: 12px; gap: 12px; justify-items: center; }
.rail-button { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #64748B; background: #0F172A; border: 1px solid transparent; padding: 0; }
.rail-button.active, .rail-button:hover { background: #2F3A4D; color: white; border-color: #475569; }
.rail-avatar, .rail-logo { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 12px; letter-spacing: 0.04em; }
.rail-avatar { position: relative; background: #334155; color: white; }
.rail-avatar::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 8px; height: 8px; border-radius: 999px; background: #1A7A43; box-shadow: 0 0 0 2px #0F172A; }
.rail-logo { position: relative; background: transparent; color: #111827; overflow: visible; padding: 0; }
.rail-logo img, .rail-logo-mark { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 160ms ease; }
.rail-expand-button { position: absolute; inset: 0; width: 40px; height: 40px; border-radius: 8px; border: 1px solid #334155; background: #2F3A4D; color: #FFFFFF; display: grid; place-items: center; padding: 0; opacity: 0; pointer-events: none; transform: scale(0.96); transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease; cursor: pointer; }
.workspace.sidebar-collapsed .rail:hover .rail-logo-mark,
.workspace.sidebar-collapsed .rail:focus-within .rail-logo-mark { opacity: 0; }
.workspace.sidebar-collapsed .rail:hover .rail-expand-button,
.workspace.sidebar-collapsed .rail:focus-within .rail-expand-button,
.rail-expand-button:focus-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.rail-expand-button:hover { border-color: #64748B; background: #344157; }
.rail-expand-button:focus-visible { outline: 2px solid #8BD8E2; outline-offset: 3px; }
.rail-glyph { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-panel-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.credential-glyph { position: relative; display: inline-block; width: 18px; height: 18px; color: currentColor; vertical-align: middle; }
.credential-glyph::before, .credential-glyph::after, .credential-glyph > span { content: ""; position: absolute; display: block; box-sizing: border-box; }
.credential-glyph-web::before { top: 2px; left: 5px; width: 8px; height: 7px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.credential-glyph-web::after { left: 2px; right: 2px; bottom: 2px; height: 9px; border: 1.5px solid currentColor; border-radius: 1.5px; }
.credential-glyph-web > span { top: 10px; left: 8px; width: 2px; height: 2px; background: currentColor; border-radius: 999px; }
.credential-glyph-llm::before { inset: 4px; border: 1.5px solid currentColor; border-radius: 1.5px; }
.credential-glyph-llm::after { top: 1px; left: 6px; width: 1.5px; height: 3px; background: currentColor; box-shadow: 3px 0 0 currentColor, -3px 0 0 currentColor, 0 13px 0 currentColor, 3px 13px 0 currentColor, -3px 13px 0 currentColor; }
.credential-glyph-llm > span { top: 8px; left: 8px; width: 2px; height: 2px; background: currentColor; }
.credential-glyph-api::before { top: 4px; left: 5px; width: 8px; height: 7px; border: 1.5px solid currentColor; border-radius: 1px 1px 4px 4px; }
.credential-glyph-api::after { top: 1px; left: 7px; width: 1.5px; height: 3px; background: currentColor; box-shadow: 3px 0 0 currentColor; }
.credential-glyph-api > span { top: 11px; left: 8px; width: 1.5px; height: 6px; background: currentColor; }
.credential-glyph-mail::before { left: 2px; right: 2px; top: 4px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.credential-glyph-mail::after { left: 4px; top: 5px; width: 10px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transform-origin: center; }
.credential-glyph-large { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; }
.credential-glyph-large > .credential-glyph { transform: scale(1.6); transform-origin: center; }

.settings-glyph { position: relative; display: inline-block; width: 18px; height: 18px; color: currentColor; vertical-align: middle; }
.settings-glyph::before, .settings-glyph::after, .settings-glyph > span { content: ""; position: absolute; display: block; box-sizing: border-box; }
.settings-glyph-spark::before { inset: 2px; border: 1.5px solid currentColor; border-radius: 999px; }
.settings-glyph-spark::after { top: 6px; left: 4px; width: 2.5px; height: 2.5px; background: currentColor; border-radius: 999px; box-shadow: 6px 0 0 currentColor, 3px 5px 0 currentColor; }
.settings-glyph-globe::before { inset: 1px; border: 1.5px solid currentColor; border-radius: 999px; }
.settings-glyph-globe::after { top: 8px; left: 1px; right: 1px; height: 1.5px; background: currentColor; }
.settings-glyph-globe > span { top: 1px; bottom: 1px; left: 8px; width: 1.5px; background: currentColor; }
.settings-glyph-people::before { top: 2px; left: 2px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 999px; }
.settings-glyph-people::after { top: 1px; left: 9px; width: 5px; height: 5px; border: 1.5px solid currentColor; border-radius: 999px; }
.settings-glyph-people > span { bottom: 1px; left: 1px; right: 1px; height: 6px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 6px 6px; background: transparent; }
.settings-glyph-person::before { top: 1px; left: 5px; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 999px; }
.settings-glyph-person::after { bottom: 1px; left: 3px; width: 12px; height: 8px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px; }

.main-shell { grid-column: 3; grid-row: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); background: var(--color-surface); position: relative; }
.main-shell.details-open { grid-template-columns: minmax(0, 1fr) 412px; }
.workspace.sidebar-collapsed .main-shell { grid-column: 2; }
.topbar { grid-column: 1; grid-row: 1; border-bottom: 1px solid var(--color-border); background: var(--color-surface); display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 560px) auto; align-items: center; grid-gap: 18px; gap: 18px; padding: 0 20px; min-width: 0; }
.topbar-title { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.topbar-title strong { font-size: 18px; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { color: var(--color-text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search { height: 36px; border: 1px solid var(--color-border); border-radius: 18px; padding: 0 12px; color: var(--color-text-muted); background: var(--color-bg); display: flex; align-items: center; gap: 10px; min-width: 0; }
.global-search > span:nth-child(2) { flex: 1 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.icon-control { min-width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 5px; background: white; color: var(--color-text-secondary); display: inline-grid; place-items: center; padding: 0 8px; font-weight: 700; }
.topbar-select { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--color-border); border-radius: 5px; background: white; color: var(--color-text-secondary); }
.topbar-select-label { color: var(--color-text-muted); font-size: 11px; font-weight: 800; }
.topbar-select select { border: 0; background: transparent; color: var(--color-text-secondary); font-weight: 700; padding: 0; }
.topbar-link { border: 0; background: transparent; color: var(--color-text-muted); font-size: 12px; font-weight: 700; padding: 0 2px; }

.sidebar { grid-column: 2; grid-row: 1; border-right: 1px solid var(--color-border); background: #F8FAFC; overflow: auto; padding: 16px 14px 22px; }
.workspace.sidebar-collapsed .sidebar { display: none; }
.sidebar-brand-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.sidebar-brand-row > div:first-child { min-width: 0; }
.sidebar-brand-row h2 { font-size: 18px; letter-spacing: -0.03em; margin: 0; }
.sidebar-brand-row p { margin: 4px 0 0; color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; display: inline-block; background: var(--color-teal); border-radius: 999px; }
.new-conversation-button { width: 66px; height: 38px; border-radius: 4px; border: 0; background: var(--color-primary); color: white; font-size: 22px; }
.sidebar-title-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.sidebar-collapse-button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #334155; display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 0 1px 2px rgb(15 23 42 / 8%); transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease; }
.sidebar-collapse-button:hover { background: #F8FAFC; border-color: #CBD5E1; color: #0F172A; box-shadow: 0 2px 5px rgb(15 23 42 / 10%); }
.sidebar-collapse-button:focus-visible { outline: 2px solid #8BD8E2; outline-offset: 2px; }
.sidebar-collapse-button .sidebar-panel-icon { width: 16px; height: 16px; }
.workspace-switcher-card { border: 1px solid var(--color-border); border-radius: 6px; background: white; padding: 10px 12px; display: grid; grid-template-columns: 38px 1fr auto; grid-gap: 12px; gap: 12px; align-items: center; box-shadow: none; }
.workspace-switcher-avatar { width: 38px; height: 38px; border-radius: 6px; background: var(--color-primary); color: white; display: grid; place-items: center; font-weight: 800; }
.workspace-switcher-card strong, .workspace-switcher-card span { display: block; }
.workspace-switcher-card span { color: var(--color-text-muted); font-size: 12px; }
.workspace-switcher-chevron { color: var(--color-text-muted); font-size: 14px; }
.sidebar-search { height: 42px; margin-top: 14px; border: 1px solid var(--color-border); background: white; border-radius: 6px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--color-text-muted); }
.filter-tabs { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 4px; gap: 4px; background: #F2F4F7; padding: 4px; border-radius: 6px; margin-top: 12px; }
.filter-tabs button { border: 0; background: transparent; border-radius: 4px; padding: 8px 0; color: var(--color-text-muted); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.filter-tabs button.active { background: white; color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
.sidebar-filter-panel { display: grid; }
.sidebar-section { margin-top: 16px; }
.section-label { color: var(--color-text-muted); text-transform: none; letter-spacing: 0.02em; font-size: 12px; font-weight: 800; margin: 0 2px 8px; }
.room-list { list-style: none; padding: 0; margin: 0; display: grid; grid-gap: 8px; gap: 8px; }
.conversation-card { width: 100%; text-align: left; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--color-text); }
.conversation-card-main { padding: 10px; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: center; }
.conversation-card:has(.mini-action) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-right: 8px; }
.conversation-copy { min-width: 0; display: grid; line-height: 1.25; grid-gap: 4px; gap: 4px; }
.conversation-copy strong, .conversation-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy span { color: var(--color-text-muted); font-size: 12px; }
.conversation-card:hover { background: white; border-color: var(--color-border); }
.conversation-card.selected, .conversation-card.pinned.selected { background: white; border-color: var(--color-border); box-shadow: none; }
.room-item { padding: 10px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; grid-gap: 10px; gap: 10px; align-items: start; }
.room-item.pinned { background: #F2F4F7; border-color: var(--color-border); }
.avatar { width: 36px; height: 36px; border-radius: 6px; background: #E6F6F8; color: var(--color-primary); display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.room-avatar { width: 32px; height: 32px; border-radius: 6px; background: #E6F6F8; color: var(--color-primary); }
.room-card-copy { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.room-item-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.room-title-cluster { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.room-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.room-title-count { flex: 0 0 auto; white-space: nowrap; }
.room-time { color: var(--color-text-muted); font-size: 11px; flex: 0 0 auto; }
.room-preview { color: var(--color-text-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-tags { display: flex; gap: 5px; align-items: center; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 4px; padding: 2px 7px; font-size: 11px; color: var(--color-text-muted); background: white; font-weight: 800; }
.contact-item { padding: 10px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; grid-gap: 10px; gap: 10px; align-items: center; }
.contact-copy { min-width: 0; display: grid; line-height: 1.25; grid-gap: 2px; gap: 2px; }
.contact-copy strong, .contact-copy span, .contact-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy span, .contact-copy em { color: var(--color-text-muted); font-size: 12px; font-style: normal; }
.presence-avatar { position: relative; }
.presence-avatar .presence-dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid white; }
.presence-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; border: 1px solid #d1d5db; vertical-align: middle; }
.presence-dot.online { background: var(--color-success); border-color: var(--color-success); }
.presence-dot.offline { background: #cbd5e1; }
.unread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border: 1px solid var(--color-border); border-radius: 999px; padding: 0 6px; background: white; color: var(--color-text-secondary); font-size: 11px; font-weight: 900; }
.mini-action { width: 28px; height: 28px; border-radius: 5px; border: 1px solid var(--color-border); background: white; color: var(--color-text-secondary); font-weight: 800; }
.sidebar-empty-copy { color: var(--color-text-muted); margin: 0; }
.work-status-card { margin-top: 18px; border: 1px solid var(--color-border); border-radius: 6px; padding: 14px 16px; background: white; display: grid; grid-gap: 8px; gap: 8px; }
.work-status-card div:not(.section-label) { display: grid; grid-gap: 2px; gap: 2px; }
.work-status-card span { color: var(--color-text-muted); font-size: 12px; }

.workspace.todo-mode .main-shell { background: var(--color-surface); }
.workspace.user-mode, .workspace.user-mode.details-open { --color-border: #E2E8F0; --user-panel-line: rgb(226 232 240 / 68%); grid-template-columns: 72px 300px minmax(0, 1fr); }
.workspace.user-mode.sidebar-collapsed, .workspace.user-mode.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
.workspace.user-mode .workspace-feedback { left: 396px; }
.workspace.user-mode.sidebar-collapsed .workspace-feedback { left: 96px; }
.workspace.user-mode .main-shell { grid-template-rows: minmax(0, 1fr); background: var(--color-surface); }
.rail-avatar-button { border: 1px solid transparent; padding: 0; }
.rail-avatar-button:hover, .rail-avatar-button.active { background: #475569; border-color: #64748B; }
.user-sidebar { background: #F8FAFC; padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.user-sidebar-brand { margin-bottom: 0; }
.user-sidebar-brand h2 { margin: 0; font-size: 17px; line-height: 1.2; }
.user-sidebar-brand p { display: flex; align-items: center; gap: 6px; }
.user-profile-card { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: center; }
.user-profile-card div:last-child { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.user-profile-card strong, .user-profile-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-profile-card span { color: var(--color-text-muted); font-size: 12px; font-weight: 800; }
.user-profile-avatar { width: 40px; height: 40px; border-radius: 8px; background: #273449; color: #FFFFFF; display: grid; place-items: center; font-weight: 900; }
.user-profile-avatar.large { width: 72px; height: 72px; font-size: 22px; }
.user-nav { display: grid; grid-gap: 6px; gap: 6px; }
.user-nav button { min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--color-text-secondary); display: flex; align-items: center; padding: 8px 11px; text-align: left; font-weight: 800; }
.user-nav button:hover { background: #EEF4F6; }
.user-nav button.active { background: #E6F6F8; color: #12737F; }
.user-admin-label { margin: 4px 2px 0; }
.user-sidebar-note { margin-top: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 12px; display: grid; grid-gap: 5px; gap: 5px; }
.user-sidebar-note strong { color: var(--color-text); }
.user-sidebar-note p { margin: 0; color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.user-sidebar-logout { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; color: var(--color-danger); font-weight: 800; cursor: pointer; transition: background 100ms ease, border-color 100ms ease; }
.user-sidebar-logout:hover { background: #FEF2F2; border-color: #FECACA; }
.user-center { grid-column: 1; grid-row: 1 / 3; min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: 72px auto minmax(0, 1fr); background: #FFFFFF; overflow: hidden; }
.user-topbar { border-bottom: 1px solid var(--color-border); background: #FFFFFF; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 540px) auto; align-items: center; grid-gap: 18px; gap: 18px; padding: 0 20px; min-width: 0; }
.user-search { width: 100%; }
.user-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text-secondary); font-weight: 700; }
.user-search input::placeholder { color: var(--color-text-muted); }
.user-mobile-nav { display: none; }
.user-center-scroll { min-height: 0; overflow: auto; padding: 24px; display: grid; align-content: start; grid-gap: 16px; gap: 16px; background: #F8FAFC; }
.user-inline-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-page-grid { display: grid; grid-gap: 16px; gap: 16px; align-content: start; }
.user-panel { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 18px; display: grid; grid-gap: 16px; gap: 16px; box-shadow: none; min-width: 0; }
.user-panel h1, .user-panel h2 { margin: 0; line-height: 1.2; }
.user-panel h1 { font-size: 24px; }
.user-panel h2 { font-size: 18px; }
.user-panel p { margin: 4px 0 0; color: var(--color-text-muted); }
.user-profile-hero { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
.user-profile-hero h1 { overflow-wrap: anywhere; }
.user-badge-row, .user-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user-hero-actions { justify-content: flex-end; }
.user-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.user-metric-card { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 14px; display: grid; grid-gap: 6px; gap: 6px; min-width: 0; }
.user-metric-card span { color: var(--color-text-muted); font-size: 12px; font-weight: 800; }
.user-metric-card strong { font-size: 26px; line-height: 1.1; }
.user-metric-card p { margin: 0; color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.stat-dashboard { display: grid; grid-gap: 16px; gap: 16px; min-width: 0; }
.stat-dashboard-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stat-dashboard-header strong { font-size: 13px; font-weight: 900; color: #0F172A; }
.stat-dashboard-header span { font-size: 11px; color: #94A3B8; font-weight: 700; }
.stat-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.stat-charts-row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; }
.stat-chart-card { border: 1px solid var(--color-border); border-radius: 10px; background: #FFFFFF; padding: 16px 18px; display: grid; grid-gap: 12px; gap: 12px; min-width: 0; }
.stat-chart-title { margin: 0; font-size: 11px; font-weight: 800; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-chart-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stat-chart-legend { flex: 1 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.stat-chart-legend-item { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.2; }
.stat-chart-legend-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
.stat-chart-legend-name { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #475569; }
.stat-chart-legend-value { font-weight: 800; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; color: #0F172A; min-width: 28px; text-align: right; }
.stat-chart-footer { border-top: 1px solid #F1F5F9; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #64748B; }
.stat-chart-footer strong { color: #0F172A; font-size: 15px; font-weight: 800; }
.user-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; }
.user-panel-heading > div:first-child { min-width: 0; }
.user-status-badge { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); border-radius: 999px; background: #F8FAFC; color: #334155; padding: 3px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.user-status-badge.success { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.user-status-badge.warning { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.user-status-badge.danger { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.user-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; margin: 0; }
.user-definition-grid div { border: 1px solid var(--user-panel-line); border-radius: 8px; background: #F8FAFC; padding: 12px; min-width: 0; }
.user-definition-grid dt { color: var(--color-text-muted); font-size: 12px; font-weight: 800; }
.user-definition-grid dd { margin: 4px 0 0; color: var(--color-text); font-weight: 800; overflow-wrap: anywhere; }
.user-security-list, .user-toggle-list, .user-card-list { display: grid; grid-gap: 10px; gap: 10px; }
.user-card-list.compact { gap: 8px; }
.user-row-card, .user-connection-card, .user-vault-card { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 12px; display: grid; grid-gap: 12px; gap: 12px; align-items: center; min-width: 0; }
.user-row-card { grid-template-columns: minmax(0, 1fr) auto; }
.user-row-card div { min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
.user-row-card strong, .user-row-card span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-row-card span { color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.user-form-wide { grid-column: 1 / -1; }
.user-toggle-row { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 12px; gap: 12px; align-items: center; }
.user-toggle-row span { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.user-toggle-row strong { color: var(--color-text); }
.user-toggle-row em { color: var(--color-text-muted); font-style: normal; font-size: 12px; font-weight: 700; }
.user-toggle-row input { width: 18px; height: 18px; accent-color: var(--color-teal); }
.user-table { border: 0; border-radius: 0; background: transparent; overflow-x: auto; overflow-y: hidden; }
.user-table-head, .user-table-row { display: grid; align-items: center; grid-gap: 10px; gap: 10px; padding: 14px 0; min-width: min(100%, 640px); }
.user-table-head { border-bottom: 1px solid var(--user-panel-line); color: var(--color-text-muted); font-size: 12px; font-weight: 900; }
.user-table-row { border-top: 0; color: var(--color-text-secondary); }
.user-table-row + .user-table-row { border-top: 1px solid var(--user-panel-line); }
.user-table-row strong, .user-table-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token-grid { grid-template-columns: minmax(140px, 1.35fr) minmax(120px, 1fr) minmax(96px, 0.7fr) minmax(110px, 0.8fr); }
.member-grid { grid-template-columns: minmax(150px, 1.35fr) minmax(96px, 0.75fr) minmax(88px, 0.65fr) minmax(110px, 0.8fr); }
.user-connection-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
.user-vault-card { grid-template-columns: 42px minmax(0, 1fr) minmax(128px, auto); }
.user-connection-card div:nth-child(2), .user-vault-card div:nth-child(2), .user-vault-meta { min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
.user-connection-card strong, .user-connection-card span, .user-vault-card strong, .user-vault-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-connection-card span, .user-vault-card span, .user-vault-meta span { color: var(--color-text-muted); font-size: 12px; font-weight: 700; }
.user-vault-meta { justify-items: end; }
.user-credential-icon { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: #E6F6F8; color: #12737F; font-size: 11px; font-weight: 900; }
.user-credential-icon::before { content: "KEY"; }
.user-credential-icon.llm { background: #EEF2FF; color: #3730A3; }
.user-credential-icon.llm::before { content: "AI"; }
.user-credential-icon.api { background: #ECFDF5; color: #047857; }
.user-credential-icon.api::before { content: "API"; }
.user-credential-icon.mail { background: #FFF7ED; color: #C2410C; }
.user-credential-icon.mail::before { content: "MAIL"; font-size: 10px; }
.user-credential-icon.web::before { content: "WEB"; }
.user-credential-icon.unknown { background: #F1F5F9; color: #475569; }
.user-timeline { display: grid; grid-gap: 0; gap: 0; }
.user-timeline article { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-gap: 10px; gap: 10px; padding: 0 0 16px; position: relative; }
.user-timeline article:not(:last-child)::before { content: ""; position: absolute; top: 12px; bottom: 0; left: 5px; width: 1px; background: var(--color-border); }
.user-timeline article > span { width: 11px; height: 11px; border-radius: 999px; background: #12737F; margin-top: 5px; z-index: 1; }
.user-timeline strong { display: block; overflow-wrap: anywhere; }
.user-timeline p { margin: 3px 0 0; color: var(--color-text-muted); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.user-empty-state { border: 1px dashed #CBD5E1; border-radius: 8px; background: #F8FAFC; padding: 18px; display: grid; grid-gap: 4px; gap: 4px; color: var(--color-text-secondary); }
.user-empty-state p { margin: 0; color: var(--color-text-muted); }
.workspace.user-mode .user-center { grid-template-rows: minmax(0, 1fr); }
.workspace.user-mode .user-topbar { display: none; }
.workspace.user-mode .user-center-scroll { padding: 0; gap: 0; align-content: stretch; background: #FFFFFF; }
.workspace.user-mode .user-inline-error { margin: 16px 48px 0; }
.user-design-page { --user-border: #E2E8F0; --user-border-soft: rgb(226 232 240 / 72%); --user-border-faint: rgb(226 232 240 / 52%); --user-muted-surface: #F8FAFC; min-height: 100%; display: flex; flex-direction: column; background: #FFFFFF; color: #0F172A; }
.user-design-header { min-height: 72px; display: flex; align-items: center; border-bottom: 1px solid var(--user-border-soft); padding: 0 56px; }
.user-design-header h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 900; letter-spacing: 0; }
.user-design-body { min-width: 0; flex: 1 0 auto; padding: 10px 56px 32px; display: grid; align-content: start; }
.user-design-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-gap: 40px; gap: 40px; border-bottom: 1px solid var(--user-border-faint); padding: 36px 0; min-width: 0; }
.user-design-section:last-child { border-bottom: 0; }
.user-design-section-copy { min-width: 0; display: grid; align-content: start; grid-gap: 9px; gap: 9px; padding-top: 2px; }
.user-design-section-copy h2 { margin: 0; color: #0F172A; font-size: 14px; line-height: 1.35; font-weight: 900; letter-spacing: 0; }
.user-design-section-copy p { margin: 0; color: #64748B; font-size: 12px; line-height: 1.6; font-weight: 700; }
.user-design-section-content { min-width: 0; display: grid; align-content: start; grid-gap: 20px; gap: 20px; }
.user-design-hint { margin: 12px 0 0; color: #64748B; font-size: 12px; line-height: 1.6; font-weight: 700; }
.avatar-crop-modal { width: min(100%, 420px); }
.avatar-crop-viewport { position: relative; width: 280px; height: 280px; margin: 0 auto; overflow: hidden; border-radius: 8px; background: #0F172A; touch-action: none; cursor: -webkit-grab; cursor: grab; }
.avatar-crop-viewport:active { cursor: -webkit-grabbing; cursor: grabbing; }
.avatar-crop-viewport img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; -webkit-user-select: none; -moz-user-select: none; user-select: none; pointer-events: none; }
.avatar-crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgb(15 23 42 / 58%); border: 1px dashed rgb(255 255 255 / 85%); pointer-events: none; }
.avatar-crop-controls { display: grid; grid-gap: 10px; gap: 10px; margin-top: 14px; }
.avatar-crop-controls label { display: grid; grid-gap: 4px; gap: 4px; font-size: 12px; font-weight: 800; color: #334155; }
.avatar-crop-controls input[type="range"] { width: 100%; accent-color: #12737F; }
.avatar-crop-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar-crop-error { margin: 10px 0 0; color: #DC2626; font-size: 12px; font-weight: 800; }
.avatar-crop-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.user-design-footer { min-height: 80px; flex: 0 0 auto; border-top: 1px solid var(--user-border-soft); display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 18px 56px; background: #FFFFFF; }
.user-design-button { min-height: 36px; border: 1px solid var(--user-border); border-radius: 5px; background: #FFFFFF; color: #334155; padding: 8px 14px; font-size: 13px; line-height: 1; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.user-design-button.primary { border-color: #273449; background: #273449; color: #FFFFFF; }
.user-design-button.danger { border-color: #FCA5A5; background: #FEF2F2; color: #B91C1C; }
.user-design-button.compact { min-height: 32px; padding: 7px 12px; }
.user-design-button:disabled { cursor: not-allowed; opacity: 0.48; }
.user-design-photo-row { display: flex; align-items: center; gap: 22px; min-width: 0; }
.user-design-avatar { width: 76px; height: 76px; border-radius: 999px; background: #273449; color: #FFFFFF; display: grid; place-items: center; font-size: 24px; font-weight: 900; flex: 0 0 auto; }
.user-design-photo-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.user-design-field-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); grid-gap: 20px 22px; gap: 20px 22px; min-width: 0; }
.user-design-field { min-width: 0; display: grid; grid-gap: 8px; gap: 8px; color: #64748B; font-size: 12px; font-weight: 900; }
.user-design-field.wide { grid-column: 1 / -1; }
.user-design-control { width: 100%; min-width: 0; min-height: 38px; border: 1px solid var(--user-border); border-radius: 5px; background: #FFFFFF; color: #0F172A; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 800; outline: 0; }
.user-design-control:disabled { cursor: not-allowed; opacity: 0.62; }
.user-design-control[readonly] { background: var(--user-muted-surface); color: #334155; }
.user-design-control:focus { border-color: #12737F; box-shadow: 0 0 0 3px rgba(18, 115, 127, 0.12); }
.user-design-control.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.user-password-modal { --user-border: #CBD5E1; --user-muted-surface: #F8FAFC; width: min(100%, 520px); color: #0F172A; }
.user-password-form { min-width: 0; display: grid; grid-gap: 16px; gap: 16px; }
.user-password-grid { min-width: 0; display: grid; grid-template-columns: 1fr; grid-gap: 14px; gap: 14px; }
.user-password-modal .user-design-control { border: 1px solid var(--user-border); background: #F8FAFC; color: #0F172A; }
.user-password-modal .user-design-control:focus { border-color: #12737F; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(18, 115, 127, 0.12); }
.user-password-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; padding-top: 2px; }
.user-password-actions .user-design-button { min-height: 36px; min-width: 82px; border-color: var(--user-border); background: #FFFFFF; color: #334155; border-style: solid; border-width: 1px; }
.user-password-actions .user-design-button.primary { border-color: #273449; background: #273449; color: #FFFFFF; }
.user-password-actions .user-design-button:not(:disabled) { opacity: 1; }
.user-password-actions .user-design-button:disabled,
.user-password-actions .user-design-button.primary:disabled { opacity: 0.72; cursor: not-allowed; }
.user-password-copy, .user-password-feedback { margin: 0; color: #64748B; font-size: 12px; line-height: 1.5; font-weight: 700; }
.user-password-feedback { border: 1px solid var(--user-border); border-radius: 5px; padding: 9px 10px; }
.user-password-feedback.success { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.user-password-feedback.danger { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
/* S1 MFA 設定精靈 */
.mfa-qr { display: flex; justify-content: center; padding: 8px; background: #FFFFFF; border: 1px solid var(--user-border); border-radius: 8px; }
.mfa-qr svg { width: 168px; height: 168px; }
.mfa-secret { display: inline-block; margin-top: 4px; padding: 4px 8px; background: #F1F5F9; border-radius: 5px; font-size: 13px; letter-spacing: 1px; color: #1E293B; word-break: break-all; }
.mfa-recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; }
.mfa-recovery-code { padding: 8px 10px; background: #F8FAFC; border: 1px solid var(--user-border); border-radius: 6px; font-size: 14px; letter-spacing: 1px; text-align: center; color: #0F172A; }
.user-design-stack { display: grid; grid-gap: 0; gap: 0; min-width: 0; }
.user-design-row { min-width: 0; min-height: 66px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--user-border-faint); padding: 16px 0; }
.user-design-row:first-child { border-top: 0; }
.user-design-row:last-child { border-bottom: 0; }
.user-design-row > div { min-width: 0; flex: 1 1 auto; display: grid; grid-gap: 4px; gap: 4px; }
.user-design-row strong { min-width: 0; color: #0F172A; font-size: 13px; line-height: 1.35; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-design-row span:not(.user-design-pill) { min-width: 0; color: #64748B; font-size: 12px; line-height: 1.45; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-design-row.toggle { cursor: pointer; }
.user-design-row.toggle input { width: 18px; height: 18px; accent-color: #12737F; flex: 0 0 auto; }
.user-design-pill { min-height: 24px; border: 1px solid var(--user-border); border-radius: 999px; background: var(--user-muted-surface); color: #334155; padding: 4px 9px; font-size: 12px; line-height: 1; font-weight: 900; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.user-design-pill.success { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.user-design-pill.warning { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.user-design-pill.danger { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.user-design-action-block { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; border: 0; border-radius: 6px; background: var(--user-muted-surface); padding: 16px; }
.user-design-action-block p { margin: 0; color: #64748B; font-size: 13px; line-height: 1.5; font-weight: 700; min-width: 0; }
.user-design-table-tools { min-width: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.user-design-compact-field { min-width: 220px; max-width: 520px; flex: 1 1 360px; display: grid; grid-gap: 7px; gap: 7px; color: #64748B; font-size: 12px; font-weight: 900; }
.user-agent-section-head { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.user-agent-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--user-border); border-radius: 6px; background: #F8FAFC; padding: 3px; }
.user-agent-switch button { min-height: 30px; border: 0; border-radius: 4px; background: transparent; color: #64748B; padding: 6px 10px; font-size: 12px; font-weight: 900; }
.user-agent-switch button.active { background: #273449; color: #FFFFFF; }
.user-design-inline-row { min-width: 0; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--user-border-faint); padding-top: 16px; color: #64748B; font-size: 12px; font-weight: 800; }
.user-design-inline-row.wide { grid-column: 1 / -1; }
.user-design-inline-row strong { color: #0F172A; font-size: 13px; font-weight: 900; }
.user-design-inline-row span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-design-inline-row.user-position-skills-block { display: grid; align-items: stretch; grid-gap: 12px; gap: 12px; }
.user-position-skills-head { min-width: 0; display: flex; align-items: center; gap: 12px; }
.user-position-skills-head > span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-skill-list { min-width: 0; display: grid; grid-gap: 10px; gap: 10px; }
.user-position-skill-card { min-width: 0; border: 1px solid var(--user-border-soft); border-radius: 6px; background: #FFFFFF; padding: 12px; display: grid; grid-gap: 12px; gap: 12px; }
.user-position-skill-card-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 12px; gap: 12px; align-items: center; }
.user-position-skill-copy { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.user-position-skill-copy strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-skill-copy p,
.user-position-skills-empty,
.user-position-skill-error { margin: 0; color: #64748B; font-size: 12px; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.user-position-skill-error { color: #B91C1C; }
.user-position-skill-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.user-position-skill-actions code { color: #64748B; font-size: 11px; font-weight: 900; }
.user-position-skill-detail { min-width: 0; border-top: 1px solid var(--user-border-faint); padding-top: 12px; display: grid; grid-gap: 12px; gap: 12px; }
.user-position-skill-meta { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; margin: 0; }
.user-position-skill-meta div { min-width: 0; border: 1px solid var(--user-border-faint); border-radius: 5px; background: #F8FAFC; padding: 9px 10px; }
.user-position-skill-meta dt { color: #64748B; font-size: 11px; font-weight: 900; }
.user-position-skill-meta dd { margin: 3px 0 0; color: #0F172A; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.user-position-skill-instruction { min-width: 0; display: grid; grid-gap: 8px; gap: 8px; }
.user-position-skill-instruction strong { color: #0F172A; font-size: 12px; font-weight: 900; }
.user-position-skill-instruction pre { max-height: 260px; overflow: auto; margin: 0; border: 1px solid var(--user-border); border-radius: 5px; background: #F8FAFC; color: #0F172A; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 800 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.user-design-inline-row.user-private-skills-block,
.user-design-inline-row.user-skill-review-block { display: grid; align-items: stretch; grid-gap: 12px; gap: 12px; }
.user-private-skill-list,
.user-skill-review-list { min-width: 0; display: grid; grid-gap: 10px; gap: 10px; }
.user-private-skill-card,
.user-skill-review-row { min-width: 0; border: 1px solid var(--user-border-soft); border-radius: 6px; background: #FFFFFF; padding: 12px; display: grid; grid-gap: 10px; gap: 10px; }
.user-private-skill-main,
.user-skill-review-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.user-private-skill-main { min-width: 0; display: grid; grid-gap: 12px; gap: 12px; }
.user-private-skill-main > div:first-child,
.user-skill-review-copy { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.user-private-skill-main strong,
.user-skill-review-copy strong { min-width: 0; color: #0F172A; font-size: 13px; line-height: 1.35; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-private-skill-main p,
.user-skill-review-copy p { margin: 0; color: #64748B; font-size: 12px; line-height: 1.45; font-weight: 800; overflow-wrap: anywhere; }
.user-private-skill-actions,
.user-skill-review-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.user-skill-target-select,
.user-skill-target-readonly { min-width: 180px; max-width: 260px; }
.user-private-skill-requests { min-width: 0; display: grid; grid-gap: 6px; gap: 6px; border-top: 1px solid var(--user-border-faint); padding-top: 10px; }
.user-private-skill-requests > div { min-width: 0; display: flex; align-items: center; gap: 8px; color: #64748B; font-size: 12px; font-weight: 800; }
.user-private-skill-requests span:not(.user-design-pill),
.user-skill-review-row span:not(.user-design-pill) { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-skill-review-head { min-width: 0; display: flex; align-items: center; gap: 12px; }
.user-skill-review-head > span { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-assignment-modal { width: min(720px, calc(100vw - 36px)); }
.user-position-assignment-body { min-height: 0; overflow: auto; display: grid; grid-gap: 14px; gap: 14px; padding: 20px; background: #FFFFFF; }
.user-position-assignment-feedback { border: 1px solid #CFE3E7; border-radius: 6px; background: #F3FAFB; color: #155E75; padding: 9px 10px; font-size: 12px; line-height: 1.45; font-weight: 900; }
.user-position-assignment-feedback.danger { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.user-position-assignment-panel { min-width: 0; border: 1px solid var(--user-border-soft); border-radius: 6px; background: #FFFFFF; display: grid; grid-gap: 8px; gap: 8px; padding: 12px; }
.user-position-assignment-panel-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #64748B; font-size: 12px; font-weight: 900; }
.user-position-assignment-panel-head strong { min-width: 0; color: #0F172A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-assignment-list,
.user-position-assignment-options { min-width: 0; display: grid; grid-gap: 8px; gap: 8px; }
.user-position-assignment-list > p,
.user-position-assignment-options > p { margin: 0; color: #64748B; font-size: 12px; line-height: 1.45; font-weight: 800; }
.user-position-member-row,
.user-position-assignment-option { min-width: 0; min-height: 42px; border: 1px solid var(--user-border-faint); border-radius: 5px; background: #F8FAFC; display: grid; align-items: center; grid-gap: 10px; gap: 10px; padding: 8px 10px; }
.user-position-member-row { grid-template-columns: minmax(0, 1fr) auto; }
.user-position-member-row > div { min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
.user-position-member-row strong,
.user-position-assignment-option span { min-width: 0; color: #0F172A; font-size: 12px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-member-row span,
.user-position-assignment-option small { min-width: 0; color: #64748B; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-position-assignment-option { grid-template-columns: auto minmax(0, 1fr) auto; }
.user-position-assignment-option input { width: 16px; height: 16px; margin: 0; accent-color: #12737F; }
.user-position-assignment-actions { display: flex; justify-content: flex-end; gap: 10px; }
.user-design-menu { position: relative; display: inline-flex; justify-self: start; }
.user-design-menu-panel { position: fixed; z-index: 1200; min-width: 136px; border: 1px solid var(--user-border); border-radius: 6px; background: #FFFFFF; box-shadow: 0 14px 34px rgb(15 23 42 / 14%); padding: 6px; display: grid; grid-gap: 2px; gap: 2px; }
.user-design-menu-panel button { min-height: 30px; border: 0; border-radius: 4px; background: transparent; color: #334155; padding: 7px 9px; text-align: left; font-size: 12px; font-weight: 900; }
.user-design-menu-panel button:hover:not(:disabled) { background: #F1F5F9; }
.user-design-menu-panel button:disabled { color: #94A3B8; cursor: not-allowed; }
.user-design-menu-feedback { min-height: 28px; border-radius: 4px; padding: 7px 9px; font-size: 12px; line-height: 1.2; font-weight: 900; }
.user-design-menu-feedback.success { background: #F0FDF4; color: #166534; }
.user-design-menu-feedback.error { background: #FEF2F2; color: #B91C1C; }
.user-credential-backdrop { background: rgb(15 23 42 / 60%); z-index: 1250; }
.user-credential-modal { width: min(640px, calc(100vw - 36px)); max-height: min(92vh, 720px); overflow: hidden; border: 1px solid #CFE3E7; border-radius: 8px; background: #FFFFFF; box-shadow: 0 20px 44px rgb(15 23 42 / 17%); display: flex; flex-direction: column; color: #0F172A; }
.user-credential-modal-header { min-height: 96px; flex: 0 0 auto; border-bottom: 1px solid #CFE3E7; background: #FCFEFE; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px 18px; }
.user-credential-modal-header h2 { margin: 0; color: #0F172A; font-size: 20px; line-height: 1.2; font-weight: 900; letter-spacing: 0; }
.user-credential-modal-header p { margin: 5px 0 0; color: #334155; font-size: 13px; line-height: 1.35; font-weight: 700; }
.user-credential-close { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #D6E7EA; border-radius: 6px; background: #F3F8FA; color: #334155; display: grid; place-items: center; padding: 0; font-size: 18px; line-height: 1; font-weight: 900; }
.user-credential-form { min-height: 0; overflow: auto; display: grid; align-content: start; grid-gap: 10px; gap: 10px; padding: 20px; background: #FFFFFF; }
.user-credential-field { min-width: 0; display: grid; grid-gap: 5px; gap: 5px; color: #334155; font-size: 11px; line-height: 1.3; font-weight: 900; }
.user-credential-input,
.user-credential-type-trigger { width: 100%; min-width: 0; height: 36px; border: 1px solid #CBD5E1; border-radius: 6px; background: #FFFFFF; color: #0F172A; padding: 0 12px; font-size: 12px; line-height: 1; font-weight: 800; outline: 0; }
.user-credential-input::placeholder { color: #94A3B8; font-weight: 700; }
.user-credential-input:focus,
.user-credential-type-trigger:focus-visible { border-color: #12737F; box-shadow: 0 0 0 3px rgb(18 115 127 / 12%); }
.user-credential-type-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.user-credential-type-trigger > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-credential-type-trigger > span:last-child { color: #64748B; font-size: 15px; line-height: 1; }
.user-credential-type-menu { position: fixed; z-index: 1300; border: 1px solid #E2E8F0; border-radius: 6px; background: #FFFFFF; box-shadow: 0 12px 28px rgb(15 23 42 / 14%); padding: 6px; display: grid; grid-gap: 2px; gap: 2px; }
.user-credential-type-menu button { min-height: 34px; border: 0; border-radius: 4px; background: #FFFFFF; color: #334155; padding: 0 10px; text-align: left; font-size: 12px; font-weight: 900; }
.user-credential-type-menu button.active,
.user-credential-type-menu button:hover { background: #F8F9FB; color: #0F172A; }
.user-credential-error { border: 1px solid #FECACA; border-radius: 6px; background: #FEF2F2; color: #B91C1C; padding: 9px 10px; font-size: 12px; line-height: 1.45; font-weight: 800; }
.user-credential-actions { min-height: 38px; display: flex; align-items: center; justify-content: flex-end; padding-top: 2px; }
.user-credential-save { min-width: 96px; height: 36px; border: 0; border-radius: 6px; background: #273449; color: #FFFFFF; padding: 0 16px; font-size: 13px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.user-credential-save:disabled,
.user-credential-close:disabled { cursor: not-allowed; opacity: 0.56; }
.user-design-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 0; border-radius: 6px; background: var(--user-muted-surface); padding: 14px; }
.user-design-chip { min-height: 32px; border: 1px solid var(--user-border); border-radius: 5px; background: #FFFFFF; color: #64748B; padding: 7px 12px; font-size: 12px; font-weight: 900; }
.user-design-chip.active { border-color: #273449; background: #273449; color: #FFFFFF; }
.user-design-table { min-width: 0; overflow-x: auto; border-top: 0; border-bottom: 0; }
.user-design-table-head,
.user-design-table-row { min-width: var(--user-design-table-min, 100%); display: grid; grid-template-columns: var(--user-design-table-cols); grid-gap: var(--user-design-table-gap, 12px); gap: var(--user-design-table-gap, 12px); align-items: center; padding: 14px 0; }
.user-design-table-head { border-bottom: 1px solid var(--user-border-soft); color: #64748B; font-size: 12px; font-weight: 900; }
.user-design-table-row { border-top: 0; color: #334155; font-size: 13px; font-weight: 800; }
.user-design-table-row + .user-design-table-row { border-top: 1px solid var(--user-border-faint); }
.user-design-table-row strong,
.user-design-table-row span:not(.user-design-pill) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-design-table-empty { border-top: 0; padding: 22px 0; color: #64748B; font-size: 13px; font-weight: 800; }
@media (max-width: 767px) {
  .workspace.user-mode .user-center { grid-template-rows: auto minmax(0, 1fr); }
  .workspace.user-mode .user-topbar { display: none; }
  .workspace.user-mode .user-center-scroll { padding: 0; gap: 0; }
  .workspace.user-mode .user-inline-error { margin: 12px 14px 0; }
  .user-design-header { min-height: 56px; padding: 0 18px; }
  .user-design-body { padding: 6px 18px 20px; }
  .user-design-section { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .user-design-field-grid { grid-template-columns: 1fr; }
  .user-position-skills-head,
  .user-skill-review-head,
  .user-private-skill-main,
  .user-private-skill-actions,
  .user-skill-review-row,
  .user-skill-review-actions,
  .user-position-skill-card-main,
  .user-position-skill-actions { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .user-position-skill-actions { justify-content: flex-start; }
  .user-private-skill-actions,
  .user-skill-review-actions { justify-content: flex-start; }
  .user-skill-target-select,
  .user-skill-target-readonly { min-width: 0; max-width: none; width: 100%; }
  .user-position-skill-meta { grid-template-columns: 1fr; }
  .user-position-member-row,
  .user-position-assignment-option { grid-template-columns: 1fr; align-items: stretch; }
  .user-position-assignment-actions { flex-direction: column; }
  .user-password-actions { align-items: stretch; flex-direction: column; }
  .user-design-footer { padding: 14px 18px; }
  .user-design-footer .user-design-button { flex: 1 1 auto; }
  .user-design-row { align-items: flex-start; flex-wrap: wrap; }
  .user-design-row span:not(.user-design-pill),
  .user-design-row strong { white-space: normal; }
  .user-design-action-block { align-items: stretch; flex-direction: column; }
  .user-design-photo-row { align-items: flex-start; }
  .user-design-table-tools { flex-wrap: wrap; gap: 8px; }
  .user-design-inline-row { align-items: stretch; flex-direction: column; }
  .user-design-compact-field { min-width: 0; max-width: none; }
  .user-design-control { min-height: 36px; padding: 7px 10px; font-size: 16px; }
  .user-agent-section-head { justify-content: stretch; }
  .user-agent-switch { width: 100%; }
  .user-agent-switch button { flex: 1 1 auto; }
  .user-credential-modal { width: min(100%, calc(100vw - 20px)); max-height: 92dvh; }
  .user-credential-modal-header { min-height: 86px; padding: 18px; }
  .user-credential-form { padding: 16px; }
}
.todo-workbench { grid-column: 1; grid-row: 1 / 3; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: var(--color-surface); display: grid; grid-template-rows: 72px minmax(0, 1fr); }
.todo-sidebar { background: #F8FAFC; padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.todo-sidebar-brand { margin-bottom: 0; align-items: flex-start; }
.todo-sidebar-brand h2 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: -0.03em; }
.todo-sidebar-brand p { margin: 4px 0 0; color: #64748B; font-size: 12px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.todo-sidebar-actions { display: flex; align-items: center; gap: 8px; }
.todo-sidebar-refresh { display: grid; place-items: center; flex: 0 0 auto; }
.todo-sidebar-refresh.is-loading { opacity: 0.62; }
.todo-square-button, .todo-icon-button { border: 0; background: #273449; color: #FFFFFF; display: inline-grid; place-items: center; padding: 0; }
.todo-square-button { width: 66px; height: 38px; border-radius: 4px; flex: 0 0 auto; }
.todo-icon-button { width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 7px; background: #FFFFFF; color: #64748B; }
.todo-sync-strip { min-height: 36px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: #334155; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 800; line-height: 1.25; }
.todo-sync-dot, .todo-dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; background: #12737F; flex: 0 0 auto; }
.todo-dot.amber { background: #F59E0B; }
.todo-dot.red { background: #EF4444; }
.todo-dot.slate { background: #64748B; }
.todo-dot.green { background: #1A7A43; }
.todo-dot.teal { background: #12737F; }
.todo-overview-switch { min-height: 42px; border: 1px solid #273449; border-radius: 6px; background: #273449; color: #FFFFFF; display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 900; line-height: 1.2; }
.todo-search-field { min-height: 42px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; display: flex; align-items: center; gap: 10px; color: #64748B; padding: 8px 12px; }
.todo-search-field input, .todo-files-search input { border: 0; outline: 0; min-width: 0; width: 100%; background: transparent; color: #334155; font-weight: 700; }
.todo-search-field input::placeholder, .todo-files-search input::placeholder { color: #64748B; }
.todo-search-field kbd { border: 0; border-radius: 5px; background: #F2F4F7; color: #64748B; padding: 3px 8px; font-size: 11px; font-weight: 900; }
.todo-status-tabs, .todo-panel-tabs { border: 1px solid var(--color-border); border-radius: 6px; background: #F2F4F7; display: grid; grid-gap: 4px; gap: 4px; padding: 4px; }
.todo-status-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 42px; }
.todo-panel-tabs { grid-template-columns: repeat(4, 116px) minmax(0, 1fr); min-height: 38px; margin-bottom: 20px; }
.todo-status-tabs button, .todo-panel-tabs button { border: 0; border-radius: 4px; background: transparent; color: #64748B; font-size: 13px; font-weight: 900; padding: 8px 0; }
.todo-status-tabs button.active, .todo-panel-tabs button.active { background: #FFFFFF; color: #0F172A; box-shadow: inset 0 0 0 1px var(--color-border); }
.todo-sidebar-section { display: grid; grid-gap: 9px; gap: 9px; padding-top: 2px; }
.todo-section-heading { display: flex; align-items: center; justify-content: space-between; color: #64748B; }
.todo-nav-list, .todo-saved-views { display: grid; grid-gap: 7px; gap: 7px; }
.todo-nav-item { min-height: 44px; border: 0; border-radius: 6px; background: transparent; color: #334155; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; grid-gap: 10px; gap: 10px; padding: 9px 12px; text-align: left; font-weight: 800; line-height: 1.2; }
.todo-nav-item:hover { background: #EEF4F6; }
.todo-nav-item.active { background: #E6F6F8; color: #12737F; }
.todo-nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-nav-item strong { min-width: 36px; min-height: 24px; border-radius: 6px; background: #FFFFFF; color: currentColor; display: inline-grid; place-items: center; padding: 0 8px; font-size: 12px; }
.todo-saved-view { min-height: 38px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: #334155; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 800; line-height: 1.2; }
.todo-load-card { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 14px; display: grid; grid-gap: 12px; gap: 12px; }
.todo-load-heading, .todo-sla-card { display: flex; align-items: center; gap: 8px; color: #12737F; }
.todo-load-heading strong, .todo-sla-card strong { color: #0F172A; }
.todo-load-meter { display: grid; grid-gap: 5px; gap: 5px; }
.todo-load-meter div { display: flex; align-items: center; justify-content: space-between; color: #64748B; font-size: 12px; font-weight: 800; }
.todo-load-meter strong { color: #0F172A; font-size: 15px; }
.todo-load-meter p, .todo-health-bar span, .todo-load-stack { height: 6px; border-radius: 999px; background: #E9EEF4; overflow: hidden; margin: 0; }
.todo-load-meter p span, .todo-health-bar i, .todo-load-stack span { height: 100%; border-radius: inherit; display: block; background: #12737F; }
.todo-load-meter p span.red, .todo-health-bar i.red { background: #EF4444; }
.todo-load-meter p span.slate, .todo-health-bar i.slate, .todo-health-bar i.muted { background: #334155; }
.todo-health-bar i.green { background: #1A7A43; }
.todo-health-bar i.teal { background: #12737F; }
.todo-sla-card { border-radius: 8px; background: #EEF7F8; padding: 12px; margin-top: auto; }
.todo-sla-card div { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.todo-sla-card span { color: #64748B; font-size: 12px; font-weight: 800; }

.todo-topbar { grid-column: 1; grid-row: 1; grid-template-columns: minmax(240px, 1fr) auto; padding: 0 20px; }
.todo-topbar-title { min-width: 0; }
.todo-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; overflow: visible; padding-bottom: 2px; position: relative; z-index: 20; }
.todo-toolbar-chip, .todo-primary-button, .todo-secondary-button { height: 36px; border: 1px solid var(--color-border); border-radius: 7px; background: #FFFFFF; color: #334155; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 900; white-space: nowrap; }
.todo-toolbar-chip, .todo-primary-button, .todo-secondary-button { flex: 0 0 auto; }
.todo-toolbar-chip { cursor: pointer; }
.todo-toolbar-chip.active { border-color: #B2E4EA; background: #E6F6F8; color: #12737F; }
.todo-toolbar-chip:focus-visible { outline: 3px solid rgb(18 115 127 / 18%); outline-offset: 2px; }
.todo-filter-menu { position: relative; flex: 0 0 auto; }
.todo-filter-menu.open .todo-toolbar-chip { border-color: #12737F; box-shadow: 0 0 0 3px rgb(18 115 127 / 10%); }
.todo-filter-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(360px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 132px)); overflow: auto; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; box-shadow: 0 18px 42px rgb(15 23 42 / 14%); padding: 12px; display: grid; grid-gap: 12px; gap: 12px; text-align: left; }
.todo-filter-popover.scope { width: min(380px, calc(100vw - 32px)); }
.todo-filter-section { display: grid; grid-gap: 8px; gap: 8px; }
.todo-filter-section + .todo-filter-section { border-top: 1px solid #E6EEF3; padding-top: 12px; }
.todo-filter-section h3 { margin: 0; color: #64748B; font-size: 12px; font-weight: 900; line-height: 1.2; }
.todo-filter-section > div { display: grid; grid-gap: 6px; gap: 6px; }
.todo-filter-option { min-height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #334155; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 9px; font-size: 13px; font-weight: 900; text-align: left; }
.todo-filter-option:hover { background: #F2F7F8; }
.todo-filter-option.active { border-color: #B2E4EA; background: #E6F6F8; color: #12737F; }
.todo-filter-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-filter-empty { margin: 0; border-radius: 6px; background: #F8F9FB; color: #64748B; padding: 9px; font-size: 12px; font-weight: 800; }
.todo-week-picker { border: 1px solid var(--color-border); border-radius: 7px; background: #F8F9FB; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-gap: 8px; gap: 8px; align-items: center; padding: 8px; }
.todo-week-picker strong { color: #0F172A; font-size: 12px; text-align: center; white-space: nowrap; }
.todo-week-picker button, .todo-filter-mini-action { min-height: 30px; border: 1px solid var(--color-border); border-radius: 5px; background: #FFFFFF; color: #334155; padding: 0 8px; font-size: 12px; font-weight: 900; }
.todo-filter-mini-action { width: 100%; }
.todo-filter-date-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; }
.todo-filter-date-field { display: grid; grid-gap: 5px; gap: 5px; min-width: 0; }
.todo-filter-date-field span { color: #64748B; font-size: 12px; font-weight: 900; }
.todo-filter-date-field input { min-width: 0; height: 34px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: #334155; padding: 0 9px; font: inherit; font-size: 13px; font-weight: 800; }
.todo-filter-date-field input:focus { border-color: #12737F; outline: 0; box-shadow: 0 0 0 3px rgb(18 115 127 / 12%); }
.todo-primary-button { background: #273449; border-color: #273449; color: #FFFFFF; }
.todo-secondary-button { background: #FFFFFF; color: #334155; }
.todo-main-scroll { grid-row: 2; background: #FFFFFF; overflow: auto; padding: 32px 48px 54px; min-width: 0; }
.todo-mobile-back { margin-bottom: 12px; }
.todo-overview, .todo-kanban, .todo-calendar, .todo-files { display: grid; grid-gap: 18px; gap: 18px; }
.todo-create-card { border: 1px solid #B2E4EA; border-radius: 8px; background: #F8FCFD; padding: 18px; margin-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.todo-create-card-title { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.todo-create-card-title div { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.todo-create-card-title strong { color: #0F172A; font-size: 16px; line-height: 1.25; }
.todo-create-card-title span { color: #64748B; font-size: 12px; font-weight: 800; }
.todo-field { display: grid; grid-gap: 6px; gap: 6px; min-width: 0; align-content: start; }
.todo-field span { color: #64748B; font-size: 12px; font-weight: 900; }
.todo-field small { color: #64748B; font-size: 12px; font-weight: 800; line-height: 1.35; }
.todo-field input, .todo-field textarea, .todo-field select, .todo-inline-select { min-width: 0; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: #334155; font: inherit; font-size: 13px; font-weight: 800; outline: 0; }
.todo-field input, .todo-field select { height: 38px; padding: 0 11px; }
.todo-field textarea { min-height: 76px; resize: vertical; padding: 10px 11px; line-height: 1.45; }
.todo-field input:focus, .todo-field textarea:focus, .todo-field select:focus, .todo-inline-select:focus { border-color: #12737F; box-shadow: 0 0 0 3px rgb(18 115 127 / 12%); }
.todo-field-wide { grid-column: 1 / -1; }
.todo-create-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.todo-stat-grid, .todo-kanban-metrics, .todo-calendar-metrics, .todo-file-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.todo-stat-card { min-height: 94px; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 18px; display: grid; grid-gap: 4px; gap: 4px; align-content: center; }
.todo-stat-card span { color: #64748B; font-size: 12px; font-weight: 900; }
.todo-stat-card strong { color: #0F172A; font-size: 28px; line-height: 1; }
.todo-stat-card em { color: #334155; font-size: 12px; font-style: normal; font-weight: 900; }
.todo-stat-card.red em { color: #EF4444; }
.todo-stat-card.green em { color: #1A7A43; }
.todo-stat-card.amber em { color: #D97706; }
.todo-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-gap: 14px; gap: 14px; }
.todo-bottom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-gap: 14px; gap: 14px; }
.todo-mobile-today { display: none; }
.todo-panel-card { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 18px; display: grid; grid-gap: 14px; gap: 14px; min-width: 0; }
.todo-panel-card h2 { margin: 0; font-size: 15px; line-height: 1.25; }
.todo-donut-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-gap: 28px; gap: 28px; align-items: center; }
.todo-donut { width: 142px; height: 142px; border-radius: 999px; background: conic-gradient(#334155 0 42%, #1A7A43 42% 68%, #12737F 68% 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; color: #0F172A; }
.todo-donut::before { content: ""; width: 94px; height: 94px; border-radius: inherit; background: #FFFFFF; position: absolute; }
.todo-donut strong, .todo-donut span { position: relative; z-index: 1; }
.todo-donut strong { font-size: 30px; line-height: 1; }
.todo-donut span { color: #64748B; font-size: 12px; font-weight: 900; }
.todo-donut-row dl { margin: 0; display: grid; grid-gap: 4px; gap: 4px; }
.todo-donut-row dl div { display: flex; gap: 18px; justify-content: space-between; color: #334155; font-weight: 900; }
.todo-donut-row dt, .todo-donut-row dd { margin: 0; }
.todo-focus-list, .todo-timeline-list, .todo-day-agenda { display: grid; grid-gap: 12px; gap: 12px; }
.todo-focus-row, .todo-timeline-list div { min-height: 42px; border: 1px solid var(--color-border); border-radius: 6px; background: #F8F9FB; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #334155; font-weight: 900; }
.todo-focus-row span, .todo-timeline-list span { width: 14px; height: 14px; border: 1.5px solid #64748B; border-radius: 999px; }
.todo-timeline-list div { border: 0; background: #F8F9FB; }
.todo-timeline-list span { width: 8px; height: 8px; border: 0; background: #12737F; }
.todo-health-bar { display: grid; grid-gap: 6px; gap: 6px; }
.todo-health-bar strong { color: #334155; font-size: 12px; }
.todo-manager-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.todo-load-mini { border: 1px solid var(--color-border); border-radius: 6px; background: #F8F9FB; padding: 12px; display: grid; grid-gap: 2px; gap: 2px; }
.todo-load-mini strong { font-size: 13px; }
.todo-load-mini span { color: #334155; font-size: 26px; font-weight: 900; line-height: 1; }
.todo-load-mini.red span { color: #EF4444; }
.todo-load-mini em { color: #64748B; font-size: 12px; font-style: normal; font-weight: 800; }
.todo-load-stack { height: 78px; border: 1px solid var(--color-border); border-radius: 6px; background: #F8F9FB; display: grid; align-content: center; grid-gap: 10px; gap: 10px; padding: 16px 18px; }
.todo-load-stack span:nth-child(1) { background: #334155; }
.todo-load-stack span:nth-child(2) { background: #12737F; }
.todo-load-stack span:nth-child(3) { background: #1A7A43; }

.todo-list-panel { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; min-height: 620px; overflow: hidden; }
.todo-bulk-bar { min-height: 44px; border-bottom: 1px solid var(--color-border); background: #F8F9FB; display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: #64748B; font-size: 12px; font-weight: 900; }
.todo-bulk-bar label { display: inline-flex; align-items: center; gap: 8px; color: #334155; }
.todo-bulk-bar input, .todo-task-name input { accent-color: #12737F; }
.todo-bulk-bar button { height: 28px; border: 1px solid var(--color-border); border-radius: 5px; background: #FFFFFF; color: #334155; padding: 0 10px; font-size: 12px; font-weight: 900; }
.todo-bulk-bar button:disabled { opacity: 0.45; cursor: not-allowed; }
.todo-list-header, .todo-task-row { display: grid; grid-template-columns: minmax(260px, 1.9fr) minmax(120px, 0.7fr) minmax(110px, 0.5fr) minmax(170px, 0.9fr) minmax(110px, 0.6fr) 44px; grid-gap: 14px; gap: 14px; align-items: center; }
.todo-list-header { height: 40px; background: #FFFFFF; border-bottom: 1px solid var(--color-border); padding: 0 18px; color: #64748B; font-size: 12px; font-weight: 900; }
.todo-list-section-heading { height: 48px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 9px; padding: 0 18px; color: #0F172A; }
.todo-list-section-heading::before { content: ""; width: 3px; height: 28px; border-radius: 999px; background: #334155; margin-right: 6px; }
.todo-list-section-heading.teal::before { background: #12737F; }
.todo-list-section-heading.green::before { background: #1A7A43; }
.todo-list-section-heading span { min-width: 24px; height: 24px; border-radius: 999px; background: #F2F4F7; display: inline-grid; place-items: center; color: #64748B; font-size: 12px; font-weight: 900; }
.todo-task-row { min-height: 58px; border-bottom: 1px solid var(--color-border); padding: 0 18px; color: #64748B; font-weight: 800; }
.todo-task-row.selected { background: #E6F6F8; }
.todo-task-row strong { color: #334155; }
.todo-task-name, .todo-assignee { display: flex; align-items: center; gap: 10px; min-width: 0; }
.todo-task-name strong, .todo-assignee { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-task-name div { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.todo-task-name em { color: #64748B; font-size: 12px; font-style: normal; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-radio { width: 14px; height: 14px; border: 1.5px solid #64748B; border-radius: 999px; flex: 0 0 auto; }
.todo-mini-avatar { width: 24px; height: 24px; border-radius: 999px; background: #F2F4F7; color: #64748B; display: inline-grid; place-items: center; border: 1px solid var(--color-border); flex: 0 0 auto; }
.todo-status-badge { width: -moz-fit-content; width: fit-content; border-radius: 5px; padding: 5px 9px; font-size: 12px; font-weight: 900; color: #334155; background: #F2F4F7; }
.todo-status-badge.doing, .todo-status-badge.review { color: #12737F; background: #E6F6F8; }
.todo-status-badge.done { color: #1A7A43; background: #E7F7EE; }
.todo-status-badge.blocked { color: #EF4444; background: #FEF2F2; }
.todo-inline-select { width: -moz-fit-content; width: fit-content; max-width: 100%; padding: 5px 22px 5px 9px; -webkit-appearance: auto; -moz-appearance: auto; appearance: auto; cursor: pointer; }
.todo-task-due.today, .todo-task-due.tomorrow, .todo-task-due.this-week { color: #12737F; }
.todo-task-due.overdue { color: #EF4444; }
.todo-task-due.done { color: #1A7A43; }
.todo-row-action { width: 34px; height: 34px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: #64748B; display: inline-grid; place-items: center; justify-self: end; cursor: pointer; }
.todo-row-action:hover:not(:disabled) { border-color: #FCA5A5; background: #FEF2F2; color: #EF4444; }
.todo-row-action:disabled { opacity: 0.45; cursor: wait; }
.todo-task-row .danger { color: #EF4444; }
.todo-task-row .teal { color: #12737F; }
.todo-empty-row { padding: 18px; color: #64748B; font-weight: 800; border-bottom: 1px solid var(--color-border); }
.todo-empty-state { padding: 18px; color: #64748B; font-weight: 800; border-bottom: 1px solid var(--color-border); background: #F8F9FB; }

.todo-kanban-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); grid-gap: 14px; gap: 14px; min-height: 660px; }
.todo-kanban-column { border: 1px solid var(--color-border); border-radius: 8px; background: #F2F4F7; padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-gap: 14px; gap: 14px; transition: background-color 120ms ease, border-color 120ms ease; }
.todo-kanban-column.drag-over { border-color: #12737F; background: #E6F6F8; }
.todo-kanban-column header { display: flex; align-items: center; gap: 8px; color: #0F172A; font-weight: 900; }
.todo-kanban-column header em { color: #64748B; font-style: normal; }
.todo-kanban-cards { display: grid; align-content: start; grid-gap: 12px; gap: 12px; }
.todo-kanban-card { border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: inherit; padding: 14px; display: grid; grid-gap: 8px; gap: 8px; text-align: left; cursor: -webkit-grab; cursor: grab; }
.todo-kanban-card:disabled { cursor: wait; opacity: 0.6; }
.todo-kanban-card.dragging { opacity: 0.55; }
.todo-kanban-card strong { color: #0F172A; }
.todo-kanban-card p { margin: 0; color: #64748B; font-weight: 800; }
.todo-kanban-card div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-kanban-card span { border-radius: 999px; background: #E6F6F8; color: #12737F; padding: 4px 9px; font-size: 12px; font-weight: 900; }
.todo-kanban-card em { color: #334155; font-size: 12px; font-style: normal; font-weight: 900; }

.todo-calendar-layout { display: grid; grid-template-columns: 286px minmax(0, 1fr); grid-gap: 14px; gap: 14px; }
.todo-today-focus h2 { margin: 0; font-size: 18px; }
.todo-today-focus p { margin: 0; color: #64748B; font-weight: 800; }
.todo-agenda-item { border: 1px solid var(--color-border); border-radius: 6px; background: #F2F4F7; min-height: 60px; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-gap: 4px 10px; gap: 4px 10px; align-content: center; padding: 10px 12px; }
.todo-agenda-item strong { color: #12737F; }
.todo-agenda-item.blocked strong, .todo-agenda-item.review strong { color: #EF4444; }
.todo-agenda-item span { color: #0F172A; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-agenda-item em { grid-column: 2; color: #64748B; font-size: 12px; font-style: normal; font-weight: 800; }
.todo-manager-alert { border: 1px solid #FECACA; border-radius: 6px; background: #FEF2F2; padding: 14px; display: grid; grid-gap: 8px; gap: 8px; color: #991B1B; }
.todo-week-grid { border: 1px solid var(--color-border); border-radius: 8px; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow: auto; background: #FFFFFF; }
.todo-week-day { min-height: 710px; border-right: 1px solid var(--color-border); display: grid; grid-template-rows: 56px minmax(0, 1fr); }
.todo-week-day:last-child { border-right: 0; }
.todo-week-day header { border-bottom: 1px solid var(--color-border); display: grid; place-items: center; align-content: center; }
.todo-week-day.today header { background: #E6F6F8; color: #12737F; }
.todo-week-day header span { color: #64748B; font-size: 12px; font-weight: 900; }
.todo-week-day header strong { font-size: 20px; line-height: 1; }
.todo-week-day > div { padding: 12px; display: grid; align-content: start; grid-gap: 14px; gap: 14px; }
.todo-calendar-event { border: 1px solid var(--color-border); border-radius: 6px; background: #F2F4F7; padding: 12px; display: grid; grid-gap: 4px; gap: 4px; }
.todo-calendar-event strong { color: #12737F; font-size: 12px; }
.todo-calendar-event.blocked strong { color: #EF4444; }
.todo-calendar-event span { color: #0F172A; font-weight: 900; line-height: 1.2; }
.todo-calendar-event em, .todo-no-schedule { color: #64748B; font-size: 12px; font-style: normal; font-weight: 800; margin: 0; }

.todo-files-actionbar { display: flex; align-items: center; gap: 12px; }
.todo-files-search { width: 340px; height: 38px; border: 1px solid var(--color-border); border-radius: 18px; background: #F8F9FB; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: #64748B; }
.todo-file-room-select { height: 38px; border: 1px solid var(--color-border); border-radius: 7px; background: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px; color: #64748B; font-size: 12px; font-weight: 900; }
.todo-file-room-select select { min-width: 150px; border: 0; outline: 0; background: transparent; color: #334155; font: inherit; }
.todo-file-picker { height: 38px; max-width: 240px; border: 1px solid var(--color-border); border-radius: 7px; background: #FFFFFF; color: #334155; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; font-weight: 900; cursor: pointer; overflow: hidden; }
.todo-file-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-file-picker input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.todo-file-metric { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 18px; display: flex; align-items: center; gap: 14px; min-width: 0; }
.todo-metric-icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #12737F; background: #E6F6F8; }
.todo-metric-icon.red { color: #EF4444; background: #FEF2F2; }
.todo-metric-icon.green { color: #1A7A43; background: #E7F7EE; }
.todo-metric-icon.amber { color: #D97706; background: #FEF3C7; }
.todo-metric-icon.slate { color: #334155; background: #F2F4F7; }
.todo-file-metric div { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.todo-file-metric em, .todo-file-metric small { color: #64748B; font-style: normal; font-weight: 900; }
.todo-file-metric strong { color: #0F172A; font-size: 28px; line-height: 1; }
.todo-file-filterbar { min-height: 48px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.todo-file-filterbar span { flex: 1 1; }
.todo-file-filterbar button { height: 30px; border: 1px solid var(--color-border); border-radius: 5px; background: #F2F4F7; color: #334155; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; font-weight: 900; }
.todo-file-filterbar button.active { background: #E6F6F8; color: #12737F; border-color: #B2E4EA; }
.todo-file-filterbar button.icon-only { width: 30px; padding: 0; justify-content: center; }
.todo-files-body { display: grid; grid-template-columns: minmax(560px, 856px) minmax(300px, 1fr); grid-gap: 18px; gap: 18px; align-items: stretch; }
.todo-file-library { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; overflow: hidden; }
.todo-file-library header { height: 54px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; padding: 0 18px; }
.todo-file-library header > div { display: flex; gap: 10px; align-items: center; min-width: 0; }
.todo-file-library header div div { display: grid; grid-gap: 1px; gap: 1px; min-width: 0; }
.todo-file-library header span { color: #64748B; font-size: 12px; font-weight: 800; }
.todo-file-library header em { color: #EF4444; font-style: normal; font-size: 12px; font-weight: 900; }
.todo-file-table-head, .todo-file-row { display: grid; grid-template-columns: minmax(220px, 1.6fr) 90px 90px minmax(150px, 1fr) 90px 58px; grid-gap: 14px; gap: 14px; align-items: center; padding: 0 18px; }
.todo-file-table-head { height: 44px; background: #F8F9FB; color: #64748B; font-size: 12px; font-weight: 900; }
.todo-file-row { min-height: 72px; border-bottom: 1px solid var(--color-border); color: #334155; font-weight: 800; }
.todo-file-row:nth-child(odd) { background: #F8F9FB; }
.todo-file-row strong { display: flex; align-items: center; gap: 10px; color: #0F172A; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-file-row button { border: 0; background: transparent; color: #0F172A; font-weight: 900; }
.todo-file-row button:disabled { color: #64748B; cursor: default; }
.todo-files-side { display: grid; grid-gap: 14px; gap: 14px; align-content: start; }
.todo-upload-card { min-height: 86px; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; display: grid; grid-template-columns: 40px minmax(0, 1fr) 96px; grid-gap: 0 12px; gap: 0 12px; align-items: center; padding: 14px; }
.todo-upload-card div { grid-row: span 2; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #12737F; background: #E6F6F8; }
.todo-upload-card strong { align-self: end; }
.todo-upload-card span { align-self: start; color: #64748B; font-size: 12px; font-weight: 800; }
.todo-upload-card button { height: 28px; border: 0; border-radius: 5px; background: #273449; color: #FFFFFF; font-weight: 900; }
.todo-upload-card button + button { grid-column: 3; background: #F2F4F7; color: #334155; }
.todo-side-list { border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; padding: 14px; display: grid; grid-gap: 12px; gap: 12px; }
.todo-side-list header, .todo-side-list div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-gap: 8px; gap: 8px; align-items: center; }
.todo-side-list header em, .todo-side-list div em { color: #64748B; font-style: normal; font-size: 12px; font-weight: 900; }
.todo-side-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-files-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.todo-side-list.compact div { grid-template-columns: 10px minmax(0, 1fr); }
.todo-side-list.compact div em { display: none; }

.todo-ui-icon { position: relative; width: 18px; height: 18px; display: inline-block; color: currentColor; flex: 0 0 auto; }
.todo-ui-icon::before, .todo-ui-icon::after, .todo-ui-icon > span { content: ""; position: absolute; box-sizing: border-box; display: block; }
.todo-ui-icon-search::before { inset: 2px 6px 6px 2px; border: 1.6px solid currentColor; border-radius: 999px; }
.todo-ui-icon-search::after { width: 7px; height: 1.6px; right: 2px; bottom: 3px; background: currentColor; transform: rotate(45deg); }
.todo-ui-icon-plus::before { left: 8px; top: 3px; width: 2px; height: 12px; background: currentColor; }
.todo-ui-icon-plus::after { left: 3px; top: 8px; width: 12px; height: 2px; background: currentColor; }
.todo-ui-icon-x::before, .todo-ui-icon-x::after { left: 3px; top: 8px; width: 12px; height: 2px; background: currentColor; transform: rotate(45deg); }
.todo-ui-icon-x::after { transform: rotate(-45deg); }
.todo-ui-icon-check::before { left: 3px; top: 7px; width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.todo-ui-icon-calendar::before { inset: 3px 2px 2px; border: 1.6px solid currentColor; border-radius: 4px; }
.todo-ui-icon-calendar::after { top: 6px; left: 3px; right: 3px; height: 1.6px; background: currentColor; }
.todo-ui-icon-user::before { top: 2px; left: 6px; width: 6px; height: 6px; border: 1.6px solid currentColor; border-radius: 999px; }
.todo-ui-icon-user::after { left: 4px; bottom: 2px; width: 10px; height: 7px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px; }
.todo-ui-icon-users::before { top: 3px; left: 2px; width: 6px; height: 6px; border: 1.6px solid currentColor; border-radius: 999px; box-shadow: 8px 0 0 -1.6px currentColor; }
.todo-ui-icon-users::after { left: 1px; bottom: 2px; width: 16px; height: 7px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 8px 8px; }
.todo-ui-icon-alert::before { left: 3px; top: 2px; width: 12px; height: 12px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); }
.todo-ui-icon-alert::after { left: 8px; top: 6px; width: 2px; height: 6px; background: currentColor; box-shadow: 0 8px 0 currentColor; }
.todo-ui-icon-archive::before, .todo-ui-icon-folder::before, .todo-ui-icon-file::before { inset: 4px 2px 2px; border: 1.6px solid currentColor; border-radius: 3px; }
.todo-ui-icon-archive::after { left: 5px; top: 7px; width: 8px; height: 1.6px; background: currentColor; }
.todo-ui-icon-folder::after { left: 3px; top: 3px; width: 7px; height: 4px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.todo-ui-icon-file::after { right: 3px; top: 4px; width: 5px; height: 5px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.todo-ui-icon-layout::before, .todo-ui-icon-grid::before { top: 3px; left: 3px; width: 4px; height: 4px; background: currentColor; box-shadow: 8px 0 0 currentColor, 0 8px 0 currentColor, 8px 8px 0 currentColor; border-radius: 1px; }
.todo-ui-icon-list::before { left: 3px; top: 4px; width: 12px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; }
.todo-ui-icon-kanban::before { inset: 3px; border: 1.6px solid currentColor; border-radius: 3px; }
.todo-ui-icon-kanban::after { top: 5px; bottom: 5px; left: 8px; width: 1.6px; background: currentColor; box-shadow: 4px 0 0 currentColor; }
.todo-ui-icon-clock::before { inset: 2px; border: 1.6px solid currentColor; border-radius: 999px; }
.todo-ui-icon-clock::after { left: 8px; top: 5px; width: 5px; height: 5px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.todo-ui-icon-refresh::before { inset: 3px; border: 1.6px solid currentColor; border-left-color: transparent; border-radius: 999px; }
.todo-ui-icon-refresh::after { right: 1px; top: 4px; width: 6px; height: 6px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(20deg); }
.todo-ui-icon-chevron::before { left: 5px; top: 6px; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); }
.todo-ui-icon-sliders::before { left: 2px; top: 4px; width: 14px; height: 1.6px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor; }
.todo-ui-icon-sliders::after { left: 5px; top: 2px; width: 4px; height: 4px; border: 1.6px solid currentColor; border-radius: 999px; background: #FFFFFF; box-shadow: 6px 5px 0 -1.6px #FFFFFF, 6px 5px 0 0 currentColor, -2px 10px 0 -1.6px #FFFFFF, -2px 10px 0 0 currentColor; }
.todo-ui-icon-trash::before { left: 4px; top: 6px; width: 10px; height: 10px; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; background: linear-gradient(currentColor, currentColor) 3px 2px / 1.4px 6px no-repeat, linear-gradient(currentColor, currentColor) 6px 2px / 1.4px 6px no-repeat; }
.todo-ui-icon-trash::after { left: 3px; top: 4px; width: 12px; height: 1.8px; border-radius: 999px; background: currentColor; }
.todo-ui-icon-trash > span { left: 7px; top: 1px; width: 4px; height: 3px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.todo-ui-icon-upload::before { left: 8px; top: 3px; width: 2px; height: 9px; background: currentColor; }
.todo-ui-icon-upload::after { left: 4px; top: 3px; width: 9px; height: 9px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.todo-ui-icon-upload > span { left: 3px; bottom: 2px; width: 12px; height: 5px; border: 1.6px solid currentColor; border-top: 0; }
.todo-ui-icon-link::before { left: 2px; top: 6px; width: 8px; height: 6px; border: 1.6px solid currentColor; border-radius: 999px; transform: rotate(-20deg); }
.todo-ui-icon-link::after { right: 2px; top: 6px; width: 8px; height: 6px; border: 1.6px solid currentColor; border-radius: 999px; transform: rotate(-20deg); }
.todo-ui-icon-shield::before { left: 3px; top: 2px; width: 12px; height: 14px; border: 1.6px solid currentColor; border-radius: 7px 7px 8px 8px; }
.todo-ui-icon-shield::after { left: 6px; top: 7px; width: 4px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }

.chat { grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; background: var(--color-surface); display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto; }
.chat-header { display: none; }
.timeline { overflow: auto; padding: 28px clamp(24px, 4vw, 56px) 18px; display: flex; flex-direction: column; gap: 18px; background: var(--color-surface); }
.date-chip { align-self: center; border: 1px solid var(--color-border); border-radius: 999px; background: white; color: var(--color-text-muted); font-size: 12px; font-weight: 800; padding: 5px 12px; }
.message { display: grid; grid-gap: 12px; gap: 12px; max-width: 860px; align-items: start; }
.message.incoming { grid-template-columns: 40px minmax(0, 1fr); align-self: flex-start; }
.message.outgoing { grid-template-columns: minmax(0, 1fr) 40px; align-self: flex-end; width: min(760px, 88%); }
.message-stack { display: grid; grid-gap: 8px; gap: 8px; }
.message-bubble { border: 1px solid var(--color-border); border-radius: 6px; padding: 14px 16px; background: white; box-shadow: none; }
.outgoing .message-bubble { background: var(--color-primary); color: white; border-color: var(--color-primary); border-radius: 6px; }
.message-meta { display: flex; gap: 8px; align-items: baseline; color: var(--color-text-muted); font-size: 12px; margin-bottom: 6px; }
.outgoing .message-meta { color: rgb(255 255 255 / 72%); }
.message-meta strong { color: var(--color-text); font-size: 13px; }
.outgoing .message-meta strong { color: white; }
.message-body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.self-avatar { background: #dce8ed; }
.ai-message .message-bubble { border-color: var(--color-border); background: #F8FBFC; }
.ai-avatar { background: var(--color-teal); color: white; font-size: 11px; }
.ai-result-card { display: grid; grid-gap: 8px; gap: 8px; }
.ai-card-footer, .message-affordances { display: flex; gap: 8px; flex-wrap: wrap; }
.task-affordance, .attachment-affordance { border: 1px solid #CBD5E1; border-radius: 6px; background: #F8F9FB; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; grid-gap: 2px 8px; gap: 2px 8px; min-width: 220px; }
.task-affordance span, .attachment-affordance span { grid-row: span 2; color: var(--color-teal); }
.task-affordance small, .attachment-affordance small { color: var(--color-text-muted); }

.empty-chat-canvas { min-height: 100%; display: grid; place-items: center; align-content: center; grid-gap: 24px; gap: 24px; padding: 42px; text-align: center; background: var(--color-surface); }
.empty-hero-card { max-width: 720px; display: grid; justify-items: center; grid-gap: 16px; gap: 16px; }
.empty-hero-icon { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--color-border); background: #F2F4F7; display: grid; place-items: center; }
.empty-hero-icon span { position: relative; width: 22px; height: 18px; border: 1.5px solid #334155; border-radius: 4px; }
.empty-hero-icon span::after { content: ""; position: absolute; left: 7px; bottom: -5px; width: 6px; height: 6px; border-left: 1.5px solid #334155; border-bottom: 1.5px solid #334155; transform: skewX(-25deg); background: #F2F4F7; }
.empty-hero-card h2 { margin: 0; color: var(--color-text); font-size: clamp(26px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.04em; }
.empty-hero-card p { margin: 0; color: var(--color-text-muted); font-size: 14px; max-width: 620px; }
.prompt-chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.prompt-chip { border: 1px solid var(--color-border); border-radius: 6px; padding: 9px 14px; background: white; color: var(--color-text-secondary); font-weight: 800; }
.empty-composer-preview { width: min(1090px, 100%); min-height: 188px; border: 1px solid var(--color-border); border-radius: 6px; background: white; box-shadow: none; padding: 18px 22px; display: grid; grid-template-rows: auto 1fr auto; text-align: left; }
.empty-composer-placeholder { color: var(--color-text-muted); font-size: 14px; padding: 20px 4px; }
.empty-composer-actions { display: flex; gap: 10px; flex-wrap: wrap; color: var(--color-text-muted); font-weight: 800; }
.empty-composer-actions span { border: 1px solid var(--color-border); border-radius: 4px; padding: 6px 10px; }

.composer { padding: 0 clamp(24px, 4vw, 56px) 24px; background: var(--color-surface); }
.composer-box { min-height: 168px; border: 1px solid var(--color-border); border-radius: 6px; padding: 14px 18px; display: grid; grid-template-rows: auto 1fr auto; grid-gap: 10px; gap: 10px; background: white; box-shadow: none; }
.composer-context-row { color: var(--color-text-muted); font-size: 12px; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.composer-context-row span { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--color-bg); color: var(--color-teal); }
.composer textarea { border: 0; padding: 8px 2px; min-height: 70px; resize: vertical; outline: none; width: 100%; font-size: 15px; color: var(--color-text); }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--color-text-muted); font-size: 12px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.composer-action-buttons { display: flex; gap: 8px; align-items: center; }
.composer-tool { width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--color-border); background: white; font-weight: 900; }
.send-button { min-width: 86px; }
.btn-icon { display: none; }

.details { display: none; grid-column: 2; grid-row: 1 / 3; border-left: 1px solid var(--color-border); background: var(--color-surface); overflow: auto; padding: 18px; }
.details.open { display: block; }
.details-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); }
.details-header .section-label { margin: 0 0 4px; }
.details h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.details-header-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.detail-card { border: 1px solid var(--color-border); border-radius: 6px; padding: 14px; margin-top: 14px; background: white; }
.detail-card h3 { margin: 0 0 10px; font-size: 12px; text-transform: none; letter-spacing: 0.02em; color: var(--color-text-muted); }
.detail-card p { color: var(--color-text-muted); margin: 0; }
.detail-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.detail-card-heading h3 { margin: 0; }
.conversation-info-card { display: grid; grid-template-columns: 44px 1fr; grid-gap: 12px; gap: 12px; align-items: start; background: #fbfdfe; }
.detail-icon { width: 44px; height: 44px; border-radius: 6px; background: #F2F4F7; display: grid; place-items: center; color: var(--color-text-secondary); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; }
.member-list, .task-list { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 8px; gap: 8px; }
.member { display: flex; gap: 10px; align-items: center; min-width: 0; }
.member-name { min-width: 0; flex: 1 1; display: grid; }
.member-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-name small { color: var(--color-text-muted); }
.task-row { display: grid; grid-template-columns: auto 1fr auto; grid-gap: 8px; gap: 8px; align-items: center; border: 1px solid var(--color-border); border-radius: 6px; padding: 10px 12px; }
.tasks-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-gap: 8px; gap: 8px; }
.task-status { border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: var(--color-bg); color: var(--color-text-muted); }
.task-status.done { background: #eefdf5; color: var(--color-success); }
.advanced-debug-card { margin-top: 18px; background: #fbfbfc; }
.advanced-debug-card .advanced + .advanced { margin-top: 10px; }
.ai-job-list { display: grid; grid-gap: 10px; gap: 10px; }
.ai-job-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px; background: var(--color-surface-muted); display: grid; grid-gap: 6px; gap: 6px; }
.ai-job-card p { margin: 0; }
.ai-job-card small { color: var(--color-text-muted); }
.ai-job-heading { display: flex; justify-content: space-between; gap: 8px; color: var(--color-text-muted); font-size: 12px; }
.status-completed { border-color: #bbf7d0; background: #f0fdf4; }
.status-running, .status-queued { border-color: #bfdbfe; background: #eff6ff; }
.status-failed, .status-cancelled { border-color: #fecaca; background: #fef2f2; }
.ai-job-error { color: var(--color-danger); }
.ai-suggestion-block { border-top: 1px solid var(--color-border); margin-top: 12px; padding-top: 12px; }
.user-options { display: grid; grid-gap: 8px; gap: 8px; }
.user-option { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.user-option:hover, .user-option:has(input:checked) { background: var(--color-selected); }
.user-option input { margin-left: auto; }
.topbar .button,
.sidebar .button,
.details .button,
.composer .button { border-radius: 4px; }
.empty-state { height: 100%; min-height: 180px; display: grid; place-items: center; text-align: center; color: var(--color-text-muted); padding: 24px; }
.empty-state h2, .empty-state h3 { color: var(--color-text); margin: 0 0 6px; }
.empty-state p { margin: 0 0 14px; }
.skeleton { height: 42px; border-radius: var(--radius-sm); background: #e5edf1; margin: 8px 0; }
.modal-backdrop { position: fixed; inset: 0; background: rgb(15 23 42 / 38%); display: grid; place-items: center; padding: 18px; z-index: 50; }
.modal { width: min(100%, 560px); max-height: min(760px, 92vh); overflow: auto; background: white; border-radius: 16px; box-shadow: var(--shadow-modal); border: 1px solid var(--color-border); padding: 20px; }
.ai-policy-modal { width: min(1120px, 96vw); }
.policy-safe-note, .muted-copy { margin: 0; color: var(--color-text-muted); }
.policy-safe-note { border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface-muted); padding: 10px 12px; margin-bottom: 12px; }
.ai-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.ai-policy-section { border: 1px solid var(--color-border); border-radius: 8px; background: white; padding: 14px; display: grid; grid-gap: 10px; gap: 10px; align-content: start; min-width: 0; }
.ai-policy-wide { grid-column: 1 / -1; }
.ai-policy-list { display: grid; grid-gap: 8px; gap: 8px; min-width: 0; }
.ai-policy-row { border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface-muted); padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 10px; gap: 10px; align-items: start; }
.skill-policy-row { grid-template-columns: 1fr; }
.ai-policy-row p { margin: 4px 0 0; color: var(--color-text-muted); word-break: break-word; }
.ai-policy-row strong { word-break: break-word; }
.policy-layer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; margin-top: 10px; }
.policy-layer-card { border: 1px solid var(--color-border); border-radius: 6px; background: white; padding: 10px; display: grid; grid-gap: 8px; gap: 8px; align-content: start; }
.policy-layer-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-weight: 700; }
.policy-layer-card .button { justify-self: start; }
.policy-enabled { border-color: #bbf7d0; background: #f0fdf4; color: var(--color-success); }
.ai-memory-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; align-items: end; }
.ai-memory-value { grid-column: 1 / -2; }
.memory-row { grid-template-columns: minmax(0, 1fr) auto; }
.memory-row .textarea { min-height: 72px; margin-top: 8px; }
.modal-header .section-label { margin: 0 0 4px; }
.modal-header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.modal-header h2 { margin: 0 0 4px; font-size: 20px; }
.modal-header p { margin: 0; color: var(--color-text-muted); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 6px; gap: 6px; background: var(--color-surface-muted); padding: 4px; border-radius: var(--radius-md); }
.segmented button { border: 0; border-radius: var(--radius-sm); padding: 9px; background: transparent; font-weight: 700; color: var(--color-text-muted); }
.segmented button.active { background: white; color: var(--color-text); box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.mobile-only { display: none; }

.chat-header { display: none; }
.chat-title { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.chat-title h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.04em; }
.chat-title p { margin: 0; color: var(--color-text-muted); }
.meeting-shell { grid-template-rows: auto minmax(0, 1fr); background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%); }
.meeting-workspace { overflow: auto; padding: 24px 28px 28px; display: grid; grid-gap: 20px; gap: 20px; align-content: start; }
.meeting-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 18px; gap: 18px; border: 1px solid var(--color-border); border-radius: 18px; background: linear-gradient(135deg, #ffffff 0%, #eef7f8 100%); padding: 22px 24px; box-shadow: var(--shadow-card); }
.meeting-hero-copy { display: grid; grid-gap: 8px; gap: 8px; min-width: 0; }
.meeting-hero-copy h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); letter-spacing: -0.05em; }
.meeting-hero-copy p { margin: 0; color: var(--color-text-muted); max-width: 72ch; }
.meeting-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.meeting-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-stat-card { border: 1px solid var(--color-border); border-radius: 14px; background: white; padding: 16px 18px; display: grid; grid-gap: 6px; gap: 6px; box-shadow: var(--shadow-card); }
.meeting-stat-card span { color: var(--color-text-muted); font-size: 12px; font-weight: 800; }
.meeting-stat-card strong { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.04em; }
.meeting-card { display: block; }
.meeting-card-copy { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; padding: 10px 12px; line-height: 1.3; }
.meeting-card-copy strong,
.meeting-card-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-card-copy > span { color: var(--color-text-muted); font-size: 12px; }
.meeting-card-section { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-surface-card { border: 1px solid var(--color-border); border-radius: 16px; background: white; padding: 16px; display: grid; grid-gap: 12px; gap: 12px; text-align: left; color: var(--color-text); box-shadow: var(--shadow-card); transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.meeting-surface-card:hover { transform: translateY(-1px); border-color: #c9dde3; box-shadow: 0 18px 34px rgb(15 23 42 / 8%); }
.meeting-surface-card.masked { background: linear-gradient(135deg, #f8fafc 0%, #eef4f8 100%); }
.meeting-surface-top { display: grid; grid-gap: 4px; gap: 4px; }
.meeting-surface-top strong { font-size: 16px; letter-spacing: -0.02em; }
.meeting-surface-top span,
.meeting-surface-card > span:not(.meeting-surface-top):not(.room-tags) { color: var(--color-text-muted); }
.meeting-empty-canvas { min-height: 420px; border: 1px dashed var(--color-border); border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%); }
.meeting-occupancy-card { display: grid; grid-gap: 10px; gap: 10px; background: linear-gradient(135deg, #f8fafc 0%, #eef4f8 100%); }
.meeting-meta-card { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-meta-grid div { border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface-muted); padding: 12px; display: grid; grid-gap: 4px; gap: 4px; min-width: 0; }
.meeting-meta-grid strong { font-size: 12px; color: var(--color-text-muted); }
.meeting-meta-grid span { word-break: break-word; }
.meeting-participant-groups { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-participant-group { border: 1px solid var(--color-border); border-radius: 12px; padding: 12px; background: var(--color-surface-muted); display: grid; grid-gap: 10px; gap: 10px; }
.meeting-files-card { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-file-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.button-file-trigger { position: relative; overflow: hidden; }
.button-file-trigger.disabled { pointer-events: none; opacity: 0.62; }
.meeting-files-workspace-card { gap: 14px; }
.meeting-files-workspace-header { display: grid; grid-gap: 4px; gap: 4px; }
.meeting-files-workspace-header > div { min-width: 0; }
.meeting-file-workspace-toolbar { align-items: center; justify-content: flex-start; padding-top: 2px; }
.meeting-file-workspace-toolbar .button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.meeting-inline-row.meeting-file-inline-row { display: block; padding: 14px 14px 12px; }
.meeting-inline-row.meeting-file-inline-row .meeting-file-inline-copy { min-width: 0; display: grid; grid-gap: 5px; gap: 5px; }
.meeting-inline-row.meeting-file-inline-row .meeting-file-inline-copy strong { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.meeting-inline-row.meeting-file-inline-row .meeting-file-inline-copy span { line-height: 1.45; overflow-wrap: anywhere; }
.meeting-inline-row.meeting-file-inline-row .meeting-file-inline-actions { margin-top: 10px; justify-content: flex-start; align-items: center; }
.meeting-inline-row.meeting-file-inline-row .meeting-file-inline-actions .button { min-width: 54px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.meeting-file-list { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 10px; gap: 10px; }
.meeting-file-row { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-muted); padding: 12px; display: grid; grid-gap: 10px; gap: 10px; }
.meeting-file-row.is-deleted { background: #faf6f6; border-color: #e7d8d8; }
.meeting-file-copy { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; }
.meeting-file-copy strong,
.meeting-file-copy span { overflow-wrap: anywhere; }
.meeting-file-copy span { color: var(--color-text-muted); font-size: 12px; }
.meeting-file-title-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meeting-file-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meeting-file-retention { display: grid; grid-gap: 4px; gap: 4px; margin-top: 2px; }
.meeting-file-preview { border-top: 1px solid var(--color-border); padding-top: 12px; display: grid; grid-gap: 10px; gap: 10px; }
.meeting-file-preview-heading { align-items: flex-start; gap: 12px; }
.meeting-file-preview-heading > div:first-child { min-width: 0; }
.meeting-file-preview-heading .button-row { justify-content: flex-end; flex-wrap: wrap; }
.meeting-file-preview-filename { width: -moz-fit-content; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.meeting-file-tab-count { font-size: 12px; font-weight: 700; color: var(--color-text-muted); align-self: center; padding: 0 2px; }
.meeting-live-stage { display: flex; flex-direction: column; min-height: 0; }
.meeting-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-gap: 16px; gap: 16px; padding: 16px; min-height: 0; flex: 1 1 auto; }
.meeting-live-main { min-width: 0; min-height: 0; }
.meeting-live-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; overflow-y: auto; }
.meeting-live-file-list { display: flex; flex-direction: column; gap: 6px; }
.meeting-live-file-row { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); padding: 8px 12px; cursor: pointer; }
.meeting-live-file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.meeting-live-file-row span { font-size: 11px; color: var(--color-text-muted); }
.meeting-live-file-row:hover { background: var(--color-hover); }
.meeting-live-file-row.active { border-color: transparent; background: #EFF6FF; box-shadow: none; }
.meeting-live-file-row.active strong { color: #1D4ED8; }
.meeting-live-file-row.active span { color: #1D4ED8; font-weight: 600; }
.meeting-live-file-row:disabled { opacity: 0.55; cursor: not-allowed; }
.meeting-live-headline { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meeting-live-titlerow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meeting-live-titlerow h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-live-badge { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #15803D; background: #DCFCE7; border-radius: 999px; padding: 2px 12px; }
.meeting-live-headline p { margin: 0; font-size: 12px; color: var(--color-text-secondary); }
.meeting-live-tabs { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--color-border); overflow-x: auto; flex: 0 0 auto; }
.meeting-live-tabs button { flex: 0 0 auto; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: transparent; color: var(--color-text-secondary); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.meeting-live-tabs button:hover { background: var(--color-hover); }
.meeting-live-tabs button.active { background: var(--color-surface); color: var(--color-text); box-shadow: 0 1px 3px rgb(15 23 42 / 8%); }
.meeting-live-tabs button:disabled { opacity: 0.5; cursor: not-allowed; }
.meeting-live-tabs-hint { flex: 0 0 auto; font-size: 11px; color: var(--color-text-muted); margin-left: auto; }
@media (max-width: 900px) { .meeting-live-grid { grid-template-columns: minmax(0, 1fr); } }
.meeting-file-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.meeting-file-tabs button { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text-secondary); padding: 4px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.meeting-file-tabs button:hover { background: var(--color-hover); }
.meeting-file-tabs button.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.meeting-file-tabs button:disabled { opacity: 0.5; cursor: not-allowed; }
.meeting-file-preview-mode { width: -moz-fit-content; width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface-muted); padding: 3px; }
.meeting-file-preview-mode button { min-width: 64px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--color-text-muted); font-weight: 750; cursor: pointer; }
.meeting-file-preview-mode button:hover { color: var(--color-text); }
.meeting-file-preview-mode button.active,
.meeting-file-preview-mode button[aria-selected="true"] { background: #ffffff; color: var(--color-text); box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12); }
.meeting-file-preview-surface { width: 100%; min-height: 280px; border: 1px solid var(--color-border); border-radius: 12px; background: #ffffff; overflow: hidden; }
.meeting-file-preview-body { margin: 0; background: #0f172a; color: #e2e8f0; padding: 12px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 1.55; max-height: 320px; }
.meeting-file-preview-body.meeting-file-preview-surface { display: block; }
.meeting-file-docx-preview { overflow: auto; padding: 24px; color: #111827; line-height: 1.58; max-height: 430px; background: #eef2f7; }
.meeting-file-docx-preview.expanded { max-height: none; }
.docx-preview-fragment { width: 100%; max-width: 860px; margin: 0 auto; font-family: Aptos, Calibri, "Segoe UI", "Microsoft JhengHei", sans-serif; font-size: 14px; color: #111827; }
.docx-preview-page { min-height: 1088px; background: #ffffff; border: 1px solid rgba(148, 163, 184, 0.28); box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16); padding: 56px 64px; display: grid; align-content: start; grid-gap: 10px; gap: 10px; overflow-wrap: anywhere; }
.docx-preview-fragment h1,
.docx-preview-fragment h2,
.docx-preview-fragment h3,
.docx-preview-fragment h4 { margin: 0; color: var(--color-text); line-height: 1.25; }
.docx-preview-fragment h1 { font-size: 26px; }
.docx-preview-fragment h2 { font-size: 21px; }
.docx-preview-fragment h3 { font-size: 18px; }
.docx-preview-fragment h4,
.docx-preview-fragment p,
.docx-preview-fragment ul,
.docx-preview-fragment ol { margin: 0; }
.docx-preview-fragment ul,
.docx-preview-fragment ol { padding-left: 24px; display: grid; grid-gap: 6px; gap: 6px; }
.docx-preview-fragment a { color: #155e75; text-decoration: underline; text-underline-offset: 2px; }
.docx-preview-spacer { height: 8px; }
.docx-preview-title { padding-bottom: 10px; border-bottom: 1px solid #cbd5e1; }
.docx-preview-subtitle { color: #475569; font-weight: 650; }
.docx-preview-image-frame { margin: 10px 0; display: block; }
.docx-preview-image-frame img { display: block; max-width: 100%; height: auto; border: 1px solid #e2e8f0; }
.docx-preview-image-skipped { display: inline-flex; max-width: 100%; border: 1px dashed #94a3b8; border-radius: 6px; background: #f8fafc; color: #64748b; padding: 6px 8px; font-size: 12px; }
.docx-preview-table-wrap { overflow: auto; border: 1px solid #cbd5e1; border-radius: 4px; }
.docx-preview-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 13px; }
.docx-preview-table th,
.docx-preview-table td { border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; padding: 9px 10px; max-width: 280px; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.docx-preview-table th { background: #f8fafc; color: #475569; font-weight: 750; }
.docx-preview-table th:last-child,
.docx-preview-table td:last-child { border-right: 0; }
.docx-preview-table tbody tr:last-child td { border-bottom: 0; }
.meeting-file-preview-surface.type-pdf { height: 430px; }
.meeting-file-preview-surface.type-audio { min-height: 48px; height: 48px; background: var(--color-surface-muted); padding: 6px; }
.meeting-file-preview-surface.type-video { aspect-ratio: 16 / 9; max-height: 430px; background: #0f172a; }
.meeting-file-preview-surface.type-image { max-height: 430px; object-fit: contain; background: var(--color-surface-muted); }
.meeting-file-preview-empty { border: 1px dashed var(--color-border); border-radius: 12px; background: var(--color-surface-muted); color: var(--color-text-muted); min-height: 120px; display: grid; place-items: center; padding: 16px; text-align: center; }
.meeting-file-preview-table-wrap { overflow: auto; max-height: 360px; padding: 10px; background: #ffffff; }
.meeting-file-sheet-name { display: inline-flex; margin-bottom: 8px; color: var(--color-text-muted); font-size: 12px; }
.meeting-file-preview-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 12px; }
.meeting-file-preview-table th,
.meeting-file-preview-table td { border: 1px solid var(--color-border); padding: 8px 10px; max-width: 220px; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.meeting-file-preview-table th { position: -webkit-sticky; position: sticky; top: 0; background: #f8fafc; color: var(--color-text-muted); font-weight: 700; z-index: 1; }
.meeting-file-preview-overlay { position: fixed; inset: 0; z-index: 80; background: #f8fafc; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-gap: 12px; gap: 12px; padding: 18px; }
.meeting-file-preview-overlay-bar { border: 1px solid var(--color-border); border-radius: 12px; background: #ffffff; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12); }
.meeting-file-preview-overlay-bar div { min-width: 0; display: grid; grid-gap: 4px; gap: 4px; }
.meeting-file-preview-overlay-bar strong,
.meeting-file-preview-overlay-bar span { overflow-wrap: anywhere; }
.meeting-file-preview-overlay-bar span { color: var(--color-text-muted); font-size: 12px; }
.meeting-file-preview-overlay .meeting-file-preview-surface { min-height: 0; max-height: none; height: 100%; border-radius: 12px; }
.meeting-file-preview-overlay .meeting-file-preview-body { max-height: none; }
.meeting-file-preview-overlay .meeting-file-preview-table-wrap { max-height: none; }
.meeting-file-preview-overlay .type-video,
.meeting-file-preview-overlay .type-image,
.meeting-file-preview-overlay .type-pdf { height: 100%; max-height: none; }
.meeting-file-preview-overlay .type-audio { height: 72px; align-self: start; }
.rich-member-list { gap: 10px; }
.rich-member-list .member { align-items: flex-start; }
.meeting-action-row .button { flex: 1 1 160px; }
.meeting-record-card { display: grid; grid-gap: 14px; gap: 14px; }
.meeting-record-card .muted-copy { line-height: 1.5; }
.meeting-record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-record-grid > div { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-muted); padding: 12px; display: grid; grid-gap: 8px; gap: 8px; align-content: start; min-width: 0; }
.meeting-record-grid > div:first-child,
.meeting-record-grid > div:nth-child(4) { grid-column: 1 / -1; }
.meeting-record-grid strong { color: var(--color-text); font-size: 13px; letter-spacing: -0.01em; }
.meeting-record-grid p { line-height: 1.55; overflow-wrap: anywhere; }
.meeting-record-grid ul { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 8px; gap: 8px; }
.meeting-record-grid li { border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 10px; background: #ffffff; padding: 10px; display: grid; grid-gap: 4px; gap: 4px; min-width: 0; }
.meeting-record-grid li p { color: var(--color-text-muted); font-size: 12px; }
.meeting-record-card .badge { white-space: nowrap; }
.meeting-modal { width: min(860px, 96vw); }
.meeting-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.meeting-form-wide { grid-column: 1 / -1; }
.meeting-form-actions { justify-content: flex-end; grid-column: 1 / -1; }
.meeting-participant-editor { border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-surface-muted); padding: 14px; display: grid; grid-gap: 12px; gap: 12px; }
.meeting-participant-editor-list { display: grid; grid-gap: 10px; gap: 10px; max-height: 280px; overflow: auto; padding-right: 4px; }
.meeting-participant-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(132px, 180px); grid-gap: 10px; gap: 10px; align-items: center; border: 1px solid var(--color-border); border-radius: 12px; background: white; padding: 10px 12px; }
.meeting-participant-copy { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.meeting-participant-copy strong,
.meeting-participant-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-participant-copy small { color: var(--color-text-muted); }
.meeting-page { grid-column: 1; grid-row: 1 / 3; min-width: 0; min-height: 0; display: grid; background: #F8FAFC; }
.meeting-page-workbench { grid-template-rows: minmax(0, 1fr); }
.meeting-workbench-kway { grid-template-rows: 64px minmax(0, 1fr); background: #F7F9FC; }
.meeting-page-flow { grid-template-rows: 72px minmax(0, 1fr); }
.meeting-compose-actions { display: none; }
.meeting-page-scroll { overflow: auto; padding: 36px; display: grid; grid-gap: 24px; gap: 24px; align-content: start; }
.meeting-workbench-scroll { padding: 24px 32px 32px; }
.meeting-workbench-topbar { border-bottom: 1px solid #E2E8F0; background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; }
.meeting-workbench-search { width: min(100%, 480px); height: 40px; border: 1px solid #E2E8F0; border-radius: 6px; background: #F8FAFC; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #94A3B8; }
.meeting-workbench-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #1A1A2E; }
.meeting-portal-sync-chip { border: 1px solid #BFDBFE; border-radius: 999px; background: #EFF6FF; color: #0050A0; padding: 8px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.meeting-portal-status-chip { display: inline-flex; align-items: center; border: 1px solid #CBD5E1; border-radius: 999px; background: #F8FAFC; color: #475569; padding: 8px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.meeting-portal-status-chip.pending { border-color: #FCD34D; background: #FFFBEB; color: #92400E; }
.meeting-portal-status-chip.success { border-color: #A7F3D0; background: #ECFDF5; color: #047857; }
.meeting-portal-status-chip.error { border-color: #FECACA; background: #FEF2F2; color: #B91C1C; }
.meeting-portal-status-chip.compact { border-radius: 4px; padding: 2px 7px; font-size: 11px; }
.meeting-flow-topbar { border-bottom: 1px solid #E5E7EB; background: #FFFFFF; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 36px; }
.meeting-flow-title { min-width: 0; display: flex; align-items: center; gap: 12px; }
.meeting-flow-title h1 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.meeting-flow-title p { margin: 4px 0 0; color: #6B7280; font-size: 13px; }
.meeting-hub-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.meeting-hub-title { display: flex; align-items: flex-start; gap: 12px; }
.meeting-hub-title h1 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
.meeting-hub-title p { margin: 8px 0 0; color: #6B7280; font-size: 13px; }
.meeting-sync-chip, .meeting-panel-chip { display: inline-flex; align-items: center; border: 1px solid #B2E4EA; border-radius: 999px; background: #E6F6F8; color: #12737F; padding: 10px 14px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.meeting-hub-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 24px; gap: 24px; }
.meeting-hub-stat-card { border: 1px solid #E5E7EB; border-radius: 12px; background: #FFFFFF; padding: 28px 32px; display: grid; grid-gap: 10px; gap: 10px; }
.meeting-hub-stat-card.accent p { color: #12737F; }
.meeting-hub-stat-card span { color: #6B7280; font-size: 12px; font-weight: 800; }
.meeting-hub-stat-card strong { font-size: 30px; letter-spacing: -0.04em; }
.meeting-hub-stat-card p { margin: 0; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.5; }
.meeting-hub-grid { display: grid; grid-template-columns: minmax(0, 820px) minmax(320px, 470px); grid-gap: 20px; gap: 20px; align-items: start; }
.meeting-kway-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; max-width: 1320px; width: 100%; margin: 0 auto; align-items: stretch; }
.meeting-week-panel, .meeting-card-panel, .meeting-flow-card { border: 1px solid #E5E7EB; border-radius: 12px; background: #FFFFFF; padding: 24px; display: grid; grid-gap: 18px; gap: 18px; }
.meeting-kway-calendar-panel { border-color: #E2E8F0; border-radius: 10px; padding: 0; gap: 16px; background: transparent; }
.meeting-kway-section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.meeting-kway-section-header h1 { margin: 0; color: #1A1A2E; font-size: 24px; letter-spacing: -0.03em; }
.meeting-kway-section-header p { margin: 6px 0 0; color: #64748B; font-size: 13px; }
.meeting-kway-section-header span { border: 1px solid #E2E8F0; border-radius: 6px; background: #FFFFFF; color: #1A1A2E; padding: 8px 12px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.meeting-kway-calendar-card { border: 1px solid #E2E8F0; border-radius: 10px; background: #FFFFFF; padding: 20px; display: grid; grid-gap: 14px; gap: 14px; }
.meeting-kway-list-panel { border-color: #E2E8F0; border-radius: 10px; align-self: stretch; align-content: start; }
.meeting-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.meeting-panel-header h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.meeting-panel-header p { margin: 4px 0 0; color: #6B7280; font-size: 12px; line-height: 1.5; }
.meeting-week-strip, .meeting-summary-strip { border: 1px solid #B2E4EA; border-radius: 10px; background: #E6F6F8; padding: 14px 16px; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-summary-strip.subtle { border-color: #E5E7EB; background: #F8FAFC; }
.meeting-week-strip strong, .meeting-summary-strip strong { color: #0F172A; font-size: 12px; font-weight: 800; }
.meeting-week-strip span, .meeting-summary-strip p { margin: 0; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.5; }
.meeting-week-columns { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-month-panel { align-content: start; }
.meeting-month-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 0; gap: 0; color: #64748B; font-size: 11px; font-weight: 800; text-align: center; border: 1px solid #E2E8F0; border-bottom: 0; border-radius: 8px 8px 0 0; background: #F8FAFC; overflow: hidden; }
.meeting-month-weekdays span { padding: 9px 4px; border-right: 1px solid #E2E8F0; }
.meeting-month-weekdays span:last-child { border-right: 0; }
.meeting-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 0; gap: 0; border: 1px solid #E2E8F0; border-radius: 0 0 8px 8px; overflow: hidden; background: #E2E8F0; }
.meeting-month-cell { min-height: 104px; border: 0; border-right: 1px solid #E2E8F0; border-bottom: 1px solid #E2E8F0; border-radius: 0; background: #FFFFFF; padding: 9px; display: grid; grid-gap: 6px; gap: 6px; align-content: start; text-align: left; color: #1A1A2E; }
.meeting-month-cell:nth-child(7n) { border-right: 0; }
.meeting-month-cell:nth-last-child(-n + 7) { border-bottom: 0; }
.meeting-month-cell:hover { background: #F8FAFC; }
.meeting-month-cell.selected { background: #1A1A2E; color: #FFFFFF; }
.meeting-month-cell.today:not(.selected) { background: #F0F7FF; box-shadow: inset 0 0 0 2px #0050A0; }
.meeting-month-cell.muted { opacity: 0.48; }
.meeting-month-cell-top { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.meeting-month-cell-top strong { font-size: 18px; line-height: 1; }
.meeting-month-cell-top em { border-radius: 999px; background: #E6F6F8; color: #12737F; padding: 3px 6px; font-size: 10px; font-style: normal; font-weight: 800; }
.meeting-month-cell.selected .meeting-month-cell-top em { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.meeting-month-cell-count { color: #64748B; font-size: 11px; font-weight: 800; }
.meeting-month-cell.selected .meeting-month-cell-count { color: #E5E7EB; }
.meeting-month-first-entry { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; background: #F1F5F9; color: #1A1A2E; padding: 3px 5px; font-size: 10px; font-weight: 800; }
.meeting-month-cell.selected .meeting-month-first-entry { background: rgba(255,255,255,0.16); color: #FFFFFF; }
.meeting-month-entry-dots { display: flex; gap: 4px; align-items: center; min-height: 6px; }
.meeting-month-entry-dots i { width: 6px; height: 6px; border-radius: 999px; background: #0050A0; }
.meeting-month-entry-dots i.busy { background: #94A3B8; }
.meeting-month-cell.selected .meeting-month-entry-dots i { background: #FFFFFF; }
.meeting-calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; color: #64748B; font-size: 11px; font-weight: 800; }
.meeting-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.meeting-calendar-legend i { width: 8px; height: 8px; border-radius: 999px; background: #0050A0; }
.meeting-calendar-legend i.available { background: #CBD5E1; }
.meeting-calendar-legend i.busy { background: #94A3B8; }
.meeting-week-column { border: 1px solid #E5E7EB; border-radius: 12px; background: #F3F4F6; padding: 12px; display: grid; grid-gap: 8px; gap: 8px; align-content: start; min-height: 248px; }
.meeting-week-column.active { background: #374151; color: #FFFFFF; }
.meeting-week-column.active .meeting-weekday, .meeting-week-column.active small { color: #E5E7EB; }
.meeting-week-column.active strong { color: #FFFFFF; }
.meeting-weekday { color: #6B7280; font-size: 12px; font-weight: 700; }
.meeting-week-column strong { font-size: 24px; line-height: 1; }
.meeting-week-column small { color: #6B7280; font-size: 11px; font-weight: 700; }
.meeting-week-entry-stack { display: grid; grid-gap: 10px; gap: 10px; align-content: start; margin-top: 8px; }
.meeting-week-entry { border: 1px solid var(--color-border); border-radius: 10px; background: #FFFFFF; padding: 10px 12px; display: grid; grid-gap: 4px; gap: 4px; text-align: left; color: #0F172A; }
.meeting-week-entry.busy { background: #E6F6F8; border-color: #B2E4EA; }
.meeting-week-entry span { color: #12737F; font-size: 11px; font-weight: 800; }
.meeting-week-entry strong { font-size: 11px; line-height: 1.35; }
.meeting-week-empty { color: #64748B; font-size: 11px; font-weight: 700; line-height: 1.4; white-space: pre-line; }
.meeting-week-footer { margin: 0; color: #475569; font-size: 12px; font-weight: 600; }
.meeting-reminder-list { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-day-list { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-day-card { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 16px; display: grid; grid-gap: 8px; gap: 8px; text-align: left; color: #0F172A; }
.meeting-day-card.featured { background: #EEF4F7; border-color: #B2E4EA; }
.meeting-day-card.busy { background: #F1F5F9; border-style: dashed; }
.meeting-day-card span { color: #475569; font-size: 11px; font-weight: 800; }
.meeting-day-card strong { font-size: 14px; }
.meeting-day-card p { margin: 0; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.5; }
.meeting-day-empty { margin: 0; border: 1px dashed #CBD5E1; border-radius: 10px; background: #F8FAFC; padding: 20px; color: #64748B; font-size: 12px; font-weight: 700; text-align: center; }
.meeting-followup-section { border-top: 1px solid #E5E7EB; padding-top: 16px; display: grid; grid-gap: 10px; gap: 10px; }
.meeting-followup-section > strong { color: #64748B; font-size: 12px; }
.meeting-reminder-card { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 16px; display: grid; grid-gap: 8px; gap: 8px; text-align: left; color: #0F172A; }
.meeting-reminder-card.featured { background: #EEF4F7; border-color: #B2E4EA; }
.meeting-reminder-card span { color: #475569; font-size: 11px; font-weight: 800; }
.meeting-reminder-card strong { font-size: 14px; }
.meeting-reminder-card p { margin: 0; color: #475569; font-size: 12px; font-weight: 600; line-height: 1.5; }
.meeting-footer-card { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 14px; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-footer-card strong { font-size: 12px; }
.meeting-footer-card p { margin: 0; color: #475569; font-size: 12px; font-weight: 600; }
.meeting-flow-grid { display: grid; grid-template-columns: minmax(0, 664px) minmax(0, 1fr); grid-gap: 24px; gap: 24px; align-items: start; }
.meeting-modal-overlay { position: fixed; inset: 0; z-index: 60; background: rgb(15 23 42 / 45%); display: flex; align-items: center; justify-content: center; padding: 24px; }
.meeting-modal-card { display: flex; flex-direction: column; width: 100%; max-width: 1040px; max-height: 90vh; background: var(--color-surface); border-radius: 18px; border: 0.5px solid var(--color-border); overflow: hidden; box-shadow: 0 24px 60px rgb(15 23 42 / 25%); }
.meeting-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--color-border); flex: 0 0 auto; }
.meeting-modal-title { font-size: 18px; font-weight: 800; color: var(--color-text); }
.meeting-modal-close { border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--color-text-muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.meeting-modal-close:hover { background: var(--color-hover); color: var(--color-text); }
.meeting-modal-scroll { flex: 1 1 auto; overflow-y: auto; padding: 20px 22px; }
.meeting-modal-card .meeting-compose-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--color-border); flex: 0 0 auto; }
.meeting-modal-card .meeting-flow-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; }
.meeting-modal-card .meeting-flow-column { gap: 0; }
.meeting-modal-card .meeting-flow-card { border: 0; background: transparent; padding: 0; border-radius: 0; gap: 14px; }
.meeting-modal-card .meeting-flow-column > .meeting-flow-card + .meeting-flow-card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.meeting-modal-card .meeting-panel-header h2 { font-size: 14px; letter-spacing: 0; }
.meeting-modal-card .meeting-panel-header p { font-size: 11px; }
.meeting-modal-card .meeting-flow-form-grid { gap: 14px 16px; }
.meeting-modal-card .meeting-importance-row .button { padding: 8px 0; }
.meeting-modal-card .meeting-inline-pill,
.meeting-modal-card .meeting-toggle { padding: 9px 12px; font-size: 12px; }
.meeting-modal-card .meeting-form-people-grid { max-height: 168px; overflow-y: auto; }
@media (max-width: 860px) { .meeting-modal-card .meeting-flow-grid { grid-template-columns: minmax(0, 1fr); } }
.meeting-flow-column { display: grid; grid-gap: 16px; gap: 16px; align-content: start; }
.meeting-portal-status-card.pending { border-color: #FCD34D; background: #FFFBEB; }
.meeting-portal-status-card.success { border-color: #A7F3D0; background: #F7FEFB; }
.meeting-portal-status-card.error { border-color: #FECACA; background: #FFF7F7; }
.meeting-flow-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px 16px; gap: 12px 16px; }
.meeting-flow-span-2 { grid-column: 1 / -1; }
.meeting-segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--color-surface-muted); margin-bottom: 8px; width: -moz-fit-content; width: fit-content; }
.meeting-segmented button { border: 0; border-radius: 9px; background: transparent; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); cursor: pointer; }
.meeting-segmented button.active { background: #DBEAFE; color: #1D4ED8; }
.meeting-room-select-row { display: flex; align-items: center; gap: 10px; }
.meeting-room-select-row .select { flex: 1 1 auto; min-width: 0; }
.meeting-room-dot { width: 10px; height: 10px; border-radius: 50%; background: #B45309; flex: 0 0 auto; }
.meeting-importance-row { display: flex; gap: 8px; }
.meeting-importance-row .button { flex: 1 1; }
.meeting-importance-row .button.active { background: #F3F4F6; }
.meeting-inline-options { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.meeting-inline-pill { border: 1px solid #E5E7EB; border-radius: 8px; background: #FFFFFF; padding: 11px 14px; color: #374151; font-size: 13px; font-weight: 600; }
.meeting-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #E5E7EB; border-radius: 8px; background: #FFFFFF; padding: 12px 14px; font-weight: 700; color: #374151; }
.meeting-toggle input { accent-color: var(--color-primary); }
.meeting-form-people-grid { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-external-attendee-input { display: flex; gap: 8px; align-items: center; }
.meeting-external-attendee-input .input { flex: 1 1 auto; min-width: 0; }
.meeting-chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.meeting-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 4px; border-radius: 999px; background: var(--color-surface-muted); color: var(--color-text); font-size: 13px; font-weight: 600; }
.meeting-chip-body { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 2px 4px 2px 2px; border-radius: 999px; }
.meeting-chip-body:disabled { cursor: default; }
.meeting-chip-avatar { width: 22px; height: 22px; border-radius: 50%; background: #E0E7FF; color: #4338CA; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.meeting-chip-role { font-size: 10px; font-weight: 700; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 1px 7px; }
.meeting-chip.is-host .meeting-chip-avatar { background: #FEF3C7; color: #92400E; }
.meeting-chip-x { border: 0; background: transparent; color: var(--color-text-muted); border-radius: 999px; width: 20px; height: 20px; line-height: 1; cursor: pointer; font-size: 13px; }
.meeting-chip-x:hover { background: var(--color-hover); color: var(--color-text); }
.meeting-chip-x:disabled { opacity: 0.4; cursor: not-allowed; }
.meeting-compose-fields { display: flex; flex-direction: column; gap: 18px; }
.meeting-field-block { display: flex; flex-direction: column; gap: 8px; }
.meeting-field-block + .meeting-field-block { border-top: 1px solid var(--color-border); padding-top: 18px; }
.meeting-section-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--color-text-secondary); margin: 0; }
.meeting-title-input { font-size: 15px; font-weight: 500; }
.meeting-desc-input { min-height: 52px; }
.meeting-time-row { display: flex; align-items: center; gap: 8px; }
.meeting-time-row .input { flex: 1.3 1; min-width: 0; }
.meeting-time-row .select { flex: 1 1; min-width: 0; }
.meeting-time-dash { color: var(--color-text-muted); flex: 0 0 auto; }
.meeting-toggle-row { display: flex; gap: 18px; font-size: 13px; color: var(--color-text-secondary); }
.meeting-toggle-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.meeting-member-picker { position: relative; }
.meeting-member-candidates { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 8px 24px rgb(15 23 42 / 12%); overflow: hidden; max-height: 220px; overflow-y: auto; }
.meeting-member-candidates button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 8px 12px; cursor: pointer; text-align: left; }
.meeting-member-candidates button:hover { background: var(--color-hover); }
.meeting-cand-avatar { width: 26px; height: 26px; border-radius: 50%; background: #E0E7FF; color: #4338CA; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.meeting-cand-copy { display: flex; flex-direction: column; min-width: 0; }
.meeting-cand-copy strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-cand-copy small { font-size: 11px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-advanced-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; font-size: 13px; font-weight: 700; color: var(--color-text-secondary); }
.meeting-advanced-summary { font-size: 11px; font-weight: 500; color: var(--color-text-muted); }
.meeting-advanced-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.meeting-person-row { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) 180px; grid-gap: 10px; gap: 10px; align-items: center; }
.meeting-person-copy { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
.meeting-person-copy strong, .meeting-person-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-person-copy small { color: #64748B; }
.meeting-attachment-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-gap: 16px; gap: 16px; }
.meeting-upload-zone { border: 1.5px dashed #CBD5E1; border-radius: 12px; background: var(--color-surface); min-height: 120px; display: grid; place-content: center; grid-gap: 8px; gap: 8px; text-align: center; color: var(--color-text-secondary); font-weight: 600; cursor: pointer; }
.meeting-upload-zone span { color: #6B7280; font-size: 11px; font-weight: 500; }
.meeting-upload-zone.disabled { opacity: 0.62; pointer-events: none; }
.meeting-upload-zone.drag-active { border-color: #6366F1; border-style: dashed; background: #EEF2FF; }
.meeting-attachment-list { border: 1px solid #E5E7EB; border-radius: 10px; background: #F3F4F6; min-height: 136px; padding: 16px; display: grid; grid-gap: 10px; gap: 10px; align-content: start; }
.meeting-attachment-list span { color: #374151; font-size: 12px; font-weight: 700; }
.meeting-mini-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-mini-day { border: 1px solid #E5E7EB; border-radius: 10px; background: #F3F4F6; padding: 12px; display: grid; grid-gap: 8px; gap: 8px; }
.meeting-mini-day.filled { background: #374151; color: #FFFFFF; }
.meeting-mini-day.filled span, .meeting-mini-day.filled small { color: #E5E7EB; }
.meeting-mini-day span { color: #6B7280; font-size: 12px; font-weight: 700; }
.meeting-mini-day strong { font-size: 24px; line-height: 1; }
.meeting-mini-day small { color: #6B7280; font-size: 11px; font-weight: 700; }
.meeting-agenda-panel { display: grid; grid-gap: 12px; gap: 12px; }
.meeting-agenda-panel > strong { font-size: 12px; letter-spacing: 0.01em; }
.meeting-agenda-list { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-agenda-row { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 12px 14px; display: grid; grid-gap: 4px; gap: 4px; }
.meeting-agenda-row span, .meeting-agenda-row em { color: #64748B; font-size: 11px; font-weight: 700; font-style: normal; }
.meeting-agenda-row strong { font-size: 13px; }
.meeting-review-grid { display: grid; grid-template-columns: minmax(0, 664px) minmax(0, 1fr); grid-gap: 24px; gap: 24px; align-items: start; }
.meeting-readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.meeting-readonly-grid div { border: 1px solid var(--color-border); border-radius: 10px; background: #F8FAFC; padding: 12px; display: grid; grid-gap: 4px; gap: 4px; }
.meeting-readonly-grid .wide { grid-column: 1 / -1; }
.meeting-readonly-grid strong { color: #64748B; font-size: 12px; }
.meeting-readonly-grid span { color: #0F172A; font-size: 13px; line-height: 1.5; }
.meeting-recording-console { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.meeting-recording-console strong { display: block; font-size: 12px; margin-bottom: 4px; }
.meeting-recording-console span { color: #64748B; font-size: 12px; font-weight: 600; }
.meeting-recording-timer { font-size: 20px !important; color: #0F172A !important; font-weight: 800 !important; }
.meeting-recording-preview { width: 100%; min-height: 40px; }
.meeting-recording-selection-summary { border: 1px solid #E5E7EB; border-radius: 10px; background: #FFFFFF; padding: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.meeting-recording-selectall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-secondary); }
.meeting-recording-controls { align-items: center; }
.meeting-recording-selection-summary > span { color: #64748B; font-size: 12px; font-weight: 700; }
.meeting-recording-select-row { justify-content: flex-start; cursor: pointer; }
.meeting-recording-select-row.selected { border-color: #8BD8E2; background: #E6F6F8; }
.meeting-recording-select-row input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #12737F; }
.meeting-recording-select-copy { min-width: 0; flex: 1 1; display: grid; grid-gap: 4px; gap: 4px; }
.meeting-recording-select-copy strong, .meeting-recording-select-copy span { overflow-wrap: anywhere; }
.meeting-recording-select-row .meeting-panel-chip { color: #12737F; font-size: 11px; font-weight: 800; padding: 7px 10px; }
.meeting-inline-list { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-inline-row { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 14px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.meeting-inline-row.deleted { background: #FAF6F6; border-color: #E7D8D8; }
.meeting-inline-row strong { display: block; font-size: 12px; }
.meeting-inline-row span { color: #64748B; font-size: 11px; font-weight: 600; }
.meeting-brief-tabs { display: inline-flex; gap: 6px; padding: 4px; border-radius: 10px; background: #EEF2F7; width: -moz-fit-content; width: fit-content; }
.meeting-brief-tabs button { border: 0; border-radius: 8px; background: transparent; color: #64748B; padding: 9px 14px; font-weight: 800; }
.meeting-brief-tabs button.active { background: #FFFFFF; color: #0F172A; }
.meeting-brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; grid-gap: 24px; gap: 24px; align-items: start; }
.meeting-brief-main, .meeting-brief-side { display: grid; grid-gap: 18px; gap: 18px; align-content: start; }
.meeting-record-ended-hint { margin: 0; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--color-surface-muted); border: 1px solid var(--color-border); font-size: 12px; }
.meeting-brief-section { display: grid; grid-gap: 8px; gap: 8px; }
.meeting-brief-section > strong { font-size: 13px; }
.meeting-brief-section p { margin: 0; color: #334155; line-height: 1.65; }
.meeting-brief-list { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 8px; gap: 8px; }
.meeting-brief-list li { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 10px 12px; }
.meeting-transcript-stack { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-transcript-line { border: 1px solid #E5E7EB; border-radius: 10px; background: #F8FAFC; padding: 12px; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-transcript-line span { color: #64748B; font-size: 11px; font-weight: 700; }
.meeting-transcript-line p { margin: 0; color: #0F172A; font-size: 13px; line-height: 1.6; }
.meeting-transcript-readable { display: grid; grid-gap: 10px; gap: 10px; min-width: 0; }
.meeting-transcript-readable.compact { gap: 8px; }
.meeting-transcript-paragraph { margin: 0; color: #334155; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.meeting-transcript-segment { border: 1px solid #E2E8F0; border-radius: 8px; background: #FFFFFF; padding: 10px 12px; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: start; }
.meeting-transcript-readable.compact .meeting-transcript-segment { padding: 9px 10px; }
.meeting-transcript-time { color: #64748B; font-size: 11px; font-weight: 800; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meeting-transcript-segment p { margin: 0; color: #334155; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.meeting-sidebar-v2 { background: #F8FAFC; }
.meeting-sidebar-brand-row h2 { font-size: 18px; margin: 0; }
.meeting-sidebar-brand-row p { margin: 4px 0 0; }
.meeting-sidebar-search { display: flex; align-items: center; gap: 10px; height: 42px; margin-top: 14px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; padding: 0 12px; color: var(--color-text-muted); }
.meeting-sidebar-search input { border: 0; background: transparent; width: 100%; color: #334155; outline: none; }
.meeting-sidebar-tabs { margin-top: 14px; }
.meeting-sidebar-insight { margin-top: 16px; border: 1px solid #B2E4EA; border-radius: 10px; background: #E6F6F8; padding: 14px; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-sidebar-insight strong { color: #12737F; font-size: 12px; }
.meeting-sidebar-insight p { margin: 0; color: #334155; font-size: 12px; font-weight: 600; line-height: 1.5; }
.meeting-sidebar-list { display: grid; grid-gap: 10px; gap: 10px; }
.meeting-sidebar-card { padding: 12px; text-align: left; }
.meeting-sidebar-card-copy { min-width: 0; display: grid; grid-gap: 6px; gap: 6px; }
.meeting-sidebar-card-copy strong { font-size: 13px; }
.meeting-sidebar-card-copy > span, .meeting-sidebar-card-copy em { color: #64748B; font-size: 12px; font-style: normal; }
.meeting-sidebar-card-copy em { line-height: 1.45; }
.automation-meeting-workbench { height: 100%; min-height: 0; display: flex; overflow: hidden; background: var(--color-surface); color: var(--color-text); }
.automation-meeting-sidebar { width: 300px; flex: 0 0 300px; height: 100%; }
.automation-meeting-sidebar-actions { display: flex; align-items: center; gap: 8px; }
.automation-meeting-refresh { display: grid; place-items: center; }
.automation-meeting-refresh.is-loading { opacity: 0.62; }
.automation-meeting-sidebar-notice { margin-top: 10px; border: 1px solid var(--color-border); border-radius: 6px; background: #FFFFFF; color: var(--color-text-muted); padding: 7px 10px; font-size: 11px; font-weight: 700; }
.automation-meeting-sidebar-notice.is-warning { border-color: #FCD34D; background: #FFFBEB; color: #92400E; }
.automation-meeting-sidebar-notice.is-error { border-color: #FECACA; background: #FEF2F2; color: var(--color-danger); }
.automation-meeting-sidebar-search { margin-top: 14px; }
.automation-meeting-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.automation-meeting-sidebar-insight { border-radius: 6px; }
.automation-meeting-sidebar .conversation-card.is-muted { background: #F2F4F7; border-color: var(--color-border); }
.automation-meeting-sidebar .meeting-sidebar-card-copy .room-tags { flex-wrap: wrap; }
.automation-meeting-main { min-width: 0; min-height: 0; flex: 1 1 auto; display: grid; grid-template-rows: 72px minmax(0, 1fr); background: var(--color-surface); overflow: hidden; }
.automation-meeting-topbar { grid-column: 1; grid-row: 1; }
.automation-meeting-global-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); }
.automation-meeting-sync-chip { border-color: var(--color-border); border-radius: 4px; background: var(--color-surface-muted); color: var(--color-text-muted); padding: 7px 10px; }
.automation-meeting-scroll { min-height: 0; overflow: auto; display: flex; gap: 0; padding: 0; background: var(--color-surface); }

/* ── Calendar workspace redesign (P1) ───────────────────────────── */
/* Sidebar: calendar source toggles */
.calendar-source-section { margin-top: 14px; }
.calendar-source-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 8px; }
.calendar-source-manage { border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 13px; padding: 2px; border-radius: 6px; }
.calendar-source-manage:hover { background: var(--color-hover); }
.calendar-source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.calendar-source-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text); cursor: pointer; padding: 3px 2px; border-radius: 6px; }
.calendar-source-item:hover { background: var(--color-hover); }
.calendar-source-item.is-off .calendar-source-name { color: var(--color-text-muted); text-decoration: line-through; }
.calendar-source-item input { width: 14px; height: 14px; accent-color: var(--color-teal); }
.calendar-source-swatch { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.calendar-source-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--color-teal); font-size: 12px; cursor: pointer; padding: 4px 2px; }
.calendar-source-link:hover { text-decoration: underline; }
.calendar-source-status { margin-left: auto; font-size: 10px; font-weight: 600; color: var(--color-teal); background: var(--color-selected); border-radius: 999px; padding: 1px 7px; }
.calendar-source-link.is-disconnect { color: var(--color-danger); }
.calendar-source-link:disabled { opacity: 0.55; cursor: default; text-decoration: none; }
.calendar-source-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.calendar-source-add { display: flex; align-items: center; gap: 5px; width: 100%; margin-top: 8px; border: 1px dashed var(--color-border); background: transparent; color: var(--color-teal); font-size: 12px; cursor: pointer; padding: 7px 8px; border-radius: 8px; justify-content: center; }
.calendar-source-add:hover { background: var(--color-hover); border-color: var(--color-teal); }
.calendar-source-status.is-oneway { color: #92400E; background: #FEF3C7; }

/* 凱衛單向限制揭露 */
.calendar-source-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 4px 24px; font-size: 10.5px; color: var(--color-text-muted); }
.calendar-source-note.is-right { justify-content: flex-end; padding-left: 2px; }
.calendar-source-note.is-right .calendar-source-note-text { text-align: right; }
.calendar-source-note-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-source-refresh-inline { margin-left: auto; flex: 0 0 auto; }
.calendar-source-refresh { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--color-teal); font-size: 10.5px; cursor: pointer; padding: 0; flex: 0 0 auto; }
.calendar-source-refresh:hover { text-decoration: underline; }
.calendar-source-refresh:disabled { color: var(--color-text-muted); cursor: default; text-decoration: none; }

/* Header overflow 選單 */
.calendar-overflow-wrap { position: relative; display: inline-flex; }
.calendar-overflow-backdrop { position: fixed; inset: 0; z-index: 190; }
.calendar-overflow-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 200; min-width: 150px; display: flex; flex-direction: column; padding: 4px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-modal); }
.calendar-overflow-menu button { text-align: left; border: 0; background: transparent; color: var(--color-text); font-size: 13px; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.calendar-overflow-menu button:hover { background: var(--color-hover); }

/* 來源設定面板 */
.calendar-source-settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--color-border); }
.calendar-source-settings-row:last-of-type { border-bottom: 0; }
.calendar-source-settings-main { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; min-width: 0; flex: 1 1 auto; }
.calendar-source-settings-main input { width: 15px; height: 15px; accent-color: var(--color-teal); margin-top: 2px; flex: 0 0 auto; }
.calendar-source-settings-main .calendar-picker-swatch { margin-top: 4px; }
.calendar-source-settings-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.calendar-source-settings-sub { font-size: 11px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-source-settings-actions { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; flex: 0 0 auto; }
.calendar-source-settings-hint { margin: 10px 2px 2px; font-size: 11px; line-height: 1.5; color: var(--color-text-muted); }

/* 行事曆來源面板(連結管理,卡片式) */
.calendar-sources { display: flex; flex-direction: column; gap: 8px; }
.calendar-sources-hint { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: var(--color-text-secondary); }
.calendar-source-card { display: flex; align-items: center; gap: 11px; border: 0.5px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 14px; }
.calendar-source-card.is-block { flex-direction: column; align-items: stretch; gap: 0; }
.calendar-source-card-row { display: flex; align-items: center; gap: 11px; }
.calendar-source-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.calendar-source-card-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1; min-width: 0; }
.calendar-source-card-text strong { font-size: 14px; font-weight: 500; color: var(--color-text); }
.calendar-source-card-title { display: flex; align-items: center; gap: 7px; }
.calendar-source-card-sub { font-size: 12px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-source-tag { font-size: 11px; color: var(--color-text-muted); border: 0.5px solid var(--color-border); border-radius: var(--radius-md); padding: 2px 8px; flex: 0 0 auto; }
.calendar-source-badge { font-size: 11px; border-radius: var(--radius-md); padding: 1px 7px; flex: 0 0 auto; }
.calendar-source-badge.is-ok { color: #065F46; background: #D1FAE5; }
.calendar-source-badge.is-warn { color: #92400E; background: #FEF3C7; }
.calendar-source-card-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.calendar-source-card-actions.is-row { margin-top: 11px; padding-left: 22px; }
.calendar-source-connect-btn { font-size: 13px; padding: 6px 16px; border-radius: var(--radius-md); background: var(--color-primary); color: #fff; border: none; cursor: pointer; flex: 0 0 auto; }
.calendar-source-connect-btn:hover { background: var(--color-primary-strong); }
.calendar-source-card-note { margin: 10px 0 0; padding-left: 22px; font-size: 11px; line-height: 1.5; color: var(--color-text-muted); display: flex; gap: 5px; align-items: flex-start; }
.calendar-picker.calendar-sources-modal { width: min(432px, 94vw); }
.calendar-picker.calendar-sources-modal .calendar-picker-body { padding: 6px 18px 12px; gap: 8px; }
.calendar-source-action-btn { display: inline-flex; align-items: center; gap: 4px; border: 0.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); border-radius: var(--radius-md); padding: 5px 12px; font-size: 12.5px; cursor: pointer; }
.calendar-source-action-btn:hover { background: var(--color-hover); border-color: var(--color-teal); }
.calendar-source-action-btn:disabled { opacity: 0.6; cursor: default; }
.calendar-source-action-btn.is-disconnect { color: var(--color-danger); }
.calendar-source-action-btn.is-disconnect:hover { border-color: var(--color-danger); background: var(--color-hover); }

/* 新增來源 type picker */
.calendar-source-connector { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-md); padding: 12px; cursor: pointer; }
.calendar-source-connector:hover { background: var(--color-hover); border-color: var(--color-teal); }
.calendar-source-connector .calendar-source-swatch { width: 12px; height: 12px; margin-top: 3px; }
.calendar-source-connector-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calendar-source-connector-text strong { font-size: 13px; color: var(--color-text); }
.calendar-source-connector-text span { font-size: 11px; color: var(--color-text-muted); line-height: 1.45; }

/* 凱衛憑證表單 */
.calendar-cred-form { gap: 10px; }
.calendar-cred-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--color-text-secondary); }
.calendar-cred-field input { border: 1px solid var(--color-border); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--color-text); background: var(--color-surface); }
.calendar-cred-field input:focus { outline: none; border-color: var(--color-teal); }
.calendar-cred-note { margin: 2px 0 0; font-size: 11px; line-height: 1.5; color: var(--color-text-muted); }
.calendar-cred-result { margin: 4px 0 0; font-size: 12px; line-height: 1.5; border-radius: 8px; padding: 8px 10px; }
.calendar-cred-result.is-ok { color: #065F46; background: #D1FAE5; }
.calendar-cred-result.is-error { color: #92400E; background: #FEF3C7; }

/* R4：Google 個別日曆子列 */
.calendar-source-sublist { list-style: none; margin: 2px 0 2px 22px; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--color-border); }
.calendar-source-subitem { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--color-text-secondary); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.calendar-source-subitem:hover { background: var(--color-hover); }
.calendar-source-subitem.is-off .calendar-source-name { color: var(--color-text-muted); text-decoration: line-through; }
.calendar-source-subitem input { width: 13px; height: 13px; accent-color: var(--color-teal); flex: 0 0 auto; }
.calendar-source-subitem .calendar-source-swatch { width: 8px; height: 8px; }
.calendar-source-subitem .calendar-source-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Google 日曆勾選 Modal */
.calendar-picker { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 200; width: min(360px, 92vw); max-height: 70vh; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-modal); overflow: hidden; }
.calendar-picker-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: 14px; font-weight: 600; }
.calendar-picker-close { border: 0; background: transparent; font-size: 18px; color: var(--color-text-muted); cursor: pointer; line-height: 1; }
.calendar-picker-body { padding: 10px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.calendar-picker-empty { font-size: 13px; color: var(--color-text-muted); text-align: center; padding: 16px 0; margin: 0; }
.calendar-picker-item { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.calendar-picker-item:hover { background: var(--color-hover); }
.calendar-picker-item input { width: 15px; height: 15px; accent-color: var(--color-teal); flex: 0 0 auto; }
.calendar-picker-swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.calendar-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-picker-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--color-border); }
.calendar-picker-foot button { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; color: var(--color-text-secondary); }
.calendar-picker-foot button:hover { background: var(--color-hover); }
.calendar-picker-foot .calendar-picker-save { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.calendar-picker-foot .calendar-picker-save:hover { background: var(--color-primary-strong); }
.calendar-picker-foot .calendar-picker-save:disabled { opacity: 0.6; cursor: not-allowed; }

/* Sidebar: trimmed calendar cards */
.calendar-card-top { display: flex; align-items: center; justify-content: space-between; }
.calendar-card-time { display: inline-flex; align-items: center; font-size: 11px; color: var(--color-text-muted); }
.calendar-card-dot { width: 7px; height: 7px; border-radius: 50%; }
.calendar-card-dot.is-error { background: var(--color-danger); }
.calendar-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); }

/* Topbar: consolidated calendar header */
.calendar-topbar { display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.calendar-topbar-nav { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.calendar-topbar-title { font-size: 16px; font-weight: 700; color: var(--color-text); }
.calendar-month-nav { display: flex; align-items: center; gap: 4px; }
.calendar-month-nav button { width: 26px; height: 26px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; cursor: pointer; color: var(--color-text-secondary); font-size: 15px; line-height: 1; }
.calendar-month-nav button:hover { background: var(--color-hover); }
.calendar-month-label { min-width: 92px; text-align: left; font-size: 14px; font-weight: 600; color: var(--color-text); margin-right: 2px; }
.calendar-today-btn { border: 1px solid #0F172A; background: #0F172A; border-radius: 8px; padding: 5px 24px; font-size: 12px; cursor: pointer; color: #fff; }
.calendar-today-btn:hover { background: #1E293B; border-color: #1E293B; }
.calendar-view-switch { display: inline-flex; gap: 4px; background: #F2F4F7; padding: 4px; border-radius: 8px; }
.calendar-view-switch button { border: 0; background: transparent; border-radius: 5px; padding: 4px 11px; font-size: 12px; cursor: pointer; color: var(--color-text-muted); font-weight: 600; }
.calendar-view-switch button.active { background: var(--color-surface); color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-border); }
.calendar-view-switch button:disabled { color: #CBD5E1; cursor: not-allowed; opacity: 1; }
.calendar-search { flex: 1 1 auto; min-width: 0; max-width: 360px; }
.calendar-icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; color: var(--color-text-secondary); font-size: 15px; cursor: pointer; flex: 0 0 auto; }
.calendar-icon-btn:hover { background: var(--color-hover); }
.calendar-search-open { display: flex; align-items: center; gap: 6px; width: 240px; border: 1px solid var(--color-border); border-radius: 8px; padding: 4px 10px; background: var(--color-surface); color: var(--color-text-muted); }
.calendar-search-open input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font-size: 13px; }
.calendar-search-close { border: 0; background: transparent; color: var(--color-text-muted); cursor: pointer; font-size: 12px; padding: 0 2px; }
.calendar-search-close:hover { color: var(--color-text); }
.calendar-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.calendar-hint { max-width: 280px; border: 1px solid #FCD34D; background: #FFFBEB; color: #92400E; border-radius: 8px; padding: 5px 10px; font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-overflow { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; color: var(--color-text-secondary); font-size: 15px; }
.calendar-overflow:hover { background: var(--color-hover); }

/* Main: month calendar — sits directly on the main surface, no card wrapper */
.calendar-main-section { flex: 1 1 auto; min-width: 0; padding: 16px 20px; }
.calendar-month { background: transparent; border: 0; border-radius: 0; padding: 0; overflow: hidden; }
.calendar-content { will-change: transform, opacity; }
@keyframes calendar-enter-forward { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes calendar-enter-back { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.calendar-slide-forward { animation: calendar-enter-forward 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.calendar-slide-back { animation: calendar-enter-back 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 4px; gap: 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 6px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 96px; grid-gap: 4px; gap: 4px; }
.calendar-cell { display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; padding: 5px 6px; cursor: pointer; overflow: hidden; transition: background 120ms ease, border-color 120ms ease; }
.calendar-cell:hover { background: var(--color-surface-muted); }
.calendar-cell.is-outside { background: #FBFCFE; }
.calendar-cell.is-outside .calendar-cell-date { color: #CBD5E1; }
.calendar-cell.is-today { border-color: var(--color-text-muted); }
.calendar-cell.is-selected { border: 2px solid var(--color-teal); background: var(--color-selected); }
.calendar-cell-date { font-size: 12px; font-weight: 600; color: var(--color-text); }
.calendar-cell-events { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden; }
.calendar-event-chip { display: block; font-size: 10px; line-height: 1.6; padding: 1px 5px; border-radius: 4px; background: var(--color-surface-muted); color: var(--color-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event-chip.is-clickable { cursor: pointer; }
.calendar-event-chip.is-clickable:hover { box-shadow: inset 0 0 0 1px currentColor; }
.calendar-event-chip .calendar-source-mini { margin-right: 4px; }
.calendar-source-mini { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; margin-right: 6px; vertical-align: middle; }
.calendar-event-more { font-size: 10px; color: var(--color-text-muted); padding-left: 2px; }
.calendar-legend { display: flex; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--color-text-muted); }
.calendar-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend-dot { width: 8px; height: 8px; border-radius: 2px; }

/* Right context panel: dual mode */
.calendar-context-panel { flex: 0 0 320px; width: 320px; display: flex; flex-direction: column; gap: 12px; background: transparent; border-left: 1px solid var(--color-border); padding: 16px 18px; overflow-y: auto; }
.calendar-agenda-head { display: flex; align-items: center; justify-content: space-between; }
.calendar-agenda-title { font-size: 15px; font-weight: 700; color: var(--color-text); }
.calendar-agenda-add { width: 26px; height: 26px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; cursor: pointer; color: var(--color-teal); font-size: 15px; }
.calendar-agenda-add:hover { background: var(--color-hover); }
.calendar-agenda-count { font-size: 12px; color: var(--color-text-muted); margin-top: -6px; }
.calendar-create-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); color: var(--color-teal); font-size: 16px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.calendar-create-btn:hover { background: var(--color-hover); }
.calendar-agenda-today { margin-left: 8px; font-size: 10px; font-weight: 600; color: var(--color-teal); background: var(--color-selected); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.calendar-agenda-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 7px; }
.calendar-agenda-foot-hint { font-size: 11px; color: var(--color-text-muted); }
.calendar-agenda-foot-item { font-size: 11px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 7px; }
.calendar-agenda-foot-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-text-muted); flex: 0 0 auto; }
.calendar-agenda-list { display: flex; flex-direction: column; gap: 6px; }
.calendar-agenda-empty { border: 1px dashed var(--color-border); border-radius: 10px; padding: 22px 12px; text-align: center; font-size: 12px; color: var(--color-text-muted); background: transparent; cursor: pointer; }
.calendar-agenda-empty:hover { background: var(--color-surface-muted); }
.calendar-agenda-row { display: flex; gap: 8px; align-items: stretch; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 0; }
.calendar-agenda-time { flex: 0 0 38px; font-size: 11px; color: var(--color-text-muted); padding-top: 8px; }
.calendar-agenda-event { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--color-border); border-radius: 8px; padding: 7px 9px; }
.calendar-agenda-row:hover .calendar-agenda-event { border-color: var(--color-text-muted); background: var(--color-surface-muted); }
.calendar-agenda-row-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.calendar-agenda-event-title { font-size: 13px; font-weight: 600; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-agenda-event-meta { font-size: 11px; color: var(--color-text-muted); }
.calendar-agenda-event-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* Right panel mode B: meeting summary */
.calendar-back { align-self: flex-start; border: 0; background: transparent; color: var(--color-teal); font-size: 12px; cursor: pointer; padding: 0; }
.calendar-summary-card { display: flex; flex-direction: column; gap: 14px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 16px; padding: 18px; box-shadow: 0 1px 3px rgb(15 23 42 / 6%); }
.calendar-summary-head { display: flex; flex-direction: column; gap: 6px; }
.calendar-summary-badges { display: flex; align-items: center; gap: 6px; }
.calendar-source-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--color-surface-muted); border: 1px solid var(--color-border); color: var(--color-text-secondary); }
.calendar-source-tag .calendar-source-mini { margin-right: 5px; }
.calendar-summary-title { font-size: 17px; font-weight: 700; color: var(--color-text); }
.calendar-summary-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--color-text-secondary); }
.calendar-summary-attendees { display: flex; align-items: center; gap: 5px; }
.calendar-avatar { width: 30px; height: 30px; border-radius: 50%; background: #E0E7FF; color: #4338CA; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-left: -6px; border: 2px solid var(--color-surface); }
.calendar-avatar:first-child { margin-left: 0; }
.calendar-summary-attendees-count { font-size: 12px; color: var(--color-text-muted); margin-left: 8px; }
.calendar-summary-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--color-border); padding-top: 12px; }
.calendar-summary-links { display: flex; flex-wrap: wrap; gap: 16px; }
.calendar-summary-links button { border: 0; background: transparent; color: var(--color-text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.calendar-summary-links button:hover { color: var(--color-primary); }
.calendar-summary-sync { font-size: 11px; color: var(--color-text-muted); }
.calendar-summary-actions { display: flex; gap: 8px; }
.calendar-summary-actions button { flex: 1 1 auto; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-secondary); border-radius: 8px; padding: 7px 0; font-size: 12px; font-weight: 600; cursor: pointer; }
.calendar-summary-actions button:hover { background: var(--color-hover); }
.calendar-summary-actions button.is-danger { color: var(--color-danger); }
.calendar-summary-actions button.calendar-primary-btn { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.calendar-summary-actions button.calendar-primary-btn:hover { background: var(--color-primary-strong); }
.calendar-summary-actions button:disabled { opacity: 0.45; cursor: not-allowed; }
.calendar-summary-actions button:disabled:hover { background: var(--color-surface); }
.calendar-enter-btn { width: 100%; border: 0; border-radius: 10px; background: #111827; color: #fff; padding: 11px 0; font-size: 14px; font-weight: 800; cursor: pointer; }
.calendar-enter-btn:hover { background: #0B1220; }
.calendar-detail-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-text-primary); padding: 9px 0; font-size: 13px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.calendar-detail-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-hover); }
.calendar-sync-chip { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--color-hover); border: 1px solid var(--color-border); font-size: 11px; color: var(--color-text-secondary); }
.calendar-summary-link { border: 0; background: transparent; color: var(--color-text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.calendar-summary-link:hover { color: var(--color-primary); }
.meeting-back-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--color-border); background: var(--color-surface); border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); cursor: pointer; white-space: nowrap; }
.meeting-back-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-hover); }
.meeting-flow-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.meeting-more-menu { position: relative; display: inline-flex; }
.meeting-more-trigger { padding: 8px 11px; }
.meeting-more-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 160px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.meeting-more-pop button { text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--color-text-primary); cursor: pointer; }
.meeting-more-pop button:hover { background: var(--color-hover); }
.meeting-more-pop button.danger { color: var(--color-danger); }
.calendar-summary-hint { font-size: 11px; line-height: 1.6; color: var(--color-text-muted); margin: 0; }

/* Right panel mode A: day time-rail with free slots */
.calendar-rail { display: flex; flex-direction: column; gap: 6px; }
.calendar-rail-row { display: flex; gap: 8px; align-items: stretch; text-align: left; border: 0; background: transparent; cursor: pointer; padding: 0; }
.calendar-rail-time { flex: 0 0 38px; font-size: 11px; color: var(--color-text-muted); padding-top: 7px; }
.calendar-rail-free { align-items: center; }
.calendar-rail-free-bar { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; height: 26px; padding: 0 10px; font-size: 11px; color: var(--color-success); border: 1px dashed var(--color-border); border-radius: 8px; }
.calendar-rail-free:hover .calendar-rail-free-bar { border-color: var(--color-teal); background: var(--color-surface-muted); }
.calendar-rail-row:hover .calendar-agenda-event { border-color: var(--color-text-muted); background: var(--color-surface-muted); }

/* Status pills: neutral by default; only live (teal) and cancelled (danger) carry colour */
.calendar-status-pill { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); white-space: nowrap; }
.calendar-status-pill.is-progress { border-color: transparent; background: #DCFCE7; color: #15803D; }
.calendar-status-pill.is-cancelled { background: #FCF2F2; border-color: #F0D6D6; color: var(--color-danger); }
.calendar-agenda-event-tags .badge.is-warning { border-color: #FCD34D; background: #FFFBEB; color: #92400E; font-weight: 600; }

@media (max-width: 1439px) {
  .workspace, .workspace.details-open { grid-template-columns: 72px 300px minmax(0, 1fr); }
  .workspace.sidebar-collapsed, .workspace.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace.user-mode, .workspace.user-mode.details-open { grid-template-columns: 72px 300px minmax(0, 1fr); }
  .workspace.user-mode.sidebar-collapsed, .workspace.user-mode.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
  .main-shell, .main-shell.details-open { grid-template-columns: minmax(0, 1fr); }
  .workspace-feedback { left: 388px; right: 16px; }
  .workspace.sidebar-collapsed .workspace-feedback { left: 88px; }
  .workspace.user-mode .workspace-feedback { left: 388px; }
  .workspace.user-mode.sidebar-collapsed .workspace-feedback { left: 88px; }
  .details { position: fixed; display: block; top: 72px; right: 0; bottom: 0; width: min(412px, 92vw); z-index: 30; box-shadow: var(--shadow-modal); transform: translateX(110%); transition: transform 150ms ease; }
  .details.open { transform: translateX(0); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .workspace, .workspace.details-open { grid-template-columns: 72px 280px minmax(0, 1fr); }
  .workspace.sidebar-collapsed, .workspace.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
  .workspace.user-mode, .workspace.user-mode.details-open { grid-template-columns: 72px 280px minmax(0, 1fr); }
  .workspace.user-mode.sidebar-collapsed, .workspace.user-mode.sidebar-collapsed.details-open { grid-template-columns: 72px minmax(0, 1fr); }
  .main-shell, .main-shell.details-open { grid-template-columns: minmax(0, 1fr); }
  .topbar { grid-template-columns: minmax(180px, 1fr) minmax(180px, 360px) auto; }
  .sidebar { grid-column: 2; }
  .main-shell { grid-column: 3; }
  .workspace.sidebar-collapsed .main-shell, .workspace.sidebar-collapsed.details-open .main-shell { grid-column: 2; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .ai-policy-grid { grid-template-columns: 1fr; }
  .policy-layer-grid { grid-template-columns: 1fr; }
  .ai-memory-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-memory-value { grid-column: 1 / -1; }
  .workspace-feedback { left: 16px; right: 16px; }
  .global-search kbd { display: none; }
  .meeting-card-grid { grid-template-columns: 1fr; }
  .automation-meeting-sidebar { width: 280px; flex-basis: 280px; }
  .user-sidebar { padding: 16px 12px 20px; }
  .user-sidebar-note { display: none; }
  .automation-meeting-scroll { gap: 16px; padding: 20px; }
  .meeting-hub-grid,
  .meeting-flow-grid,
  .meeting-review-grid,
  .meeting-brief-grid { grid-template-columns: 1fr; }
  .meeting-hub-stats { grid-template-columns: 1fr; }
  .meeting-week-columns,
  .meeting-month-grid,
  .meeting-month-weekdays,
  .meeting-mini-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .meeting-workbench-kway .meeting-month-grid,
  .meeting-workbench-kway .meeting-month-weekdays { grid-template-columns: repeat(7, minmax(96px, 1fr)); }
  .meeting-kway-calendar-card { overflow-x: auto; }
  .meeting-file-toolbar,
  .meeting-file-actions,
  .meeting-file-title-row { align-items: stretch; }
}
@media (max-width: 767px) {
  .workspace, .workspace.details-open, .workspace.sidebar-collapsed, .workspace.sidebar-collapsed.details-open { display: block; height: 100dvh; overflow: hidden; max-width: 100vw; }
  body { overflow-x: hidden; }
  .rail { display: none; }
  .main-shell, .main-shell.details-open { display: block; height: auto; min-height: 0; background: transparent; }
  .topbar { height: 56px; display: flex; padding: 0 14px; gap: 8px; }
  .topbar-title { flex: 1 1 auto; overflow: hidden; min-width: 0; }
  .topbar-title strong, .topbar-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { flex: 0 0 auto; gap: 6px; flex-wrap: nowrap; }
  .topbar .button, .icon-control { min-width: 32px; height: 32px; padding: 0 7px; white-space: nowrap; }
  .locale-select select { max-width: 78px; }
  .global-search { display: none; }
  .sidebar, .chat { height: calc(100dvh - 56px); }
  .sidebar { display: none; border-right: 0; width: 100%; padding: 14px 10px; }
  .workspace.sidebar-collapsed .sidebar { display: none; }
  .chat { display: none; width: 100%; min-height: 0; }
  .workspace.mobile-list .sidebar { display: block; }
  .workspace.mobile-chat .chat { display: grid; }
  .workspace.mobile-details .chat { display: grid; }
  .timeline { padding: 14px; }
  .message.incoming, .message.outgoing { width: 100%; max-width: 100%; grid-template-columns: 32px minmax(0, 1fr); }
  .message.outgoing { grid-template-columns: minmax(0, 1fr) 32px; }
  .avatar { width: 32px; height: 32px; border-radius: 10px; }
  .message-meta { flex-wrap: wrap; gap: 4px 8px; }
  .message-affordances { display: none; }
  .empty-chat-canvas { padding: 22px 14px; gap: 18px; }
  .empty-hero-card h2 { font-size: 30px; }
  .empty-composer-preview { min-height: 150px; border-radius: 18px; }
  /* Compact mobile input bar */
  .composer { padding: 8px 10px 0; border-top: 1px solid #E2E8F0; background: #FFFFFF; }
  .composer-box {
    min-height: unset !important;
    display: flex !important;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
    border-radius: 24px;
    padding: 6px 6px 6px 14px;
    background: #F2F4F7;
    border-color: transparent;
    grid-template-rows: unset;
  }
  .composer-context-row { display: none !important; }
  .composer textarea {
    flex: 1 1;
    min-height: 28px;
    max-height: 120px;
    resize: none;
    overflow-y: auto;
    padding: 3px 0;
    font-size: 16px;
    line-height: 1.45;
    background: transparent;
    border: 0;
    align-self: center;
    field-sizing: content;
  }
  .composer-actions {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    border-top: 0 !important;
    padding-top: 0 !important;
    flex-wrap: nowrap;
    gap: 4px;
  }
  .composer-actions > span { display: none !important; }
  .composer-action-buttons { display: flex; flex-direction: row; align-items: center; gap: 4px; width: auto; }
  .composer-action-buttons .button { flex: unset; }
  .btn-label { display: none; }
  .btn-icon { display: flex !important; }
  .send-button {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .composer .button-ghost,
  .composer .composer-tool {
    min-width: 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
  }
  .details { left: 0; right: 0; top: 56px; bottom: 0; width: auto; max-width: none; box-sizing: border-box; z-index: 60; padding: 14px 20px 14px 14px; transform: translateX(110%); overflow-x: hidden; border-left: 0; background: var(--color-surface); box-shadow: var(--shadow-modal); }
  .details *, .detail-card, .task-row, .member { max-width: 100%; min-width: 0; }
  .detail-card { overflow: hidden; }
  .details .button, .details .icon-control { max-width: 100%; }
  .details-header { display: grid; grid-template-columns: 1fr; }
  .details-header-actions { justify-content: flex-start; width: 100%; }
  .details-header-actions .icon-control { display: none; }
  .details-header-actions .button { width: 100%; }
  .global-search { display: none; }
  .topbar-actions { min-width: 0; }
  .topbar-actions .icon-control { display: none; }
  .topbar-actions .button-compact, .topbar-actions .mobile-only { display: inline-flex; }
  .workspace.mobile-details .details { transform: translateX(0); }
  .workspace.mobile-sidebar .sidebar { transform: translateX(0); }
  .member, .task-row { flex-wrap: wrap; align-items: flex-start; }
  .task-row { grid-template-columns: 1fr; }
  .task-row .button { width: 100%; }
  .member-name { white-space: normal; }
  .modal-backdrop { padding: 10px; place-items: end center; }
  .modal { max-height: 92dvh; border-radius: 14px 14px 0 0; padding: 16px; }
  .modal-header { align-items: flex-start; flex-wrap: wrap; }
  .ai-policy-modal { width: 100%; }
  .ai-policy-grid, .ai-memory-form, .ai-policy-row, .memory-row, .policy-layer-grid { grid-template-columns: 1fr; }
  .ai-memory-value { grid-column: 1; }
  .workspace-feedback { top: 64px; left: 12px; right: 12px; }
  .workspace-onboarding-shell { display: block; min-height: 100dvh; }
  .workspace-onboarding { padding: 28px 16px; }
  .onboarding-actions { grid-template-columns: 1fr; }
  .onboarding-card { padding: 16px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .login-card { padding: 22px; }
  .chat-header { padding: 16px 14px 14px; flex-wrap: wrap; }
  .chat-title { width: 100%; }
  .chat-title h1 { font-size: 22px; }
  .workspace.user-mode .main-shell { height: 100dvh; background: #FFFFFF; }
  .workspace.user-mode .sidebar, .workspace.user-mode.mobile-list .sidebar { display: none; }
  .user-center { height: 100dvh; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); }
  .user-topbar { height: auto; display: grid; grid-template-columns: 1fr; grid-gap: 10px; gap: 10px; padding: 12px 14px; }
  .user-topbar .topbar-title strong, .user-topbar .topbar-title span { white-space: normal; }
  .user-topbar .topbar-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .user-topbar .topbar-actions .button { flex: 1 1 auto; justify-content: center; }
  .user-search { display: flex; min-height: 38px; }
  /* View navigation now lives in the header menu drawer */
  .user-mobile-nav { display: none; }
  .user-center-scroll { padding: 14px; gap: 14px; }
  .workspace.user-mode .user-center { grid-template-rows: auto minmax(0, 1fr); }
  .workspace.user-mode .user-topbar { display: none; }
  .workspace.user-mode .user-center-scroll { padding: 0; gap: 0; }
  .user-panel { padding: 14px; }
  .user-panel h1 { font-size: 22px; }
  .user-profile-hero { grid-template-columns: 1fr; justify-items: start; }
  .user-hero-actions { width: 100%; justify-content: stretch; }
  .user-hero-actions .button { flex: 1 1 auto; }
  .user-metric-grid, .user-definition-grid, .user-form-grid { grid-template-columns: 1fr; }
  .stat-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-charts-row { grid-template-columns: 1fr; }
  .user-panel-heading { flex-direction: column; align-items: stretch; }
  .user-panel-heading .button-row { width: 100%; }
  .user-panel-heading .button-row .button { flex: 1 1 auto; }
  .user-row-card, .user-connection-card, .user-vault-card { grid-template-columns: 1fr; align-items: start; }
  .user-connection-card .user-credential-icon, .user-vault-card .user-credential-icon { width: 38px; height: 38px; }
  .user-vault-meta { justify-items: start; }
  .user-table { overflow-x: auto; }
  .user-table-head, .user-table-row { min-width: min(100%, 620px); }
  .meeting-page { display: none; }
  .workspace.mobile-chat .meeting-page,
  .workspace.mobile-details .meeting-page { display: grid; }
  .meeting-page-scroll { padding: 16px 14px 20px; gap: 16px; }
  .meeting-workbench-kway { grid-template-rows: auto minmax(0, 1fr); }
  .meeting-workbench-topbar { padding: 12px 14px; flex-direction: column; align-items: stretch; }
  .meeting-workbench-search { width: 100%; }
  .meeting-portal-sync-chip { width: -moz-fit-content; width: fit-content; }
  .automation-meeting-workbench { display: block; height: 100dvh; overflow: auto; }
  .automation-meeting-sidebar { display: block; width: 100%; height: auto; padding: 14px 10px; border-right: 0; border-bottom: 1px solid var(--color-border); }
  .automation-meeting-main { display: block; overflow: visible; }
  .automation-meeting-topbar { height: auto; display: flex; flex-wrap: wrap; align-items: stretch; padding: 12px 14px; }
  .automation-meeting-topbar .topbar-title { flex-basis: 100%; }
  .automation-meeting-topbar .global-search { display: flex; order: 3; flex-basis: 100%; }
  .automation-meeting-topbar .topbar-actions { width: 100%; justify-content: space-between; }
  .automation-meeting-scroll { display: grid; grid-gap: 16px; gap: 16px; padding: 16px 14px 20px; overflow: visible; }
  .automation-meeting-scroll [data-testid="meeting-list-panel"] { width: 100%; }
  .meeting-flow-topbar { height: auto; padding: 14px; flex-wrap: wrap; align-items: flex-start; }
  .meeting-flow-title { width: 100%; }

  /* Meeting compose/edit → right slide-in panel (replaces full-page "base" look) */
  .workspace.meeting-mode .meeting-page-flow {
    display: grid;
    position: fixed;
    top: var(--mobile-header-h);
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    z-index: 60;
    grid-template-rows: minmax(0, 1fr) auto;
    background: #FFFFFF;
    animation: meetingComposeIn 260ms cubic-bezier(.25, .46, .45, .94);
  }
  @keyframes meetingComposeIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  /* Hide redundant internal topbar — app header already shows title + back */
  .meeting-page-flow .meeting-flow-topbar { display: none; }
  /* Clean white surface (no gray "base") with lighter card padding */
  .meeting-page-flow .meeting-page-scroll { background: #FFFFFF; padding: 14px 14px 18px; gap: 12px; }
  .meeting-page-flow .meeting-flow-card { padding: 16px; border-radius: 12px; gap: 14px; }
  /* Sticky action footer */
  .meeting-page-flow .meeting-compose-actions {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
  }
  .meeting-page-flow .meeting-compose-actions .button { flex: 1 1; height: 46px; justify-content: center; }
  .meeting-hub-header, .meeting-panel-header { flex-direction: column; align-items: stretch; }
  .meeting-hub-stats,
  .meeting-hub-grid,
  .meeting-flow-grid,
  .meeting-review-grid,
  .meeting-brief-grid,
  .meeting-flow-form-grid,
  .meeting-readonly-grid,
  .meeting-week-columns,
  .meeting-month-grid,
  .meeting-month-weekdays,
  .meeting-mini-week,
  .meeting-attachment-grid { grid-template-columns: 1fr; }
  .meeting-workbench-kway .meeting-month-grid,
  .meeting-workbench-kway .meeting-month-weekdays { grid-template-columns: repeat(7, minmax(92px, 1fr)); }
  .meeting-workbench-kway .meeting-month-cell { min-height: 92px; }
  .meeting-person-row { grid-template-columns: auto minmax(0, 1fr); }
  .meeting-person-row .select { grid-column: 1 / -1; }
  .meeting-inline-options { flex-direction: column; align-items: stretch; }
  .meeting-inline-row { flex-direction: column; align-items: stretch; }
  .meeting-workspace { padding: 16px 14px 20px; gap: 16px; }
  .meeting-hero { grid-template-columns: 1fr; padding: 18px; }
  .meeting-hero-actions { justify-content: stretch; }
  .meeting-hero-actions .button { flex: 1 1; }
  .meeting-stat-grid,
  .meeting-form-grid,
  .meeting-meta-grid,
  .meeting-record-grid,
  .meeting-card-grid { grid-template-columns: 1fr; }
  .meeting-transcript-segment { grid-template-columns: 1fr; gap: 6px; }
  .meeting-participant-row { grid-template-columns: auto minmax(0, 1fr); }
  .meeting-participant-row .select { grid-column: 1 / -1; }
  .meeting-file-toolbar,
  .meeting-file-actions { flex-direction: column; }
  .meeting-record-grid > div,
  .meeting-record-grid > div:first-child,
  .meeting-record-grid > div:nth-child(4) { grid-column: 1; }
  .meeting-file-toolbar .button,
  .meeting-file-actions .button,
  .meeting-inline-row.meeting-file-inline-row .meeting-file-inline-actions .button,
  .button-file-trigger { width: 100%; justify-content: center; }
  .meeting-inline-row.meeting-file-inline-row .meeting-file-inline-actions { flex-direction: column; align-items: stretch; }
  .meeting-file-docx-preview { padding: 12px; }
  .docx-preview-page { min-height: 720px; padding: 28px 22px; }
  .docx-preview-fragment { font-size: 13px; }
  .docx-preview-fragment h1 { font-size: 22px; }
  .docx-preview-fragment h2 { font-size: 18px; }
  .docx-preview-table th,
  .docx-preview-table td { max-width: 180px; }
  .meeting-modal { width: 100%; }
  .meeting-form-actions { justify-content: stretch; }
  .meeting-form-actions .button { flex: 1 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Automation_Tools meeting port utility shim.
   AgentK frontend does not run Tailwind, so this scoped shim supports the
   utility classes used by src/features/meetings/automation. */
[class~="meeting-workbench"], [data-testid="meeting-workbench"] { box-sizing: border-box; }
[data-testid="meeting-workbench"] *, [data-testid="meeting-timeline-modal"] * { box-sizing: border-box; }
[class~="flex"]{display:flex;} [class~="inline-flex"]{display:inline-flex;} [class~="grid"]{display:grid;} [class~="block"]{display:block;} [class~="inline-block"]{display:inline-block;}
[class~="flex-1"]{flex:1 1;} [class~="flex-col"]{flex-direction:column;} [class~="flex-shrink-0"],[class~="shrink-0"]{flex-shrink:0;}
[class~="items-center"]{align-items:center;} [class~="items-end"]{align-items:flex-end;} [class~="items-stretch"]{align-items:stretch;} [class~="justify-between"]{justify-content:space-between;} [class~="justify-center"]{justify-content:center;}
[class~="grid-cols-7"]{grid-template-columns:repeat(7,minmax(0,1fr));}
[class~="fixed"]{position:fixed;} [class~="relative"]{position:relative;} [class~="absolute"]{position:absolute;} [class~="inset-0"]{inset:0;} [class~="top-0"]{top:0;} [class~="bottom-0"]{bottom:0;} [class~="left-3"]{left:.75rem;} [class~="top-1/2"]{top:50%;}
[class~="z-20"]{z-index:20;} [class~="z-50"]{z-index:50;} [class~="pointer-events-none"]{pointer-events:none;}
[class~="h-full"]{height:100%;} [class~="h-1.5"]{height:.375rem;} [class~="h-2"]{height:.5rem;} [class~="h-7"]{height:1.75rem;} [class~="h-9"]{height:2.25rem;} [class~="h-[88px]"]{height:88px;}
[class~="w-full"]{width:100%;} [class~="w-0.5"]{width:.125rem;} [class~="w-1.5"]{width:.375rem;} [class~="w-2"]{width:.5rem;} [class~="w-7"]{width:1.75rem;} [class~="w-9"]{width:2.25rem;} [class~="w-px"]{width:1px;} [class~="w-[280px]"]{width:280px;} [class~="w-[360px]"]{width:360px;} [class~="w-[480px]"]{width:480px;}
[class~="min-h-0"]{min-height:0;} [class~="min-w-0"]{min-width:0;} [class~="min-w-[120px]"]{min-width:120px;} [class~="min-w-[800px]"]{min-width:800px;} [class~="max-w-full"]{max-width:100%;} [class~="max-w-[1280px]"]{max-width:1280px;} [class~="max-h-[88vh]"]{max-height:88vh;}
[class~="overflow-hidden"]{overflow:hidden;} [class~="overflow-auto"]{overflow:auto;} [class~="overflow-y-auto"]{overflow-y:auto;}
[class~="gap-0.5"]{gap:.125rem;} [class~="gap-1"]{gap:.25rem;} [class~="gap-1.5"]{gap:.375rem;} [class~="gap-2"]{gap:.5rem;} [class~="gap-4"]{gap:1rem;} [class~="gap-5"]{gap:1.25rem;}
[class~="p-1.5"]{padding:.375rem;} [class~="p-3"]{padding:.75rem;} [class~="p-5"]{padding:1.25rem;} [class~="p-6"]{padding:1.5rem;}
[class~="px-1"]{padding-left:.25rem;padding-right:.25rem;} [class~="px-1.5"]{padding-left:.375rem;padding-right:.375rem;} [class~="px-2"]{padding-left:.5rem;padding-right:.5rem;} [class~="px-2.5"]{padding-left:.625rem;padding-right:.625rem;} [class~="px-3"]{padding-left:.75rem;padding-right:.75rem;} [class~="px-3.5"]{padding-left:.875rem;padding-right:.875rem;} [class~="px-6"]{padding-left:1.5rem;padding-right:1.5rem;}
[class~="py-0.5"]{padding-top:.125rem;padding-bottom:.125rem;} [class~="py-1"]{padding-top:.25rem;padding-bottom:.25rem;} [class~="py-1.5"]{padding-top:.375rem;padding-bottom:.375rem;} [class~="py-2"]{padding-top:.5rem;padding-bottom:.5rem;} [class~="py-3"]{padding-top:.75rem;padding-bottom:.75rem;} [class~="py-4"]{padding-top:1rem;padding-bottom:1rem;} [class~="py-6"]{padding-top:1.5rem;padding-bottom:1.5rem;}
[class~="pl-9"]{padding-left:2.25rem;} [class~="pr-3"]{padding-right:.75rem;}
[class~="mt-1"]{margin-top:.25rem;} [class~="mt-1.5"]{margin-top:.375rem;} [class~="mt-2"]{margin-top:.5rem;} [class~="mt-4"]{margin-top:1rem;} [class~="mt-auto"]{margin-top:auto;} [class~="mb-3"]{margin-bottom:.75rem;} [class~="mb-4"]{margin-bottom:1rem;}
[class~="space-y-2"] > :not([hidden]) ~ :not([hidden]){margin-top:.5rem;} [class~="space-y-3"] > :not([hidden]) ~ :not([hidden]){margin-top:.75rem;} [class~="space-y-4"] > :not([hidden]) ~ :not([hidden]){margin-top:1rem;}
[class~="rounded"]{border-radius:.25rem;} [class~="rounded-md"]{border-radius:.375rem;} [class~="rounded-lg"]{border-radius:.5rem;} [class~="rounded-xl"]{border-radius:.75rem;} [class~="rounded-2xl"]{border-radius:1rem;} [class~="rounded-full"]{border-radius:9999px;}
[class~="border"]{border:1px solid #E2E8F0;} [class~="border-b"]{border-bottom:1px solid #E2E8F0;} [class~="border-r"]{border-right:1px solid #E2E8F0;} [class~="border-dashed"]{border-style:dashed;}
[class~="border-[#0050A0]"]{border-color:#0050A0;} [class~="border-[#94A3B8]"]{border-color:#94A3B8;} [class~="border-[#E2E8F0]"]{border-color:#E2E8F0;} [class~="border-[#F1F5F9]"]{border-color:#F1F5F9;} [class~="border-[#FCD34D]"]{border-color:#FCD34D;}
[class~="bg-white"]{background-color:#fff;} [class~="bg-[#0050A0]"]{background-color:#0050A0;} [class~="bg-[#10B981]"]{background-color:#10B981;} [class~="bg-[#C8102E]"]{background-color:#C8102E;} [class~="bg-[#E2E8F0]"]{background-color:#E2E8F0;} [class~="bg-[#ECFDF5]"]{background-color:#ECFDF5;} [class~="bg-[#EFF6FF]"]{background-color:#EFF6FF;} [class~="bg-[#F1F5F9]"]{background-color:#F1F5F9;} [class~="bg-[#F59E0B]"]{background-color:#F59E0B;} [class~="bg-[#F8FAFC]"]{background-color:#F8FAFC;} [class~="bg-[#FBFCFE]"]{background-color:#FBFCFE;} [class~="bg-[#FFFBEB]"]{background-color:#FFFBEB;} [class~="bg-black/40"]{background-color:rgba(0,0,0,.4);}
[class~="text-white"]{color:#fff;} [class~="text-[#0050A0]"]{color:#0050A0;} [class~="text-[#065F46]"]{color:#065F46;} [class~="text-[#1A1A2E]"]{color:#1A1A2E;} [class~="text-[#475569]"]{color:#475569;} [class~="text-[#64748B]"]{color:#64748B;} [class~="text-[#92400E]"]{color:#92400E;} [class~="text-[#94A3B8]"]{color:#94A3B8;} [class~="text-[#CBD5E1]"]{color:#CBD5E1;}
[class~="text-[10px]"]{font-size:10px;} [class~="text-[11px]"]{font-size:11px;} [class~="text-[12px]"]{font-size:12px;} [class~="text-[13px]"]{font-size:13px;} [class~="text-[14px]"]{font-size:14px;} [class~="text-[16px]"]{font-size:16px;} [class~="text-[18px]"]{font-size:18px;} [class~="text-[22px]"]{font-size:22px;}
[class~="font-medium"]{font-weight:500;} [class~="font-semibold"]{font-weight:600;} [class~="leading-5"]{line-height:1.25rem;} [class~="leading-none"]{line-height:1;} [class~="tracking-[-0.01em]"]{letter-spacing:-.01em;} [class~="tracking-[0.06em]"]{letter-spacing:.06em;} [class~="uppercase"]{text-transform:uppercase;}
[class~="text-left"]{text-align:left;} [class~="text-center"]{text-align:center;} [class~="text-right"]{text-align:right;} [class~="whitespace-nowrap"]{white-space:nowrap;}
[class~="truncate"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;} [class~="line-clamp-2"]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
[class~="shadow-sm"]{box-shadow:0 1px 2px rgba(15,23,42,.08);} [class~="shadow-2xl"]{box-shadow:0 25px 50px -12px rgba(15,23,42,.25);} [class~="transition"]{transition:all .15s ease;} [class~="opacity-60"]{opacity:.6;}
[class~="-translate-x-1/2"]{transform:translateX(-50%);} [class~="-translate-y-1/2"]{transform:translateY(-50%);} [class~="translate-y-1/2"]{transform:translateY(50%);}
[class~="animate-spin"]{animation:automation-spin 1s linear infinite;} @keyframes automation-spin{to{transform:rotate(360deg)}}
[class~="hover:bg-[#F1F5F9]"]:hover{background-color:#F1F5F9;} [class~="hover:bg-[#F8FAFC]"]:hover{background-color:#F8FAFC;} [class~="hover:bg-white"]:hover{background-color:#fff;} [class~="hover:border-[#CBD5E1]"]:hover{border-color:#CBD5E1;} [class~="hover:text-[#0050A0]"]:hover{color:#0050A0;} [class~="hover:text-[#1A1A2E]"]:hover{color:#1A1A2E;} [class~="hover:shadow-sm"]:hover{box-shadow:0 1px 2px rgba(15,23,42,.08);} [class~="focus:border-[#0050A0]"]:focus{border-color:#0050A0;} [class~="focus:outline-none"]:focus{outline:0;} [class~="placeholder:text-[#94A3B8]"]::placeholder{color:#94A3B8;}
/* Automation meeting workbench mounts inside AgentK main-shell and spans both
   rows so its project-style sidebar and topbar align with the workspace shell. */
.workspace.meeting-mode .main-shell:has([data-testid="meeting-workbench"]) { grid-column: 2 / 4; }
.workspace.meeting-mode .main-shell:has([data-testid="meeting-workbench"]) > [data-testid="meeting-workbench"] { grid-column: 1; grid-row: 1 / 3; height: 100%; min-height: 0; }

/* M2-MEETING09 Automation_Tools create/detail/record flow shim. */
.ak-meeting-flow { grid-column: 1; grid-row: 2; min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); background: #F8FAFC; color: #1A1A2E; overflow: hidden; }
.ak-flow-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid #E2E8F0; background: white; padding: 16px 24px; }
.ak-flow-title-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ak-flow-title-row h1 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.ak-flow-title-row p, .ak-muted { margin: 4px 0 0; color: #64748B; font-size: 12px; }
.ak-icon-button { width: 34px; height: 34px; border: 1px solid #E2E8F0; border-radius: 10px; background: white; color: #475569; font-weight: 800; }
.ak-flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ak-primary-button, .ak-secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 8px 13px; font-size: 13px; font-weight: 700; border: 1px solid #E2E8F0; background: white; color: #1A1A2E; text-decoration: none; }
.ak-primary-button { background: #1A1A2E; border-color: #1A1A2E; color: white; }
.ak-primary-button.disabled { pointer-events: none; opacity: .62; }
.ak-primary-button input { display: none; }
.ak-flow-scroll { min-height: 0; overflow: auto; padding: 24px; }
.ak-create-grid, .ak-detail-grid, .ak-record-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-gap: 20px; gap: 20px; align-items: start; }
.ak-flow-main, .ak-flow-side { display: grid; grid-gap: 20px; gap: 20px; align-content: start; min-width: 0; }
.ak-flow-card { border: 1px solid #E2E8F0; border-radius: 18px; background: white; padding: 20px; box-shadow: 0 8px 24px rgb(15 23 42 / 4%); min-width: 0; }
.ak-card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.ak-card-heading h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.ak-card-heading p { margin: 4px 0 0; color: #94A3B8; font-size: 12px; }
.ak-card-heading > span { border: 1px solid #E2E8F0; border-radius: 8px; color: #64748B; background: #F8FAFC; padding: 3px 8px; font-size: 11px; white-space: nowrap; }
.ak-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.ak-span-2, .ak-readonly-grid .wide { grid-column: 1 / -1; }
.ak-field { display: grid; grid-gap: 6px; gap: 6px; color: #475569; font-size: 12px; font-weight: 700; }
.ak-field input, .ak-field select, .ak-field textarea, .ak-inline-options select { width: 100%; border: 1px solid #E2E8F0; border-radius: 12px; background: white; color: #1A1A2E; padding: 9px 11px; }
.ak-field textarea { min-height: 76px; resize: vertical; }
.ak-inline-options { display: grid; grid-template-columns: auto 1fr 1fr; grid-gap: 10px; gap: 10px; align-items: center; }
.ak-inline-options label { display: flex; align-items: center; gap: 6px; border: 1px solid #E2E8F0; border-radius: 12px; padding: 9px 11px; color: #475569; }
.ak-segmented { display: inline-flex; gap: 6px; margin-bottom: 8px; padding: 4px; border-radius: 12px; background: #F1F5F9; }
.ak-segmented button { border: 0; border-radius: 9px; background: transparent; padding: 7px 12px; color: #64748B; font-weight: 700; }
.ak-segmented button.active { background: white; color: #0050A0; box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.ak-field small { font-weight: 600; font-size: 11px; }
.ak-hint-ok { color: #047857; }
.ak-hint-warn { color: #B45309; }
.ak-attachment-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-gap: 14px; gap: 14px; }
.ak-upload-zone { display: grid; place-items: center; grid-gap: 6px; gap: 6px; min-height: 140px; border: 2px dashed #CBD5E1; border-radius: 16px; background: #F8FAFC; font-weight: 800; color: #1A1A2E; text-align: center; cursor: pointer; }
.ak-upload-zone input { display: none; }
.ak-upload-zone span { display: block; color: #94A3B8; font-size: 12px; font-weight: 600; }
.ak-mini-week { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 8px; gap: 8px; }
.ak-mini-week div { border: 1px solid #E2E8F0; border-radius: 12px; padding: 9px 4px; text-align: center; display: grid; grid-gap: 3px; gap: 3px; color: #64748B; }
.ak-mini-week .filled { border-color: #0050A0; background: #EFF6FF; color: #0050A0; }
.ak-mini-week strong { font-size: 18px; color: #1A1A2E; }
.ak-mini-week small, .ak-mini-week span { font-size: 11px; }
.ak-schedule-list, .ak-slot-list, .ak-inline-list { display: grid; grid-gap: 10px; gap: 10px; margin-top: 12px; }
.ak-schedule-list div, .ak-inline-row { border: 1px solid #E2E8F0; border-radius: 12px; background: #F8FAFC; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.ak-inline-row strong, .ak-inline-row span { overflow-wrap: anywhere; }
.ak-inline-row span, .ak-schedule-list span, .ak-schedule-list em { color: #64748B; font-size: 12px; font-style: normal; }
.ak-slot-list button { border: 1px solid #E2E8F0; border-radius: 12px; background: white; padding: 11px 12px; display: grid; grid-template-columns: 24px 1fr auto; grid-gap: 8px; gap: 8px; align-items: center; text-align: left; color: #1A1A2E; }
.ak-slot-list button.applied { border-color: #0050A0; background: #EFF6FF; }
.ak-alert-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ak-alert-row span { border: 1px solid #FCD34D; background: #FFFBEB; color: #92400E; border-radius: 8px; padding: 7px 10px; font-size: 12px; }
.ak-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #E2E8F0; margin-bottom: 18px; }
.ak-tabs button { border: 0; border-radius: 11px; background: transparent; color: #64748B; padding: 9px 18px; font-weight: 800; }
.ak-tabs button.active { background: white; color: #1A1A2E; }
.ak-readonly-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.ak-readonly-grid div, .ak-summary-strip, .ak-brief-section { border: 1px solid #E2E8F0; border-radius: 14px; background: #F8FAFC; padding: 13px; display: grid; grid-gap: 6px; gap: 6px; }
.ak-readonly-grid strong, .ak-brief-section strong { color: #64748B; font-size: 12px; }
.ak-summary-strip p, .ak-brief-section p { margin: 0; color: #475569; }
.ak-recording-console { border: 1px solid #FCA5A5; background: #FEE2E2; color: #991B1B; border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ak-recording-console div { display: grid; grid-gap: 4px; gap: 4px; }
.ak-file-preview { margin: 12px 0 0; border: 1px solid #E2E8F0; border-radius: 12px; background: #0F172A; color: #E2E8F0; padding: 12px; white-space: pre-wrap; }
.ak-brief-section { margin-top: 12px; }
.ak-brief-section ul { margin: 0; padding-left: 18px; color: #475569; }
.ak-timeline { display: grid; grid-gap: 12px; gap: 12px; }
.ak-timeline div { display: grid; grid-template-columns: 10px 1fr; grid-gap: 10px; gap: 10px; color: #475569; font-size: 13px; }
.ak-timeline span { width: 10px; height: 10px; border-radius: 999px; background: #0050A0; margin-top: 5px; }
@media (max-width: 1100px) { .ak-create-grid, .ak-detail-grid, .ak-record-grid { grid-template-columns: 1fr; } .ak-flow-side { grid-row: auto; } }

@media (max-width: 1280px) {
  .todo-sidebar { padding: 16px 14px 22px; }
  .todo-main-scroll { padding: 24px 28px 40px; }
  .todo-overview-grid, .todo-bottom-grid, .todo-calendar-layout, .todo-files-body { grid-template-columns: 1fr; }
  .todo-stat-grid, .todo-kanban-metrics, .todo-calendar-metrics, .todo-file-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-kanban-board { overflow-x: auto; }
}

@media (max-width: 767px) {
  .todo-sidebar { height: calc(100dvh - 56px); padding: 14px 10px; }
  .todo-workbench { height: calc(100dvh - var(--mobile-header-h)); min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
  .todo-topbar { min-height: 92px; grid-template-columns: 1fr; gap: 10px; padding: 12px 14px; }
  .todo-topbar-actions { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .todo-toolbar-chip { display: none; }
  .todo-main-scroll { padding: 14px 12px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .todo-create-card { grid-template-columns: 1fr; padding: 14px; }
  .todo-create-card-title { display: grid; }
  .todo-panel-tabs, .todo-file-filterbar, .todo-files-actionbar { overflow-x: auto; }
  .todo-panel-tabs { grid-template-columns: repeat(4, 92px); }
  .todo-kanban-metrics, .todo-calendar-metrics, .todo-file-metrics, .todo-files-split { grid-template-columns: 1fr; }
  .todo-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Compact 2-col stat grid for todo overview */
  .todo-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .todo-overview .todo-stat-card { min-height: 0; padding: 12px 14px; gap: 3px; }
  .todo-overview .todo-stat-card strong { font-size: 22px; }
  .todo-overview .todo-stat-card span { font-size: 11px; }
  .todo-overview .todo-stat-card em { font-size: 11px; }
  /* Hide desktop-heavy overview cards on mobile */
  .todo-hide-mobile { display: none !important; }
  .todo-list-panel, .todo-week-grid, .todo-file-library { overflow-x: auto; }
  .todo-list-header, .todo-task-row { min-width: 900px; }
  .todo-kanban-board { grid-template-columns: repeat(4, 280px); }
  .todo-week-grid { grid-template-columns: repeat(7, 150px); }
  .todo-files-search { width: min(100%, 340px); flex: 1 1 220px; }
  .todo-files-actionbar { flex-wrap: wrap; align-items: stretch; }
  .todo-files-actionbar .todo-primary-button, .todo-files-actionbar .todo-secondary-button { flex: 1 1 auto; }
  .todo-file-table-head, .todo-file-row { min-width: 840px; }
  .todo-upload-card { grid-template-columns: 40px minmax(0, 1fr); }
  .todo-upload-card button, .todo-upload-card button + button { grid-column: 1 / -1; width: 100%; }
}

/* ─── Mobile Header ─────────────────────────────────────────────────────── */

:root {
  --mobile-header-h: 56px;
}

.mobile-header { display: none; }

@media (max-width: 767px) {
  .mobile-header {
    display: flex;
    align-items: center;
    height: var(--mobile-header-h);
    padding: 0 4px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
  }
  /* Left slot: fixed 44px */
  .mobile-header > *:first-child { flex: 0 0 44px; }
  /* Title: absolutely centered, pointer-events off so buttons underneath still work */
  .mobile-header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;
    font-weight: 600;
    color: #0F172A;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 180px);
    pointer-events: none;
    letter-spacing: -0.01em;
  }
  /* Right slot: pushed to far right */
  .mobile-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  .mh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #334155;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 100ms ease;
  }
  .mh-btn:disabled { opacity: 0.4; }
  .mh-btn:active { background: #F1F5F9; }

  /* Hide desktop section headers — replaced by .mobile-header */
  .topbar,
  .chat-header,
  .user-topbar,
  .meeting-workbench-topbar,
  .automation-meeting-topbar { display: none !important; }

  /* AI conversation drawer */
  .mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 149;
    background: rgba(15, 23, 42, 0.35);
    border: 0;
    cursor: pointer;
  }
  .mobile-ai-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    z-index: 150;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 28px rgb(15 23 42 / 14%);
    animation: mobileDrawerIn 240ms cubic-bezier(.25,.46,.45,.94);
  }
  @keyframes mobileDrawerIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }
  .mobile-ai-drawer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(env(safe-area-inset-top) + 14px) 12px 12px;
    border-bottom: 1px solid #E2E8F0;
    background: #F2F4F7;
  }
  .mobile-ai-drawer-search-input {
    flex: 1 1;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #0F172A;
    outline: none;
    min-width: 0;
  }
  .mobile-ai-drawer-search-input::placeholder { color: #94A3B8; }
  .mobile-ai-drawer-list {
    flex: 1 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-ai-drawer-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid #F1F5F9;
    background: transparent;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .mobile-ai-drawer-item.active {
    background: rgba(18, 115, 127, 0.1);
    color: #12737F;
    font-weight: 600;
  }
  .mobile-ai-drawer-item:active { background: #F2F4F7; }
  .mobile-ai-drawer-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-ai-drawer-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #E2E8F0;
  }
  .mobile-ai-drawer-new {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #12737F;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-ai-drawer-new:active { background: rgba(18, 115, 127, 0.08); }

  /* Shared panel backdrop */
  .mobile-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(15, 23, 42, 0.35);
    border: 0;
    cursor: pointer;
    -webkit-backdrop-filter: blur(1px);
            backdrop-filter: blur(1px);
  }

  /* Shared bottom sheet */
  .mobile-sheet {
    position: fixed;
    bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    z-index: 200;
    background: #FFFFFF;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 28px rgb(15 23 42 / 12%);
    animation: mobileSheetUp 240ms cubic-bezier(.25,.46,.45,.94);
  }
  @keyframes mobileSheetUp {
    from { transform: translateY(100%); opacity: 0.9; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .mobile-sheet-handle {
    width: 36px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 2px;
    margin: 12px auto 0;
  }

  /* Search sheet */
  .mobile-search-sheet {
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  }
  .mobile-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 8px;
  }
  .mobile-search-field {
    flex: 1 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F2F4F7;
    border-radius: 12px;
    padding: 0 10px;
    height: 44px;
  }
  .mobile-search-input {
    flex: 1 1;
    border: 0;
    font-size: 16px;
    color: #0F172A;
    background: transparent;
    outline: none;
    min-width: 0;
  }
  .mobile-search-input::placeholder { color: #94A3B8; }
  .mobile-search-cancel {
    border: 0;
    background: transparent;
    color: #12737F;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0 8px 4px;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Todo filter sheet */
  .mobile-filter-sheet {
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  }
  .mobile-filter-sheet .mobile-sheet-handle {
    margin-bottom: 16px;
  }
  .mobile-filter-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .mobile-filter-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    gap: 8px;
  }
  .mobile-filter-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid #E2E8F0;
    background: transparent;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 100ms, border-color 100ms, color 100ms;
  }
  .mobile-filter-chip.active {
    background: #12737F;
    border-color: #12737F;
    color: #FFFFFF;
  }
}

/* ─── Mobile Tab Bar ─────────────────────────────────────────────────────── */

:root {
  --mobile-tab-h: 56px;
}

/* Hidden on desktop — only visible on mobile */
.mobile-tab-bar { display: none; }

@media (max-width: 767px) {
  /* Tab bar itself */
  .mobile-tab-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110;
    height: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -1px 0 #E9EEF4, 0 -6px 18px rgb(15 23 42 / 6%);
    touch-action: manipulation;
  }

  .mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #94A3B8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 2px;
    min-height: var(--mobile-tab-h);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 120ms ease;
  }

  .mobile-tab.active {
    color: #12737F;
  }

  .mobile-tab:active {
    opacity: 0.7;
  }

  /* ─── Content area adjustments for tab bar overlay ──────────────────── */

  /* Chat sidebar + chat panel: shrink by header + tab bar */
  .sidebar,
  .chat {
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-tab-h) - env(safe-area-inset-bottom));
  }

  /* The timeline scroll area inside chat: pad bottom so last message stays visible */
  .timeline {
    padding-bottom: calc(18px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }

  /* Composer sits above tab bar — add safe area breathing room */
  .composer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* Todo sidebar height */
  .todo-sidebar {
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-tab-h) - env(safe-area-inset-bottom)) !important;
  }

  /* Todo main scroll area — add bottom padding */
  .todo-main-scroll {
    padding-bottom: calc(22px + var(--mobile-tab-h) + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Todo workbench full-height adjustment */
  .todo-workbench {
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-tab-h) - env(safe-area-inset-bottom));
    min-height: 0;
  }

  /* Todo overview: tighten section gaps on mobile */
  .todo-overview { gap: 14px; }
  .todo-overview-grid, .todo-bottom-grid { gap: 12px; }

  /* Today's tasks section (mobile only) */
  .todo-mobile-today {
    display: block;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
  }
  .todo-mobile-today-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px 10px;
  }
  .todo-mobile-today-head strong { font-size: 15px; color: #0F172A; }
  .todo-mobile-today-head span { font-size: 12px; font-weight: 700; color: #64748B; }
  .todo-mobile-today-list { display: flex; flex-direction: column; }
  .todo-mobile-today-empty {
    padding: 22px 16px 26px;
    text-align: center;
    color: #64748B;
    font-size: 13px;
    font-weight: 600;
  }
  .todo-mobile-today-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #F1F5F9;
  }
  .todo-mobile-today-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .todo-mobile-today-check span {
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 999px;
    transition: border-color 120ms, background 120ms;
  }
  .todo-mobile-today-row.overdue .todo-mobile-today-check span { border-color: #F87171; }
  .todo-mobile-today-check:active span { background: #12737F; border-color: #12737F; }
  .todo-mobile-today-copy { flex: 1 1; min-width: 0; display: grid; grid-gap: 3px; gap: 3px; }
  .todo-mobile-today-copy strong {
    font-size: 14px;
    color: #0F172A;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .todo-mobile-today-copy span {
    font-size: 12px;
    color: #64748B;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .todo-mobile-today-due {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
  }
  .todo-mobile-today-due.overdue { color: #DC2626; }

  /* Mobile todo menu drawer (left-slide, mirrors AI drawer) */
  .mobile-todo-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    z-index: 150;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 28px rgb(15 23 42 / 14%);
    animation: mobileDrawerIn 240ms cubic-bezier(.25,.46,.45,.94);
  }
  .mobile-todo-drawer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(env(safe-area-inset-top) + 14px) 12px 12px;
    border-bottom: 1px solid #E2E8F0;
    background: #F2F4F7;
  }
  .mobile-todo-drawer-search-input {
    flex: 1 1;
    border: 0;
    background: transparent;
    font-size: 15px;
    color: #0F172A;
    outline: none;
    min-width: 0;
  }
  .mobile-todo-drawer-search-input::placeholder { color: #94A3B8; }
  .mobile-todo-drawer-body {
    flex: 1 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
  }
  .mobile-todo-drawer-label {
    margin: 14px 6px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #94A3B8;
  }
  .mobile-todo-drawer-body > .mobile-todo-drawer-label:first-child { margin-top: 2px; }
  .mobile-todo-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
  .mobile-todo-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-todo-drawer-item-icon { display: flex; color: #64748B; flex-shrink: 0; }
  .mobile-todo-drawer-item-label { flex: 1 1; text-align: left; }
  .mobile-todo-drawer-item-count {
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    background: #F1F5F9;
    border-radius: 999px;
    padding: 2px 7px;
  }
  .mobile-todo-drawer-item:active { background: #F2F4F7; }
  .mobile-todo-drawer-item.active { background: rgba(18, 115, 127, 0.1); color: #12737F; font-weight: 600; }
  .mobile-todo-drawer-item.active .mobile-todo-drawer-item-icon { color: #12737F; }
  .mobile-todo-drawer-item.active .mobile-todo-drawer-item-count { background: rgba(18, 115, 127, 0.16); color: #12737F; }
  .mobile-todo-drawer-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px; }
  .mobile-todo-drawer-chip {
    padding: 8px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-todo-drawer-chip:active { background: #F2F4F7; }
  .mobile-todo-drawer-chip.active { border-color: #12737F; background: rgba(18, 115, 127, 0.1); color: #12737F; }

  /* User center menu drawer (left-slide) */
  .mobile-user-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    z-index: 150;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 28px rgb(15 23 42 / 14%);
    animation: mobileDrawerIn 240ms cubic-bezier(.25, .46, .45, .94);
  }
  .mobile-user-drawer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top) + 16px) 16px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F2F4F7;
  }
  .mobile-user-drawer-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #273449;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
  }
  .mobile-user-drawer-identity { min-width: 0; display: grid; grid-gap: 2px; gap: 2px; }
  .mobile-user-drawer-identity strong {
    font-size: 15px;
    color: #0F172A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-user-drawer-identity span { font-size: 12px; font-weight: 600; color: #12737F; }
  .mobile-user-drawer-identity em {
    font-size: 11px;
    font-style: normal;
    color: #94A3B8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-user-drawer-body {
    flex: 1 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 12px;
  }
  .mobile-user-drawer-label {
    margin: 14px 6px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #94A3B8;
  }
  .mobile-user-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
  .mobile-user-drawer-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 11px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-user-drawer-item:active { background: #F2F4F7; }
  .mobile-user-drawer-item.active { background: rgba(18, 115, 127, 0.1); color: #12737F; font-weight: 600; }
  .mobile-user-drawer-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #E2E8F0;
  }
  .mobile-user-drawer-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #DC2626;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-user-drawer-logout:active { background: rgba(220, 38, 38, 0.06); }

  /* User center height */
  .user-center {
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-tab-h) - env(safe-area-inset-bottom));
  }

  .user-center-scroll {
    padding-bottom: calc(14px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  /* Workspace design page scroll */
  .user-design-body {
    padding-bottom: calc(32px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }

  /* Meeting workbench: calendar-first layout */
  .automation-meeting-workbench {
    height: calc(100dvh - var(--mobile-header-h) - var(--mobile-tab-h) - env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  /* Hide sidebar — accessible via header button */
  .automation-meeting-sidebar { display: none !important; }

  /* Restore month navigation (hidden by mobile-header block) as sticky bar */
  .automation-meeting-topbar {
    display: flex !important;
    flex-wrap: nowrap;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 10px;
    min-height: 48px;
    height: auto;
    gap: 6px;
  }

  /* Hide duplicate search in topbar — mobile header already has one */
  .automation-meeting-topbar .calendar-icon-btn,
  .automation-meeting-topbar .calendar-search-open { display: none !important; }
  .automation-meeting-topbar .topbar-actions { width: auto; justify-content: flex-end; }

  /* Calendar section fills width */
  .automation-meeting-scroll {
    display: block;
    padding: 0 0 calc(20px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }
  .calendar-main-section { padding: 0 1%; }

  /* Calendar hero: remove card chrome; height spans 12%–90% of screen */
  [data-testid="meeting-calendar-grid"] {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    padding: 10px 0 8px !important;
    box-shadow: none !important;
    height: calc(78dvh - 48px);
    display: flex !important;
    flex-direction: column !important;
  }
  [data-testid="meeting-calendar-grid"] .calendar-content {
    flex: 1 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  [data-testid="meeting-calendar-grid"] .calendar-weekdays { flex: 0 0 auto; padding: 0 2px; }
  [data-testid="meeting-calendar-grid"] .calendar-grid {
    flex: 1 1;
    min-height: 0;
    grid-auto-rows: 1fr;
    gap: 2px;
  }

  /* Hide main-area meeting list panel; shown in day panel instead */
  .automation-meeting-scroll [data-testid="meeting-list-panel"] {
    display: none !important;
  }

  /* Mobile meeting day panel (slides from right) */
  .mobile-meeting-day-backdrop {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(15,23,42,0.35);
    border: 0;
    cursor: pointer;
    -webkit-backdrop-filter: blur(1px);
            backdrop-filter: blur(1px);
  }

  .mobile-meeting-day-panel {
    position: fixed;
    top: var(--mobile-header-h);
    right: 0;
    bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
    width: min(320px, 100vw);
    z-index: 200;
    background: #FFFFFF;
    border-left: 1px solid #E2E8F0;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 0 28px rgb(15 23 42 / 12%);
    animation: mobileDayPanelIn 240ms cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  @keyframes mobileDayPanelIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .mobile-meeting-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
    flex-shrink: 0;
  }

  .mobile-meeting-day-header-title {
    flex: 1 1;
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    min-width: 0;
  }

  .mobile-meeting-day-header-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #475569;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-meeting-day-body {
    flex: 1 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-meeting-day-body [data-testid="meeting-list-panel"] {
    display: block !important;
    width: 100% !important;
  }

  /* Meeting workbench normal mode */
  .meeting-workspace {
    padding-bottom: calc(28px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }

  /* Details panel: start below mobile header, end above tab bar */
  .details {
    top: var(--mobile-header-h);
    bottom: calc(var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }

  /* Modals: allow enough room at bottom */
  .modal-backdrop {
    padding-bottom: calc(10px + var(--mobile-tab-h) + env(safe-area-inset-bottom));
  }

  /* touch-action on all interactive elements to remove 300ms tap delay */
  button, a, input, select, textarea {
    touch-action: manipulation;
  }
}

