.team-update-initiative-section-heading h4 {
	margin: 0;
}

.team-update-initiative-section-heading h4 {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.team-update-initiative-section-heading .context-icon--task {
	width: 16px;
	height: 16px;
	color: #64748b;
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
	--bg: #f5f7fb;
	--surface: rgba(255, 255, 255, 0.92);
	--surface-strong: #ffffff;
	--text: #152033;
	--muted: #667085;
	--line: rgba(15, 23, 42, 0.08);
	--accent: #ff6c0c;
	--accent-soft: #fff1e7;
	--brand-blue: #123c72;
	--brand-blue-soft: #e9f1fb;
	--shadow: 0 20px 45px rgba(18, 60, 114, 0.08);
	--space-1: 8px;
	--space-2: 12px;
	--space-3: 16px;
	--space-4: 20px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 40px;
}
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Lato", "Segoe UI", "Trebuchet MS", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(255, 108, 12, 0.14), transparent 24%),
		radial-gradient(circle at top right, rgba(18, 60, 114, 0.14), transparent 28%),
		linear-gradient(180deg, #fbfcff 0%, #f2f5fb 100%);
}

a {
	color: inherit;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(18px);
	background: rgba(8, 31, 40, 0.96);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-3) var(--space-4);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-5);
}

.topbar-session {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-left: auto;
}

.session-user {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
}

.brand,
.topbar-links a {
	text-decoration: none;
}

.brand {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
}

.brand-logo {
	height: 34px;
	width: auto;
	display: block;
}

.topbar-links {
	display: flex;
	align-items: center;
	gap: 0;
	margin-left: var(--space-4);
	color: rgba(255, 255, 255, 0.76);
}

.topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	white-space: nowrap;
}

.topbar-link + .topbar-link {
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-link svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
	color: #ffffff;
}

.flash {
	max-width: 1280px;
	margin: var(--space-2) auto 0;
	padding: var(--space-2) var(--space-3);
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface-strong);
}

.flash-alert {
	color: #9a3412;
	background: #fff7ed;
}

.shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-7) var(--space-3) 64px;
}

.hero,
.grid {
	display: grid;
	gap: var(--space-5);
}

.hero {
	grid-template-columns: 2fr 1fr;
	align-items: start;
	margin-bottom: var(--space-6);
}

.hero h1,
.section-header h2 {
	margin: 0;
}

.dashboard-section-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.dashboard-section-title .context-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.dashboard-initiative-title {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.dashboard-initiative-title .context-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.dashboard-team-title {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.dashboard-team-title .context-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.hero h1 {
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.02;
	margin-top: 10px;
}

.eyebrow,
.label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 0 0 6px;
}

.breadcrumb-home {
	display: inline-flex;
	align-items: center;
	color: var(--muted);
}

.breadcrumb-link,
.breadcrumb-current {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}

.context-icon {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.context-icon--person { color: #0f766e; }
.context-icon--people { color: #0891b2; }
.context-icon--overview { color: #2563eb; }
.context-icon--allocation { color: #d97706; }
.context-icon--initiative { color: var(--accent); }
.context-icon--program { color: #7c3aed; }
.context-icon--update { color: #2563eb; }
.context-icon--team { color: #0891b2; }
.context-icon--note { color: #7c3aed; }
.context-icon--plan { color: #2563eb; }
.context-icon--help { color: #c2410c; }
.context-icon--review { color: #0f766e; }

.button:disabled {
	background: #e5e7eb;
	border-color: #d1d5db;
	color: #6b7280;
	cursor: wait;
	opacity: 1;
	box-shadow: none;
}

.context-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.context-label .context-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
}

.breadcrumb a:hover {
	color: var(--text);
	text-decoration: underline;
}

.breadcrumb-sep {
	margin: 0 6px;
}

.breadcrumb-current {
	color: var(--text);
}

.intro,
.item-row p,
.empty-state,
.note {
	color: var(--muted);
	line-height: 1.55;
}

.hero-card,
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 28px;
	box-shadow: var(--shadow);
}

.hero-card {
	padding: 24px;
	display: grid;
	gap: 8px;
	align-content: start;
}

.hero-card-highlight {
	background: linear-gradient(135deg, rgba(18, 60, 114, 0.96), rgba(25, 84, 158, 0.94));
	color: #fff;
}

.hero-card-highlight .label,
.hero-card-highlight .note {
	color: rgba(255, 255, 255, 0.82);
}

.hero-card-compact {
	width: fit-content;
	min-width: 220px;
	justify-self: end;
}

.hero-card strong,
.metric-card strong {
	font-size: 42px;
}

.metrics {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: var(--space-6);
}

.content-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-update-session-section {
	margin-top: var(--space-5);
}

.team-update-page-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 8px;
}

.team-update-page-title__routine {
	color: var(--muted);
	font-size: 24px;
	font-weight: 500;
}

.team-update-page-title__separator {
	color: var(--line-strong);
	font-size: 25px;
	font-weight: 400;
}

.team-update-page-title__team {
	color: var(--text);
	font-size: 34px;
	font-weight: 800;
}

.team-update-page-title__meeting-date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: 12px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	vertical-align: middle;
}

.team-update-page-title__meeting-date .button {
	padding: 5px;
}

.team-update-page-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.team-update-page-meta strong {
	color: var(--text);
}

.team-update-session-section--current {
	padding: 20px 0 24px;
}

.team-update-session-section--history {
	margin-top: var(--space-6);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(248, 250, 252, 0.72);
	overflow: hidden;
}

.team-update-create-card form {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
	align-items: end;
	gap: var(--space-3);
}

.team-update-create-card form .form-actions {
	margin: 0;
	padding: 0;
}

.team-update-create-dialog {
	width: min(520px, calc(100vw - 32px));
	max-width: 520px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(18, 60, 114, 0.2);
}

.team-update-create-dialog::backdrop {
	background: rgba(15, 35, 58, 0.42);
}

.team-update-create-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.team-update-create-dialog__header h2 {
	margin: 4px 0 0;
}

.team-update-create-dialog form {
	grid-template-columns: 1fr;
}

.team-update-create-dialog form .form-actions {
	justify-content: flex-end;
	margin-top: 4px;
}

.team-update-overview {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: var(--space-4) 0;
}

.team-update-overview__item {
	display: grid;
	gap: 4px;
	min-height: 112px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 6px 18px rgba(18, 60, 114, 0.05);
}

.team-update-overview__item strong {
	color: var(--brand-blue);
	font-size: 30px;
	line-height: 1;
}

.team-update-overview__item > span:last-child {
	color: var(--muted);
	font-size: 12px;
}

.team-update-overview__item--review {
	border-top-color: var(--teal);
}

.team-update-overview__item--history {
	border-top-color: var(--brand-blue);
}

.team-update-session-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: var(--space-3);
}

.team-update-session-section__header h2 {
	margin: 4px 0;
}

.team-update-session-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-update-session-groups,
.team-update-history-groups {
	display: grid;
	gap: var(--space-4);
}

.team-update-active-list {
	display: grid;
	gap: 8px;
}

.team-update-active-row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 16px;
	min-height: 76px;
	padding: 12px 16px;
	border-left: 3px solid var(--accent);
	background: rgba(255, 255, 255, 0.86);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.team-update-active-row:hover {
	border-left-color: var(--brand-blue);
	box-shadow: 0 7px 18px rgba(18, 60, 114, 0.08);
	transform: translateX(2px);
}

.team-update-active-row__date {
	color: var(--brand-blue);
	font-size: 17px;
	font-weight: 800;
}

.team-update-active-row__period {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.team-update-active-row__period strong,
.team-update-active-row__period small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.team-update-active-row__period small {
	color: var(--muted);
	font-size: 12px;
}

.team-update-active-row__progress {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: var(--muted);
	font-size: 11px;
}

.team-update-active-row__progress span + span::before {
	content: "•";
	margin-right: 8px;
}

.team-update-active-row__arrow {
	color: var(--brand-blue);
	font-size: 22px;
	line-height: 1;
}

.team-update-session-team-group {
	display: grid;
	gap: 10px;
}

.team-update-session-team-group__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 4px;
}

.team-update-session-team-group__header h3 {
	margin: 0;
	font-size: 16px;
}

.team-update-session-team-group__header span {
	color: var(--muted);
	font-size: 12px;
}

.team-update-session-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 156px;
	padding: 16px 18px;
	border-top: 3px solid var(--accent);
	box-shadow: 0 6px 20px rgba(18, 60, 114, 0.06);
	color: inherit;
	text-decoration: none;
}

.team-update-session-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.team-update-session-card h2 {
	margin: 5px 0 0;
	font-size: 17px;
}

.team-update-session-card__date {
	display: block;
	color: var(--brand-blue);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.1;
}

.team-update-session-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.team-update-session-card .button {
	align-self: flex-start;
	margin-top: auto;
}

.team-update-history-row__hint {
	align-self: center;
	justify-self: end;
	color: var(--brand-blue);
	font-size: 13px;
	font-weight: 700;
}

.team-update-session-card--history {
	border-top-color: var(--brand-blue);
	background: rgba(248, 250, 252, 0.88);
}

.team-update-session-history {
	border-top: 3px solid var(--brand-blue);
}

.team-update-history-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 0 18px;
	list-style: none;
	cursor: pointer;
}

.team-update-history-summary::-webkit-details-marker {
	display: none;
}

.team-update-history-summary h2 {
	margin: 0;
}

.team-update-history-summary__arrow {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 4px 0 2px;
	border-right: 2px solid var(--brand-blue);
	border-bottom: 2px solid var(--brand-blue);
	transform: rotate(-45deg);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.team-update-session-history[open] .team-update-history-summary__arrow {
	transform: rotate(45deg);
	border-color: var(--teal);
}

.team-update-session-history[open] .team-update-history-summary {
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.72);
}

.team-update-session-history > .team-update-history-groups,
.team-update-session-history > .empty-state {
	padding: 18px;
}

.team-update-history-summary:hover h2 {
	color: var(--brand-blue);
}

.team-update-history-list {
	display: grid;
	gap: 8px;
}

.team-update-history-row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto 18px;
	align-items: center;
	gap: 16px;
	min-height: 58px;
	padding: 10px 14px;
	border-left: 3px solid var(--brand-blue);
	background: rgba(248, 250, 252, 0.78);
	color: inherit;
	text-decoration: none;
}

.team-update-history-row__date {
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.team-update-history-row__period {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.team-update-history-row__period strong,
.team-update-history-row__period small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.team-update-history-row__period strong {
	font-size: 13px;
}

.team-update-history-row__period small {
	color: var(--muted);
	font-size: 12px;
}

.team-update-history-row .button {
	white-space: nowrap;
}

.executive-grid {
	grid-template-columns: 1.1fr 0.9fr;
}

.executive-grid-compact {
	align-items: start;
}

.dashboard-flow-grid {
	margin-top: var(--space-5);
}

.dashboard-secondary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
	align-items: start;
}

.dashboard-bottom-grid {
	margin-top: var(--space-6);
}

.person-switcher-form {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.dashboard-context-heading {
	display: grid;
	gap: 4px;
	margin-bottom: var(--space-3);
}

.dashboard-context-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-strong);
}

.dashboard-context-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.dashboard-context-tab:hover,
.dashboard-context-tab:focus-visible {
	background: #fff;
	color: var(--text);
	box-shadow: 0 2px 8px rgba(18, 60, 114, 0.08);
}

.dashboard-context-tab.is-active {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 108, 12, 0.24);
}

.dashboard-context-tab.is-active .context-icon {
	color: currentColor;
}

.person-switcher-card .person-switcher-form {
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid var(--line);
}

.person-switcher-card .person-switcher-form label {
	min-width: 140px;
}

.person-switcher-form label {
	font-weight: 700;
	color: var(--muted);
}

.person-switcher-form .quick-select {
	min-width: 240px;
	--qs-bg: #fff;
	--qs-color: var(--text);
	box-shadow: inset 0 0 0 1.5px var(--line);
}

.person-switcher-mode {
	margin-bottom: 10px;
}

.person-switcher-card {
	margin-bottom: var(--space-6);
}

.person-switcher-card:has(.person-switcher-mode) {
	border-color: rgba(37, 99, 235, 0.35);
}

.section-card,
.metric-card {
	padding: var(--space-4);
}

.metric-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 253, 0.98));
}

.metric-card .label {
	display: block;
	margin-bottom: 12px;
}

.metric-card strong {
	display: block;
	font-size: 48px;
	line-height: 1;
}

.metric-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	border-radius: 28px 0 0 28px;
	background: var(--accent);
}

.metric-card--em-andamento::before {
	background: #0f766e;
}

.metric-card--planejado::before {
	background: var(--brand-blue);
}

.metric-card--no-radar::before {
	background: #98a2b3;
}

.metric-card--pausado::before {
	background: #d97706;
}

.section-header,
.item-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.section-header {
	margin-bottom: 16px;
}

.section-header-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-2);
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}

.section-header-link {
	text-decoration: none;
	font-weight: 700;
	color: var(--brand-blue);
}

.stack {
	display: grid;
	gap: 12px;
}

.item-row {
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.item-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.clickable-card {
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clickable-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 35px rgba(18, 60, 114, 0.12);
	border-color: rgba(18, 60, 114, 0.18);
}

.dashboard-row-link {
	display: flex;
}

.item-row strong {
	display: block;
	margin-bottom: 4px;
}

.item-row p {
	margin: 0;
}

.item-meta {
	display: grid;
	gap: 6px;
	justify-items: end;
	text-align: right;
	color: var(--muted);
	font-size: 14px;
}

.item-meta.emphasis {
	color: var(--accent);
	font-weight: 700;
}

.dashboard-attention-groups {
	display: grid;
	gap: var(--space-4);
}

.dashboard-attention-group__header {
	margin-bottom: var(--space-2);
}

.dashboard-attention-group__header h3 {
	margin: 0;
	font-size: 16px;
}

.full-width {
	margin-top: var(--space-6);
}

.program-overview-card {
	padding-bottom: var(--space-3);
}

.program-overview-card .section-header {
	margin-bottom: var(--space-3);
}

.dashboard-after-programs {
	margin-top: var(--space-4);
}

.focus-panel,
.attention-panel {
	min-height: 100%;
}

.focus-item {
	padding: 12px 0;
}

.attention-load-inline {
	font-size: 22px;
	font-weight: 700;
	color: var(--brand-blue);
}

.lane {
	position: relative;
	overflow: hidden;
}

.lane-progress {
	background: linear-gradient(180deg, rgba(223, 248, 243, 0.92), rgba(255, 253, 250, 0.92));
	}

.lane-planned {
	background: linear-gradient(180deg, rgba(232, 240, 255, 0.92), rgba(255, 253, 250, 0.92));
	}

.lane-item {
	padding: 14px;
	border-radius: 18px;
	border-top: 0;
	background: rgba(255, 255, 255, 0.72);
	}

.lane-item + .lane-item {
	margin-top: 10px;
	}

.lane-item-progress {
	border-left: 5px solid #0f766e;
	}

.lane-item-planned {
	border-left: 5px solid #3157c8;
	}

.lane-item.is-em-andamento {
	border-left: 5px solid #0f766e;
	}

.lane-item.is-planejado {
	border-left: 5px solid #3157c8;
	}

.lane-item.is-no-radar {
	border-left: 5px solid #98a2b3;
	}

.lane-item.is-pausado {
	border-left: 5px solid #d97706;
	}

.mini-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	min-width: 88px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	word-break: keep-all;
	flex-shrink: 0;
}

