:root {
	--navy: #12233f;
	--blue: #2f6fed;
	--blue-soft: #eaf1ff;
	--ink: #17243a;
	--muted: #718096;
	--line: #e7ebf2;
	--surface: #ffffff;
	--canvas: #f5f7fb;
	--success: #38a169;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { overflow-x: hidden; color: var(--ink); background: var(--canvas); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }

.shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; flex: 0 0 250px; flex-direction: column; padding: 28px 18px 20px; color: #d9e3f4; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #fff; border-radius: 11px; background: var(--blue); font-size: 20px; font-weight: 700; }
.brand strong { display: block; color: #fff; letter-spacing: .08em; font-size: 16px; }
.brand span { display: block; margin-top: 1px; color: #8fa4c6; font-size: 11px; }
.primary-nav { margin-top: 60px; }
.nav-label { margin: 0 12px 11px; color: #7187aa; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 13px; margin: 4px 0; padding: 12px; border-radius: 9px; color: #adbeda; transition: background .15s, color .15s; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(91, 137, 226, .2); }
.nav-item.active { box-shadow: inset 3px 0 0 #78a5ff; }
.nav-icon { width: 19px; color: #8eabe0; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: #9ec0ff; }
.sidebar-footer { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255,255,255,.09); }
.connection-status { color: #9eb3d4; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--success); vertical-align: 1px; }
.signout-link { display: inline-block; margin-top: 13px; color: #c0cde2; font-size: 12px; }
.signout-link:hover { color: #fff; }

.main-panel { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 0 46px; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb span { margin: 0 8px; color: #bec7d5; }
.profile { display: flex; align-items: center; gap: 10px; }
.avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #315ca9; border-radius: 50%; background: var(--blue-soft); font-size: 13px; font-weight: 700; }
.profile-copy strong, .profile-copy span { display: block; }
.profile-copy strong { color: var(--ink); font-size: 12px; }
.profile-copy span { color: var(--muted); font-size: 11px; }
.content { width: 100%; max-width: none; margin: 0; padding: 48px 46px 70px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.search-form { display: flex; }
.search-form input { width: 170px; padding: 8px 10px; border: 1px solid #dce3ee; border-right: 0; border-radius: 5px 0 0 5px; font: inherit; font-size: 11px; }
.search-form select { padding: 8px 7px; color: #52627a; border: 1px solid #dce3ee; background: #fff; font-size: 11px; }
.search-form button { cursor: pointer; }
.unread-filter { display: flex; align-items: center; gap: 4px; padding: 0 8px; color: #52627a; border: 1px solid #dce3ee; border-left: 0; background: #fff; font-size: 10px; white-space: nowrap; }
.pagination-row { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 4px; color: var(--muted); font-size: 11px; }
.pagination-row a { color: #315ca9; font-weight: 600; }
.folder-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0 12px; }
.folder-nav strong { margin-right: 7px; color: #52627a; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.folder-nav a { padding: 7px 10px; color: #617087; border: 1px solid transparent; border-radius: 5px; font-size: 11px; }
.folder-nav a:hover, .folder-nav a.active { color: #315ca9; border-color: #cbdaf3; background: #f2f6fd; font-weight: 600; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; color: var(--ink); font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.page-heading p { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.phase-pill { padding: 8px 13px; color: #3d6d58; border: 1px solid #d5e9dd; border-radius: 20px; background: #f2fbf5; font-size: 11px; white-space: nowrap; }
.empty-state-card { margin-top: 38px; padding: 62px 35px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: center; box-shadow: 0 8px 22px rgba(31, 51, 82, .035); }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin: 0 auto 20px; color: var(--blue); border-radius: 15px; background: var(--blue-soft); font-size: 24px; }
.empty-state-card h2 { margin-bottom: 9px; font-size: 19px; }
.empty-state-card p { max-width: 510px; margin: 0 auto 22px; color: var(--muted); }
.empty-state-meta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; color: #4f6c61; border-radius: 6px; background: #f4faf6; font-size: 12px; }
.meta-check { color: var(--success); font-weight: 700; }
.message { margin-bottom: 22px; padding: 11px 14px; color: #855c18; border: 1px solid #f2dfb0; border-radius: 7px; background: #fff9e9; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding: 13px 16px; color: #4b5d7a; border: 1px solid #d7e4fb; border-radius: 9px; background: #f1f6ff; }
.demo-banner strong, .demo-banner span { display: block; }
.demo-banner strong { color: #284d8f; font-size: 12px; }
.demo-banner span { margin-top: 2px; font-size: 11px; }
.demo-exit-button { padding: 8px 12px; color: #2756a1; border: 1px solid #bfd3f6; border-radius: 6px; background: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; }
.demo-exit-button:hover { background: #eaf1ff; }
.demo-dot { background: #e9a227; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 34px; }
.summary-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 5px 17px rgba(31, 51, 82, .025); }
.summary-card span, .summary-card small { display: block; color: var(--muted); }
.summary-card span { font-size: 11px; }
.summary-card strong { display: block; margin: 7px 0 2px; color: var(--ink); font-size: 26px; line-height: 1; }
.summary-card small { font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 17px; margin-top: 17px; }
.data-card { padding: 24px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 17px rgba(31, 51, 82, .025); }
.data-card + .data-card { margin-top: 17px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.card-heading h2 { margin: 4px 0 0; font-size: 17px; }
.card-heading a { color: var(--blue); font-size: 11px; font-weight: 600; }
.email-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #f0f2f6; }
.email-row:first-of-type { border-top: 0; }
.mini-avatar { display: flex; flex: 0 0 31px; align-items: center; justify-content: center; width: 31px; height: 31px; color: #456da8; border-radius: 50%; background: #edf3ff; font-size: 10px; font-weight: 700; }
.row-main { flex: 1; min-width: 0; }
.row-main strong, .row-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main strong { color: #263752; font-size: 12px; }
.row-main span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.link-label { padding: 4px 7px; color: #536b96; border-radius: 4px; background: #f1f4f9; font-size: 10px; white-space: nowrap; }
.progress-row { padding: 12px 0; border-top: 1px solid #f0f2f6; }
.progress-row:first-of-type { border-top: 0; }
.progress-label, .project-card-top, .project-details { display: flex; justify-content: space-between; gap: 10px; }
.progress-label strong { font-size: 12px; }
.progress-label span, .progress-meta { color: var(--muted); font-size: 10px; }
.progress-track { height: 6px; margin: 8px 0 5px; overflow: hidden; border-radius: 5px; background: #edf0f5; }
.progress-track i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
.progress-meta { display: block; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 0 12px 11px; color: #94a0b2; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: 14px 12px; border-top: 1px solid #f0f2f6; color: #5f6d82; font-size: 11px; white-space: nowrap; }
.data-table td:first-child, .data-table th:first-child { padding-left: 0; }
.data-table td strong { color: #263752; font-size: 12px; }
.table-subline { display: block; margin-top: 3px; color: #9ba7b8; font-size: 10px; }
.status-badge { display: inline-block; padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-in_progress { color: #236b51; background: #e8f7ef; }
.status-with_support { color: #966516; background: #fff5dc; }
.status-completed { color: #536b96; background: #edf2fb; }
.status-todo { color: #647185; background: #f0f2f5; }
.status-cancelled { color: #687588; background: #e8ebef; }
.toolbar-pill { padding: 8px 12px; color: #65748d; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 11px; white-space: nowrap; }
.inbox-card { margin-top: 34px; padding: 0 24px; }
.inbox-toolbar { display: flex; justify-content: space-between; gap: 15px; padding: 19px 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 11px; }
.inbox-toolbar strong { color: var(--ink); font-size: 13px; }
.inbox-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.inbox-legend { display: flex; align-items: center; gap: 5px; color: #718099; font-size: 10px; }
.inbox-legend i { display: inline-block; width: 9px; height: 9px; margin-left: 5px; border: 1px solid #dfe6f0; border-radius: 2px; }
.inbox-legend i:first-child { margin-left: 0; }
.to-me-swatch { border-color: #b9d1f7 !important; background: #eaf3ff; }
.other-swatch { background: #fff; }
.inline-form { margin: 0; }
.inline-form input[type="submit"] { padding: 6px 9px; color: #315ca9; border: 1px solid #cbdaf3; border-radius: 5px; background: #fff; cursor: pointer; font-size: 10px; font-weight: 600; }
.inbox-row { display: flex; align-items: center; gap: 14px; min-width: 700px; padding: 17px 0; border-bottom: 1px solid #f0f2f6; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-compact .inbox-row { gap: 10px; min-width: 0; margin: 0 -10px; padding: 8px 10px; border-bottom: 1px solid #eef2f7; border-left: 3px solid transparent; border-radius: 4px; }
.inbox-compact .inbox-row.to-me { border-left-color: #4c83d8; background: #eaf3ff; }
.inbox-compact .inbox-row.other-recipient { background: #fff; }
.inbox-compact .inbox-row.action-required { box-shadow: inset 4px 0 0 #e2a52e; }
.action-required-toggle { margin-left: 7px; padding: 1px 4px; color: #9aa6b8; border: 0; border-radius: 3px; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; }
.action-required-toggle:hover, .action-required-toggle.active { color: #c88708; background: #fff4d6; }
.action-required-filter { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.inbox-compact .inbox-row.unread .inbox-sender strong, .inbox-compact .inbox-row.unread .inbox-subject strong { color: #172a4d; font-weight: 700; }
.inbox-sender { flex: 0 0 145px; }
.inbox-sender strong, .inbox-sender span, .inbox-subject strong, .inbox-subject span, .email-links small { display: block; }
.inbox-sender strong, .inbox-subject strong { color: #263752; font-size: 12px; }
.inbox-sender span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.inbox-subject { flex: 1; min-width: 260px; }
.inbox-subject span { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.email-links { flex: 0 0 170px; }
.email-links small { margin-top: 5px; color: #8794a7; font-size: 10px; }
.inbox-compact .inbox-sender { flex-basis: 135px; }
.inbox-compact .inbox-subject { min-width: 180px; }
.inbox-compact .inbox-subject span { display: none; }
.inbox-compact .email-links { flex-basis: 150px; }
.recipient-label { display: block; color: #6c7d97; font-size: 10px; }
.inbox-compact .to-me .recipient-label { color: #2f68b6; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-top: 34px; }
.project-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.project-card h2 { margin: 17px 0 7px; font-size: 17px; }
.project-card p { min-height: 51px; margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 12px; }
.tag-pill { display: inline-block; padding: 3px 7px; color: #315ca9; border: 1px solid #cbdaf3; border-radius: 12px; background: #f2f6fd; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.project-lead-name { color: #263752; font-size: 13px; font-weight: 600; }
.project-percent { color: var(--blue); font-size: 11px; font-weight: 700; }
.project-details { color: var(--muted); font-size: 10px; }
.project-people { margin-top: 19px; padding-top: 14px; color: #536b96; border-top: 1px solid #f0f2f6; font-size: 11px; }
.project-email { margin-top: 7px; color: #9ba7b8; font-size: 10px; }
.priority { font-size: 10px; font-weight: 700; }
.priority-badge { min-width: 0; }
.priority-urgent { color: #a13d35; background: #ffebe8; }
.priority-high { color: #966516; background: #fff5dc; }
.priority-medium { color: #536b96; background: #edf2fb; }
.priority-low { color: #647185; background: #f0f2f5; }
.gantt-workspace { margin-top: 34px; padding: 0; overflow: hidden; }
.gantt-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.gantt-metrics > div { min-height: 96px; padding: 19px 24px; border-right: 1px solid var(--line); }
.gantt-metrics > div:last-child { border-right: 0; }
.gantt-metrics span, .gantt-metrics small { display: block; color: var(--muted); font-size: 11px; }
.gantt-metrics strong { display: block; margin: 5px 0 1px; color: var(--ink); font-size: 23px; line-height: 1; }
.gantt-axis, .gantt-project-row, .gantt-task-row, .gantt-phase-row { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(420px, 1.5fr) 76px; gap: 18px; align-items: center; }
.gantt-axis { padding: 17px 24px 11px; color: #8996a8; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.gantt-axis-track, .gantt-row-visual { position: relative; min-width: 0; }
.gantt-axis-track, .gantt-row-visual { transition: width .2s ease, transform .2s ease; }
.gantt-view-controls { display: inline-flex; align-items: center; gap: 4px; }
.gantt-view-controls .btn { min-width: 32px; padding: 6px 8px; font-size: 15px; line-height: 1; }
.gantt-axis-track { height: 18px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), #eef1f6 calc(20% - 1px), #eef1f6 20%); }
.gantt-axis-track span { position: absolute; top: 0; color: #8996a8; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; transform: translateX(-50%); white-space: nowrap; }
.gantt-axis-track span:first-child { transform: none; }
.gantt-axis-track span:last-child { transform: translateX(-100%); }
.gantt-project { border-bottom: 1px solid #e7ebf2; }
.gantt-project:last-child { border-bottom: 0; }
.gantt-project > summary, .gantt-task > summary { list-style: none; cursor: pointer; }
.gantt-project > summary::-webkit-details-marker, .gantt-task > summary::-webkit-details-marker { display: none; }
.gantt-project-row { position: relative; min-height: 92px; padding: 16px 24px 16px 42px; background: #fff; }
.gantt-project-row:before, .gantt-task-row:before { position: absolute; color: var(--blue); content: '›'; font-size: 22px; font-weight: 700; line-height: 1; }
.gantt-project-row:before { left: 20px; }
.gantt-project[open] > summary { background: #f7faff; }
.gantt-project[open] > summary:before, .gantt-task[open] > summary:before { transform: rotate(90deg); }
.gantt-task { border-top: 1px solid #edf0f5; }
.gantt-task-row { position: relative; min-height: 76px; padding: 12px 24px 12px 36px; background: #fff; }
.gantt-task-row:before { left: 14px; font-size: 19px; }
.gantt-task[open] > summary { background: #fbfcfe; }
.gantt-entity { min-width: 0; }
.gantt-entity strong, .gantt-entity small, .gantt-kicker { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-entity strong { color: #263752; font-size: 14px; line-height: 1.25; }
.gantt-entity small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.gantt-kicker { margin-bottom: 4px; color: #6d80a2; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gantt-project-entity strong { font-size: 16px; }
.gantt-row-visual { padding: 5px 0; }
.gantt-track { position: relative; height: 25px; border-radius: 5px; background: repeating-linear-gradient(90deg, #fafbfd 0, #fafbfd calc(20% - 1px), #e9edf4 calc(20% - 1px), #e9edf4 20%); }
.gantt-bar { position: absolute; top: 0; height: 25px; min-width: 25px; padding: 4px 7px; overflow: hidden; color: #fff; border-radius: 5px; background: var(--blue); box-shadow: 0 2px 5px rgba(47, 111, 237, .15); font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.gantt-project-bar { height: 25px; background: #4b7fe7; }
.gantt-task-bar { height: 21px; top: 2px; background: #759be6; }
.gantt-phase-bar { height: 17px; top: 4px; background: #a0b8e6; box-shadow: none; font-size: 9px; }
.gantt-todo { background: #8b98aa; }
.gantt-in_progress { background: #5d8cf0; }
.gantt-with_support { background: #d89b32; }
.gantt-completed { background: #87a3d3; }
.gantt-cancelled { background: #a9b3c4; }
.gantt-row-action { color: #6f82a3; font-size: 10px; font-weight: 700; text-align: right; white-space: nowrap; }
.gantt-project-body { padding: 4px 24px 23px 42px; background: #f7faff; }
.gantt-task-body { padding: 18px 24px 20px 36px; background: #f8fafc; }
.gantt-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 11px 0 12px; }
.gantt-detail-heading h2, .gantt-detail-heading h3 { margin: 3px 0 0; color: var(--ink); font-size: 17px; }
.gantt-detail-heading h3 { font-size: 15px; }
.gantt-detail-heading .btn { padding: 6px 9px; font-size: 10px; }
.gantt-phase-heading { margin-top: 5px; }
.gantt-phase-list { border-top: 1px solid #e4eaf3; }
.gantt-phase-row { grid-template-columns: minmax(190px, .8fr) minmax(300px, 1.5fr) 0; min-height: 58px; padding: 9px 0; border-bottom: 1px solid #e4eaf3; }
.gantt-phase-row .gantt-row-visual { grid-column: 2; }
.gantt-phase-row .gantt-entity { grid-column: 1; }
.gantt-empty { margin: 12px 0 5px; color: var(--muted); font-size: 12px; }
.gantt-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 17px; padding: 16px 24px 19px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }
.gantt-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 2px; background: var(--blue); }
.gantt-legend .legend-in_progress { background: #4b7fe7; }
.gantt-legend .legend-with_support { background: #d89b32; }
.gantt-legend .legend-completed { background: #87a3d3; }
.gantt-legend-help { margin-left: auto; color: #8996a8; }
.person-row { display: flex; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid #f0f2f6; }
.person-row:last-child { border-bottom: 0; }
.person-name { flex: 1 1 180px; }
.person-name strong, .person-name span { display: block; }
.person-name strong { color: #263752; font-size: 12px; }
.person-name span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.person-metric { flex: 0 0 65px; text-align: center; }
.person-metric strong, .person-metric span { display: block; }
.person-metric strong { color: #263752; font-size: 14px; }
.person-metric span { color: var(--muted); font-size: 9px; }
.person-metric.overdue strong { color: #c64b45; }
.people-card { overflow-x: auto; }
.managed-people-card { margin-bottom: 18px; }
.managed-people-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.managed-people-options { display: flex; flex: 1 1 500px; flex-wrap: wrap; gap: 8px 18px; }
.managed-people-options label { color: #52627a; font-size: 12px; font-weight: 600; }
.primary-button, .secondary-button { vertical-align: middle; }
.email-viewer { margin-top: 34px; }
.email-meta { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.email-meta strong, .email-meta span { display: block; }
.email-meta strong { color: #263752; font-size: 13px; }
.email-meta strong .email-sender-email { display: inline; margin-left: 5px; padding: 0; color: #718096; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 11px; font-weight: 400; }
.email-meta strong .email-sender-email:hover, .email-meta strong .email-sender-email.is-selected { color: #245da8; text-decoration: underline; }
.email-meta span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.email-recipients { margin-top: 14px; padding: 10px 12px; color: #66758d; border-radius: 5px; background: #f5f8fc; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.email-recipients strong { display: inline-block; width: 36px; color: #3d557a; font-size: 10px; text-transform: uppercase; }
.email-participant-link { margin: 0 5px 0 0; padding: 0 4px; color: #315ca9; border: 1px solid transparent; border-radius: 3px; background: transparent; cursor: pointer; font: inherit; font-size: inherit; }
.email-participant-link:hover, .email-participant-link.is-selected { border-color: #b9d1f7; background: #eaf3ff; text-decoration: underline; }
.email-participant-popover { position: fixed; z-index: 1100; display: flex; width: 260px; box-sizing: border-box; flex-direction: column; gap: 7px; padding: 12px; color: #43526a; border: 1px solid #b9d1f7; border-radius: 6px; background: #fff; box-shadow: 0 9px 24px rgba(35, 61, 94, .2); font-size: 11px; }
.email-participant-popover-title { color: #263f67; font-size: 12px; }
.email-participant-popover-identity { overflow: hidden; color: #62738d; text-overflow: ellipsis; white-space: nowrap; }
.email-participant-popover label { display: flex; flex-direction: column; gap: 3px; color: #52627a; font-size: 10px; font-weight: 700; }
.email-participant-popover .form-control { height: 30px; padding: 4px 7px; font-size: 11px; }
.email-participant-popover-actions { display: flex; justify-content: flex-end; gap: 6px; }
.email-participant-popover .btn { min-height: 29px; padding: 5px 8px; font-size: 10px; }
.email-participant-popover-feedback { min-height: 14px; color: #52627a; font-size: 10px; }
.email-participant-popover-feedback.is-success { color: #2f7d58; }
.email-participant-popover-feedback.is-error, .email-participant-popover-empty { color: #b53c3c; font-size: 10px; }
.email-body { overflow-wrap: anywhere; padding: 26px 4px; color: #43526a; font-size: 13px; line-height: 1.7; }
.email-body p { margin-bottom: 15px; }
.thread-message { border-top: 1px solid #f0f2f6; }
.thread-message summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; color: #66758d; cursor: pointer; list-style: none; font-size: 10px; }
.thread-message summary::-webkit-details-marker { display: none; }
.thread-message summary:before { margin-right: 2px; color: var(--blue); content: '›'; font-size: 17px; font-weight: 700; }
.thread-message[open] summary:before { transform: rotate(90deg); }
.thread-message summary > span:first-of-type { flex: 1; min-width: 0; }
.thread-message summary strong, .thread-message summary small { display: block; }
.thread-message summary strong { color: #263752; font-size: 12px; }
.thread-message summary small { margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.thread-message-body { margin: 0 0 14px 23px; padding: 13px; color: #43526a; border-radius: 5px; background: #f8fafc; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.thread-recipients { margin-bottom: 11px; padding-bottom: 8px; color: #718096; border-bottom: 1px solid #e7ebf2; font-size: 10px; }
.thread-recipients strong { margin-right: 4px; color: #3d557a; text-transform: uppercase; }
.email-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.email-linked-action-row { display: flex; align-items: center; flex: 1 1 640px; flex-wrap: wrap; gap: 5px 8px; min-width: 280px; padding: 6px 8px; color: #365b84; border: 1px solid #b9d1f7; border-radius: 5px; background: #edf5ff; }
.email-linked-action-row > .email-connected-work-label { flex: 0 0 auto; color: #365b84; font-size: 10px; font-weight: 700; white-space: nowrap; }
.email-linked-action-row .email-task-action-line { min-width: 0; }
.email-linked-action-row .email-task-status-form { min-width: 0; }
.email-linked-action-row .email-thread-form { min-width: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }
.email-relationship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.email-relationship-card { min-width: 0; margin: 0; }
.project-timeline-card { margin-top: 17px; }
.project-timeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.project-timeline-heading h2 { margin-top: 4px; }
.project-timeline-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.project-timeline-range { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 9px 11px; color: #52627a; border: 1px solid #e1e7f0; border-radius: 5px; background: #f7f9fc; font-size: 11px; font-weight: 600; }
.project-timeline-range span:nth-child(2) { color: #9aa6b8; font-weight: 400; }
.project-timeline-list { position: relative; margin-top: 14px; padding: 3px 0 0; }
.project-timeline-list:before { position: absolute; top: 14px; bottom: 14px; left: 11px; width: 1px; background: #dfe6f0; content: ''; }
.project-timeline-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 10px; padding: 9px 0; }
.project-timeline-marker, .project-timeline-subtask-marker { position: relative; z-index: 1; display: flex; justify-content: center; }
.project-timeline-marker span { display: block; width: 11px; height: 11px; margin-top: 9px; border: 2px solid #fff; border-radius: 50%; background: #647185; box-shadow: 0 0 0 1px #c7d2e1; }
.project-timeline-content { min-width: 0; padding: 12px 14px; border: 1px solid #e1e7f0; border-left: 3px solid #c7d2e1; border-radius: 6px; background: #fff; }
.project-timeline-project .project-timeline-content { background: #f7faff; }
.project-timeline-item.status-in_progress .project-timeline-marker span { background: #5d8cf0; box-shadow: 0 0 0 1px #b8cdef; }
.project-timeline-item.status-in_progress .project-timeline-content { border-left-color: #5d8cf0; }
.project-timeline-item.status-with_support .project-timeline-marker span { background: #df8b62; box-shadow: 0 0 0 1px #efc3aa; }
.project-timeline-item.status-with_support .project-timeline-content { border-left-color: #df8b62; }
.project-timeline-item.status-completed .project-timeline-marker span { background: #48a878; box-shadow: 0 0 0 1px #b9dfc9; }
.project-timeline-item.status-completed .project-timeline-content { border-left-color: #48a878; }
.project-timeline-item.status-cancelled .project-timeline-marker span { background: #8995a5; box-shadow: 0 0 0 1px #cdd3dc; }
.project-timeline-item.status-cancelled .project-timeline-content { border-left-color: #8995a5; }
.project-timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.project-timeline-meta strong { color: #263752; font-size: 13px; }
.project-timeline-meta strong a { color: inherit; }
.project-timeline-meta strong a:hover { color: #315ca9; }
.project-timeline-type { min-width: 50px; color: #8291a7; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.project-timeline-details { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 15px; margin-top: 7px; color: #52627a; font-size: 11px; }
.project-timeline-details span + span { color: #7d8ba0; }
.project-timeline-subtasks { position: relative; display: grid; gap: 0; margin: 13px 0 0 11px; padding-left: 13px; border-left: 2px solid #dce7f8; }
.project-timeline-subtask { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 7px; padding: 7px 0; }
.project-timeline-subtask-marker { margin-left: -23px; }
.project-timeline-subtask-marker span { display: block; width: 8px; height: 8px; margin-top: 10px; border: 2px solid #fff; border-radius: 50%; background: #647185; box-shadow: 0 0 0 1px #c7d2e1; }
.project-timeline-subtask-content { min-width: 0; padding: 9px 10px; border: 1px solid #edf1f6; border-radius: 5px; background: #fcfdff; }
.project-timeline-subtask.status-in_progress .project-timeline-subtask-marker span { background: #5d8cf0; box-shadow: 0 0 0 1px #b8cdef; }
.project-timeline-subtask.status-with_support .project-timeline-subtask-marker span { background: #df8b62; box-shadow: 0 0 0 1px #efc3aa; }
.project-timeline-subtask.status-completed .project-timeline-subtask-marker span { background: #48a878; box-shadow: 0 0 0 1px #b9dfc9; }
.project-timeline-subtask.status-cancelled .project-timeline-subtask-marker span { background: #8995a5; box-shadow: 0 0 0 1px #cdd3dc; }
.project-timeline-empty { margin: 10px 0 0 34px; padding: 12px; border: 1px dashed #dce3ee; border-radius: 5px; }
.detail-description { color: #5f6d82; font-size: 12px; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.detail-stats span { color: var(--muted); font-size: 10px; }
.detail-stats strong { display: block; margin-bottom: 3px; color: #263752; font-size: 13px; }
.compact-row, .proposal-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #f0f2f6; }
.compact-row strong, .proposal-row strong { color: #263752; font-size: 12px; }
.compact-row span, .proposal-row span, .proposal-row small { display: block; color: var(--muted); font-size: 10px; }
.muted-copy { color: var(--muted); font-size: 11px; }
.form-card { max-width: 780px; margin-top: 34px; }
.form-card .input { margin-bottom: 16px; }
.form-card label { display: block; margin-bottom: 5px; color: #52627a; font-size: 11px; font-weight: 600; }
.form-control { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid #dce3ee; border-radius: 5px; background: #fff; font: inherit; }
.date-input { min-width: 0; }
input.date-input[type="date"] { min-height: 38px; }
.select2-container { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; color: var(--ink); font-size: 15px; }
.select2-container--default .select2-selection--single { height: 38px; border: 1px solid #ccd6e5; border-radius: 4px; background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-right: 34px; color: var(--ink); line-height: 36px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.select2-container--default.select2-container--focus .select2-selection--single, .select2-container--default.select2-container--open .select2-selection--single { border-color: #66afe9; box-shadow: 0 0 5px rgba(102, 175, 233, .35); }
.select2-container--default .select2-search--dropdown .select2-search__field { min-height: 34px; border-color: #ccd6e5; }
.select2-container--default .select2-results__option { padding: 8px 10px; }
.select2-dropdown { z-index: 1100; box-sizing: border-box; max-width: calc(100vw - 24px); border-color: #ccd6e5; }
.ajax-modal .select2-container { z-index: 1101; }
.ajax-modal .select2-dropdown { max-height: 260px; overflow-y: auto; }
.inline-edit-grid .select2-container { min-width: 0; }
.single-field-editor .select2-container { width: auto !important; max-width: calc(100vw - 40px); }
.single-field-editor .select2-dropdown { width: auto !important; min-width: 100%; max-width: calc(100vw - 40px); }
textarea.form-control { min-height: 110px; resize: vertical; }
.reply-editor-field { margin-bottom: 16px; }
.html-editor-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 7px; border: 1px solid #dce3ee; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f5f8fc; }
.html-editor-toolbar button { min-width: 29px; }
.html-editor-toolbar button:focus { outline: 0; }
.editor-divider { width: 1px; height: 18px; margin: 0 3px; background: #dce3ee; }
.reply-body-source { display: none !important; }
.html-editor { min-height: 220px; padding: 12px; color: var(--ink); border: 1px solid #dce3ee; border-radius: 0 0 5px 5px; background: #fff; font: inherit; line-height: 1.55; outline: 0; }
.html-editor:focus { border-color: #86a9df; box-shadow: 0 0 0 2px rgba(76, 131, 216, .12); }
.html-editor p { margin-bottom: 10px; }
.html-editor blockquote { margin: 10px 0; padding-left: 12px; color: #66758d; border-left: 3px solid #cbdaf3; }
.editor-help { display: block; margin-top: 6px; color: #8491a4; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-result-card { margin-top: 34px; }
.ai-summary { max-width: 750px; margin: 9px 0 25px; color: #43526a; font-size: 17px; line-height: 1.5; }
.ai-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; padding-top: 20px; border-top: 1px solid var(--line); }
.ai-columns p { margin: 6px 0 0; color: #263752; font-size: 12px; }
.proposal-row > div:last-child { flex: 0 0 175px; text-align: right; }
.proposal-row small { margin-top: 4px; }
.proposal-actions, .draft-footer { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.draft-body { min-height: 220px !important; }
.email-modal, .ajax-modal { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.email-modal-backdrop, .ajax-modal-backdrop { position: absolute; inset: 0; background: rgba(24, 39, 63, .48); }
.email-modal-dialog, .ajax-modal-dialog { position: relative; z-index: 1; width: min(920px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 10px; background: #f8fafc; box-shadow: 0 18px 55px rgba(20, 36, 62, .25); }
.action-board-email-modal { padding: 12px; }
.action-board-email-modal .ajax-modal-dialog { width: calc(100vw - 24px); max-width: none; height: calc(100vh - 24px); max-height: none; padding: 30px; border-radius: 8px; }
.email-modal-dialog .page-heading, .ajax-modal-dialog .page-heading { margin: 0; }
.email-modal-dialog .email-viewer, .email-modal-dialog .thread-card, .email-modal-dialog .data-card, .ajax-modal-dialog .email-viewer, .ajax-modal-dialog .thread-card, .ajax-modal-dialog .data-card { margin-top: 18px; }
.modal-close { position: absolute; top: 10px; right: 13px; z-index: 2; width: 28px; height: 28px; color: #64748b; border: 0; border-radius: 50%; background: #eef2f7; cursor: pointer; font-size: 20px; line-height: 24px; }
.modal-loading { padding: 80px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.phase-row { display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(0, 2fr); align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #f0f2f6; }
.phase-row > div:first-child strong, .phase-row > div:first-child span { display: block; }
.phase-row > div:first-child span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.phase-edit-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr auto; align-items: end; gap: 7px; }
.phase-edit-form .input { margin: 0; }
.phase-edit-form label { display: none; }
.phase-edit-form input[type="submit"], .phase-add-form input[type="submit"] { padding: 9px 11px; }
.phase-add-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.activity-card { margin-top: 17px; }
.thread-add-form { display: flex; align-items: end; gap: 10px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.thread-add-form .input { flex: 1; margin: 0; }
.thread-add-form label { display: block; margin-bottom: 5px; color: #52627a; font-size: 11px; font-weight: 600; }
.thread-add-form input[type="submit"] { padding: 10px 12px; color: #fff; border: 0; border-radius: 6px; background: var(--blue); cursor: pointer; font-size: 11px; font-weight: 600; }
.presentation-filter { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 16px 18px; }
.presentation-filter > div strong, .presentation-filter > div span { display: block; }
.presentation-filter > div strong { margin-top: 3px; color: #263752; font-size: 13px; }
.presentation-filter form { display: flex; align-items: center; gap: 8px; min-width: 310px; }
.presentation-filter select { min-width: 190px; }
.task-filter-card { margin-top: 20px; }
.task-filter-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.task-filter-form select { flex: 1 1 150px; min-width: 145px; }
.task-show-completed { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 6px; color: #52627a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.presentation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.presentation-project { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 5px 17px rgba(31, 51, 82, .025); }
.presentation-project-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.presentation-project-header .tag-list { margin-top: 0; }
.presentation-project h2 { margin: 4px 0 0; font-size: 19px; }
.presentation-project h2 a { color: var(--ink); }
.presentation-project h2 a:hover { color: var(--blue); }
.action-board-heading .edit-controls-toggle { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.action-board-heading .edit-controls-shortcut { padding: 1px 5px; color: #6c7a90; border: 1px solid #dce3ee; border-radius: 3px; background: #f5f8fc; font-size: 10px; font-weight: 600; letter-spacing: .02em; line-height: 1.3; }
.tag-muted { color: #8996a8; border-color: #e1e6ee; background: #f7f9fc; }
.action-board { padding: 0; overflow: hidden; }
.action-board-header, .action-project > summary { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(170px, 1fr) minmax(150px, .9fr) minmax(260px, 1.7fr); gap: 18px; align-items: center; }
.action-board-header { padding: 12px 18px; color: #8996a8; border-bottom: 1px solid var(--line); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.action-project { border-bottom: 1px solid #e7ebf2; }
.action-project > summary { position: relative; min-width: 0; padding: 14px 18px 14px 26px; cursor: pointer; list-style: none; }
.action-project > summary::-webkit-details-marker { display: none; }
.action-project > summary:before { position: absolute; left: 5px; color: var(--blue); content: '›'; font-size: 18px; font-weight: 700; }
.action-project[open] > summary { border-left: 3px solid var(--blue); background: #f4f7fd; }
.action-project[open] > summary:before { transform: rotate(90deg); }
.action-cell { min-width: 0; color: #52627a; font-size: 12px; overflow-wrap: anywhere; }
.action-cell small { display: block; margin-top: 3px; color: #95a1b2; font-size: 9px; }
.action-project-name .tag-pill { margin-bottom: 5px; }
.action-project-name strong, .action-ownership strong, .action-timeline strong { display: block; color: #263752; font-size: 13px; }
.action-project-name small, .action-ownership small, .action-timeline small { color: var(--muted); }
.action-ownership strong:nth-of-type(2) { margin-top: 6px; }
.action-timeline .status-badge { margin-top: 7px; }
.action-latest { color: #43526a; }
.action-project-details { padding: 19px 28px 22px; border-top: 1px solid #dce5f3; background: #fbfcfe; }
.action-detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.action-detail-toolbar .tag-list { margin: 0; }
.action-detail-toolbar .primary-button, .action-detail-toolbar .secondary-button { margin-left: 5px; }
.action-task-list { max-width: 900px; margin-top: 10px; }
.inline-pencil, .field-pencil { display: inline-block; margin-left: 6px; padding: 0 4px; color: #6e82a5; border: 0; border-radius: 3px; background: transparent; cursor: pointer; font-size: 14px; line-height: 1.1; opacity: .75; vertical-align: middle; }
.inline-pencil:hover, .inline-pencil:focus, .field-pencil:hover, .field-pencil:focus { color: #245dcc; background: #eaf1ff; opacity: 1; outline: 0; }
.presentation-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.presentation-meta span, .presentation-meta strong { display: block; }
.presentation-meta span { color: var(--muted); font-size: 10px; }
.presentation-meta strong { margin-top: 3px; color: #263752; font-size: 11px; overflow-wrap: anywhere; }
.latest-action { display: flex; flex-direction: column; gap: 3px; margin: 15px 0 18px; padding: 12px; border-left: 3px solid #78a5ff; border-radius: 0 5px 5px 0; background: #f4f7fd; }
.latest-action strong { color: #263752; font-size: 12px; }
.latest-action small { color: var(--muted); font-size: 10px; }
.presentation-section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.presentation-section-heading > strong { color: var(--muted); font-size: 10px; }
.presentation-task { border-top: 1px solid #f0f2f6; }
.presentation-task summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none; }
.presentation-task summary::-webkit-details-marker { display: none; }
.presentation-task summary:before { content: '›'; color: var(--blue); font-size: 17px; font-weight: 700; }
.presentation-task[open] summary:before { transform: rotate(90deg); }
.presentation-task summary > span:first-of-type { flex: 1; min-width: 0; }
.presentation-task summary strong, .presentation-task summary small { display: block; }
.presentation-task summary strong { color: #263752; font-size: 12px; }
.presentation-task summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.presentation-task-body { margin: 0 0 13px 25px; padding: 12px; border-radius: 5px; background: #f8fafc; }
.presentation-task-body > p { margin-bottom: 12px; color: #5f6d82; font-size: 11px; }
.subtask-list > .eyebrow { display: block; margin-bottom: 6px; }
.subtask-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 7px 0; border-top: 1px solid #e7ebf2; }
.subtask-row span { color: #43526a; font-size: 11px; }
.subtask-row small { color: var(--muted); font-size: 9px; text-align: right; }
.presentation-task-body .secondary-button { margin-top: 12px; padding: 7px 10px; font-size: 10px; }
.action-task-list .presentation-task { margin-bottom: 8px; padding: 0 14px; border: 1px solid #e3e9f2; border-radius: 8px; background: #fff; }
.action-task-list .presentation-task[open] { border-color: #bcd0f3; box-shadow: 0 4px 12px rgba(31, 51, 82, .06); }
.action-task-list .presentation-task-body { margin-right: 0; margin-left: 0; }
.inline-editor { margin: 14px 0; padding: 10px 12px; border: 1px solid #dce5f3; border-radius: 7px; background: #fff; }
.action-board .inline-editor { display: none; }
.inline-editor-toggle { padding: 0; color: #315ca9; border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.inline-editor-content { display: none; }
.inline-editor.is-open .inline-editor-content { display: block; }
.project-inline-editor { margin-bottom: 17px; }
.inline-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.inline-edit-grid .input { margin: 0; }
.inline-edit-grid .input:last-child { grid-column: 1 / -1; }
.inline-edit-grid label { display: block; margin-bottom: 4px; color: #52627a; font-size: 12px; font-weight: 600; }
.single-field-editor { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; margin-left: 5px; vertical-align: middle; }
.single-field-editor .input { display: inline-block; margin: 0; }
.single-field-editor label { display: none; }
.single-field-editor .form-control { width: auto; min-width: 110px; height: 30px; padding: 4px 7px; font-size: 12px; }
.single-field-editor select.form-control { min-width: 135px; }
.single-field-editor textarea.form-control { min-width: 220px; min-height: 30px; }
.single-field-editor > small { color: #6e82a5; font-size: 10px; white-space: nowrap; }
.single-field-save { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border-radius: 4px; font-size: 15px; line-height: 26px; }
.inline-edit-grid textarea.form-control { min-height: 74px; }
.inline-save-status { display: inline-block; margin-left: 10px; color: #2f7d58; font-size: 12px; font-weight: 600; }
.legacy-action-board { display: none !important; }
.timeline-board { padding: 0; overflow: hidden; background: #f7f9fc; }
.timeline-board.edit-controls-hidden .field-pencil { display: none !important; }
.timeline-board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #e1e7f0; background: #fff; }
.timeline-board-toolbar strong { display: block; margin-top: 3px; color: #263752; font-size: 15px; }
.timeline-legend { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 11px; color: #65748b; font-size: 11px; }
.timeline-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.timeline-hint { padding-left: 9px; border-left: 1px solid #dce3ee; color: #9aa6b8; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5d8cf0; }
.legend-in_progress { background: #5d8cf0; }
.legend-with_support { background: #df8b62; }
.legend-completed { background: #48a878; }
.timeline-project { border-bottom: 1px solid #e1e7f0; background: #fff; }
.timeline-board > .timeline-project:nth-of-type(even) { background: #f3f6fa; }
.timeline-board > .timeline-project:nth-of-type(even) > summary { background: #f3f6fa; }
.timeline-board > .timeline-project:nth-of-type(even) .timeline-project-body { background: #f7f9fc; }
.timeline-project > summary { display: grid; grid-template-columns: minmax(220px, 1.15fr) minmax(120px, .65fr) minmax(145px, .8fr) minmax(260px, 1.35fr); gap: 17px; align-items: center; min-width: 0; padding: 14px 20px 14px 33px; }
.timeline-project > summary:before { left: 15px; }
.timeline-project[open] > summary { border-left: 4px solid var(--blue); background: #f3f7ff; }
.timeline-board > .timeline-project:nth-of-type(even)[open] > summary { background: #e8eef7; }
.timeline-project-identity, .timeline-project-owner, .timeline-project-status, .timeline-project-communication { min-width: 0; }
.timeline-project-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.timeline-project-name .tag-pill { flex: 0 0 auto; margin: 0; }
.project-tag-values { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; overflow: visible !important; white-space: normal !important; }
.timeline-project-name .inline-field { min-width: 0; }
.timeline-project-name .inline-field-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-project-identity > small, .timeline-project-status > small { display: block; margin-top: 4px; color: #8996a8; font-size: 10px; }
.timeline-label, .detail-label { display: block; margin-bottom: 4px; color: #8a98ab; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.timeline-project-owner .inline-field-value { color: #315ca9; font-size: 15px; font-weight: 600; }
.timeline-project-communication { overflow: hidden; }
.timeline-project-communication a { display: block; overflow: hidden; color: #315ca9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.communication-item { min-width: 0; }
.communication-subject { display: flex !important; gap: 5px; align-items: baseline; }
.communication-subject strong { flex: 0 0 auto; color: #263752; font-size: 11px; }
.communication-subject span { overflow: hidden; text-overflow: ellipsis; }
.communication-preview, .communication-full { margin: 4px 0 0; color: #52627a; font-size: 11px; line-height: 1.35; }
.communication-preview { overflow-wrap: anywhere; }
.communication-full { white-space: normal; }
.communication-expand { padding: 0; color: #315ca9; font-size: 10px; }
.timeline-board .communication-expand, .timeline-board .communication-full { display: none !important; }
.timeline-project-body { padding: 0 20px 20px; border-top: 1px solid #e1e7f0; background: #fbfcfe; }
.timeline-project-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 15px 0 12px; }
.timeline-project-dates { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px; }
.timeline-project-dates .timeline-label { flex-basis: 100%; }
.date-separator { color: #9aa6b8; font-size: 12px; }
.inline-field { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; vertical-align: middle; }
.inline-field-value { min-width: 0; overflow-wrap: anywhere; }
.timeline-project-dates .inline-field-value { color: #52627a; font-size: 12px; font-weight: 600; }
.timeline-task-list { overflow: hidden; border: 1px solid #dfe6f0; border-radius: 8px; background: #fff; }
.timeline-row { display: grid; grid-template-columns: minmax(220px, .95fr) minmax(300px, 1.55fr) minmax(185px, .85fr); gap: 13px; align-items: center; }
.timeline-row { position: relative; padding: 11px 12px; border-bottom: 1px solid #edf1f6; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row-label, .timeline-row-details { min-width: 0; }
.timeline-row-label strong, .timeline-item-title .inline-field-value { color: #263752; font-size: 14px; font-weight: 700; }
.timeline-row-label > small { display: block; margin-top: 3px; overflow: hidden; color: #7d8ba0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-type { display: inline-block; min-width: 39px; margin-right: 5px; color: #8291a7; font-size: 8px; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
.timeline-item-title { min-width: 0; }
.timeline-inline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin-top: 5px; color: #6f7f95; font-size: 12px; }
.timeline-inline-meta .inline-field-value { color: #52627a; }
.timeline-task { display: block; }
.timeline-task > summary { position: relative; display: flex; align-items: center; gap: 17px; grid-template-columns: minmax(220px, 1.2fr) minmax(185px, .8fr); padding-left: 33px; cursor: pointer; list-style: none; }
.timeline-task > summary::-webkit-details-marker { display: none; }
.timeline-task > summary:before { position: absolute; left: 15px; color: var(--blue); content: '›'; font-size: 19px; font-weight: 700; line-height: 1; }
.timeline-task[open] > summary:before { transform: rotate(90deg); }
.timeline-task-body { display: block; }
.timeline-task > summary .timeline-row-label { display: flex; flex: 1 1 auto; align-items: center; gap: 17px; min-width: 0; }
.timeline-task > summary .timeline-item-title { flex: 1 1 auto; min-width: 0; }
.timeline-task > summary .timeline-inline-meta { flex: 0 1 auto; flex-wrap: nowrap; margin-top: 0; white-space: nowrap; }
.timeline-task > summary .timeline-row-details { display: flex; flex: 0 1 auto; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.timeline-task > summary .timeline-row-details span, .timeline-task > summary .timeline-row-details small { display: inline; margin-top: 0; }
.timeline-task, .timeline-phase { grid-template-columns: minmax(220px, 1.2fr) minmax(185px, .8fr); }
.timeline-task.status-todo, .timeline-phase.status-todo { background: #f3f5f7; }
.timeline-task.status-in_progress, .timeline-phase.status-in_progress { background: #fff8d9; }
.timeline-task.status-with_support, .timeline-phase.status-with_support { background: #fff0e0; }
.timeline-task.status-completed, .timeline-phase.status-completed { background: #edf9f1; }
.timeline-task.is-time-critical, .timeline-phase.is-time-critical { background: #fff0ef; }
.timeline-row.is-time-critical { background: #fff0ef; }
.timeline-project.is-time-critical > summary { border-left: 4px solid #d9534f; }
.timeline-project.is-time-critical .progress-meter span { background: #d9534f; }
.time-critical-label { color: #c03935; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.timeline-row-details { color: #52627a; font-size: 12px; }
.timeline-row-details span, .timeline-row-details small { display: block; }
.timeline-row-details small { margin-top: 4px; color: #8a98ab; font-size: 11px; }
.timeline-task-details { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(120px, 1.4fr) repeat(5, minmax(72px, 1fr)); gap: 8px; margin: 2px 0 0 45px; padding: 9px 0 0; border-top: 1px dashed #e1e7f0; }
.timeline-task-details > div, .timeline-phase-details > span { min-width: 0; }
.timeline-task-details > div:first-child { display: none; }
.timeline-task-details .timeline-communication { grid-column: span 2; }
.action-board-notes { grid-column: 1 / -1; margin: 4px 0 0 45px; padding: 6px 9px; border-left: 3px solid #e2a52e; background: #fffaf0; color: #6d5a31; font-size: 11px; }
.action-board-note { padding: 2px 0; }
.action-board-note-add, .action-board-emails, .action-board-subtask-add { white-space: nowrap; }
.timeline-task-details .inline-field-value, .timeline-phase-details .inline-field-value { color: #52627a; font-size: 12px; }
.timeline-task-details > div:first-child .inline-field-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-communication a { display: block; overflow: hidden; color: #315ca9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-phases { display: grid; grid-column: 1 / -1; gap: 0; margin: 2px 0 0 28px; border-left: 2px solid #dce7f8; }
.timeline-phase { grid-template-columns: minmax(190px, .95fr) minmax(260px, 1.55fr) minmax(170px, .85fr); padding-left: 14px; background: #fcfdff; }
.timeline-phase:before { position: absolute; top: 50%; left: -2px; width: 14px; border-top: 2px solid #dce7f8; content: ''; }
.timeline-phase-details { display: grid; align-items: center; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; margin-left: 44px; padding-top: 6px; border-top: 1px dashed #edf1f6; }
.timeline-phase-details > span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.timeline-phase-details .detail-label { display: inline-block; margin: 0; }
.timeline-phase-communication { display: block !important; overflow: hidden; }
.timeline-phase-communication .detail-label, .timeline-phase-communication a, .timeline-phase-communication small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-phase-communication a { color: #315ca9; font-size: 10px; }
.timeline-phase-communication small { margin-top: 3px; color: #7c8da8; font-size: 9px; }
.timeline-form-source { display: none !important; }
.timeline-empty-tasks { margin: 0; padding: 14px 0 2px; }
.progress-meter { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #e4ebf5; }
.progress-meter span { display: block; height: 100%; border-radius: inherit; background: #5d8cf0; }
.action-board-timeline-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; padding: 0; color: #315ca9; font-size: 16px; line-height: 1; }
.action-board-timeline-button:hover, .action-board-timeline-button:focus { color: #214d9a; border-color: #a9c3ef; background: #f2f6fd; }
.action-item-timeline-heading { margin-bottom: 18px; }
.action-item-timeline-count { min-width: 92px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: center; }
.action-item-timeline-count strong, .action-item-timeline-count span { display: block; }
.action-item-timeline-count strong { color: var(--ink); font-size: 22px; line-height: 1; }
.action-item-timeline-count span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.action-item-timeline-summary { padding: 17px 20px; }
.action-item-timeline-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.action-item-timeline-summary-grid > div { min-width: 0; }
.action-item-timeline-summary-grid strong { color: #263752; font-size: 12px; }
.action-item-timeline-parent { display: block; margin-top: 13px; color: var(--muted); font-size: 11px; }
.action-item-timeline-description { margin: 14px 0 0; padding-top: 12px; color: #52627a; border-top: 1px solid #f0f2f6; font-size: 12px; }
.action-item-timeline-list-card { padding: 0 20px 20px; }
.action-item-timeline-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0 14px; border-bottom: 1px solid var(--line); }
.action-item-timeline-list-heading strong { display: block; margin-top: 3px; color: #263752; font-size: 15px; }
.action-item-timeline-list { position: relative; margin: 0; padding: 8px 0 0; list-style: none; }
.action-item-timeline-list:before { position: absolute; top: 8px; bottom: 0; left: 142px; width: 1px; background: #dfe6f0; content: ''; }
.action-item-timeline-entry { position: relative; display: grid; grid-template-columns: 126px 32px minmax(0, 1fr); gap: 0 12px; padding: 14px 0; }
.action-item-timeline-date { padding-top: 2px; color: #718096; font-size: 11px; text-align: right; }
.action-item-timeline-marker { position: relative; z-index: 1; display: flex; justify-content: center; }
.action-item-timeline-marker span { display: block; width: 10px; height: 10px; margin-top: 4px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #b8cdef; }
.action-item-timeline-note .action-item-timeline-marker span { background: #d89b32; box-shadow: 0 0 0 1px #f0d49e; }
.action-item-timeline-email .action-item-timeline-marker span { background: #48a878; box-shadow: 0 0 0 1px #b9dfc9; }
.action-item-timeline-content { min-width: 0; padding-bottom: 12px; border-bottom: 1px solid #f0f2f6; }
.action-item-timeline-entry:last-child .action-item-timeline-content { border-bottom: 0; }
.action-item-timeline-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; }
.action-item-timeline-meta strong { color: #263752; font-size: 12px; }
.action-item-timeline-meta > span { color: var(--muted); font-size: 10px; }
.action-item-timeline-context { padding-left: 8px; border-left: 1px solid #dce3ee; }
.action-item-timeline-content p { margin: 5px 0 0; color: #52627a; font-size: 12px; overflow-wrap: anywhere; }
.action-item-timeline-content .btn { margin-top: 8px; }
.timeline-modal-error { padding: 30px 12px 15px; }
.timeline-modal-error h1 { margin-top: 6px; }
.timeline-modal-error p { color: var(--muted); }

.login-page { background: #f3f6fc; }
.login-background { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; background: radial-gradient(circle at 20% 20%, #eaf1ff 0, transparent 32%), #f5f7fb; }
.login-card { width: 100%; max-width: 430px; padding: 45px 46px 35px; border: 1px solid #e4eaf4; border-radius: 15px; background: #fff; box-shadow: 0 18px 55px rgba(29, 53, 91, .09); }
.brand-centered { justify-content: center; padding: 0; margin-bottom: 40px; }
.login-intro { text-align: center; }
.login-intro h1 { margin-bottom: 10px; font-size: 27px; }
.login-intro p { margin-bottom: 29px; color: var(--muted); }
.microsoft-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; padding: 13px 18px; color: #fff; border-radius: 7px; background: #1769aa; font-size: 14px; font-weight: 600; transition: background .15s; }
.microsoft-button:hover { background: #105487; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 16px; color: #a4afbf; font-size: 10px; text-transform: uppercase; }
.login-divider:before, .login-divider:after { flex: 1; height: 1px; background: var(--line); content: ""; }
.demo-button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 12px 18px; color: #315ca9; border: 1px solid #cad9f2; border-radius: 7px; background: #f7faff; font-size: 13px; font-weight: 600; }
.demo-button:hover { border-color: #a9c3ef; background: var(--blue-soft); }
.demo-spark { color: #e6a52d; font-size: 16px; }
.microsoft-logo { display: grid; grid-template-columns: 7px 7px; grid-template-rows: 7px 7px; gap: 2px; }
.microsoft-logo i:nth-child(1) { background: #f25022; }
.microsoft-logo i:nth-child(2) { background: #7fba00; }
.microsoft-logo i:nth-child(3) { background: #00a4ef; }
.microsoft-logo i:nth-child(4) { background: #ffb900; }
.login-permissions { margin-top: 29px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.login-permissions p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.login-footnote { margin: 26px 0 0; color: #9aa6b8; font-size: 11px; text-align: center; }
.setup-notice { padding: 14px; color: #765b24; border: 1px solid #f0dfb4; border-radius: 7px; background: #fff9e9; font-size: 12px; }
.setup-notice strong { display: block; margin-bottom: 4px; }
.setup-notice p { margin: 0; }
code { padding: 2px 4px; border-radius: 3px; background: rgba(0,0,0,.06); font-family: Consolas, monospace; font-size: 11px; }

@media (max-width: 1080px) {
	.topbar { padding: 0 30px; }
	.content { padding-right: 30px; padding-left: 30px; }
	.summary-grid { grid-template-columns: repeat(2, 1fr); }
	.project-grid { grid-template-columns: repeat(2, 1fr); }
	.gantt-header, .gantt-row { grid-template-columns: 200px minmax(520px, 1fr); }
}

@media (max-width: 760px) {
	.shell { flex-direction: column; }
	.sidebar { flex: 0 0 auto; padding: 14px 16px 10px; }
	.brand { padding: 0; }
	.primary-nav { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: thin; }
	.nav-label { display: none; }
	.nav-item { flex: 0 0 auto; gap: 8px; margin: 0; padding: 9px 11px; }
	.nav-item span:last-child { display: inline; }
	.nav-item.active { box-shadow: inset 0 -3px 0 #78a5ff; }
	.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 9px 0 0; }
	.signout-link { margin-top: 0; }
	.topbar { min-height: 66px; padding: 12px 20px; }
	.breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.profile-copy { display: block; }
	.content { padding: 30px 20px 50px; }
	.page-heading { flex-direction: column; gap: 15px; }
	.page-heading h1 { font-size: 26px; }
	.page-actions { justify-content: flex-start; width: 100%; }
	.search-form { width: 100%; flex-wrap: wrap; }
	.search-form input { flex: 1 1 150px; min-width: 0; }
	.search-form select { flex: 1 1 120px; min-width: 0; }
	.search-form button { flex: 0 0 auto; }
	.unread-filter { border-left: 0; }
	.summary-grid, .dashboard-grid, .project-grid, .detail-grid, .ai-columns, .form-grid, .presentation-grid { grid-template-columns: 1fr; }
	.data-card { padding: 19px; }
	.project-timeline-heading { flex-direction: column; gap: 10px; }
	.project-timeline-heading .toolbar-pill { align-self: flex-start; }
	.presentation-filter { align-items: stretch; flex-direction: column; }
	.presentation-filter form { min-width: 0; width: 100%; }
	.presentation-filter select { flex: 1; }
	.presentation-project-header { flex-wrap: wrap; }
	.action-board { overflow: visible; padding: 0; border: 0; background: transparent; box-shadow: none; }
	.action-board-header { display: none; }
	.action-project { display: block; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
	.action-project > summary { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 12px; padding: 15px 15px 15px 25px; }
	.action-project > summary:before { left: 10px; }
	.action-project-name { grid-column: 1 / -1; grid-row: 1; }
	.action-ownership { grid-column: 1; grid-row: 2; }
	.action-timeline { grid-column: 2; grid-row: 2; }
	.action-latest { grid-column: 1 / -1; grid-row: 3; }
	.action-project-details { padding: 15px; }
	.action-detail-toolbar { align-items: flex-start; flex-direction: column; }
	.action-detail-toolbar > div:last-child { display: flex; flex-wrap: wrap; gap: 5px; }
	.action-detail-toolbar .primary-button, .action-detail-toolbar .secondary-button { margin-left: 0; }
	.inbox-card { padding: 0 14px; overflow: visible; }
	.inbox-toolbar { align-items: flex-start; flex-direction: column; }
	.inbox-toolbar-actions { justify-content: space-between; width: 100%; }
	.inbox-row { flex-wrap: wrap; min-width: 0; gap: 8px 10px; padding: 12px 0; }
	.inbox-sender { flex: 1 1 150px; min-width: 0; }
	.inbox-subject { flex: 1 1 100%; min-width: 0; margin-left: 41px; }
	.email-links { flex: 1 1 100%; margin-left: 41px; }
	.inbox-compact .inbox-row { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 4px 10px; margin: 0 -4px; padding: 9px 4px; }
	.inbox-compact .inbox-sender { grid-column: 2; grid-row: 1; }
	.inbox-compact .inbox-subject { grid-column: 2 / 4; grid-row: 2; margin-left: 0; }
	.inbox-compact .email-links { grid-column: 3; grid-row: 1; margin-left: 0; text-align: right; }
	.inbox-compact .email-links small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.gantt-card { padding: 18px; }
	.gantt-header, .gantt-row { grid-template-columns: 170px minmax(520px, 1fr); gap: 12px; }
	.phase-row { grid-template-columns: 1fr; gap: 9px; }
	.phase-edit-form { grid-template-columns: 1fr 1fr; }
	.thread-add-form { align-items: stretch; flex-direction: column; }
	.proposal-row, .compact-row { align-items: flex-start; flex-direction: column; }
	.proposal-row > div:last-child { flex-basis: auto; text-align: left; }
	.person-row { flex-wrap: wrap; gap: 10px; }
	.people-card { overflow: visible; }
	.person-name { flex: 1 1 180px; min-width: 0; }
	.person-metric { flex: 1 1 55px; }
	.email-meta { align-items: flex-start; }
	.email-meta > div:last-child { min-width: 0; }
	.email-meta span { overflow-wrap: anywhere; }
	.email-body { padding: 20px 0; }
	.email-actions { gap: 7px; }
	.detail-stats { gap: 15px; }
	.form-card { max-width: none; }
	.draft-footer, .proposal-actions { align-items: flex-start; flex-wrap: wrap; }
	.email-modal { padding: 10px; }
	.email-modal-dialog { max-height: 94vh; padding: 20px; }
	.demo-banner { align-items: flex-start; flex-direction: column; }
	.action-item-timeline-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.action-item-timeline-list-card { padding-right: 15px; padding-left: 15px; }
	.action-item-timeline-list:before { left: 94px; }
	.action-item-timeline-entry { grid-template-columns: 78px 22px minmax(0, 1fr); gap: 0 8px; }
	.action-item-timeline-date { font-size: 10px; }
}

@media (max-width: 480px) {
	.sidebar { padding-right: 10px; padding-left: 10px; }
	.brand > div:last-child { display: none; }
	.brand { justify-content: center; }
	.nav-item { padding: 8px 9px; font-size: 11px; }
	.topbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 15px; }
	.profile { width: 100%; }
	.profile-copy span { display: none; }
	.content { padding: 24px 14px 40px; }
	.page-heading h1 { font-size: 23px; }
	.page-heading p { font-size: 13px; }
	.page-actions, .search-form { align-items: stretch; }
	.search-form input, .search-form select, .search-form button, .unread-filter { flex: 1 1 100%; width: 100%; border: 1px solid #dce3ee; border-radius: 5px; }
	.unread-filter { justify-content: center; padding: 8px; }
	.folder-nav { gap: 4px; }
	.folder-nav a { padding: 6px 8px; }
	.summary-card { padding: 16px; }
	.summary-grid { gap: 9px; }
	.data-card { padding: 15px; border-radius: 8px; }
	.presentation-filter form { align-items: stretch; flex-direction: column; }
	.presentation-filter select, .presentation-filter button { width: 100%; }
	.presentation-meta { grid-template-columns: 1fr; }
	.presentation-task summary { align-items: flex-start; }
	.presentation-task summary > .status-badge { flex: 0 0 auto; }
	.inbox-card { padding: 0 10px; }
	.inbox-toolbar-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
	.inbox-legend { flex-wrap: wrap; }
	.inbox-sender { flex-basis: 100%; margin-left: 41px; }
	.email-links { margin-left: 41px; }
	.inbox-compact .inbox-sender { flex-basis: auto; margin-left: 0; }
	.inbox-compact .inbox-subject { font-size: 11px; }
	.email-viewer { margin-top: 20px; }
	.email-actions .inline-form, .email-actions .inline-form input[type="submit"] { width: 100%; }
	.email-actions .inline-form input[type="submit"] { padding: 9px; }
	.ajax-modal-dialog { padding: 20px; }
	.action-item-timeline-summary-grid { grid-template-columns: 1fr; gap: 10px; }
	.action-item-timeline-heading { gap: 10px; }
	.action-item-timeline-count { align-self: flex-start; }
	.project-timeline-card { padding-right: 15px; padding-left: 15px; }
	.project-timeline-details { align-items: flex-start; flex-direction: column; gap: 4px; }
	.project-timeline-subtasks { margin-left: 4px; }
	.html-editor-toolbar { gap: 2px; }
	.html-editor-toolbar button { padding: 5px; }
	.html-editor { min-height: 180px; }
	.phase-edit-form { grid-template-columns: 1fr; }
	.login-background { align-items: flex-start; padding: 12px; }
	.login-card { padding: 30px 20px 25px; }
	.brand-centered { margin-bottom: 28px; }
}

.task-email-card .email-open { display: flex; color: inherit; text-decoration: none; }
.task-email-card .email-open:hover { background: #f5f8fc; }
.task-email-card .email-open strong { color: #245dcc; }
.task-email-card .email-open small { color: var(--muted); white-space: nowrap; }
.tag-create-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.tag-create-form .form-group { margin-bottom: 0; }
.tag-create-form .input { margin-bottom: 0; }
.tag-management-table th { color: #52627a; font-size: 11px; text-transform: uppercase; }
.tag-management-table .form-inline { display: flex; align-items: center; gap: 7px; }
.tag-management-table .form-inline .input { margin-bottom: 0; }
.tag-management-table .form-control { min-width: 150px; }
.subtask-list-header, .subtask-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(120px, .9fr) minmax(150px, 1.15fr) minmax(160px, 1.35fr); gap: 12px; align-items: center; }
.subtask-list-header { padding: 7px 0; color: #8996a8; border-bottom: 1px solid #dce5f3; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.subtask-row > div strong, .subtask-row > div small { display: block; }
.subtask-row > div strong { color: #43526a; }
.subtask-row > div small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.subtask-row .subtask-assignee { color: #315ca9; font-size: 13px; font-weight: 600; }
.subtask-row > small { color: var(--muted); font-size: 12px; text-align: left; }
.subtask-row { cursor: pointer; }
.subtask-row:hover { background: #f7faff; }
.subtask-row .subtask-communication, .latest-communication { color: #536b96; }
.report-result { font-weight: 600; text-transform: capitalize; }
.report-result-early { color: #2f7d58; }
.report-result-on_time { color: #3f679f; }
.report-result-late { color: #9a6b1f; }
.report-result-overdue { color: #bd5a4f; }
.report-result-open { color: #7b8799; }
.report-result-cancelled { color: #7b8799; }
.report-result-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 14px; font-weight: 600; }
.person-report-card { margin-top: 17px; }
.person-results { display: flex; flex: 1 1 270px; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: 12px; }
.person-results span { white-space: nowrap; }
.result-early { color: #2f7d58; }
.result-on-time { color: #3f679f; }
.result-late { color: #9a6b1f; }
.result-overdue { color: #bd5a4f; }
.person-report-link { flex: 0 0 auto; }

@media (max-width: 760px) {
	.tag-create-form { align-items: stretch; flex-direction: column; }
	.tag-create-form .form-group, .tag-create-form .btn { width: 100%; }
	.tag-management-table .form-inline { align-items: stretch; flex-direction: column; }
	.tag-management-table .form-control, .tag-management-table .btn { width: 100%; min-width: 0; }
	.subtask-list-header, .subtask-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.subtask-list-header { display: none; }
	.subtask-row > small { grid-column: 1 / -1; }
	.inline-edit-grid { grid-template-columns: 1fr 1fr; }
	.person-results { flex-basis: 100%; }
	.person-report-link { align-self: flex-start; }
}

/* Fluid workspace sizing and readable presentation typography. */
body { font-size: 16px; }
.content { width: 100%; max-width: none; padding: 38px 4vw 70px; }
.topbar { padding-right: 4vw; padding-left: 4vw; }
.nav-item { font-size: 15px; }
.nav-label, .eyebrow { font-size: 12px; }
.connection-status, .signout-link { font-size: 13px; }
.breadcrumb { font-size: 15px; }
.profile-copy strong { font-size: 14px; }
.profile-copy span { font-size: 13px; }
h1 { font-size: 36px; }
.page-heading p { font-size: 17px; }
.data-card { font-size: 16px; }
.card-heading h2 { font-size: 22px; }
.toolbar-pill { font-size: 13px; }
.data-table th { font-size: 12px; }
.data-table td { font-size: 14px; }
.data-table td strong { font-size: 15px; }
.table-subline { font-size: 12px; }
.status-badge { font-size: 11px; }
.inbox-toolbar { font-size: 14px; }
.inbox-toolbar strong { font-size: 16px; }
.inbox-legend, .recipient-label { font-size: 13px; }
.inbox-sender strong, .inbox-subject strong { font-size: 15px; }
.inbox-sender span, .inbox-subject span, .email-links small { font-size: 13px; }
.project-card h2 { font-size: 21px; }
.project-card p { font-size: 14px; }
.tag-pill { font-size: 11px; }
.project-details { font-size: 13px; }
.project-people { font-size: 14px; }
.project-email { font-size: 13px; }
.gantt-task-label strong { font-size: 14px; }
.gantt-task-label span, .gantt-legend { font-size: 13px; }
.gantt-bar { font-size: 12px; }
.person-name strong { font-size: 15px; }
.person-name span { font-size: 13px; }
.person-metric strong { font-size: 16px; }
.person-metric span { font-size: 12px; }
.email-meta strong { font-size: 15px; }
.email-meta span, .email-recipients { font-size: 13px; }
.email-recipients strong { font-size: 12px; }
.email-body { font-size: 16px; }
.thread-message summary { font-size: 14px; }
.thread-message summary strong { font-size: 15px; }
.thread-message-body { font-size: 14px; }
.thread-recipients { font-size: 13px; }
.detail-description { font-size: 15px; }
.detail-stats span { font-size: 13px; }
.detail-stats strong { font-size: 16px; }
.compact-row strong, .proposal-row strong { font-size: 15px; }
.compact-row span, .proposal-row span, .proposal-row small, .muted-copy { font-size: 13px; }
.form-card label, .thread-add-form label { font-size: 14px; }
.editor-help { font-size: 12px; }
.ai-columns p { font-size: 15px; }
.phase-row > div:first-child span { font-size: 13px; }
.presentation-filter > div strong { font-size: 15px; }
.action-board-header { font-size: 12px; }
.action-cell { font-size: 14px; }
.action-cell small { font-size: 12px; }
.action-project-name strong, .action-ownership strong, .action-timeline strong { font-size: 15px; }
.presentation-task summary { font-size: 14px; }
.presentation-task summary strong { font-size: 15px; }
.presentation-task summary small, .presentation-meta span { font-size: 13px; }
.presentation-meta strong { font-size: 14px; }
.presentation-task-body > p, .subtask-row span { font-size: 14px; }
.subtask-row small { font-size: 12px; }
.gantt-card { max-width: 100%; overflow-x: auto; }

@media (max-width: 1080px) and (min-width: 761px) {
	.action-board-header, .action-project > summary { grid-template-columns: minmax(95px, 1fr) minmax(75px, .75fr) minmax(75px, .75fr) minmax(180px, 1.55fr); gap: 10px; }
}

@media (max-width: 760px) {
	.content { padding: 30px 20px 50px; }
	.topbar { padding-right: 20px; padding-left: 20px; }
	.nav-item { font-size: 14px; }
	h1 { font-size: 32px; }
	.page-heading p { font-size: 16px; }
	.data-table td { white-space: normal; }
}

@media (max-width: 480px) {
	.content { padding: 24px 14px 40px; }
	.topbar { padding-right: 15px; padding-left: 15px; }
	h1 { font-size: 28px; }
	.page-heading p { font-size: 15px; }
	.inbox-sender strong, .inbox-subject strong { font-size: 14px; }
	.data-card { font-size: 15px; }
	.inline-edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
	.gantt-axis, .gantt-project-row, .gantt-task-row, .gantt-phase-row { grid-template-columns: minmax(190px, .85fr) minmax(330px, 1.5fr) 65px; gap: 12px; }
	.gantt-project-row { padding-right: 18px; padding-left: 38px; }
	.gantt-project-body { padding-left: 38px; }
}

@media (max-width: 760px) {
	.gantt-workspace { overflow: visible; }
	.gantt-metrics { grid-template-columns: repeat(3, 1fr); }
	.gantt-metrics > div { min-height: 82px; padding: 14px; }
	.gantt-axis, .gantt-project-row, .gantt-task-row, .gantt-phase-row { grid-template-columns: 1fr; gap: 8px; }
	.gantt-axis { padding: 14px 18px 9px; }
	.gantt-axis-label { display: none; }
	.gantt-project-row, .gantt-task-row { padding-right: 92px; }
	.gantt-project-row { min-height: 107px; padding-left: 38px; }
	.gantt-task-row { min-height: 94px; padding-left: 32px; }
	.gantt-project-body { padding: 3px 18px 19px 34px; }
	.gantt-task-body { padding: 15px 15px 17px 28px; }
	.gantt-row-visual { grid-column: 1; }
	.gantt-row-action { position: absolute; top: 17px; right: 18px; }
	.gantt-task-row .gantt-row-action { top: 14px; right: 14px; }
	.gantt-phase-row { grid-template-columns: 1fr; min-height: 85px; }
	.gantt-phase-row .gantt-entity, .gantt-phase-row .gantt-row-visual { grid-column: 1; }
	.gantt-phase-row .gantt-row-visual { grid-row: 2; }
	.gantt-detail-heading { align-items: flex-start; flex-direction: column; }
	.gantt-legend { align-items: flex-start; flex-direction: column; padding-right: 18px; padding-left: 18px; }
	.gantt-legend-help { margin-left: 0; }
}

@media (max-width: 480px) {
	.gantt-page-heading .page-actions { align-items: stretch; }
	.gantt-page-heading .page-actions > * { width: 100%; text-align: center; }
	.gantt-metrics { grid-template-columns: 1fr; }
	.gantt-metrics > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
	.gantt-metrics > div:last-child { border-bottom: 0; }
	.gantt-axis-track span { font-size: 9px; }
	.gantt-project-row { padding-left: 34px; }
	.gantt-project-body { padding-left: 18px; }
	.gantt-task-body { padding-left: 15px; }
	.gantt-detail-heading .btn { width: auto; }
}

@media (max-width: 980px) {
	.timeline-project > summary { grid-template-columns: minmax(200px, 1.3fr) minmax(130px, .8fr) minmax(145px, .9fr); }
	.timeline-project-communication { grid-column: 1 / -1; }
	.timeline-row { grid-template-columns: minmax(190px, .95fr) minmax(250px, 1.4fr); }
	.timeline-row-details { grid-column: 1 / -1; }
	.timeline-task-details { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
}

@media (max-width: 760px) {
	.timeline-board-toolbar, .timeline-project-actions { align-items: flex-start; flex-direction: column; }
	.timeline-legend { justify-content: flex-start; }
	.timeline-hint { padding-left: 0; border-left: 0; }
	.timeline-project > summary { display: block; padding: 14px 15px 14px 31px; }
	.timeline-project-owner, .timeline-project-status, .timeline-project-communication { margin-top: 12px; }
	.timeline-project-communication { grid-column: auto; }
	.timeline-project-body { padding: 0 12px 15px; }
	.timeline-project-actions > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
	.timeline-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px 10px; }
	.timeline-task > summary { align-items: flex-start; flex-wrap: wrap; row-gap: 4px; padding-left: 28px; }
	.timeline-task > summary:before { left: 10px; }
	.timeline-task > summary .timeline-row-label, .timeline-task > summary .timeline-row-details { flex: 1 1 100%; }
	.timeline-task > summary .timeline-row-label { gap: 8px; }
	.timeline-task > summary .timeline-row-details { gap: 8px; overflow: hidden; }
	.timeline-task > summary .timeline-row-details > span, .timeline-task > summary .timeline-row-details > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.timeline-row-details, .timeline-task-details, .timeline-phases, .timeline-phase-details { grid-column: 1; }
	.timeline-row-details { order: 3; }
	.timeline-row-label { order: 1; }
	.timeline-task-details { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
	.timeline-phases { order: 5; margin-left: 8px; }
	.timeline-phase { grid-template-columns: 1fr; }
	.timeline-phase-details { margin-left: 0; }
	.single-field-editor { max-width: calc(100vw - 55px); }
	.single-field-editor > small { display: none; }
	.single-field-editor .form-control, .single-field-editor select.form-control { min-width: 0; max-width: 190px; }
}

@media (max-width: 480px) {
	.timeline-project-name { align-items: flex-start; flex-direction: column; gap: 4px; }
	.timeline-project-name .inline-field { max-width: 100%; }
	.timeline-task-details { grid-template-columns: 1fr; }
	.timeline-phase-details { align-items: flex-start; flex-direction: column; }
	.timeline-project-actions .btn { width: 100%; }
}

@media (max-width: 760px) {
	.task-filter-form { align-items: stretch; flex-direction: column; }
	.task-filter-form select, .task-filter-form button { width: 100%; }
	.task-show-completed { justify-content: flex-start; }
}

.timeline-phase { display: grid; grid-template-columns: minmax(190px, .95fr) minmax(260px, 1.55fr) minmax(170px, .85fr); padding: 11px 12px 11px 14px; cursor: default; }
.timeline-phase:hover { background: #fcfdff; }
.timeline-phase.subtask-action-owner { background: #edf5ff; box-shadow: inset 3px 0 0 #4c83d8; }
.timeline-phase.subtask-action-owner .timeline-item-title .inline-field-value, .timeline-phase.subtask-action-owner .timeline-inline-meta .inline-field-value { color: #245da6; }
.action-board-notes { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; padding: 9px 11px; border: 1px solid #f0dca8; border-left: 3px solid #dda52c; border-radius: 5px; background: #fffaf0; color: #5f4e2d; }
.action-board-note { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; padding: 5px 0; border-bottom: 1px solid #f5e8c8; font-size: 13px; }
.action-board-note:last-child { border-bottom: 0; }
.action-board-note-text { flex: 1 1 220px; color: #4b4b45; }
.action-board-note small { color: #96845f; font-size: 11px; }
.action-board-note .btn { padding: 5px 8px; font-size: 11px; }
.timeline-project-communication .action-board-emails, .timeline-communication .action-board-emails, .timeline-phase-details .action-board-emails { display: inline-block; margin-top: 4px; }
.timeline-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 7px 0 10px; padding: 10px 12px; border: 1px solid #e1e8f2; border-radius: 6px; background: #f7f9fc; }
.timeline-section-heading strong, .timeline-section-heading span { display: block; }
.timeline-section-heading strong { margin-top: 2px; color: #263752; font-size: 15px; }
.timeline-section-heading > span { color: #7c8aa0; font-size: 12px; }

@media (max-width: 760px) {
	.timeline-phase { grid-template-columns: 1fr; }
	.timeline-phase-details { grid-template-columns: 1fr; }
}

/* Nested phase disclosures stay closed until their details are requested. */
.timeline-phase {
	display: block;
	padding: 0;
}
.timeline-phase:before { display: none; }
.timeline-phase > summary {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(185px, .8fr);
	padding: 11px 12px 11px 14px;
	cursor: pointer;
	list-style: none;
}
.timeline-phase > summary::-webkit-details-marker { display: none; }
.timeline-phase > summary:before {
	position: absolute;
	top: 50%;
	left: -2px;
	width: 14px;
	border-top: 2px solid #dce7f8;
	color: var(--blue);
	content: '›';
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}
.timeline-phase[open] > summary:before { transform: translateY(-50%) rotate(90deg); }
.timeline-phase[open] > summary { background: #f8fbff; }
.timeline-phase-body { display: block; }
.timeline-phase-details { margin: 0 10px 7px 12px; padding-bottom: 4px; }

@media (max-width: 760px) {
	.timeline-phase > summary { grid-template-columns: 1fr; }
	.timeline-phase-details { margin: 0 8px 6px; }
}

/* Inbox split workspace and filter panel. */
.inbox-page-heading { margin-bottom: 22px; }
.inbox-filter-card { margin-bottom: 18px; padding: 20px 24px; border: 1px solid #dfe6f1; box-shadow: 0 6px 18px rgba(34, 55, 86, .05); }
.inbox-filter-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(135px, 1fr)); gap: 14px; }
.inbox-filter-form label { display: flex; flex-direction: column; gap: 6px; color: #60708a; font-size: 12px; font-weight: 700; }
.inbox-filter-form input, .inbox-filter-form select { min-height: 38px; border-radius: 5px; font-size: 14px; }
.inbox-filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #edf1f6; color: #52627a; font-size: 13px; }
.inbox-filter-actions label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; }
.inbox-filter-actions .btn { min-height: 36px; }
.inbox-split-workspace { display: grid; grid-template-columns: minmax(390px, .9fr) minmax(480px, 1.35fr); align-items: start; gap: 18px; }
.inbox-list-pane { min-width: 0; padding: 0 16px; }
.inbox-detail-pane { position: sticky; top: 18px; min-width: 0; min-height: 500px; padding: 0 25px 25px; }
.inbox-list { max-height: calc(100vh - 320px); overflow-y: auto; }
.inbox-compact .inbox-row { min-width: 0; margin: 0; padding: 9px 7px; border-bottom: 1px solid #dfe6ef; border-left: 3px solid transparent; border-radius: 0; }
.inbox-compact .inbox-row { display: grid; grid-template-columns: 31px minmax(90px, .7fr) minmax(0, 1.35fr); align-items: center; gap: 3px 8px; }
.inbox-compact .inbox-sender { grid-column: 2; min-width: 0; }
.inbox-compact .inbox-subject { grid-column: 3; grid-row: 1 / span 2; }
.inbox-compact .email-links { grid-column: 2 / 4; grid-row: 3; min-width: 0; }
.inbox-compact .inbox-row:hover, .inbox-compact .inbox-row.selected { background: #f5f8fc; }
.inbox-compact .inbox-row.to-me { border-left-color: #4c83d8; background: #edf5ff; }
.inbox-compact .inbox-row.action-required { border-left-color: #d84848; box-shadow: inset 4px 0 0 #d84848; }
.inbox-compact .inbox-row.action-required.to-me { border-left-color: #d84848; }
.inbox-compact .inbox-row.action-required .inbox-subject strong { color: #b83232; }
.inbox-compact .inbox-row.read .inbox-sender strong, .inbox-compact .inbox-row.read .inbox-subject strong { color: #8d98a8; font-weight: 500; }
.inbox-compact .inbox-subject { min-width: 0; flex: 1 1 auto; }
.inbox-compact .inbox-subject span { display: block; display: -webkit-box; overflow: hidden; max-height: 38px; color: #68778d; font-size: 12px; line-height: 19px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.inbox-compact .inbox-subject strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-compact .email-links { flex: 0 0 150px; }
.inbox-compact .email-links small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-state { display: inline-block; margin-left: 6px; color: #748197; font-size: 11px; font-weight: 600; }
.email-state-unread { color: #253b62; }
.email-state-read { color: #a6afbc; }
.email-row-link-status { display: inline-block; margin-right: 6px; color: #2e7a50; font-size: 10px; font-weight: 700; }
.action-required-toggle.active { color: #d84848; background: #fff0f0; }
.link-type-toggle { padding: 2px 5px; color: #687890; border: 1px solid #d6deea; border-radius: 3px; background: #fff; cursor: pointer; font-size: 10px; }
.link-type-toggle.active { color: #9b5b19; border-color: #f0c98e; background: #fff7e8; }
.inbox-empty-state, .inbox-detail-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 220px; color: #7b8799; text-align: center; }
.inbox-empty-state strong, .inbox-detail-empty strong { color: #344764; font-size: 16px; }
.empty-icon { color: #8ca1c1; font-size: 35px; }
.email-unlinked-line, .email-linked-line { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; padding: 8px 18px; font-size: 11px; }
.email-unlinked-line { margin: -1px -25px 18px; color: #7d3434; border-bottom: 1px solid #f0bcbc; background: #fff2f2; }
.email-linked-line { margin: 18px -25px -25px; color: #365b84; border-top: 1px solid #b9d1f7; background: #edf5ff; }
.email-unlinked-line > strong, .email-linked-line > strong, .email-unlinked-prompt, .email-linked-prompt { flex: 0 0 auto; }
.email-unlinked-line > strong { font-size: 11px; }
.email-unlinked-prompt { color: #a04d4d; }
.email-linked-prompt { color: #5275a5; }
.email-unlinked-line .inline-form, .email-linked-line .inline-form { display: flex; align-items: center; flex: 1 1 300px; min-width: 260px; gap: 4px; margin: 0; }
.email-unlinked-line .input, .email-linked-line .input { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; gap: 4px; margin: 0; }
.email-unlinked-line label, .email-linked-line label { flex: 0 0 auto; margin: 0; font-size: 10px; font-weight: 700; }
.email-unlinked-line label { color: #8d4141; }
.email-linked-line label { color: #456b9d; }
.email-participant-picker { display: flex; align-items: center; flex: 1 1 260px !important; min-width: 230px; gap: 4px; }
.email-participant-picker .select2-container { flex: 1 1 auto; min-width: 0; }
.email-unlinked-line .form-control, .email-linked-line .form-control { min-width: 0; height: 30px; padding: 4px 7px; font-size: 11px; }
.email-unlinked-line .select2-container, .email-linked-line .select2-container { flex: 1 1 auto; width: 100% !important; min-width: 0; font-size: 11px; }
.email-unlinked-line .select2-container--default .select2-selection--single, .email-linked-line .select2-container--default .select2-selection--single { height: 30px; }
.email-unlinked-line .select2-container--default .select2-selection--single { border-color: #e2aaaa; }
.email-linked-line .select2-container--default .select2-selection--single { border-color: #a9c5ed; }
.email-unlinked-line .select2-container--default .select2-selection--single .select2-selection__rendered, .email-linked-line .select2-container--default .select2-selection--single .select2-selection__rendered { padding-right: 24px; line-height: 28px; }
.email-unlinked-line .select2-container--default .select2-selection--single .select2-selection__arrow, .email-linked-line .select2-container--default .select2-selection--single .select2-selection__arrow { height: 28px; }
.email-unlinked-line .select2-dropdown, .email-linked-line .select2-dropdown { min-width: 240px; }
.email-unlinked-line .inline-form input[type="submit"] { padding: 5px 7px; color: #fff; border: 0; border-radius: 4px; background: #d9534f; font-size: 10px; }
.email-linked-line .inline-form input[type="submit"] { padding: 5px 7px; color: #fff; border: 0; border-radius: 4px; background: #2f6fed; font-size: 10px; }
.email-task-action-form { margin: 0; }
.email-task-current-assignee { align-self: center; color: #52627a; font-size: 11px; font-weight: 600; white-space: nowrap; }
.email-task-action-result { display: block; min-height: 16px; margin-top: 8px; color: #2f7d58; font-size: 11px; }
.email-task-action-result.is-error { color: #b53c3c; }
.email-task-action-line { display: inline-flex; align-items: center; flex: 1 1 auto; flex-wrap: wrap; gap: 5px 7px; margin: 0; padding: 0; border: 0; }
.email-task-action-line label, .email-task-status-form label { display: flex; flex: 1 1 160px; flex-direction: column; min-width: 0; gap: 2px; color: #52627a; font-size: 10px; font-weight: 700; }
.email-task-action-line .form-control, .email-task-status-form .form-control { height: 30px; padding: 4px 7px; font-size: 11px; }
.email-task-action-line .btn, .email-task-status-form .btn { min-height: 30px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.email-task-action-line .email-task-current-assignee { align-self: center; font-size: 10px; }
.email-task-action-line .email-connected-work-label { color: #52627a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.email-task-action-line .email-task-action-result { flex: 0 1 170px; min-height: 13px; margin-top: 0; font-size: 10px; }
.email-participant-selected { color: #5275a5; font-size: 10px; white-space: nowrap; }
.email-task-status-form { display: inline-flex; align-items: flex-end; flex-wrap: wrap; gap: 5px; margin: 0 2px 0 0; }
.email-task-status-form label { flex: 0 1 135px; }
.email-task-status-form .email-task-status-result { align-self: center; color: #2f7d58; font-size: 10px; }
.email-task-status-form .email-task-status-result.is-error { color: #b53c3c; }
.email-thread-form { display: inline-flex; align-items: center; flex: 0 1 240px; gap: 5px; }
.email-thread-form label { display: flex; align-items: center; gap: 4px; margin: 0; color: #52627a; font-size: 10px; font-weight: 700; white-space: nowrap; }
.email-thread-form .form-control { width: 150px; height: 30px; padding: 4px 7px; font-size: 11px; }
.email-thread-form .btn { min-height: 30px; padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.email-thread-assignment { color: #52627a; font-size: 10px; white-space: nowrap; }
.ajax-modal .inbox-split-workspace { grid-template-columns: 1fr; }
.ajax-modal .inbox-detail-pane { position: static; min-height: 0; }
.ajax-modal .inbox-list { max-height: 360px; }
.ajax-modal .folder-nav { flex-wrap: wrap; }
.ajax-modal .inbox-filter-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.ajax-modal .inbox-filter-search { grid-column: 1 / -1; }
.action-email-timeline-heading { align-items: center; margin-bottom: 20px; }
.action-email-timeline-count { display: flex; align-items: baseline; gap: 6px; padding: 12px 16px; border: 1px solid #dce6f3; border-radius: 8px; background: #f7faff; color: #71809a; }
.action-email-timeline-count strong { color: #1c3f70; font-size: 25px; line-height: 1; }
.action-email-timeline-count span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.action-email-timeline { padding: 0 28px 22px; }
.action-email-timeline-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 0 15px; border-bottom: 1px solid #e5ebf3; }
.action-email-timeline-header strong { display: block; margin-top: 3px; color: #263752; font-size: 17px; }
.action-email-timeline-list { position: relative; padding: 5px 0 2px; }
.action-email-timeline-list:before { position: absolute; top: 0; bottom: 0; left: 126px; width: 2px; background: #e3eaf4; content: ''; }
.action-email-timeline-item { position: relative; display: grid; grid-template-columns: 105px 42px minmax(0, 1fr); min-width: 0; padding: 19px 0; border-bottom: 1px solid #edf1f6; }
.action-email-timeline-item:last-child { border-bottom: 0; }
.action-email-timeline-date { padding-top: 3px; color: #6f7e95; text-align: right; }
.action-email-timeline-date strong, .action-email-timeline-date span { display: block; }
.action-email-timeline-date strong { color: #405776; font-size: 12px; }
.action-email-timeline-date span { margin-top: 4px; color: #a2adbd; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.action-email-timeline-marker { position: relative; z-index: 1; display: flex; justify-content: center; padding-top: 6px; }
.action-email-timeline-marker span { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #6a91ca; box-shadow: 0 0 0 2px #b9cce7; }
.action-email-timeline-item.is-unread .action-email-timeline-marker span { background: #2d6ec5; box-shadow: 0 0 0 2px #8fb4e7, 0 0 0 6px #edf5ff; }
.action-email-timeline-item.is-action-required .action-email-timeline-marker span { background: #d84848; box-shadow: 0 0 0 2px #efb3b3, 0 0 0 6px #fff1f1; }
.action-email-timeline-content { min-width: 0; padding-left: 4px; }
.action-email-timeline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #61718a; font-size: 12px; }
.action-email-timeline-meta .mini-avatar { width: 25px; height: 25px; font-size: 9px; }
.action-email-timeline-meta strong { color: #314767; }
.action-email-timeline-folder { color: #9aa6b8; font-size: 10px; }
.action-email-timeline-flag { padding: 3px 6px; color: #a33333; border-radius: 4px; background: #fff0f0; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.action-email-timeline-subject { display: block; overflow: hidden; margin-top: 8px; color: #245da8; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.action-email-timeline-item.is-read .action-email-timeline-subject { color: #71809a; font-weight: 600; }
.action-email-timeline-content p { display: -webkit-box; overflow: hidden; max-width: 900px; margin: 5px 0 8px; color: #64748b; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.action-email-timeline-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: #94a1b3; font-size: 11px; }
.action-email-timeline-links span:before { margin-right: 4px; color: #b0bdcc; content: '↳'; }
.action-email-timeline-links .btn { margin-left: auto; padding: 0; color: #356eb3; }
.action-email-timeline-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 17px; border-top: 1px solid #edf1f6; color: #71809a; font-size: 12px; }

@media (max-width: 980px) {
	.inbox-filter-grid { grid-template-columns: repeat(3, minmax(135px, 1fr)); }
	.inbox-filter-search { grid-column: 1 / -1; }
	.inbox-split-workspace { grid-template-columns: 1fr; }
	.inbox-detail-pane { position: static; min-height: 0; }
	.inbox-list { max-height: none; }
}

@media (max-width: 600px) {
	.email-participant-popover { width: calc(100vw - 16px); max-width: 260px; }
	.inbox-filter-card { padding: 15px; }
	.inbox-filter-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.inbox-filter-search { grid-column: 1 / -1; }
	.inbox-filter-actions { align-items: stretch; flex-direction: column; gap: 10px; }
	.inbox-filter-actions .btn { width: 100%; }
	.inbox-list-pane, .inbox-detail-pane { padding-right: 12px; padding-left: 12px; }
	.inbox-compact .inbox-row { display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 3px 8px; }
	.inbox-compact .inbox-sender { grid-column: 2; }
	.inbox-compact .inbox-subject { grid-column: 2; }
	.inbox-compact .email-links { grid-column: 2; width: auto; }
	.action-email-timeline-heading { align-items: flex-start; }
	.action-email-timeline-count { align-self: stretch; justify-content: center; }
	.action-email-timeline { padding-right: 15px; padding-left: 15px; }
	.action-email-timeline-list:before { left: 17px; }
	.action-email-timeline-item { grid-template-columns: 34px minmax(0, 1fr); padding: 15px 0; }
	.action-email-timeline-date { grid-column: 2; grid-row: 1; padding: 0 0 5px; text-align: left; }
	.action-email-timeline-date strong, .action-email-timeline-date span { display: inline; }
	.action-email-timeline-date span { margin-left: 7px; }
	.action-email-timeline-marker { grid-column: 1; grid-row: 1 / span 2; padding-top: 4px; }
	.action-email-timeline-content { grid-column: 2; grid-row: 2; padding-left: 0; }
	.action-email-timeline-subject { font-size: 14px; }
	.action-email-timeline-links .btn { margin-left: 0; }
	.email-unlinked-line, .email-linked-line { margin-right: -12px; margin-left: -12px; }
	.email-linked-line { margin-bottom: -12px; }
	.email-unlinked-line .inline-form { flex-basis: 100%; min-width: 0; }
	.email-linked-line .inline-form { flex-basis: 100%; min-width: 0; }
	.email-unlinked-line .input, .email-unlinked-line .select2-container, .email-linked-line .input, .email-linked-line .select2-container { min-width: 0; }
	.email-task-action-line, .email-task-status-form { align-items: stretch; width: 100%; }
	.email-task-action-line label, .email-task-status-form label { flex-basis: 100%; width: 100%; }
	.email-task-action-line .btn, .email-task-status-form .btn { width: 100%; }
	.email-linked-action-row { align-items: stretch; flex-basis: 100%; width: 100%; }
	.email-linked-action-row > .email-connected-work-label { flex-basis: 100%; }
	.email-thread-form { align-items: stretch; flex-basis: 100%; width: 100%; }
	.email-thread-form label, .email-thread-form .form-control, .email-thread-form .btn { width: 100%; }
	.email-thread-form label { align-items: stretch; flex-direction: column; }
	.email-task-current-assignee { max-width: none; }
	.timeline-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.person-actions { display: flex; align-items: center; flex: 0 0 auto; flex-wrap: wrap; gap: 5px; }
.person-actions .btn { white-space: nowrap; }
.email-activity-card { margin-top: 18px; }
.email-activity-list { font-size: 14px; }
.email-activity-row { display: grid; grid-template-columns: minmax(170px, 1fr) 90px 90px 90px; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid #edf1f6; }
.email-activity-row:last-child { border-bottom: 0; }
.email-activity-header { color: #78869a; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.email-activity-row > :not(:first-child) { text-align: center; }
.activity-sent { color: #3e72b5; }
.activity-received { color: #47815e; }

@media (max-width: 760px) {
	.person-actions { flex-basis: 100%; margin-left: 41px; }
	.email-activity-row { grid-template-columns: minmax(120px, 1fr) repeat(3, 58px); gap: 5px; }
}

/* Keep each opened Action Board subtask in one readable state palette. */
.timeline-phases { border-left-color: #173f73; }
.timeline-phase {
	--phase-bg: #eef1f4;
	--phase-surface: #f5f6f8;
	--phase-border: #b6c0cd;
	--phase-accent: #687587;
	--phase-text: #344054;
	--phase-link: #526273;
	display: block;
	margin-bottom: 8px;
	border: 1px solid var(--phase-border);
	border-left: 4px solid var(--phase-accent);
	background: var(--phase-bg);
	color: var(--phase-text);
}
.timeline-phase.status-todo {
	--phase-bg: #eef1f4;
	--phase-surface: #f5f6f8;
	--phase-border: #b6c0cd;
	--phase-accent: #687587;
	--phase-text: #344054;
	--phase-link: #526273;
}
.timeline-phase.status-in_progress {
	--phase-bg: #fff4c7;
	--phase-surface: #fff9e4;
	--phase-border: #e2bd45;
	--phase-accent: #946c00;
	--phase-text: #5f4900;
	--phase-link: #795f00;
}
.timeline-phase.status-completed {
	--phase-bg: #e5f5e9;
	--phase-surface: #f1faf3;
	--phase-border: #8bc59e;
	--phase-accent: #287a4b;
	--phase-text: #245c3b;
	--phase-link: #256442;
}
.timeline-phase.status-with_support {
	--phase-bg: #fff0df;
	--phase-surface: #fff7ee;
	--phase-border: #e3b27a;
	--phase-accent: #a76019;
	--phase-text: #74430f;
	--phase-link: #8e5518;
}
.timeline-phase.status-cancelled {
	--phase-bg: #eef1f4;
	--phase-surface: #f5f6f8;
	--phase-border: #b6c0cd;
	--phase-accent: #687587;
	--phase-text: #4b5666;
	--phase-link: #526273;
}
.timeline-phase.is-time-critical {
	--phase-bg: #ffebe8;
	--phase-surface: #fff5f4;
	--phase-border: #e5a09b;
	--phase-accent: #b83e3a;
	--phase-text: #7d2d29;
	--phase-link: #a13d35;
}
.timeline-phase > summary,
.timeline-phase[open] > summary,
.timeline-phase-body {
	background: var(--phase-bg);
	color: var(--phase-text);
}
.timeline-phase:hover,
.timeline-phase.subtask-action-owner {
	background: var(--phase-bg);
}
.timeline-phase.subtask-action-owner {
	box-shadow: inset 0 0 0 1px var(--phase-link);
}
.timeline-phase > summary {
	border-bottom: 1px solid var(--phase-border);
}
.timeline-phase > summary:before {
	border-top-color: #173f73;
	color: var(--phase-accent);
}
.timeline-phase .timeline-type,
.timeline-phase .timeline-item-title .inline-field-value,
.timeline-phase .timeline-inline-meta .inline-field-value,
.timeline-phase .timeline-row-details,
.timeline-phase .timeline-row-details small,
.timeline-phase .timeline-phase-details .inline-field-value {
	color: var(--phase-text);
}
.timeline-phase .timeline-type,
.timeline-phase .detail-label {
	color: var(--phase-link);
}
.timeline-phase .timeline-phase-details {
	border-top-color: var(--phase-border);
}
.timeline-phase .timeline-phase-communication a {
	color: var(--phase-link);
}
.timeline-phase .timeline-phase-communication small,
.timeline-phase .time-critical-label {
	color: var(--phase-link);
}
.timeline-phase .field-pencil {
	color: var(--phase-link);
	background: transparent;
}
.timeline-phase .field-pencil:hover,
.timeline-phase .field-pencil:focus {
	background: var(--phase-surface);
	outline: 0;
}
.timeline-phase .single-field-editor {
	border-color: var(--phase-border);
	background: var(--phase-surface);
}
.timeline-phase .single-field-editor .form-control {
	border-color: var(--phase-border);
	background: var(--phase-surface);
	color: var(--phase-text);
}
.timeline-phase .single-field-save {
	border-color: var(--phase-accent);
	background: var(--phase-accent);
}
.timeline-phase .action-board-notes {
	border-color: var(--phase-border);
	border-left-color: var(--phase-accent);
	background: var(--phase-surface);
	color: var(--phase-text);
}
.timeline-phase .action-board-note {
	border-bottom-color: var(--phase-border);
}
.timeline-phase .action-board-note-text,
.timeline-phase .action-board-note small {
	color: var(--phase-text);
}
.timeline-phase.status-todo .status-text.status-badge {
	color: #526273 !important;
	background: #dfe4e9 !important;
}
.timeline-phase.status-in_progress .status-text.status-badge {
	color: #795f00 !important;
	background: #ffe8a3 !important;
}
.timeline-phase.status-completed .status-text.status-badge {
	color: #256442 !important;
	background: #c9ecd4 !important;
}
.timeline-phase.status-with_support .status-text.status-badge {
	color: #8e5518 !important;
	background: #ffe1b8 !important;
}
.timeline-phase.is-time-critical .status-text.status-badge {
	color: #a13d35 !important;
	background: #ffd7d3 !important;
}
.timeline-phase.status-cancelled .status-text.status-badge {
	color: #526273 !important;
	background: #dfe4e9 !important;
}

/* Action Board work-item actions use the same visible Bootstrap button treatment. */
.timeline-board .action-board-email-link,
.timeline-board .action-board-emails,
.timeline-board .action-board-note-add,
.timeline-board .action-board-subtask-add {
	display: inline-flex;
	align-items: center;
	width: auto;
	margin: 4px 4px 0 0;
	white-space: nowrap;
}
.timeline-board .action-board-email-link,
.timeline-board .action-board-emails,
.timeline-board .action-board-note-add,
.timeline-board .action-board-note-edit,
.timeline-board .action-board-note-delete {
	color: #333;
	background-color: #fff;
	border-color: #ccc;
}
.timeline-board .action-board-subtask-add {
	color: #fff;
	background-color: #337ab7;
	border-color: #2e6da4;
}
.timeline-board .action-board-note-add,
.timeline-board .action-board-subtask-add {
	padding: 3px 7px;
	font-size: 11px;
	line-height: 1.4;
	max-height: 37px !important;
}
.timeline-board .timeline-project-communication .action-board-email-link,
.timeline-board .timeline-communication .action-board-email-link {
	font-size: 12px;
	text-overflow: clip;
}
