/* Eisenhower Matrix (templates/tool-eisenhower.php). Site tokens come from refine.css. */
.fc-em {
	--em-do: #c8322f;
	--em-do-bg: #fdeeed;
	--em-schedule: #23689f;
	--em-schedule-bg: #eaf3fb;
	--em-delegate: #b7791f;
	--em-delegate-bg: #fdf4e3;
	--em-delete: #6b7280;
	--em-delete-bg: #f3f4f6;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 8px;
	color: var(--fc-ink, #1d2433);
	box-sizing: border-box;
}
.fc-em *, .fc-em *::before, .fc-em *::after { box-sizing: border-box; }
.fc-em [hidden] { display: none !important; }
.fc-em-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.fc-em-intro { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.fc-em-intro h1 { font-size: var(--fc-h1, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
.fc-em-lead { font-size: var(--fc-lead, 1.15rem); color: var(--fc-ink-2, #4b5563); margin: 0; }

/* buttons */
.fc-em .fc-em-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 8px 16px; border-radius: 8px;
	border: 1px solid var(--fc-line, #e6e8ee); background: #fff; color: var(--fc-ink, #1d2433);
	font: inherit; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none;
}
.fc-em .fc-em-btn:hover { border-color: #c9ced8; background: var(--fc-soft, #f4f6fa); }
.fc-em .fc-em-btn-primary { background: #c8322f; border-color: #c8322f; color: #fff; }
.fc-em .fc-em-btn-primary:hover { background: #a92926; border-color: #a92926; color: #fff; }
.fc-em .fc-em-btn-danger { color: #b42318; }
.fc-em .fc-em-btn-link { border-color: transparent; background: transparent; text-decoration: underline; }
.fc-em button:focus-visible, .fc-em a:focus-visible, .fc-em input:focus-visible, .fc-em select:focus-visible {
	outline: 2px solid var(--fc-check, #3b9ae1); outline-offset: 2px;
}

/* add form */
.fc-em-add {
	display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin: 0 auto 20px;
}
.fc-em-add input[type="text"] {
	flex: 1 1 280px; min-height: 44px; padding: 10px 14px; font-size: 16px;
	border: 1px solid #cfd4dc; border-radius: 8px; background: #fff;
}
.fc-em-add select {
	flex: 0 0 auto; min-height: 44px; padding: 8px 10px; font-size: 15px;
	border: 1px solid #cfd4dc; border-radius: 8px; background: #fff;
}
.fc-em-add .fc-em-btn { min-height: 44px; }

/* inbox */
.fc-em-inbox {
	max-width: 760px; margin: 0 auto 24px; padding: 14px 16px;
	border: 1px dashed #c9ced8; border-radius: var(--fc-radius-sm, 10px); background: #fff;
}
.fc-em-inbox.is-over { border-color: var(--fc-check, #3b9ae1); background: #f3f9fe; }
.fc-em-inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fc-em-inbox h2 { font-size: 18px; margin: 0; }
.fc-em-wizard {
	margin: 12px 0 4px; padding: 14px 16px; border-radius: 8px; background: var(--fc-soft, #f4f6fa);
}
.fc-em-wizard-task { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.fc-em-wizard-q { margin: 0 0 12px; color: var(--fc-ink-2, #4b5563); }
.fc-em-wizard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-em .fc-em-wizard-actions .fc-em-btn-link:hover, .fc-em .fc-em-wizard-actions .fc-em-btn-link:focus { color: var(--fc-ink, #1d2433); background: transparent; }

/* matrix */
.fc-em-grid {
	display: grid;
	grid-template-columns: 28px 1fr 1fr;
	grid-template-rows: auto 1fr 1fr;
	grid-template-areas: ". top top" "side do schedule" "side delegate delete";
	gap: 12px;
}
.fc-em-axis { display: flex; color: var(--fc-muted, #6b7280); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fc-em-axis-top { grid-area: top; }
.fc-em-axis-top span { flex: 1; text-align: center; }
.fc-em-axis-side { grid-area: side; flex-direction: column; }
.fc-em-axis-side span { flex: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.fc-em-q {
	min-height: 220px; padding: 14px 14px 10px; border-radius: var(--fc-radius-sm, 10px);
	border: 1px solid transparent; border-top-width: 4px;
}
.fc-em-q.is-over { outline: 2px dashed currentColor; outline-offset: -6px; }
.fc-em-q-do { grid-area: do; background: var(--em-do-bg); border-top-color: var(--em-do); }
.fc-em-q-schedule { grid-area: schedule; background: var(--em-schedule-bg); border-top-color: var(--em-schedule); }
.fc-em-q-delegate { grid-area: delegate; background: var(--em-delegate-bg); border-top-color: var(--em-delegate); }
.fc-em-q-delete { grid-area: delete; background: var(--em-delete-bg); border-top-color: var(--em-delete); }
.fc-em-q h2 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 8px; }
.fc-em-qnum { font-size: 13px; font-weight: 700; color: #fff; border-radius: 4px; padding: 2px 6px; }
.fc-em-q-do .fc-em-qnum { background: var(--em-do); }
.fc-em-q-schedule .fc-em-qnum { background: var(--em-schedule); }
.fc-em-q-delegate .fc-em-qnum { background: #9a6417; }
.fc-em-q-delete .fc-em-qnum { background: var(--em-delete); }
.fc-em-qsub { margin: 2px 0 10px; font-size: 14px; color: var(--fc-ink-2, #4b5563); }
.fc-em-count {
	margin-left: auto; min-width: 26px; padding: 1px 8px; border-radius: 999px;
	background: rgba(255, 255, 255, .85); color: var(--fc-ink-2, #4b5563); font-size: 13px; font-weight: 600; text-align: center;
}
.fc-em-inbox .fc-em-count { background: var(--fc-soft, #f4f6fa); margin-left: 6px; }
.fc-em-empty { margin: 6px 0; font-size: 14px; color: #5b6270; }

/* tasks */
.fc-em-list { list-style: none; margin: 0; padding: 0; }
.fc-em-task {
	display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 6px 6px 10px;
	background: #fff; border: 1px solid rgba(16, 24, 40, .08); border-radius: 8px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04); cursor: grab;
}
.fc-em-task.is-dragging { opacity: .5; }
.fc-em-task input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; cursor: pointer; }
.fc-em-task-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 1.35; }
.fc-em-task.is-done .fc-em-task-text { text-decoration: line-through; color: var(--fc-muted, #6b7280); }
.fc-em-task-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.fc-em-move {
	flex: 0 0 auto; min-height: 32px; padding: 4px 8px; font: inherit; font-size: 13px; cursor: pointer;
	border: 1px solid #d7dbe2; border-radius: 6px; background: #fff; color: var(--fc-ink-2, #4b5563);
}
.fc-em-move:hover, .fc-em-move[aria-expanded="true"] { border-color: #aeb4bf; background: var(--fc-soft, #f4f6fa); }
.fc-em { position: relative; }
.fc-em-menu {
	position: absolute; z-index: 50; min-width: 170px; padding: 4px; border-radius: 8px;
	background: #fff; border: 1px solid #d7dbe2; box-shadow: var(--fc-shadow-lg, 0 12px 32px rgba(16,24,40,.15));
}
.fc-em-menu button {
	display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none;
	font: inherit; font-size: 14px; text-align: left; color: var(--fc-ink, #1d2433); cursor: pointer;
}
.fc-em-menu button:hover, .fc-em-menu button:focus { background: var(--fc-soft, #f4f6fa); outline: none; }
.fc-em-menu button:focus-visible { box-shadow: inset 0 0 0 2px var(--fc-check, #3b9ae1); }
.fc-em-del {
	flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent;
	font-size: 20px; line-height: 1; color: var(--fc-muted, #6b7280); cursor: pointer;
}
.fc-em-del:hover { background: #fdeeed; color: #b42318; }
.fc-em-task.is-current { outline: 2px solid var(--fc-check, #3b9ae1); outline-offset: 1px; }
.fc-em-task.is-drop-before { box-shadow: 0 -3px 0 var(--fc-check, #3b9ae1); }
.fc-em a.fc-em-focus {
	font-size: 13px; font-weight: 600; color: #fff; background: var(--em-do); border-radius: 6px;
	padding: 4px 8px; text-decoration: none; white-space: nowrap;
}
.fc-em a.fc-em-focus:hover { background: #a92926; }
.fc-em .fc-em-btn-inline {
	border: 0; background: none; padding: 0; font: inherit; color: #c8322f; text-decoration: underline; cursor: pointer;
}
.fc-em-inbox .fc-em-list { max-height: 40vh; overflow-y: auto; }
.fc-em-undo { min-height: 0 !important; padding: 0 4px !important; }
.fc-em-print-foot { display: none; }

/* toolbar */
.fc-em-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; }
/* status line as a toast: visible wherever the user is on the page (Undo lives here). Kept in the
   accessibility tree when empty (only made invisible) so screen readers announce new messages. */
.fc-em-status {
	position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 20px; margin: 0 auto;
	width: fit-content; max-width: 560px; padding: 10px 16px; border-radius: 10px;
	background: #1d2433; color: #fff; font-size: 15px; box-shadow: 0 8px 24px rgba(16, 24, 40, .25);
}
.fc-em-status:empty { padding: 0; box-shadow: none; opacity: 0; pointer-events: none; }
@media screen and (max-width: 720px) {
	.fc-em-status { bottom: 84px; }
}
.fc-em .fc-em-status .fc-em-undo { color: #ffd2cc; font-weight: 600; }
.fc-em .fc-em-status .fc-em-undo:hover { background: transparent; color: #fff; }
.fc-em-noscript { padding: 12px; background: var(--fc-soft, #f4f6fa); border-radius: 8px; }

/* call to action and guide */
.fc-em-cta {
	max-width: 760px; margin: 40px auto; padding: 24px; border-radius: var(--fc-radius, 16px);
	background: var(--fc-soft, #f4f6fa);
}
.fc-em-cta h2, .fc-em-guide h2 { font-size: 26px; margin: 0 0 10px; }
.fc-em-cta p { margin: 0 0 12px; color: var(--fc-ink-2, #4b5563); }
.fc-em-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fc-em-cta-note { font-size: 14px; }
.fc-em-guide { max-width: 760px; margin: 0 auto 24px; font-size: 17px; line-height: 1.65; }
.fc-em-guide h2 { margin-top: 32px; }
.fc-em-guide ol, .fc-em-guide ul { padding-left: 1.3em; }
.fc-em-guide li { margin-bottom: 8px; }
.fc-em a { color: #c8322f; }
.fc-em a.fc-em-btn { color: var(--fc-ink, #1d2433); }
.fc-em a.fc-em-btn-primary { color: #fff; }

@media screen and (max-width: 720px) {
	.fc-em { padding-bottom: 72px; }
	.fc-em-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		grid-template-areas: "do" "schedule" "delegate" "delete";
	}
	.fc-em-axis { display: none; }
	.fc-em-q { min-height: 0; }
	.fc-em-add select, .fc-em-add .fc-em-btn { flex: 1 1 140px; }
	.fc-em-task { flex-wrap: wrap; row-gap: 4px; }
	.fc-em-task-text { flex: 1 1 calc(100% - 30px); }
	.fc-em-task-tools { margin-left: 26px; flex: 1 1 auto; justify-content: flex-end; }
}

/* print (button or Ctrl+P): the matrix, plus tasks still to sort, without the site around it */
@media print {
	.site-header, #mobile-header, #site-navigation, #generate-slideout-menu, .site-footer, .fc-footer,
	.generate-back-to-top, .gb-container-884117c2, .fc-tool-faq, .fc-em-lead, .fc-em-add, .fc-em-toolbar, .fc-em-cta, .fc-em-guide,
	.fc-em-wizard, .fc-em-menu, .fc-em-inbox-head .fc-em-btn, .fc-em-empty, .fc-em-task-tools, .fc-em-noscript { display: none !important; }
	.fc-em { padding: 0; max-width: none; }
	body { background: #fff !important; background-image: none !important; }
	.fc-em-grid { grid-template-rows: auto auto auto; }
	.fc-em-status { display: none !important; }
	.fc-em-inbox-empty .fc-em-inbox { display: none !important; }
	.fc-em-intro { margin: 0 0 12pt; }
	.fc-em-intro h1 { font-size: 20pt; }
	.fc-em-inbox { max-width: none; border-style: solid; margin-bottom: 10pt; }
	.fc-em-inbox .fc-em-list { max-height: none; overflow: visible; }
	.fc-em-q { min-height: 170pt; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.fc-em-qnum { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.fc-em-task { box-shadow: none; break-inside: avoid; }
	.fc-em-print-foot { display: block; margin-top: 10pt; font-size: 9pt; color: #6b7280; text-align: center; }
}

/* The theme styles every button:hover/:focus white on dark slate (0,1,1); keep the small task controls readable. */
.fc-em .fc-em-move, .fc-em .fc-em-move:hover, .fc-em .fc-em-move:focus, .fc-em .fc-em-move[aria-expanded="true"] {
	color: var(--fc-ink-2, #4b5563); background: #fff;
}
.fc-em .fc-em-move:hover, .fc-em .fc-em-move[aria-expanded="true"] { background: var(--fc-soft, #f4f6fa); border-color: #aeb4bf; }
.fc-em .fc-em-del, .fc-em .fc-em-del:focus { color: var(--fc-muted, #6b7280); background: transparent; }
.fc-em .fc-em-del:hover { color: #b42318; background: #fdeeed; }
.fc-em .fc-em-menu button, .fc-em .fc-em-menu button:focus { color: var(--fc-ink, #1d2433); background: none; }
.fc-em .fc-em-menu button:hover, .fc-em .fc-em-menu button:focus { background: var(--fc-soft, #f4f6fa); }
.fc-em .fc-em-btn-inline:hover, .fc-em .fc-em-btn-inline:focus { color: #c8322f; background: none; }
.fc-em .fc-em-btn:focus { color: var(--fc-ink, #1d2433); background: #fff; }
.fc-em .fc-em-btn-primary:focus { color: #fff; background: #c8322f; }
.fc-em .fc-em-btn-link:focus { background: transparent; }
.fc-em .fc-em-status .fc-em-undo:focus { color: #fff; background: transparent; }
.fc-em .fc-em-btn:focus:hover { background: var(--fc-soft, #f4f6fa); }
.fc-em .fc-em-btn-primary:focus:hover { background: #a92926; }