.mini-badge-progress {
	background: #dff8f3;
	color: #0f766e;
}

.mini-badge-planned {
	background: #e7efff;
	color: #3157c8;
}

.mini-badge-radar {
	background: #f3f4f6;
	color: #4b5563;
}

.mini-badge-automatic {
	background: #ede9fe;
	color: #6d28d9;
}

.mini-badge-manual {
	background: #dcfce7;
	color: #166534;
}

.mini-badge-paused {
	background: #fff0d8;
	color: #b45309;
}

.mini-badge-warning {
	background: #fff4d6;
	color: #a16207;
}

.mini-badge-critical {
	background: #fee2e2;
	color: #b91c1c;
}

.program-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
	align-items: start;
}

.program-card {
	padding: var(--space-3);
	border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 248, 253, 0.98));
	border: 1px solid var(--line);
}

.inline-badge-link {
	text-decoration: none;
}

.program-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
	margin-bottom: var(--space-2);
}

.program-total {
	min-width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 700;
}

.program-stats {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.program-stats .status-badge {
	padding-inline: 8px;
	font-size: 11px;
	min-width: 0;
	min-height: 26px;
}

.program-card .program-total {
	min-width: 36px;
	height: 36px;
}

.paused-strip {
	background: linear-gradient(180deg, rgba(255, 245, 230, 0.96), rgba(255, 253, 250, 0.92));
}

.radar-strip {
	background: linear-gradient(180deg, rgba(243, 244, 246, 0.96), rgba(255, 253, 250, 0.92));
}

.radar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

.radar-card {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(107, 114, 128, 0.14);
}

.radar-card p {
	margin: 6px 0 12px;
	color: var(--muted);
}

.paused-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-4);
}

.paused-card {
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid rgba(180, 83, 9, 0.16);
}

.paused-card p {
	margin: 6px 0 12px;
	color: var(--muted);
}

.attention-strip {
	background: linear-gradient(180deg, rgba(255, 244, 214, 0.96), rgba(255, 253, 250, 0.92));
}

.dashboard-blockers-strip {
	margin-top: var(--space-4);
	background: linear-gradient(180deg, rgba(255, 239, 235, 0.94), rgba(255, 252, 250, 0.92));
}

.dashboard-blockers-count {
	font-weight: 700;
	color: #9f1239;
}

.attention-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-4);
}

.attention-card {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.attention-card p {
	margin: 6px 0 0;
	color: var(--muted);
}

.attention-card-warning {
	border-left: 5px solid var(--accent);
}

.attention-card-healthy {
	border-left: 5px solid #0f766e;
}

.attention-card-critical {
	border-left: 5px solid #dc2626;
}

.attention-card-paused {
	border-left: 5px solid #b45309;
}

.attention-card-radar {
	border-left: 5px solid #6b7280;
}

.attention-meta {
	display: grid;
	justify-items: end;
	gap: 8px;
}

.attention-load {
	font-size: 24px;
	font-weight: 700;
}

.dashboard-risk-strip {
	margin-top: var(--space-4);
}

.dashboard-alerts-toggle-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dashboard-alerts-disclosure {
	position: relative;
}

.dashboard-alerts-disclosure__summary {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-weight: 700;
	color: var(--brand-blue);
}

.dashboard-alerts-chevron {
	margin-left: 2px;
}

.dashboard-alerts-extra-grid {
	display: none;
	margin-top: var(--space-4);
}

.dashboard-alerts-toggle-checkbox:checked ~ .dashboard-alerts-extra-grid {
	display: grid;
}

.dashboard-alerts-toggle-checkbox:checked ~ .section-header .dashboard-alerts-chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.list-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--space-6) var(--space-3) 56px;
}

.list-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.list-header h1 {
	margin: 0;
}

.table-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.filter-card {
	padding: var(--space-4);
	margin-bottom: var(--space-4);
}

.bulk-card {
	margin-top: 0;
}

.bulk-toolbar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
}

.bulk-controls {
	display: flex;
	align-items: flex-end;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.bulk-controls label {
	display: block;
	margin-bottom: 6px;
}

.bulk-controls select,
.bulk-controls input {
	min-width: 150px;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.checkbox-column {
	width: 44px;
	text-align: center;
}

.bulk-checkbox {
	width: 16px;
	height: 16px;
}

.filter-form {
	display: grid;
	gap: 8px;
}

.timeline-strip {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	margin-bottom: 8px;
}

.timeline-cell {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	display: inline-block;
	border: 1px solid rgba(148, 163, 184, 0.24);
}

.timeline-cell-idle {
	background: #f3f4f6;
}

.timeline-cell-active {
	background: #dff8f3;
}

.timeline-cell-warning {
	background: #fff4d6;
}

.timeline-cell-critical {
	background: #fee2e2;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.initiative-list-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.initiative-list-title .context-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.initiative-tag-chips,
.initiative-tag-options {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.initiative-tag-chips {
	margin-top: 8px;
}

.initiative-tag-show-group {
	margin-top: 8px;
}

.initiative-tag-show-group .initiative-tag-chips {
	margin-top: 4px;
}

.initiative-tag-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid #d8e5f4;
	border-radius: 999px;
	background: #f1f6fc;
	color: #315477;
	font-size: 12px;
	line-height: 1.3;
}

.initiative-tag-selection h3 {
	margin: 0 0 4px;
}

.initiative-tag-selection > p {
	margin: 0 0 14px;
}

.initiative-tag-groups,
.initiative-tag-admin__groups {
	display: grid;
	gap: var(--space-3);
}

.initiative-tag-group {
	min-width: 0;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.initiative-tag-group legend {
	padding: 0 6px;
	font-weight: 700;
}

.initiative-tag-selection .initiative-tag-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid #dbe4ef;
	border-radius: 999px;
	background: #fff;
	color: var(--text);
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.initiative-tag-selection .initiative-tag-option:hover {
	border-color: var(--brand-blue);
}

/* A caixa fica oculta, mas continua acessível por teclado e leitores de tela. */
.initiative-tag-selection .initiative-tag-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
}

.initiative-tag-selection .initiative-tag-option:has(input:checked) {
	border-color: var(--brand-blue);
	background: var(--brand-blue-soft);
	color: var(--brand-blue);
	font-weight: 700;
}

.initiative-tag-selection .initiative-tag-option:has(input:checked)::before {
	content: "\2713";
	font-size: 12px;
}

.initiative-tag-selection .initiative-tag-option:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.initiative-tag-selection .initiative-tag-option--inactive {
	color: var(--muted);
	background: #f4f5f7;
}

.initiative-tag-option small {
	font-size: 10px;
}

.initiative-tag-admin {
	display: grid;
	gap: var(--space-4);
	max-width: 960px;
	margin-inline: auto;
}

.initiative-tag-admin__new-group,
.initiative-tag-admin__group {
	padding: var(--space-4);
}

.initiative-tag-admin__new-group > p {
	margin: 6px 0 0;
}

.initiative-tag-admin__new-group h2,
.initiative-tag-admin__group h2,
.initiative-tag-admin__empty h2 {
	margin: 0;
	font-size: 18px;
}

.initiative-tag-admin__new-group-form,
.initiative-tag-admin__group-settings,
.initiative-tag-admin__tag-form,
.initiative-tag-admin__add-tag {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.initiative-tag-admin__new-group-form {
	margin-top: 12px;
}

.initiative-tag-admin__new-group-form label,
.initiative-tag-admin__group-settings label:not(.checkbox-inline),
.initiative-tag-admin__tag-form label:not(.checkbox-inline),
.initiative-tag-admin__add-tag label {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
}

.initiative-tag-admin__new-group-form input[type="text"],
.initiative-tag-admin__group input[type="text"],
.initiative-tag-admin__group input[type="number"],
.initiative-tag-admin__add-tag input[type="text"] {
	min-width: 120px;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
}

.initiative-tag-admin__group-header {
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--line);
}

.initiative-tag-admin__group-header .initiative-tag-admin__group-settings {
	width: 100%;
	justify-content: space-between;
}

.initiative-tag-admin__group-title .inline-edit__input {
	min-width: 260px;
	font-size: 18px;
	font-weight: 700;
}

.initiative-tag-admin__group-header p,
.initiative-tag-admin__empty p {
	margin: 5px 0 0;
}

.initiative-tag-admin__tag-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 8px;
	margin: var(--space-3) 0;
}

.initiative-tag-admin__tag-form {
	flex-wrap: nowrap;
	padding: 6px 12px 6px 6px;
	border-radius: 12px;
	background: #f8fafc;
}

.initiative-tag-admin__group-settings label:not(.checkbox-inline),
.initiative-tag-admin__tag-form label:not(.checkbox-inline) {
	display: none;
}

.initiative-tag-admin__group-settings,
.initiative-tag-admin__tag-form {
	justify-content: space-between;
}

.initiative-tag-admin__tag-form input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
}

.initiative-tag-admin__tag-form .checkbox-inline {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
}

.inline-edit__display {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.inline-edit__input {
	display: none;
}

.is-editing .inline-edit__display {
	display: none;
}

.is-editing .inline-edit__input {
	display: block;
}

.inline-edit__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}

.inline-edit__button:hover,
.inline-edit__button:focus-visible {
	background: var(--brand-blue-soft);
	color: var(--brand-blue);
}

.inline-edit__button svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.initiative-tag-admin__add-tag {
	align-items: flex-end;
	padding-top: var(--space-3);
	border-top: 1px solid var(--line);
}

.initiative-tag-admin__add-tag > div {
	display: grid;
	gap: 6px;
	flex: 0 1 320px;
}

.initiative-tag-admin__empty {
	padding: var(--space-4);
}

.program-list-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.program-list-title .context-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.team-list-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.team-list-title .context-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

.initiative-summary-preview {
	margin: 6px 0 0 12px;
	color: var(--muted);
	font-size: 13px;
}

.initiative-summary-preview summary {
	display: grid;
	grid-template-columns: 6px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	line-height: 1.45;
	cursor: pointer;
	list-style: none;
}

.initiative-summary-preview summary::-webkit-details-marker {
	display: none;
}

.initiative-summary-preview summary::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: 6px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(-45deg);
	flex: 0 0 6px;
}

.initiative-summary-preview[open] summary::before {
	transform: rotate(45deg);
}

.initiative-summary-preview__content {
	margin: 0;
	padding-left: 8px;
	max-height: 42px;
	overflow: hidden;
	line-height: 1.5;
}

.initiative-summary-preview[open] .initiative-summary-preview__content {
	max-height: none;
}

.initiative-summary-preview .initiative-summary-preview__content p {
	display: block;
	margin: 0 0 8px;
}

.initiative-summary-preview .initiative-summary-preview__content ul,
.initiative-summary-preview .initiative-summary-preview__content ol {
	display: block;
	margin: 8px 0;
	padding-left: 20px;
}

.initiative-summary-preview__content > :last-child {
	margin-bottom: 0;
}

.initiative-summary-preview__empty {
	margin-top: 6px;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	min-width: 96px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	word-break: keep-all;
	flex-shrink: 0;
}

.status-badge--em-andamento {
	background: #dff8f3;
	color: #0f766e;
}

.status-badge--planejado {
	background: #e7efff;
	color: #3157c8;
}

.status-badge--no-radar {
	background: #f3f4f6;
	color: #4b5563;
}

.status-badge--pausado {
	background: #fff0d8;
	color: #b45309;
}

.status-badge--concluido {
	background: #dcfce7;
	color: #166534;
}

.status-badge--cancelado {
	background: #fee2e2;
	color: #b91c1c;
}

.subtle {
	color: var(--muted);
}

.access-cell {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

td.va-middle {
	vertical-align: middle;
}

.people-table {
	table-layout: fixed;
}

.people-table th:first-child,
.people-table td:first-child {
	width: 24%;
	text-align: left;
	overflow-wrap: break-word;
}

.people-table th:not(:first-child),
.people-table td:not(:first-child) {
	text-align: center;
}

.people-table .access-cell {
	align-items: center;
}

.people-capacity-cell {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.people-capacity-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
	background: var(--surface-strong);
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.people-capacity-action:hover,
.people-capacity-action:focus-visible {
	border-color: var(--accent);
	color: var(--accent);
	background: #fff;
	outline: none;
}

.people-capacity-action svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.people-blockers-cell {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.people-table__person-name {
	display: flex;
	align-items: center;
	gap: 7px;
}

.people-table__person-name .context-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.people-table__person-role {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.people-table__metric-icon {
	width: 14px;
	height: 14px;
	margin-right: 5px;
	vertical-align: -2px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface-strong);
	text-decoration: none;
	font-weight: 600;
}

.button-primary {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.button-secondary {
	color: var(--text);
}

.button-accent-soft {
	color: var(--accent);
	border-color: rgba(255, 108, 12, 0.18);
	background: rgba(255, 108, 12, 0.12);
}

.button-danger {
	color: #b91c1c;
	border-color: rgba(185, 28, 28, 0.24);
	background: #fef2f2;
}

.button-success {
	color: #166534;
	border-color: rgba(22, 101, 52, 0.24);
	background: #dcfce7;
}

.button-success:hover,
.button-success:focus-visible {
	background: #bbf7d0;
}

.button-small {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
}

.topbar-session .button-secondary {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.inline-link {
	text-decoration: none;
}

.danger-link {
	color: #b91c1c;
}

.table-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.inline-button-form {
	display: inline-block;
	margin: 0;
}

.inline-button-form .button_to {
	margin: 0;
}

.text-button {
	padding: 0;
	min-height: auto;
	border: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	cursor: pointer;
}

.history-row-automatic {
	background: rgba(237, 233, 254, 0.22);
}

.history-row-manual {
	background: rgba(220, 252, 231, 0.2);
}

.history-row {
	align-items: flex-start;
	padding: var(--space-3);
	border-radius: 18px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
}

.history-row__header {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.history-row p {
	margin: 4px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

.history-row-status {
	border-left: 4px solid #0f766e;
}

.history-row-allocation {
	border-left: 4px solid #3157c8;
}

.history-row-comment {
	border-left: 4px solid #166534;
}

.history-row-event {
	border-left: 4px solid #6d28d9;
}

.history-row-admin {
	border-left: 4px solid #b91c1c;
}

.history-row-record {
	border-left: 4px solid #4b5563;
}

.detail-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--space-4);
}

.detail-grid-main-card {
	grid-column: 1 / -1;
}

.detail-card {
	padding: var(--space-5);
}

.detail-card-spacious {
	margin-bottom: var(--space-4);
}

.program-summary-form {
	position: relative;
	overflow: hidden;
	border-top: 4px solid var(--brand-blue);
}

.program-summary-form__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
	margin: calc(var(--space-2) * -1) 0 var(--space-5);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--line);
}

.program-summary-form__heading {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
}

.program-summary-form__heading h3,
.program-weekly-summary__result-header h3 {
	margin: 3px 0 4px;
}

.program-summary-form__heading p {
	max-width: 620px;
	margin: 0;
}

.program-summary-form__mark {
	display: grid;
	place-items: center;
	flex: 0 0 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--brand-blue);
	color: white;
	font-size: 12px;
	font-weight: 800;
}

.program-summary-form__limit,
.program-summary-form__period {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 10px;
	border: 1px solid rgba(255, 108, 12, .25);
	border-radius: 999px;
	background: var(--accent-soft);
	color: #a84408;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.program-summary-form__controls {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.program-weekly-summary__actions,
.program-summary-form__presets,
.program-summary-form__fields {
	display: flex;
	align-items: end;
	gap: var(--space-3);
}

.program-weekly-summary__result {
	margin-top: var(--space-5);
	padding-top: var(--space-5);
	border-top: 1px solid var(--line);
}

.program-weekly-summary__result-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.program-summary-editor {
	display: block;
	width: 100%;
	min-height: 320px;
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	line-height: 1.55;
	resize: vertical;
}

.program-weekly-summary__actions {
	justify-content: flex-end;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-4);
	margin-bottom: var(--space-3);
}

.program-weekly-summary__actions .button {
	min-height: 40px;
	padding: 0 16px;
}

.program-summary-copy-button {
	border-color: var(--brand-blue);
	background: var(--brand-blue);
	color: #fff;
}

.program-summary-copy-button:hover,
.program-summary-copy-button:focus-visible {
	background: #0d2f5d;
	border-color: #0d2f5d;
}

.program-summary-form__presets {
	margin-bottom: var(--space-3);
}

.program-summary-form__presets {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	margin-bottom: 0;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
}

.program-summary-preset {
	min-height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.program-summary-preset:hover,
.program-summary-preset:focus-visible,
.program-summary-preset--active {
	background: var(--surface-strong);
	color: var(--brand-blue);
	box-shadow: 0 2px 7px rgba(18, 60, 114, 0.1);
	outline: none;
}

.program-summary-form__or {
	color: var(--muted);
	font-size: 12px;
}

.program-summary-form__date-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.program-summary-date-input {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	font-weight: 600;
	color-scheme: light;
}

.program-summary-date-input:focus {
	border-color: var(--brand-blue);
	outline: 3px solid rgba(18, 60, 114, 0.12);
}

.program-summary-form__fields > div {
	flex: 1;
}

.program-summary-form__fields input[type="date"] {
	width: 100%;
}

@media (max-width: 700px) {
	.program-summary-form__fields,
	.program-summary-form__presets,
	.program-summary-form__controls,
	.program-summary-form__header,
	.program-weekly-summary__result-header {
		align-items: stretch;
		flex-direction: column;
	}
	.program-summary-form__header {
		gap: var(--space-3);
	}
	.program-summary-form__limit,
	.program-summary-form__period {
		align-self: flex-start;
	}
	.program-summary-form__controls {
		gap: var(--space-2);
	}
	.program-summary-form__presets {
		width: 100%;
		flex-direction: row;
		gap: var(--space-3);
		overflow-x: auto;
		white-space: nowrap;
	}
	.program-summary-preset {
		flex: 1;
		padding: 0 10px;
	}
	.program-summary-form__or {
		order: -1;
	}
	.program-summary-form__fields .button {
		width: 100%;
	}
	.program-weekly-summary__actions {
		align-items: stretch;
		flex-wrap: wrap;
	}
}

.initiative-section-card {
	overflow: visible;
}

.section-header-tight {
	margin-bottom: var(--space-4);
}

.detail-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.detail-meta strong,
.form-grid label,
.detail-section h3 {
	display: block;
	margin-bottom: 6px;
}

.detail-section {
	margin-top: var(--space-4);
}

.initiative-quick-edit-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.initiative-inline-edit-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.initiative-inline-edit-card {
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3);
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(246, 249, 253, 0.92);
}

.initiative-inline-edit-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.initiative-inline-edit-card select,
.initiative-inline-edit-card input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-facts-grid__full {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--line);
}

.initiative-facts-field-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.initiative-facts-field-header > strong {
	margin-bottom: 0;
}

.initiative-summary-header__controls {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.initiative-facts-status-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: flex-end;
}

.quick-select-wrap {
	position: relative;
	display: inline-flex;
}

.quick-select-wrap::after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	pointer-events: none;
}

.quick-select {
	appearance: none;
	background-color: var(--qs-bg, #f3f4f6);
	color: var(--qs-color, #4b5563);
	border: none;
	border-radius: 20px;
	padding: 7px 30px 7px 13px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition: opacity 0.15s, box-shadow 0.15s;
	box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.06);
}

.quick-select:hover {
	opacity: 0.85;
}

.quick-select:focus-visible {
	box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(18, 60, 114, 0.15);
}

.priority-pills {
	display: flex;
	gap: 5px;
}

.priority-pill {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--line);
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
	font-family: inherit;
}

.priority-pill__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.priority-pill__input:focus-visible + .priority-pill {
	box-shadow: 0 0 0 3px rgba(18, 60, 114, 0.15);
}

.priority-pill:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.priority-pill--active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.quick-save-feedback {
	font-size: 12px;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.25s;
	align-self: center;
	margin-left: auto;
}

.quick-save-feedback--visible {
	opacity: 1;
}

.quick-save-feedback[data-state="ok"] {
	color: #0f766e;
}

.quick-save-feedback[data-state="error"] {
	color: #b91c1c;
}

.conclude-dialog {
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: var(--space-5);
	box-shadow: 0 32px 64px rgba(18, 60, 114, 0.14);
	max-width: 440px;
	width: 100%;
	background: var(--surface-strong);
}

.conclude-dialog::backdrop {
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(4px);
}

.conclude-dialog__title {
	margin: 0 0 var(--space-1);
	font-size: 17px;
}

.conclude-dialog__options {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: var(--space-4) 0;
}

.conclude-option {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: var(--space-3) var(--space-4);
	border-radius: 16px;
	border: 1.5px solid var(--line);
	background: var(--surface);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
	font-family: inherit;
}

.conclude-option:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.conclude-option strong {
	display: block;
	font-size: 14px;
	color: var(--text);
	margin-bottom: 0;
}

.conclude-option span {
	font-size: 12px;
	color: var(--muted);
}

.conclude-dialog__cancel {
	width: 100%;
}

.initiative-facts-grid {
	margin-top: 0;
}

.compact-stack {
	gap: 8px;
}

.compact-row {
	padding: 10px 0;
}

.linked-initiative-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-4);
}

.linked-initiative-card {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-5);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.linked-initiative-card--attention {
	border-color: rgba(255, 108, 12, 0.18);
	box-shadow: 0 18px 35px rgba(255, 108, 12, 0.08);
}

.linked-initiative-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 35px rgba(18, 60, 114, 0.12);
	border-color: rgba(18, 60, 114, 0.18);
}

.linked-initiative-card__header,
.linked-initiative-card__meta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.program-initiative-status-form {
	flex: 0 0 auto;
	margin: 0;
	position: relative;
}

.program-initiative-status-form::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	pointer-events: none;
}

.program-initiative-status-form select.program-initiative-status-select {
	appearance: none;
	max-width: 150px;
	min-height: 30px;
	padding: 6px 32px 6px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
}

.linked-initiative-card__title {
	color: inherit;
	text-decoration: none;
}

.linked-initiative-card__title:hover {
	text-decoration: underline;
}

.linked-initiative-card p {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.person-allocation-shortcut-grid {
	grid-template-columns: 1fr;
}

.person-work-section {
	margin-top: var(--space-4);
}

.person-work-header {
	align-items: flex-start;
}

.person-work-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: var(--space-3) 0 0;
	color: var(--brand-blue);
	line-height: 1.5;
}

.person-work-summary strong {
	font-size: 14px;
}

.person-work-summary span {
	color: var(--muted);
}

.initiative-team-summary {
	margin-bottom: var(--space-4);
}

.person-work-actions {
	min-width: auto;
}

.allocation-work-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.allocation-work-grid-single {
	grid-template-columns: 1fr;
}

.allocation-work-card {
	display: grid;
	align-content: start;
	gap: var(--space-3);
	padding: var(--space-4);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
	box-shadow: 0 14px 28px rgba(18, 60, 114, 0.08);
}

.allocation-work-card--team {
	padding: var(--space-3) var(--space-4);
}

.allocation-work-card--pausado {
	border-color: rgba(180, 83, 9, 0.22);
	background: linear-gradient(180deg, rgba(255, 249, 237, 0.98), rgba(255, 244, 224, 0.98));
}

.allocation-work-card--no-radar {
	border-color: rgba(107, 114, 128, 0.2);
	background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(243, 244, 246, 0.98));
}

.allocation-work-card__header,
.allocation-work-card__meta,
.allocation-work-card__actions {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	align-items: flex-start;
	flex-wrap: wrap;
}

.allocation-work-card__header p,
.allocation-work-card__meta {
	margin: 0;
	color: var(--muted);
	line-height: 1.5;
}

.allocation-work-card__header strong {
	font-size: 24px;
	line-height: 1.1;
}

.allocation-work-bar {
	height: 10px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.08);
	overflow: hidden;
}

.allocation-work-bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #ffb36b, var(--accent));
}

.allocation-work-card__badges {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
	align-items: flex-start;
	align-content: flex-start;
}

.allocation-work-card__summary {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 4px 0 0;
}

.allocation-work-card__meta strong {
	color: var(--text);
}

.allocation-work-card__actions .inline-button-form {
	margin: 0;
}

.allocation-work-card--team .allocation-work-card__actions {
	justify-content: flex-end;
}

.team-update-personal-context {
	display: grid;
	gap: var(--space-4);
	padding: 0 var(--space-4);
	border: 1px solid var(--line);
	border-left: 3px solid #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	box-shadow: 0 3px 12px rgba(18, 60, 114, 0.04);
}

.team-update-personal-context__header,
.team-update-personal-context__section > .team-update-initiative-section-heading,
.team-update-personal-context__comments > .team-update-initiative-section-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: var(--space-3);
}

.team-update-personal-context__header {
	margin: 0;
	padding: var(--space-4) 0;
	cursor: pointer;
	list-style: none;
}

.team-update-personal-context__header::-webkit-details-marker {
	display: none;
}

.team-update-personal-context__summary-actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.team-update-personal-context__body {
	display: grid;
	gap: var(--space-4);
	padding: 0 0 var(--space-4);
}

.team-update-personal-context__header h3,
.team-update-personal-context__header p {
	margin: 0;
}

.team-update-personal-context__header h3 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.team-update-personal-context__header h3 .context-icon {
	width: 18px;
	height: 18px;
	color: #0f766e;
}

.team-update-personal-context__header p {
	margin-top: var(--space-1);
}

.team-update-personal-context__section,
.team-update-personal-context__comments {
	padding-top: 0;
}

.team-update-personal-context__tasks {
	margin-top: 0;
}

.team-update-personal-context__comments + .team-update-personal-context__section {
	margin-top: 0;
}

@media (max-width: 700px) {
	.team-update-personal-context__header,
	.team-update-personal-context__section > .team-update-initiative-section-heading,
	.team-update-personal-context__comments > .team-update-initiative-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

}

.movement-history-section:first-child {
	margin-top: 0;
}

.rebalance-page-shell {
	max-width: 1040px;
	margin: 0 auto;
	display: grid;
	gap: var(--space-4);
}

.rebalance-summary-card,
.rebalance-form-card {
	padding: var(--space-5);
}

.rebalance-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-3);
}

.rebalance-summary-grid strong {
	display: block;
	margin-bottom: 6px;
}

.rebalance-composition {
	display: grid;
	gap: var(--space-2);
	margin-top: var(--space-4);
}

.rebalance-composition__bar {
	display: flex;
	height: 12px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.08);
	overflow: hidden;
}

.rebalance-composition__used {
	background: linear-gradient(90deg, #ffb36b, var(--accent));
}

.rebalance-composition__remaining {
	background: rgba(18, 60, 114, 0.14);
}

.rebalance-composition__legend {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 14px;
}

.rebalance-composition__legend strong {
	color: var(--text);
}

.rebalance-grid {
	display: grid;
	gap: var(--space-4);
}

.rebalance-live-summary {
	padding: var(--space-3) var(--space-4);
	border-radius: 16px;
	background: rgba(18, 60, 114, 0.06);
	border: 1px solid rgba(18, 60, 114, 0.1);
	color: var(--brand-blue);
	font-weight: 600;
	line-height: 1.5;
}

[data-rebalance-form].rebalance-form-over-limit .rebalance-live-summary {
	background: rgba(185, 28, 28, 0.08);
	border-color: rgba(185, 28, 28, 0.18);
	color: #b91c1c;
}

[data-rebalance-form].rebalance-form-over-limit .rebalance-composition__used {
	background: linear-gradient(90deg, #fca5a5, #b91c1c);
}

[data-rebalance-form].rebalance-form-under-limit .rebalance-live-summary {
	background: rgba(180, 83, 9, 0.08);
	border-color: rgba(180, 83, 9, 0.18);
	color: #b45309;
}

[data-rebalance-form].rebalance-form-balanced .rebalance-live-summary {
	background: rgba(15, 118, 110, 0.08);
	border-color: rgba(15, 118, 110, 0.18);
	color: #0f766e;
}

[data-rebalance-form] [data-rebalance-submit][disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
}

.rebalance-row {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.7fr);
	gap: var(--space-4);
	align-items: center;
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(246, 249, 253, 0.92);
}

.rebalance-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.rebalance-row input,
.rebalance-new-grid select,
.rebalance-new-grid input,
.rebalance-new-grid textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.rebalance-new-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.rebalance-new-grid .full-span {
	grid-column: 1 / -1;
}

.rebalance-suggestion {
	margin: 8px 0 0;
}

.linked-initiative-card__team {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.linked-initiative-card__alerts {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.linked-initiative-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
}

.initiative-tag-inline-group {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.initiative-tag-inline-group__label {
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.linked-initiative-card[hidden],
.program-status-group[hidden],
.program-filter [hidden],
[data-filter-empty][hidden] {
	display: none !important;
}

.initiative-tag-chip--button {
	font-family: inherit;
	cursor: pointer;
}

.initiative-tag-chip--button:hover,
.initiative-tag-chip--active {
	border-color: var(--brand-blue);
	background: var(--brand-blue-soft);
	color: var(--brand-blue);
	font-weight: 700;
}

.program-filter {
	margin-bottom: var(--space-4);
}

.program-filter__header {
	margin-bottom: var(--space-3);
}

.program-filter__header-actions {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3);
}

.initiative-total-count {
	white-space: nowrap;
}

.program-filter__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
}

.program-filter__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	text-align: center;
}

.program-filter__toggle {
	padding: 0;
	border: 0;
	background: none;
}

.program-filter__active {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.program-filter__toggle .filter-toggle-button {
	position: relative;
}

.program-filter__toggle[aria-expanded="true"] .filter-toggle-button {
	background: rgba(255, 108, 12, 0.18);
	border-color: rgba(255, 108, 12, 0.28);
}

.program-filter__toggle:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.program-filter__active-chip,
.program-filter__clear {
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.program-filter__active-chip {
	padding: 4px 10px;
	border: 1px solid var(--brand-blue);
	border-radius: 999px;
	background: var(--brand-blue-soft);
	color: var(--brand-blue);
}

.program-filter__clear {
	border: 0;
	background: none;
	color: var(--brand-blue);
	font-size: 13px;
}

.program-filter__panel {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-3);
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
}

.program-filter__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--space-3);
}

.program-filter__field {
	display: grid;
	gap: 6px;
	align-content: start;
}

.program-filter__field label {
	font-weight: 700;
	font-size: 13px;
}

.program-filter__field input,
.program-filter__field select {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #dbe4ef;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	font-size: 14px;
}

.program-filter__hint {
	margin: 0;
	font-size: 12px;
}

.team-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.06);
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.task-assignee-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--line);
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
	cursor: help;
}

.task-filter-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: var(--space-4);
}

.task-filter-chip {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--muted);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.task-filter-chip:hover {
	border-color: var(--brand-blue);
	color: var(--brand-blue);
}

.task-filter-chip.is-active {
	background: var(--brand-blue);
	border-color: var(--brand-blue);
	color: #fff;
}

.task-group {
	margin-bottom: var(--space-4);
}

.task-group:last-child {
	margin-bottom: 0;
}

.task-group__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.task-group__title svg {
	flex: 0 0 auto;
	color: var(--accent);
}

.task-group__title--person svg {
	color: #0f766e;
}

.task-group__title--person {
	width: 100%;
	justify-content: space-between;
}

.task-group__title--person .button {
	margin-left: auto;
}

.task-group__title--person .button .context-icon,
.task-group__title--person .button svg {
	color: currentColor;
}

.task-group__title:hover {
	text-decoration: underline;
}

.linked-initiative-card__meta {
	font-size: 13px;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: 10px;
}

.program-attention-strip {
	margin-top: var(--space-4);
}

.program-status-groups {
	display: grid;
	gap: var(--space-5);
}

.program-status-group h4 {
	margin: 0;
	font-size: 18px;
}

.quick-allocation-box {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	margin-bottom: var(--space-4);
}

.quick-allocation-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2) var(--space-3);
}

.quick-allocation-grid label {
	display: block;
	margin-bottom: 6px;
}

.quick-allocation-grid input,
.quick-allocation-grid select,
.quick-allocation-grid textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-blockers-list {
	display: grid;
	gap: var(--space-3);
}

.initiative-blockers-card {
	margin-top: var(--space-4);
	margin-bottom: var(--space-4);
}

.initiative-blockers-card > .section-header {
	align-items: center;
}

.initiative-blockers-card > .section-header h3 {
	margin: 0;
}

.initiative-blockers-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: var(--space-5);
}

.initiative-blockers-layout--single {
	display: block;
}

.initiative-blockers-active__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.initiative-blocker-dialog {
	width: min(720px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(18, 60, 114, 0.24);
	color: var(--text);
}

.initiative-blocker-dialog::backdrop {
	background: rgba(8, 31, 40, 0.42);
}

.initiative-blocker-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-4);
	padding: var(--space-5) var(--space-5) var(--space-3);
	border-bottom: 1px solid var(--line);
}

.initiative-blocker-dialog__header h2 {
	margin: 4px 0 0;
	font-size: 20px;
}

.initiative-blocker-dialog form {
	padding: var(--space-4) var(--space-5) var(--space-5);
}

.initiative-blocker-dialog .initiative-blockers-form__footer {
	margin-top: var(--space-4);
}

.initiative-blockers-form {
	padding-right: var(--space-5);
	border-right: 1px solid var(--line);
}

.initiative-blockers-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
}

.initiative-blockers-form__fields .full-span {
	grid-column: 1 / -1;
}

.task-blocker-fields {
	display: grid;
	gap: var(--space-3);
}

.task-blocker-toggle {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 9px;
	width: fit-content;
	margin: 0 !important;
	cursor: pointer;
}

.task-blocker-toggle input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--accent);
}

.task-blocker-toggle span {
	font-weight: 600;
}

.task-blocker-fields > [data-task-blocker-details] {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3);
	padding: var(--space-3);
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
}

.task-blocker-fields > [data-task-blocker-details][hidden] {
	display: none;
}

.initiative-blockers-form label,
.initiative-blocker-dialog label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--text);
}

.initiative-blockers-form input:not([type="submit"]):not([type="checkbox"]),
.initiative-blockers-form select,
.initiative-blockers-form textarea,
.initiative-blocker-dialog input:not([type="submit"]):not([type="checkbox"]),
.initiative-blocker-dialog select,
.initiative-blocker-dialog textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	font: inherit;
	color: var(--text);
}

.initiative-blockers-form__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--space-4);
	padding-top: var(--space-3);
	border-top: 1px solid var(--line);
}

.initiative-blockers-form__footer .button {
	min-width: 180px;
	font-size: 13px;
	line-height: 1.2;
}

.initiative-blocker {
	padding: 12px 12px 10px;
	border: 1px solid #f3c1b7;
	border-radius: 10px;
	background: #fff8f6;
	box-shadow: 0 6px 18px rgba(18, 60, 114, 0.02);
}

.initiative-blocker--resolved {
	border-color: var(--line);
	background: #f8fbf9;
}

.initiative-blocker__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: var(--space-2);
}

.initiative-blocker__header .subtle {
	font-size: 11px;
	margin-left: auto;
	padding-right: 4px;
}

.initiative-blocker p {
	margin: 0 0 var(--space-2);
	line-height: 1.5;
	font-size: 14px;
}

.initiative-blocker__description > :first-child,
.team-update-review-blockers-drawer__description > :first-child {
	margin-top: 0;
}

.initiative-blocker__description > :last-child,
.team-update-review-blockers-drawer__description > :last-child {
	margin-bottom: var(--space-2);
}

.initiative-blocker__description ul,
.initiative-blocker__description ol,
.team-update-review-blockers-drawer__description ul,
.team-update-review-blockers-drawer__description ol {
	padding-left: 22px;
}

.initiative-blocker__meta {
	display: grid;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}

.initiative-blocker__meta span {
	display: block;
}

.initiative-blocker__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-left: 0;
	margin-bottom: 0;
}

.initiative-blocker__resolve {
	display: flex;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-items: center;
	margin-top: var(--space-3);
}

.initiative-blocker__resolve input {
	min-width: 0;
	flex: 1 1 auto;
	padding: 12px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	height: 40px;
}

.initiative-blocker__resolve .button,
.initiative-blockers-form__footer .button {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
	flex-shrink: 0;
}

.initiative-blocker__resolve .button {
	min-width: 88px;
	max-width: 120px;
}

.button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	min-width: 28px;
	min-height: 28px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1;
}

.button-icon:hover,
.button-icon:focus-visible {
	transform: translateY(-1px);
}

.blockers-history-toggle {
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--line);
}

.blockers-history-toggle summary {
	cursor: pointer;
	font-weight: 700;
}

.blockers-history-toggle__body {
	margin-top: var(--space-4);
}

.task-list {
	display: grid;
	gap: 8px;
}

.task-list + .initiative-milestones-toggle {
	margin-top: var(--space-4);
}

.task-row {
	position: relative;
	}

.task-row[data-task-reorder-url] {
	cursor: grab;
	padding-left: 44px;
}

.task-row[data-task-reorder-url]:active {
	cursor: grabbing;
}

.task-row__drag-handle {
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-size: 16px;
	letter-spacing: 0;
	line-height: 1;
	cursor: grab;
	touch-action: none;
	border-radius: 16px 0 0 16px;
}

.task-row__drag-handle:hover {
	color: var(--text);
	background: rgba(18, 60, 114, 0.08);
}

.task-row__drag-handle:active {
	cursor: grabbing;
}

.task-row--dragging {
	opacity: 0.45;
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.8);
}

.task-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: var(--space-2);
	padding: 12px 16px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.9);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.task-row:hover {
	box-shadow: 0 8px 18px rgba(18, 60, 114, 0.06);
}

.task-row--done {
	background: rgba(246, 249, 253, 0.7);
}

.task-row--overdue {
	border-color: rgba(185, 28, 28, 0.28);
}

.task-row--blocking {
	border-left: 4px solid #d97706;
	background: rgba(255, 247, 237, 0.92);
}

.task-review-dialog {
	width: min(720px, calc(100vw - 32px));
}

.task-review-dialog .task-review-form {
	padding: var(--space-4) var(--space-5) var(--space-5);
}

.task-review-dialog .markdown-editor {
	min-height: 320px;
}

.task-review-dialog .toastui-editor-defaultUI {
	min-height: 300px;
}

.task-row__blocking-icon {
	display: block;
}

.task-row__blocking-icon--low {
	color: #0f766e;
}

.task-row__blocking-icon--medium {
	color: #b45309;
}

.task-row__blocking-icon--high {
	color: #c2410c;
}

.task-row__blocking-icon--critical {
	color: #b91c1c;
}

.task-review-request-note {
	margin: 12px 0;
	padding: 12px 14px;
	border-left: 3px solid #b91c1c;
	background: #fff1f2;
	color: var(--text);
}

.task-review-request-note strong {
	display: block;
	margin-bottom: 4px;
	color: #991b1b;
}

.task-row[hidden] {
	display: none;
}

.task-checkbox-form {
	margin: 0;
}

.task-checkbox {
	width: 28px;
	height: 28px;
	margin-top: 2px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: #fff;
	color: transparent;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.task-checkbox:hover {
	border-color: #0f766e;
	transform: translateY(-1px);
}

.task-checkbox--checked {
	background: #eff8f6;
	border-color: #76b5aa;
	color: #0f766e;
}

.task-checkbox--in-progress {
	position: relative;
	overflow: hidden;
	border-color: #d8b36a;
	color: transparent;
	background: #fffaf0;
	font-size: 19px;
	line-height: 1;
}

.task-checkbox--in-progress::before {
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: conic-gradient(#d8a94e 0deg 125deg, #f3e4bf 125deg 360deg);
	content: "";
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

.task-checkbox--in-progress::after {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #a66a12;
	content: "";
}

.task-checkbox--in-progress:hover {
	border-color: #b98b3f;
	background: #fff6df;
}

.task-row--in-progress .task-row__title {
	font-weight: 650;
}

.task-row__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.task-row__edit {
	align-self: center;
}

.task-row__detail-actions--toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 14px 0 0;
}

.task-discussion {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.task-discussion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	list-style: none;
	cursor: pointer;
	font-size: 13px;
}

.task-discussion__summary::-webkit-details-marker {
	display: none;
}

.task-discussion__summary::marker {
	content: "";
}

.task-discussion__summary:focus,
.task-discussion__summary:focus-visible {
	outline: none;
}

.task-discussion__chevron {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.task-discussion[open] .task-discussion__chevron {
	border-color: var(--accent);
	transform: rotate(225deg) translate(-2px, -2px);
}

.task-row__detail-actions--secondary {
	margin-top: 10px;
}

.task-discussion__header,
.task-discussion__entry {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.task-discussion__header {
	margin-bottom: 10px;
	font-size: 13px;
}

.task-discussion__entries {
	display: grid;
	gap: 8px;
}

.task-discussion__entry--event {
	justify-content: flex-start;
	padding: 8px 10px;
	border-radius: 6px;
	background: #f8fafc;
	font-size: 12px;
}

.task-discussion__marker {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: #0f766e;
}

.task-discussion__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin-top: 12px;
}

.task-discussion__form textarea {
	min-height: 38px;
	flex: 1;
	resize: vertical;
}

.task-row__detail-actions {
	display: flex;
	justify-content: flex-end;
}

.task-row__summary-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
	flex-shrink: 0;
}

.task-row__title {
	display: flex;
	align-items: center;
	font-weight: 700;
	line-height: 1.4;
	min-width: 0;
}

.task-row__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	margin-left: 7px;
	flex-shrink: 0;
}

.task-row__title--done {
	color: var(--muted);
	text-decoration: line-through;
}

.task-row__chevron {
	display: inline-block;
	width: 9px;
	height: 9px;
	flex-shrink: 0;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(-45deg);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.task-row[data-expanded="true"] .task-row__chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.task-row__detail {
	grid-column: 1 / -1;
	display: grid;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
}

.task-row__detail[hidden] {
	display: none;
}

.task-row__description {
	margin: 0;
	color: var(--text);
	line-height: 1.55;
}

.task-row__detail-meta {
	display: flex;
	gap: 6px 18px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--muted);
}

.task-row__detail-meta strong {
	color: var(--text);
}

.task-row__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.task-dialog__admin-actions {
	display: flex;
	gap: 8px;
	margin-right: auto;
	flex-wrap: wrap;
}

.task-dialog__admin-actions[hidden] {
	display: none;
}

.task-dialog__footer {
	align-items: center;
	gap: 12px;
}

.task-dialog__footer > .button {
	min-width: 180px;
}

.task-dialog__admin-actions .button {
	min-width: auto;
}

.task-dialog__admin-actions .button[hidden] {
	display: none;
}

@media (max-width: 560px) {
	.task-dialog__footer {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.task-dialog__footer > .button,
	.task-dialog__admin-actions {
		width: 100%;
	}

	.task-dialog__admin-actions .button {
		flex: 1;
	}
}

.task-assignee-pills {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.ms-dropdown {
	position: relative;
}

.table-card:has(.ms-dropdown) {
	overflow: visible;
}

.ms-dropdown__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.ms-dropdown__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

.ms-dropdown__pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(18, 60, 114, 0.08);
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.ms-dropdown__placeholder {
	color: var(--muted);
}

.ms-dropdown__chevron {
	width: 9px;
	height: 9px;
	flex-shrink: 0;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
}

.ms-dropdown__panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	display: grid;
	gap: 8px;
	padding: 10px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 18px 35px rgba(18, 60, 114, 0.14);
}

.ms-dropdown__panel[hidden] {
	display: none;
}

.ms-dropdown__search {
	width: 100%;
	padding: 9px 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font: inherit;
}

.ms-dropdown__options {
	display: grid;
	gap: 0;
	max-height: 220px;
	overflow-y: auto;
}

.ms-dropdown .ms-dropdown__option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 8px;
	border-radius: 10px;
	line-height: 1.2;
	margin-bottom: 0;
	font-weight: 400;
	cursor: pointer;
}

.ms-dropdown__option:hover {
	background: rgba(18, 60, 114, 0.05);
}

.ms-dropdown__option[hidden] {
	display: none;
}

.ms-dropdown__option input {
	width: auto;
	flex-shrink: 0;
	order: -1;
}

.ms-dropdown__empty {
	margin: 0;
	padding: 8px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.conflict-list {
	display: grid;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
}

.conflict-item,
.redistribution-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3);
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(246, 249, 253, 0.9);
}

.redistribution-row {
	align-items: stretch;
	flex-direction: column;
}

.resolution-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.resolution-grid--stacked {
	grid-template-columns: 1fr;
}

.resolution-card {
	padding: var(--space-4);
	border-radius: 20px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.9);
}

.resolution-card h3 {
	margin: 0 0 var(--space-2);
}

.resolution-card p {
	margin: 0 0 var(--space-4);
	color: var(--muted);
	line-height: 1.55;
}

.conflict-resolution-box--inline .error-box {
	margin-bottom: var(--space-3);
}

.conflict-resolution-box--inline .conflict-list {
	margin-bottom: var(--space-4);
}

.conflict-resolution-box--inline .resolution-card {
	padding: var(--space-3);
}

.conflict-resolution-box--inline .resolution-card h3 {
	font-size: 18px;
}

.conflict-resolution-box--inline .redistribution-row input,
.conflict-resolution-box--inline .redistribution-row select {
	width: 100%;
	text-align: left;
}

.redistribution-grid {
	display: grid;
	gap: var(--space-3);
}

.redistribution-row-new {
	background: rgba(18, 60, 114, 0.05);
	border-color: rgba(18, 60, 114, 0.1);
}

.redistribution-row label {
	font-weight: 600;
	color: var(--text);
}

.redistribution-row input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
	text-align: right;
}

.redistribution-row select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.comments-section-card {
	overflow: hidden;
	margin-top: var(--space-2);
}

.discussion-header {
	margin-bottom: var(--space-2);
}

.discussion-description {
	margin: 6px 0 0;
	max-width: 760px;
	line-height: 1.5;
}

.initiative-milestones-card {
	margin-top: var(--space-4);
	margin-bottom: var(--space-4);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}

.initiative-milestones-toggle {
	display: grid;
	gap: var(--space-3);
	margin: 0;
}

.initiative-milestones-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	list-style: none;
	cursor: pointer;
	margin-bottom: 0;
	min-height: auto;
}

.initiative-milestones-summary:focus,
.initiative-milestones-summary:focus-visible {
	outline: none;
	box-shadow: none;
}

.initiative-milestones-summary::-webkit-details-marker {
	display: none;
}

.initiative-milestones-summary::marker {
	content: "";
}

.initiative-milestones-summary h3 {
	margin: 0;
}

.initiative-milestones-summary .button {
	pointer-events: none;
}

.initiative-milestones-body {
	display: grid;
	gap: var(--space-4);
}

.initiative-milestones-chevron {
	display: inline-block;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
	margin-top: 0;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(-45deg);
	transform-origin: center;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.initiative-milestones-toggle[open] .initiative-milestones-chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.collapsible-filter-card {
	margin-bottom: var(--space-4);
}

.filter-shell {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.filter-toggle-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.filter-shell-header {
	margin-bottom: 0;
}

.filter-toggle-summary {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	cursor: pointer;
	margin: 0;
}

.filter-toggle-summary:focus,
.filter-toggle-summary:focus-visible {
	outline: none;
	box-shadow: none;
}

.filter-toggle-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid rgba(255, 108, 12, 0.16);
	background: rgba(255, 108, 12, 0.12);
	box-shadow: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.filter-toggle-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(255, 108, 12, 0.12);
	background: rgba(255, 108, 12, 0.16);
	border-color: rgba(255, 108, 12, 0.22);
}

.filter-toggle-icon,
.filter-toggle-icon::before,
.filter-toggle-icon::after {
	display: block;
	height: 3px;
	border-radius: 999px;
	background: var(--accent);
	content: "";
}

.filter-toggle-icon {
	position: relative;
	width: 18px;
}

.filter-toggle-icon::before {
	position: absolute;
	top: -8px;
	right: 0;
	width: 12px;
}

.filter-toggle-icon::after {
	position: absolute;
	top: 8px;
	right: 0;
	width: 8px;
}

.filter-toggle-checkbox:checked ~ .filter-shell-header .filter-toggle-button {
	background: rgba(255, 108, 12, 0.18);
	border-color: rgba(255, 108, 12, 0.28);
}

.filter-shell > .collapsible-filter-card {
	display: none;
}

.filter-toggle-checkbox:checked ~ .collapsible-filter-card {
	display: block;
}

.discussion-tabs {
	display: grid;
	gap: var(--space-4);
	min-width: 0;
	max-width: 100%;
}

.discussion-tab-input {
	display: none;
}

.discussion-tab-labels {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--space-2);
	min-width: 0;
	max-width: 100%;
}

.discussion-tab-label {
	position: relative;
	padding-bottom: var(--space-2);
	color: var(--muted);
	cursor: pointer;
	font-weight: 600;
}

.discussion-panel {
	display: none;
	min-width: 0;
	max-width: 100%;
}

.discussion-tab-input:first-of-type:checked ~ .discussion-tab-labels label:first-child,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-tab-labels label:nth-child(2),
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-tab-labels label:nth-child(3) {
	color: var(--brand-blue);
}

.discussion-tab-input:first-of-type:checked ~ .discussion-tab-labels label:first-child::after,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-tab-labels label:nth-child(2)::after,
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-tab-labels label:nth-child(3)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--space-2) * -1 - 1px);
	height: 2px;
	background: var(--accent);
	border-radius: 999px;
}

.discussion-tab-input:first-of-type:checked ~ .discussion-panels .discussion-panel-comments,
.discussion-tab-input:nth-of-type(2):checked ~ .discussion-panels .discussion-panel-history,
.discussion-tab-input:nth-of-type(3):checked ~ .discussion-panels .discussion-panel-blockers {
	display: block;
}

.comments-form-box {
	padding-bottom: var(--space-4);
	margin-bottom: var(--space-4);
	border-bottom: 1px solid var(--line);
	min-width: 0;
	max-width: 100%;
}

.comments-section-card .section-header-tight {
	margin-bottom: var(--space-3);
}

.comment-form-grid {
	display: grid;
	gap: var(--space-3);
	min-width: 0;
	max-width: 100%;
}

.markdown-editor {
	display: grid;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
}

.markdown-editor__hint {
	margin: 0;
	color: var(--muted);
	font-size: 11px;
}

.markdown-editor {
	position: relative;
}

.markdown-editor__placeholder {
	position: absolute;
	left: 38px;
	top: 68px;
	z-index: 2;
	max-width: calc(100% - 76px);
	color: var(--muted);
	pointer-events: none;
}

.markdown-editor__placeholder[hidden] {
	display: none;
}

.toastui-editor-container {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.toastui-editor-defaultUI,
.toastui-editor-toolbar,
.toastui-editor-main,
.toastui-editor-main-container,
.toastui-editor-ww-container,
.toastui-editor-contents {
	min-width: 0;
	max-width: 100%;
}

.comments-thread,
.comment-card,
.comment-card__body {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.toastui-editor-contents img {
	max-width: 100%;
	height: auto;
}

.comment-image-preview-link {
	display: inline-block;
	max-width: 100%;
	cursor: zoom-in;
}

.comment-image--expanded {
	width: min(720px, 100%);
	height: auto;
	max-height: none;
	object-fit: contain;
}

.reply-context {
	padding: var(--space-3);
	margin-bottom: var(--space-3);
	border-radius: 16px;
	background: rgba(18, 60, 114, 0.05);
	border: 1px solid rgba(18, 60, 114, 0.08);
}

.reply-context p {
	margin: 6px 0 10px;
	color: var(--muted);
}

.comments-thread {
	display: grid;
	gap: var(--space-4);
}

.comment-card {
	padding: var(--space-4);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 253, 0.98));
	border: 1px solid var(--line);
}

.comment-card-reply {
	margin-left: var(--space-5);
	background: rgba(250, 252, 255, 0.98);
}

.comment-card__header,
.comment-card__actions {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-2);
}

.comment-card__actions {
	justify-content: flex-end;
	margin-top: var(--space-2);
	flex-wrap: wrap;
}

.comment-card__body p {
	margin: var(--space-3) 0 0;
	color: var(--text);
	line-height: 1.65;
}

.comment-card__attachments {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

.attachment-chip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 12px;
	background: rgba(241, 245, 249, 0.9);
	border: 1px solid var(--line);
	font-size: 0.85rem;
}

.attachment-chip--image {
	align-items: flex-start;
	flex-direction: column;
	padding: 8px;
}

.attachment-thumb {
	width: min(220px, 100%);
	height: 140px;
	object-fit: cover;
	border-radius: 6px;
}

.attachment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(255, 108, 12, 0.12);
	color: var(--accent);
	flex-shrink: 0;
}

.attachment-size {
	white-space: nowrap;
}

.attachment-dropzone {
	position: relative;
	display: grid;
	gap: var(--space-2);
	padding: var(--space-3);
	border: 1.5px dashed var(--line);
	border-radius: 14px;
	background: rgba(248, 250, 252, 0.7);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.attachment-dropzone:hover {
	border-color: var(--accent);
}

.attachment-dropzone.is-dragover {
	border-color: var(--accent);
	background: rgba(255, 108, 12, 0.08);
}

.attachment-dropzone__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.attachment-dropzone__prompt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	text-align: center;
	color: var(--muted);
	padding: var(--space-2) 0;
	pointer-events: none;
}

.attachment-dropzone__icon {
	display: inline-flex;
	color: var(--accent);
	flex-shrink: 0;
}

.attachment-dropzone.has-files .attachment-dropzone__prompt {
	padding: 4px 0;
}

.attachment-preview-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	z-index: 2;
	pointer-events: none;
}

.attachment-preview-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line);
	pointer-events: auto;
}

.attachment-preview-name {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.85rem;
}

.attachment-preview-size {
	white-space: nowrap;
	font-size: 0.78rem;
}

.attachment-preview-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	border: none;
	background: rgba(220, 38, 38, 0.1);
	color: #dc2626;
	font-size: 0.8rem;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.attachment-preview-remove:hover {
	background: rgba(220, 38, 38, 0.18);
}

.comment-replies {
	display: grid;
	gap: var(--space-3);
	margin-top: var(--space-4);
}

.compact-actions {
	gap: 10px;
	justify-content: flex-start;
}

.comment-submit-row {
	justify-content: flex-end;
}

.detail-section h3 {
	margin-top: 0;
}

.actions-row {
	display: flex;
	gap: var(--space-2);
	flex-wrap: wrap;
}

.form-card {
	max-width: 980px;
	margin: 0 auto;
	padding: var(--space-5);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-3) var(--space-4);
}

.form-grid .full-span {
	grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
	width: 100%;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.form-grid textarea {
	min-height: 120px;
	resize: vertical;
}

.filter-group-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--text);
}

.status-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-4);
}

.checkbox-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: inherit;
	color: var(--text);
}

.checkbox-inline input[type="checkbox"] {
	width: auto;
}

.search-bar {
	margin-bottom: var(--space-4);
}

.search-bar-form {
	display: flex;
	gap: var(--space-3);
	align-items: center;
}

.search-bar-form input[type="text"] {
	flex: 1;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: #fff;
	font: inherit;
	color: var(--text);
}

.error-box {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid rgba(185, 28, 28, 0.22);
	background: #fff1f2;
	color: #9f1239;
}

.error-box h3 {
	margin: 0 0 8px;
	font-size: 16px;
}

.empty-row {
	padding: 12px 0;
	color: var(--muted);
}

@media (max-width: 920px) {
	.team-update-create-card form {
		grid-template-columns: 1fr;
	}

	.team-update-overview {
		grid-template-columns: 1fr;
	}

	.team-update-session-grid {
		grid-template-columns: 1fr;
	}

	.team-update-active-row {
		grid-template-columns: 1fr auto 16px;
		gap: 6px 10px;
	}

	.team-update-active-row__date {
		grid-column: 1 / -1;
	}

	.team-update-active-row__period {
		grid-column: 1;
	}

	.team-update-session-section__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.team-update-history-row {
		grid-template-columns: 1fr auto 16px;
		gap: 6px 10px;
	}

	.team-update-history-row__period {
		grid-column: 1 / 2;
	}

	.team-update-history-row .mini-badge,
	.team-update-history-row__hint {
		grid-column: 2;
		grid-row: 1 / span 2;
		justify-self: end;
	}

	.team-update-history-row__hint {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.team-update-page-title {
		gap: 6px;
	}

	.team-update-page-title__routine {
		font-size: 20px;
	}

	.team-update-page-title__separator {
		font-size: 21px;
	}

	.team-update-page-title__team {
		font-size: 28px;
	}

	.hero,
	.metrics,
	.content-grid,
	.executive-grid,
	.detail-grid,
	.form-grid,
	.program-grid,
	.paused-grid,
	.attention-grid,
	.radar-grid,
	.quick-allocation-grid,
	.initiative-blockers-layout,
	.initiative-blockers-form__fields,
	.linked-initiative-grid,
	.resolution-grid {
		grid-template-columns: 1fr;
	}

	.initiative-blockers-form {
		padding-right: 0;
		padding-bottom: var(--space-4);
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.topbar-inner,
	.list-header,
	.bulk-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.topbar-links {
		flex-wrap: wrap;
		margin-left: 0;
	}

	.topbar-session {
		margin-left: 0;
	}

	.people-table-card {
		overflow-x: auto;
	}

	.people-table {
		min-width: 760px;
	}
}
.team-update-mode-switcher {
	margin-top: var(--space-5);
	border-bottom: 1px solid var(--line);
}

.team-update-readonly-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: var(--space-3);
	padding: 11px 14px;
	border: 1px solid rgba(18, 60, 114, 0.16);
	border-radius: 10px;
	background: rgba(231, 239, 255, 0.62);
	color: var(--brand-blue);
	font-size: 13px;
}

.team-update-readonly-notice span {
	color: var(--muted);
}

.team-update-mode-switcher > input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.team-update-mode-switcher > label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-weight: 700;
	cursor: pointer;
}

.team-update-mode-switcher > label span {
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
}

#team-update-mode-initiatives:checked ~ label[for="team-update-mode-initiatives"],
#team-update-mode-team:checked ~ label[for="team-update-mode-team"],
#team-update-mode-review:checked ~ label[for="team-update-mode-review"],
#team-update-mode-meeting:checked ~ label[for="team-update-mode-meeting"] {
	border-bottom-color: var(--accent);
	color: var(--text);
}

.team-update-mode-panel {
	display: none;
	margin-top: var(--space-3);
	padding: var(--space-5);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.team-update-paused-overview {
	border: 1px dashed var(--line);
	border-radius: 20px;
	background: var(--surface);
	overflow: hidden;
}

.team-update-paused-overview[open] {
	box-shadow: var(--shadow);
}

.team-update-paused-overview summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 10px var(--space-5);
	cursor: pointer;
	list-style: none;
}

.team-update-paused-overview summary::-webkit-details-marker {
	display: none;
}

.team-update-paused-overview__title {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	font-weight: 600;
	color: var(--text);
}

.team-update-paused-overview__chevron {
	flex-shrink: 0;
	transition: transform 0.15s;
}

.team-update-paused-overview[open] .team-update-paused-overview__chevron {
	transform: rotate(90deg);
}

.team-update-paused-overview__body {
	padding: 0 var(--space-5) var(--space-5);
	border-top: 1px solid var(--line);
	padding-top: var(--space-3);
}

.team-update-paused-initiatives-list {
	display: grid;
	gap: 10px;
	margin-top: var(--space-3);
}

.team-update-paused-initiative-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
}

.team-update-paused-initiative-card > div {
	display: grid;
	gap: 2px;
}

.team-update-review-workspace {
	display: grid;
	grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.9fr);
	gap: 28px;
}

.team-update-review-submit-status {
	display: flex;
	align-items: center;
	gap: 10px;
	position: fixed;
	top: 80px;
	right: 16px;
	z-index: 20;
	width: fit-content;
	max-width: calc(100vw - 32px);
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface, #fff);
	box-shadow: 0 4px 14px rgba(20, 35, 50, 0.12);
	color: var(--ink, #202b36);
	font-weight: 600;
}

.team-update-review-submit-status[hidden] {
	display: none;
}

.team-update-review-submit-status__spinner {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: team-update-review-spin 700ms linear infinite;
}

.team-update-review-submit-status[data-state="complete"] .team-update-review-submit-status__spinner,
.team-update-review-submit-status[data-state="error"] .team-update-review-submit-status__spinner {
	display: none;
}

.task-row--updating {
	opacity: 0.65;
	pointer-events: none;
}

.task-row__action-feedback {
	flex-basis: 100%;
	color: var(--danger, #b42318);
	font-size: 0.875rem;
}

@keyframes team-update-review-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.team-update-review-submit-status__spinner { animation-duration: 2s; }
}

.team-update-review-workspace--people-collapsed {
	grid-template-columns: 36px minmax(0, 1fr);
}

.team-update-review-people {
	padding-right: var(--space-5);
	border-right: 1px solid var(--line);
}

.team-update-review-people__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
}

.team-update-review-people__header .team-update-panel-heading {
	margin-bottom: 0;
}

.team-update-review-people__header .button-icon {
	flex: 0 0 auto;
}

.team-update-review-people--collapsed {
	padding-right: 0;
}

.team-update-review-people--collapsed .team-update-review-people__header {
	justify-content: center;
}

.team-update-review-people--collapsed .team-update-review-people__header > div,
.team-update-review-people--collapsed .team-update-review-people__content {
	display: none;
}

.team-update-review-people__collapsed-icon {
	display: none;
}

.team-update-review-people__collapsed-icon .context-icon {
	width: 18px;
	height: 18px;
}

.team-update-review-people--collapsed .team-update-review-people__collapse-icon {
	display: none;
}

.team-update-review-people--collapsed .team-update-review-people__collapsed-icon {
	display: block;
}

.team-update-review-person {
	display: grid;
	gap: 5px;
	padding: 13px 8px;
	border-bottom: 1px solid var(--line);
}

.team-update-review-person span {
	color: var(--muted);
	font-size: 13px;
}

.team-update-review-person__progress {
	color: var(--brand-blue) !important;
	font-size: 12px !important;
}

.team-update-review-person__context {
	margin-top: 3px;
	padding-top: 5px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}

.team-update-review-person__context summary {
	color: var(--brand-blue);
	cursor: pointer;
}

.team-update-review-person__context p,
.team-update-review-person__context .markdown-display {
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 12px;
}

.team-update-review-person__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}


.team-update-person-filter {
	min-width: 0;
	padding: 4px 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.team-update-person-filter:hover,
.team-update-person-filter[aria-pressed="true"] {
	background: rgba(38, 107, 132, 0.1);
	color: var(--brand-blue);
}

.team-update-person-filter .context-icon {
	color: #0f766e;
}

.team-update-person-filter__status--submitted .context-icon {
	color: #16a34a;
}

.team-update-person-filter__status--pending .context-icon {
	color: #dc2626;
}

.team-update-review-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: var(--space-3);
	padding: 10px 12px;
	border: 1px solid rgba(255, 108, 12, 0.35);
	border-radius: 10px;
	background: rgba(255, 108, 12, 0.1);
	color: #b45309;
	font-weight: 600;
}

.team-update-review-filter span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.team-update-review-filter .context-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.team-update-review-filter[hidden] {
	display: none;
}

.team-update-review-filter__clear {
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.team-update-review-filter__clear:hover,
.team-update-review-filter__clear:focus-visible {
	background: rgba(255, 108, 12, 0.2);
	border-color: rgba(255, 108, 12, 0.32);
	transform: translateY(-1px);
}

.team-update-allocation-manage-button {
	color: var(--brand-blue);
}

.team-update-person-allocations-dialog {
	width: min(560px, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.team-update-person-allocations-dialog::backdrop {
	background: rgba(8, 31, 40, 0.35);
}

.team-update-person-allocations-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.team-update-person-allocations-dialog h2 {
	margin: 4px 0 0;
}

.team-update-person-allocations-list {
	display: grid;
	gap: 8px;
}

.team-update-person-allocation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.team-update-person-allocation div {
	display: grid;
	gap: 4px;
}

.team-update-person-allocation span {
	color: var(--muted);
	font-size: 13px;
}

.team-update-review-initiatives {
	display: grid;
	grid-auto-rows: max-content;
	gap: var(--space-3);
}

.team-update-review-initiatives > .team-update-panel-heading {
	margin-bottom: 0;
}

.team-update-review-initiative {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	overflow: hidden;
	scroll-margin-top: 90px;
}

.team-update-review-initiative[open] {
	border-color: rgba(18, 60, 114, 0.28);
	box-shadow: 0 8px 24px rgba(18, 60, 114, 0.07);
}

.team-update-review-initiative summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: 16px;
	cursor: pointer;
	list-style: none;
}

.team-update-review-initiative summary::-webkit-details-marker {
	display: none;
}

.team-update-review-initiative summary div {
	display: grid;
	gap: 4px;
}

.team-update-review-initiative summary div span {
	color: var(--muted);
	font-size: 13px;
}

.team-update-review-initiative summary div > .context-label {
	width: fit-content;
}

.program-initiative-label,
.team-update-review-initiative summary .program-initiative-label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.team-update-review-initiative:not([open]) .team-update-review-initiative__body {
	display: none;
}

.team-update-review-initiative__body {
	display: grid;
	gap: var(--space-3);
	padding: 20px 16px 16px;
	border-top: 1px solid var(--line);
}

.team-update-review-allocation-tools {
	display: grid;
	gap: 8px;
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

.team-update-review-allocation-tools__heading,
.team-update-review-allocation-form,
.team-update-review-allocation-person {
	display: flex;
	align-items: center;
	gap: 8px;
}

.team-update-allocation-modal-list {
	display: grid;
	gap: 8px;
}

.team-update-allocation-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(500px, 100vw);
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 24px;
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0;
	box-shadow: -18px 0 45px rgba(18, 60, 114, 0.16);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.team-update-allocation-drawer .rebalance-drawer-content {
	display: grid;
	gap: 20px;
}

.team-update-allocation-drawer .rebalance-drawer-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f7f9fc;
}

.rebalance-drawer-period {
	margin: 0 0 -8px;
	color: var(--muted);
	font-size: 13px;
}

.team-update-allocation-drawer .rebalance-drawer-summary div {
	display: grid;
	gap: 4px;
}

.team-update-allocation-drawer .rebalance-drawer-summary strong {
	font-size: 12px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.team-update-allocation-drawer .rebalance-composition {
	margin-top: -8px;
}

.team-update-allocation-drawer .error-box {
	margin: 0;
	padding: 14px;
}

.team-update-allocation-drawer .rebalance-live-summary {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--brand-blue-soft);
	color: var(--brand-blue);
	line-height: 1.4;
}

.team-update-allocation-drawer .rebalance-live-summary[data-state="over-limit"] {
	background: #fff1f2;
	color: #9f1239;
	border: 1px solid rgba(159, 18, 57, 0.18);
}

.team-update-allocation-drawer .rebalance-drawer-actions {
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.rebalance-drawer-actions__hint {
	margin-right: auto;
	font-size: 12px;
}

.team-update-allocation-drawer [data-rebalance-submit]:disabled {
	opacity: 0.48;
	cursor: not-allowed;
	filter: grayscale(0.35);
}

.team-update-allocation-drawer .rebalance-drawer-allocations {
	display: grid;
	gap: 10px;
}

.team-update-allocation-drawer .rebalance-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 90px;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.78);
}

.team-update-allocation-drawer .rebalance-row p {
	margin: 5px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.team-update-allocation-drawer .rebalance-row input,
.team-update-allocation-drawer .rebalance-new-grid input,
.team-update-allocation-drawer .rebalance-new-grid select {
	width: 100%;
}

.rebalance-drawer-new-section {
	display: grid;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.rebalance-drawer-new-section h3 {
	color: var(--brand-blue);
}

.rebalance-drawer-new-section h3 {
	margin: 0;
}

.rebalance-drawer-new-section p {
	margin: 0;
}

.team-update-allocation-drawer .actions-row {
	justify-content: flex-end;
	padding-top: 6px;
}

.team-update-allocation-drawer::backdrop {
	background: rgba(8, 31, 40, 0.32);
}

.team-update-allocation-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.team-update-allocation-drawer h2 {
	margin: 4px 0 0;
}

@media (max-width: 560px) {
	.initiative-blockers-active__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.initiative-blocker-dialog__header,
	.initiative-blocker-dialog form {
		padding-left: var(--space-3);
		padding-right: var(--space-3);
	}

	.team-update-allocation-drawer {
		width: 100vw;
		padding: 20px 16px;
	}
}

.team-update-allocation-modal-row {
	display: grid;
	grid-template-columns: 1fr 100px;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.team-update-allocation-modal-row--new {
	color: var(--brand-blue);
	font-weight: 700;
}

.team-update-review-allocation-tools__heading {
	justify-content: space-between;
}

.team-update-review-allocation-person {
	justify-content: space-between;
	padding: 8px 0;
}

.team-update-review-contribution {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	line-height: 1.45;
}

.team-update-review-contribution__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
}

.team-update-review-contribution__person,
.team-update-review-contribution__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.team-update-review-contribution__actions {
	justify-content: flex-end;
	flex-wrap: wrap;
}

.team-update-review-contribution__tasks {
	margin-top: 8px;
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid rgba(18, 60, 114, 0.08);
	border-bottom: 1px solid rgba(18, 60, 114, 0.08);
}

.team-update-review-contribution__report {
	margin-top: 10px;
}

.team-update-review-contribution__answer {
	margin-top: 6px;
	padding-left: 26px;
}

.team-update-review-contribution__section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.team-update-review-contribution__person {
	flex-wrap: wrap;
}

.team-update-review-contribution--pending {
	border: 1px dashed rgba(230, 165, 47, 0.55);
	background: #fffaf2;
}

.team-update-review-contribution--submitted {
	border-color: rgba(46, 159, 114, 0.28);
	background: #f4fbf7;
}

.team-update-review-contribution p {
	margin: 6px 0 0;
}

.team-update-review-initiative-facts {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(248, 250, 252, 0.82);
}

.team-update-review-history-note {
	display: grid;
	gap: 6px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(18, 60, 114, 0.1);
}

.team-update-review-history-note p {
	margin: 0;
	color: var(--text);
	line-height: 1.5;
	white-space: pre-wrap;
}

#team-update-cancel-dialog {
	width: min(520px, calc(100vw - 32px));
	max-width: none;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.team-update-date-dialog {
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.team-update-date-dialog::backdrop {
	background: rgba(8, 31, 40, 0.4);
}

.team-update-date-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.team-update-date-dialog__header h2 {
	margin: 4px 0 0;
}

.team-update-date-dialog > .subtle {
	display: block;
	margin: 8px 0 20px;
}

.team-update-date-dialog__form {
	display: grid;
	gap: 12px;
}

.team-update-date-dialog__form input[type="date"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	color: var(--text);
	font: inherit;
}

.team-update-date-dialog__form label {
	font-size: 13px;
	font-weight: 700;
}

.team-update-date-dialog__form .actions-row {
	justify-content: flex-end;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

#team-update-cancel-dialog::backdrop {
	background: rgba(8, 31, 40, 0.4);
}

#team-update-cancel-dialog h2 {
	margin: 0;
	font-size: 22px;
}

#team-update-cancel-dialog > .subtle {
	display: block;
	margin: 8px 0 20px;
}

#team-update-cancel-dialog form {
	display: grid;
	gap: 16px;
}

#team-update-cancel-dialog form > div:not(.actions-row) {
	display: grid;
	gap: 7px;
}

#team-update-cancel-dialog label {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
}

#team-update-cancel-dialog textarea {
	width: 100%;
	min-height: 104px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	line-height: 1.45;
	resize: vertical;
}

#team-update-cancel-dialog textarea:focus {
	border-color: rgba(18, 60, 114, 0.38);
	box-shadow: 0 0 0 3px rgba(18, 60, 114, 0.08);
	outline: none;
}

#team-update-cancel-dialog .actions-row {
	justify-content: flex-end;
	gap: 10px;
	margin-top: 2px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.team-update-review-initiative-facts__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	min-height: 38px;
	margin-bottom: 14px;
}

.team-update-review-initiative-facts__heading > * {
	min-width: 0;
}

.team-update-review-initiative-facts__heading h3 {
	margin: 3px 0 0;
	font-size: 17px;
	color: var(--text);
}

.team-update-review-initiative-facts__grid label,
.team-update-review-initiative-facts__grid .label,
.team-update-review-field-label {
	color: var(--text);
}

.team-update-review-initiative-facts__grid > div > label,
.team-update-review-initiative-facts__grid .team-update-review-field-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--muted);
}

.team-update-review-initiative-facts__grid .team-update-review-field-label {
	color: var(--muted);
}

.team-update-review-initiative-facts__grid > div > strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}

.team-update-review-initiative-facts__grid {
	display: grid;
	grid-template-columns: minmax(130px, 0.9fr) minmax(130px, 0.9fr) minmax(180px, 1.2fr);
	gap: 16px;
}

.team-update-review-initiative-facts__grid > div {
	display: grid;
	align-content: start;
	gap: 7px;
}

.team-update-review-initiative-facts__task-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	min-height: 38px;
	margin-bottom: 14px;
	padding: 8px 0;
	border-top: 1px solid rgba(18, 60, 114, 0.1);
	border-bottom: 1px solid rgba(18, 60, 114, 0.1);
}

.team-update-review-initiative-facts__grid .team-update-review-tasks-button {
	max-width: 100%;
	white-space: normal;
	text-align: left;
}

.team-update-review-tasks-panel__count {
	font-weight: 400;
	font-size: 14px;
	margin-left: 6px;
}

.team-update-review-tasks-panel__header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.team-update-review-tasks-panel__header-actions .button-icon {
	width: 30px;
	height: 30px;
	min-width: 30px;
	min-height: 30px;
}

.team-update-review-tasks-panel__section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.team-update-review-tasks-panel__section-label .mini-badge {
	min-width: 30px;
	font-size: 11px;
}

.team-update-review-tasks-panel__closed {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
}

.team-update-review-tasks-panel__closed summary.team-update-review-tasks-panel__section-label {
	justify-content: flex-start;
	padding: 0;
	margin-bottom: 0;
	cursor: pointer;
	list-style: none;
}

.team-update-review-tasks-panel__closed summary::-webkit-details-marker {
	display: none;
}

.team-update-review-tasks-panel__closed summary::marker {
	content: "";
}

.team-update-review-tasks-panel__closed-chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	flex-shrink: 0;
	margin-left: auto;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(-45deg);
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.team-update-review-tasks-panel__closed[open] .team-update-review-tasks-panel__closed-chevron {
	transform: rotate(45deg);
	border-color: var(--accent);
}

.team-update-review-tasks-panel__closed .task-list {
	margin-top: 12px;
}

.team-update-review-tasks-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px dashed var(--line);
}

.team-update-review-tasks-panel .task-row {
	grid-template-columns: auto minmax(0, 1fr);
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: #fff;
	border-left: 3px solid rgba(38, 107, 132, 0.35);
	box-shadow: 0 1px 2px rgba(18, 60, 114, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.team-update-review-tasks-panel .task-row[data-task-reorder-url] {
	padding-left: 32px;
}

.team-update-review-tasks-panel .task-row:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(18, 60, 114, 0.1);
	border-left-color: var(--brand-blue);
}

.team-update-review-tasks-panel .task-row--done {
	border-left-color: rgba(15, 118, 110, 0.55);
	background: rgba(15, 118, 110, 0.04);
}

.team-update-review-tasks-panel .task-row--overdue {
	border-left-color: rgba(185, 28, 28, 0.55);
}

.team-update-review-tasks-panel .task-row--blocking {
	border-left-width: 4px;
	background: rgba(255, 247, 237, 0.6);
}

.team-update-review-tasks-panel .task-row__title {
	overflow-wrap: anywhere;
	font-weight: 700;
}


.team-update-review-tasks-panel .task-row[hidden] {
	display: none;
}

.team-update-review-tasks-panel .task-assignee-pills {
	flex-wrap: wrap;
}


.team-update-review-initiative-facts__grid input[type="date"] {
	width: 100%;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
}

.team-update-review-initiative-facts__grid select:not(.quick-select) {
	width: 100%;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
}

.team-update-review-initiative-facts .quick-select {
	min-height: 36px;
	padding: 0 28px 0 10px;
}

.team-update-review-initiative-facts .quick-select-wrap {
	display: inline-flex;
	width: max-content;
	max-width: 100%;
}

.team-update-review-initiative-facts .priority-pills {
	gap: 5px;
}

.team-update-review-initiative-facts .priority-pill {
	width: 30px;
	height: 30px;
	min-height: 30px;
}

.team-update-review-initiative-facts .priority-pill__input:checked + .priority-pill {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.team-update-review-leadership-notes {
	display: grid;
	gap: 7px;
	margin-top: 20px;
	padding: 16px;
	border: 1px solid rgba(38, 107, 132, 0.2);
	border-radius: 12px;
	background: rgba(38, 107, 132, 0.05);
}

.team-update-review-leadership-notes label {
	font-weight: 700;
}

.team-update-review-leadership-notes textarea {
	width: 100%;
	min-height: 104px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	resize: vertical;
}

.team-update-review-initiative-facts__heading-actions,
.team-update-review-initiative-state {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
}

.team-update-review-initiative-facts__heading-actions .button,
.team-update-review-initiative-state .button {
	gap: 8px;
}

.team-update-review-blockers-button {
	min-width: 42px;
	width: 42px;
	height: 36px;
	min-height: 36px;
	padding: 0 4px;
	border: 0;
	border-radius: 50%;
	background: transparent;
}

.team-update-review-blockers-button .mini-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	width: 42px;
	height: 36px;
	min-width: 0;
	padding: 0 3px;
	border-radius: 50%;
	font-size: 11px;
}

.team-update-review-blockers-button svg {
	width: 11px;
	height: 11px;
}

.team-update-review-blockers-button:hover {
	background: rgba(38, 107, 132, 0.08);
}

.team-update-review-initiative-state {
	margin-top: 16px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.team-update-review-initiative-state > div {
	display: grid;
	gap: 3px;
	margin-right: auto;
}

.team-update-review-initiative-state__header {
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	width: 100%;
}

.team-update-review-initiative-state__notes {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.team-update-review-initiative-state__notes > strong {
	display: block;
	margin-bottom: 6px;
}

.team-update-review-reopen-action {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}

.team-update-review-blockers-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(500px, 100vw);
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 24px;
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0;
	box-shadow: -18px 0 45px rgba(18, 60, 114, 0.16);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.team-update-review-blockers-drawer::backdrop {
	background: rgba(8, 31, 40, 0.32);
}

.team-update-review-blockers-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	min-width: 0;
	margin-bottom: 12px;
}

.team-update-review-blockers-drawer h2 {
	margin: 4px 0 0;
	font-size: 20px;
	overflow-wrap: anywhere;
}

.team-update-review-blockers-drawer__list {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.team-update-review-blockers-drawer__section-label {
	margin-top: 20px;
	color: var(--brand-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.team-update-review-blockers-drawer__list article {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(248, 250, 252, 0.82);
}

.team-update-review-blockers-drawer__item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.team-update-review-blockers-drawer__list p {
	margin: 8px 0 0;
}

.team-update-review-blockers-drawer .task-row {
	grid-template-columns: auto minmax(0, 1fr);
	padding: 12px;
	border-radius: 12px;
}

.team-update-review-blockers-drawer .task-row[hidden] {
	display: none;
}

.team-update-review-blockers-drawer .task-row__summary {
	display: grid;
	align-items: start;
	justify-content: stretch;
	gap: 8px;
	min-width: 0;
}

.team-update-review-blockers-drawer .task-row__summary-meta {
	justify-content: flex-start;
	min-width: 0;
}

.team-update-review-blockers-drawer .task-row__title {
	overflow-wrap: anywhere;
}

.team-update-review-blockers-drawer .task-assignee-pills {
	flex-wrap: wrap;
}

.team-update-review-blockers-drawer .task-row__description,
.team-update-review-blockers-drawer .task-row__description p,
.team-update-review-blockers-drawer .task-row__description li,
.team-update-review-blockers-drawer .task-row__description code,
.team-update-review-blockers-drawer .task-row__description pre {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.team-update-review-blockers-drawer .task-row__description pre {
	white-space: pre-wrap;
	overflow-x: auto;
}

.team-update-review-blockers-drawer__description {
	color: var(--text);
}

.team-update-review-blockers-drawer__meta {
	display: grid;
	gap: 4px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 12px;
}

.team-update-review-blockers-drawer__meta strong {
	color: var(--text);
}

.team-update-review-blocker-resolve {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 8px;
	margin-top: 12px;
}
.comment-card__body > :first-child {
	margin-top: 0;
}
.comment-card__body > :last-child {
	margin-bottom: 0;
}
.comment-card__body h1,
.comment-card__body h2,
.comment-card__body h3 {
	margin: 16px 0 8px;
	color: var(--text);
}
.comment-card__body ul,
.comment-card__body ol {
	margin: 8px 0;
	padding-left: 22px;
}
.comment-card__body blockquote {
	margin: 12px 0;
	padding: 8px 12px;
	border-left: 3px solid var(--accent);
	background: rgba(255, 108, 12, 0.06);
	color: var(--muted);
}
.comment-card__body a {
	color: var(--brand-blue);
	font-weight: 700;
}

.comment-card__body img,
.markdown-display img,
.markdown-summary img,
img[src^="data:image"] {
	max-width: 220px;
	max-height: 220px;
	width: auto;
	height: auto;
	border-radius: 12px;
	margin: 8px 0;
	display: block;
	cursor: zoom-in;
	border: 1px solid var(--line);
}

/* While composing, show the pasted image larger than the display-time thumbnail. */
.toastui-editor-contents img {
	max-width: 100%;
	max-height: none;
	cursor: default;
}

.image-lightbox {
	border: none;
	background: transparent;
	padding: 0;
	max-width: 92vw;
	max-height: 92vh;
}

.image-lightbox::backdrop {
	background: rgba(10, 16, 28, 0.82);
}

.image-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 92vh;
	border-radius: 8px;
}

.image-lightbox__close {
	position: fixed;
	top: 24px;
	right: 32px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.markdown-display > :first-child,
.markdown-summary > :first-child {
	margin-top: 0;
}

.markdown-display > :last-child,
.markdown-summary > :last-child {
	margin-bottom: 0;
}

.markdown-display ul,
.markdown-display ol,
.markdown-summary ul,
.markdown-summary ol {
	padding-left: 22px;
}

.markdown-display a,
.markdown-summary a {
	color: var(--brand-blue);
	font-weight: 700;
}

.markdown-task {
	list-style: none;
	margin-left: -22px;
}

.markdown-task input[type="checkbox"] {
	margin-right: 6px;
	vertical-align: middle;
}

.markdown-summary p,
.markdown-summary ul,
.markdown-summary ol {
	display: inline;
}

.team-update-review-blocker-resolve label {
	grid-column: 1 / -1;
	font-size: 12px;
	font-weight: 700;
}

.team-update-review-blocker-resolve input[type="text"] {
	min-width: 0;
	width: 100%;
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
}

.team-update-review-blockers-drawer__new {
	display: grid;
	gap: 10px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.team-update-new-blocker-dialog {
	width: min(680px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(18, 60, 114, 0.24);
	color: var(--text);
}

.team-update-new-blocker-dialog::backdrop {
	background: rgba(8, 31, 40, 0.42);
}

.team-update-new-blocker-dialog__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 12px;
	border-bottom: 1px solid var(--line);
}

.team-update-new-blocker-dialog__header h2 {
	margin: 4px 0 0;
	font-size: 20px;
}

.team-update-new-blocker-dialog .team-update-review-blocker-form {
	padding: 16px 24px 20px;
}

.team-update-review-blockers-drawer__new h3 {
	margin: 0;
}

.team-update-review-blocker-form {
	display: grid;
	gap: 10px;
}

.team-update-review-blocker-form textarea,
.team-update-review-blocker-form select {
	width: 100%;
}

.team-update-review-blocker-form textarea {
	min-height: 112px;
	padding: 11px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
	resize: vertical;
}

.team-update-review-blocker-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.team-update-review-blocker-form__grid > div {
	display: grid;
	gap: 7px;
}

.team-update-review-blocker-form__grid > div:last-child {
	grid-column: 1 / -1;
}

.team-update-review-blocker-form__grid label {
	font-size: 13px;
	font-weight: 700;
}

.team-update-review-blocker-form__grid select {
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface-strong);
	color: var(--text);
	font: inherit;
}

.team-update-review-blocker-form__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.team-update-markdown-button {
	width: 100%;
	min-height: 108px;
	padding: 14px;
	border: 1px dashed var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--muted);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.team-update-markdown-button:hover,
.team-update-markdown-button:focus-visible {
	border-color: var(--accent);
	color: var(--text);
	box-shadow: 0 0 0 3px rgba(255, 108, 12, 0.08);
	outline: none;
}

.team-update-markdown-button--filled {
	border-style: solid;
	border-color: rgba(18, 60, 114, 0.16);
	background: #fbfcfe;
	color: var(--text);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.team-update-personal-note-form .team-update-initiative-form__actions {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.team-update-personal-note-form .team-update-initiative-form__actions .button-secondary {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

.team-update-personal-no-activity-state {
	display: flex;
	align-items: center;
	pointer-events: none;
	box-sizing: border-box;
	height: 108px;
	padding: 14px;
	border: 1px dashed rgba(18, 60, 114, 0.22);
	border-radius: 9px;
	background: rgba(231, 239, 255, 0.55);
	color: var(--brand-blue);
	font-size: 13px;
	font-weight: 600;
}

.team-update-personal-no-activity-state[hidden] {
	display: none;
}

.team-update-markdown-dialog {
	width: min(800px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 32px);
	box-sizing: border-box;
	overflow-x: hidden;
	overflow: hidden;
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(18, 60, 114, 0.24);
	color: var(--text);
}

.team-update-markdown-dialog[open] {
	display: flex;
	flex-direction: column;
}

.team-update-markdown-dialog::backdrop {
	background: rgba(8, 31, 40, 0.42);
}

.team-update-markdown-dialog__header {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px 12px;
	border-bottom: 1px solid var(--line);
}

.team-update-markdown-dialog__header h2 {
	margin: 4px 0 0;
	font-size: 20px;
}

.team-update-markdown-dialog .markdown-editor {
	box-sizing: border-box;
	flex: 0 0 auto;
	height: min(406px, calc(100vh - 220px));
	padding: 16px 24px 10px;
}

.team-update-markdown-dialog .toastui-editor-defaultUI {
	height: 100% !important;
	max-height: 100% !important;
}

.team-update-markdown-dialog .toastui-editor-container {
	height: 100% !important;
}

.task-review-dialog .task-review-form {
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
}

.team-update-markdown-dialog__footer {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	position: relative;
	z-index: 2;
	pointer-events: auto;
	background: #fff;
	padding: 16px 24px 20px;
}

@media (max-width: 560px) {
	.team-update-markdown-dialog {
		width: calc(100vw - 16px);
		max-width: calc(100vw - 16px);
	}

	.team-update-markdown-dialog__header,
	.team-update-markdown-dialog .markdown-editor,
	.team-update-markdown-dialog__footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.team-update-new-blocker-dialog {
		width: calc(100vw - 24px);
	}

	.team-update-new-blocker-dialog__header,
	.team-update-new-blocker-dialog .team-update-review-blocker-form {
		padding-left: 16px;
		padding-right: 16px;
	}
}

.team-update-review-decision-actions {
	justify-content: flex-end;
	margin-top: 16px;
	padding-top: 4px;
}

@media (max-width: 920px) {
	.team-update-review-workspace {
		grid-template-columns: 1fr;
	}

	.team-update-review-workspace--people-collapsed {
		grid-template-columns: 1fr;
	}

	.team-update-review-people {
		padding-right: 0;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.team-update-review-filter {
		align-items: flex-start;
		flex-direction: column;
	}

	.team-update-review-initiative-facts__heading-actions,
	.team-update-review-initiative-state {
		align-items: flex-end;
		flex-direction: column;
	}

	.team-update-review-initiative-state > div {
		align-self: stretch;
		margin-right: 0;
	}

	.team-update-review-initiative-facts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.team-update-review-initiative-facts__heading,
	.team-update-review-initiative-facts__task-band,
	.team-update-review-contribution__header,
	.team-update-review-contribution__section-heading {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.team-update-review-initiative-facts__heading > .subtle,
	.team-update-review-initiative-facts__task-band > .subtle,
	.team-update-review-contribution__section-heading > .subtle {
		flex: 1 1 100%;
	}

	.team-update-review-initiative-facts__task-band .team-update-review-tasks-button,
	.team-update-review-contribution__section-heading .button {
		margin-left: auto;
	}

	.team-update-review-initiative-facts__grid {
		grid-template-columns: 1fr;
	}
}

#team-update-mode-initiatives:checked ~ .team-update-mode-panel--preparation,
#team-update-mode-team:checked ~ .team-update-mode-panel--team,
#team-update-mode-meeting:checked ~ .team-update-mode-panel--meeting {
	display: block;
}

#team-update-mode-review:checked ~ .team-update-mode-panel--review {
	display: grid;
	gap: var(--space-4);
}

.team-update-panel-heading {
	display: flex;
	justify-content: space-between;
	margin-bottom: var(--space-4);
}

.team-update-mode-panel--review {
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
}

.team-update-review-workspace-card {
	padding: var(--space-5);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(18, 60, 114, 0.06);
}

.team-update-panel-heading h2 {
	margin: 4px 0;
}

.team-update-panel-heading h2 .context-icon {
	width: 20px;
	height: 20px;
	flex-basis: 20px;
}

.team-update-preparation-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.team-update-initiative-list {
	display: grid;
	gap: 14px;
}

.team-update-paused-initiatives {
	margin-top: 16px;
	padding: 12px 16px;
	border: 1px dashed var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.6);
}

.team-update-paused-initiatives ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
}

.team-update-initiative-card {
	position: relative;
	padding: 0 20px;
	border: 1px solid var(--line);
	border-left: 3px solid #e7a52f;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 3px 12px rgba(18, 60, 114, 0.04);
	transition: border-color 0.15s, box-shadow 0.15s;
}

.team-update-initiative-card--complete {
	border-left-color: #2e9f72;
	background: #fff;
}

.team-update-initiative-card:hover {
	border-color: rgba(18, 60, 114, 0.22);
	box-shadow: 0 9px 24px rgba(18, 60, 114, 0.09);
}

.team-update-initiative-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	margin: 0;
	padding: 18px 0 13px;
	border-bottom: 1px solid rgba(18, 60, 114, 0.1);
	cursor: pointer;
	list-style: none;
}

.team-update-initiative-card__header::-webkit-details-marker {
	display: none;
}

.team-update-initiative-card__summary-actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.team-update-initiative-card__chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
}

.team-update-initiative-card[open] .team-update-initiative-card__chevron {
	transform: rotate(225deg) translate(-2px, -2px);
}

.team-update-initiative-card__body {
	padding: 16px 0;
}

.team-update-initiative-card h3 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 18px;
	line-height: 1.25;
}

.team-update-initiative-card h3 .context-icon {
	width: 18px;
	height: 18px;
	color: var(--accent);
	flex: 0 0 auto;
}


.team-update-review-initiative-context {
	margin-bottom: 14px;
	padding-bottom: 14px;
}

.team-update-review-initiative-context > summary {
	cursor: pointer;
	list-style: none;
	margin-bottom: 0;
	padding: 0;
}

.team-update-review-initiative-context > summary::-webkit-details-marker {
	display: none;
}

.team-update-review-initiative-context__toggle {
	width: 10px;
	height: 10px;
	margin-right: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
}

.team-update-review-initiative-context[open] .team-update-review-initiative-context__toggle {
	transform: rotate(225deg) translate(-2px, -2px);
}

.team-update-review-initiative-context__content {
	padding-top: 12px;
}

.team-update-review-initiative-context__content p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

.team-update-review-initiative-context dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin: 0;
}

.team-update-review-initiative-context dt {
	color: var(--muted);
	font-size: 12px;
}

.team-update-review-initiative-context dd {
	margin: 2px 0 0;
	font-size: 14px;
}

.team-update-review-initiative-context__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 14px;
	font-weight: 700;
}

.team-update-review-completed-tasks {
	margin-top: 14px;
	padding: 12px 0 0;
	background: rgba(244, 251, 247, 0.8);
}

.team-update-review-completed-tasks > strong {
	font-size: inherit;
}

.team-update-review-completed-tasks ul {
	display: grid;
	gap: 10px;
	margin: 10px 0 0;
	padding-left: 20px;
}

.team-update-review-completed-tasks li {
	padding-left: 2px;
}

.team-update-review-completed-tasks .markdown-display p {
	margin: 4px 0;
}

.team-update-review-completed-tasks li > span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

.team-update-initiative-card__tasks {
	margin: -8px 0 16px;
}

.team-update-initiative-tasks {
	margin: -4px 0 20px;
	padding: 14px 0 16px;
	border-bottom: 1px solid rgba(18, 60, 114, 0.12);
}

.team-update-initiative-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.team-update-initiative-section-heading h4 {
	margin: 3px 0 0;
	font-size: 15px;
	line-height: 1.3;
}

.team-update-initiative-section-heading__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.team-update-initiative-section-heading--freeform {
	align-items: flex-start;
	margin-bottom: 14px;
}

.team-update-initiative-section-heading--freeform .subtle {
	padding-top: 3px;
}

.team-update-initiative-form {
	display: grid;
	gap: var(--space-2);
}

.team-update-field {
	display: grid;
	align-content: start;
	gap: 8px;
}

.team-update-field__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.team-update-field label,
.team-update-help-details label {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
}

.team-update-field > label {
	align-self: start;
	font-size: 14px;
	line-height: 19px;
}

.team-update-inline-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	height: 24px;
	min-height: 24px;
	align-self: start;
	margin-top: 0;
	color: var(--brand-blue);
	font-size: 13px;
	font-weight: 700;
}

.team-update-field__heading .team-update-inline-choice {
	margin-top: 0;
	white-space: nowrap;
}

.team-update-field > .team-update-inline-choice {
	margin-bottom: 2px;
	white-space: nowrap;
}

.team-update-inline-choice input {
	width: 16px !important;
	height: 16px;
	margin: 0;
	accent-color: var(--brand-blue);
}

.team-update-inline-choice label {
	margin: 0;
	font-size: 13px;
	cursor: pointer;
}

.team-update-no-activity-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 11px 12px;
	border: 1px solid rgba(18, 60, 114, 0.18);
	border-radius: 10px;
	background: var(--brand-blue-soft);
}

.team-update-no-activity-toggle input {
	flex: 0 0 16px !important;
	width: 16px;
	max-width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--brand-blue);
}

.team-update-no-activity-toggle label {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0;
	font-weight: 700;
	color: var(--brand-blue);
	cursor: pointer;
}

.team-update-no-activity-toggle:has(input:checked) {
	border-color: rgba(18, 60, 114, 0.42);
	box-shadow: 0 0 0 3px rgba(18, 60, 114, 0.08);
}

.team-update-activity-fields--hidden {
	display: none !important;
}

.team-update-field-empty-state {
	display: none;
	align-items: center;
	pointer-events: none;
	height: 108px;
	box-sizing: border-box;
	padding: 14px;
	border: 1px dashed rgba(18, 60, 114, 0.22);
	border-radius: 9px;
	background: rgba(231, 239, 255, 0.55);
	color: var(--brand-blue);
	font-size: 13px;
	font-weight: 600;
}

.team-update-field-empty-state--visible {
	display: flex;
}

.team-update-initiative-form__main,
.team-update-initiative-form__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-2);
	column-gap: var(--space-3);
}

.team-update-help-toggle {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fffaf2;
}

.team-update-help-toggle:has(input:checked) {
	border-color: rgba(255, 108, 12, 0.48);
	box-shadow: 0 0 0 3px rgba(255, 108, 12, 0.08);
}

.team-update-help-toggle:hover,
.team-update-no-activity-toggle:hover {
	transform: translateY(-1px);
}

.team-update-help-toggle.team-update-activity-fields--hidden {
	display: none !important;
}

.team-update-help-toggle input {
	flex: 0 0 16px !important;
	width: 16px;
	max-width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--accent);
}

.team-update-help-toggle label {
	display: block;
	width: auto;
	margin: 0;
	font-weight: 700;
	cursor: pointer;
}

.team-update-help-details {
	display: none;
	gap: 6px;
	padding: 12px;
	border: 1px solid rgba(255, 108, 12, 0.24);
	border-radius: 10px;
	background: #fffaf2;
}

.team-update-help-details--visible {
	display: grid;
}

.team-update-initiative-form__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid rgba(18, 60, 114, 0.1);
}

.team-update-initiative-form__actions .button {
	min-width: 150px;
	box-shadow: 0 4px 10px rgba(255, 108, 12, 0.16);
}

.team-update-initiative-form__meta {
	grid-template-columns: minmax(130px, 0.7fr) minmax(150px, 0.8fr) minmax(180px, 1fr) auto;
	align-items: center;
}

.team-update-initiative-form textarea,
.team-update-initiative-form input:not([type="submit"]):not([type="hidden"]),
.team-update-initiative-form select {
	width: 100%;
}

.team-update-initiative-form textarea {
	min-height: 118px;
	padding: 12px 13px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--text);
	font: inherit;
	line-height: 1.45;
	resize: vertical;
}

.team-update-initiative-form textarea:focus {
	border-color: rgba(18, 60, 114, 0.38);
	box-shadow: 0 0 0 3px rgba(18, 60, 114, 0.08);
	outline: none;
}

.team-update-team-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-4);
}

.team-update-team-person {
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
}

.team-update-team-person__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-2);
}

.team-update-team-person h3 {
	margin: 4px 0 0;
	font-size: 19px;
}

.team-update-team-update {
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.team-update-team-update p {
	margin: 5px 0;
	line-height: 1.45;
}

.team-update-team-update__plan,
.team-update-team-update__help,
.team-update-review-contribution__markdown,
.team-update-conversation-update__markdown,
.team-update-update-summary__accomplished,
.team-update-update-summary__plan {
	margin-top: 8px;
	line-height: 1.45;
}

.team-update-team-update__plan > :first-child,
.team-update-team-update__help > :first-child,
.team-update-review-contribution__markdown > :first-child,
.team-update-conversation-update__markdown > :first-child,
.team-update-update-summary__accomplished > :first-child,
.team-update-update-summary__plan > :first-child {
	margin-top: 0;
}

.team-update-team-update__plan > :last-child,
.team-update-team-update__help > :last-child,
.team-update-review-contribution__markdown > :last-child,
.team-update-conversation-update__markdown > :last-child,
.team-update-update-summary__accomplished > :last-child,
.team-update-update-summary__plan > :last-child {
	margin-bottom: 0;
}

.team-update-team-update small {
	color: var(--muted);
	line-height: 1.4;
}

.team-update-person-card,
.team-update-conversation-card {
	padding: var(--space-4);
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
}

.team-update-person-card__header,
.team-update-conversation-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3);
	margin-bottom: var(--space-3);
}

.team-update-person-card h3,
.team-update-conversation-card h3 {
	margin: 4px 0 0;
	font-size: 20px;
}

.team-update-update-summary,
.team-update-conversation-update {
	display: grid;
	gap: 5px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.team-update-update-summary span,
.team-update-conversation-update p {
	margin: 0;
	line-height: 1.45;
}

.team-update-update-summary small {
	color: var(--muted);
}

.team-update-update-entry,
.team-update-allocation-tools {
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px dashed var(--line);
}

.team-update-update-entry summary,
.team-update-allocation-tools summary {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	color: var(--brand-blue);
	font-weight: 700;
	cursor: pointer;
}

.team-update-update-entry summary small {
	color: var(--muted);
	font-weight: 400;
}

.team-update-meeting-layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
	gap: var(--space-5);
}

.team-update-order-panel {
	padding-right: var(--space-4);
	border-right: 1px solid var(--line);
}

.team-update-order-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 5px 10px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.team-update-order-row span {
	color: var(--muted);
	font-size: 13px;
}

.team-update-order-row .button {
	grid-column: 1 / -1;
	justify-self: start;
}

.team-update-order-row--active {
	padding-left: 12px;
	border-left: 3px solid var(--accent);
	background: var(--accent-soft);
}

.team-update-conversation-list {
	display: grid;
	gap: var(--space-4);
}

.team-update-conversation-card--active {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(255, 108, 12, 0.1);
}

@media (max-width: 920px) {
	.team-update-preparation-list,
	.team-update-initiative-form__main,
	.team-update-initiative-form__meta,
	.team-update-team-overview,
	.team-update-meeting-layout {
		grid-template-columns: 1fr;
	}

	.team-update-order-panel {
		padding-right: 0;
		padding-bottom: var(--space-3);
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}
