/* Ebookifi Book Description Formatter (scoped to .ebk-df) */

.ebk-df {
	/* Design tokens */
	--ebk-green: #2d6a2d;
	--ebk-green-dark: #0d2e0d;
	--ebk-green-soft: #eaf3de;
	--ebk-ink: #1c1f1c;
	--ebk-muted: #555b55;
	--ebk-line: #e1e5e1;
	--ebk-line-strong: #c9cfc9;
	--ebk-surface: #ffffff;
	--ebk-canvas: #f6f8f5;
	--ebk-warn: #8a5a00;
	--ebk-warn-soft: #fff5dc;
	--ebk-err: #b02a2a;
	--ebk-err-soft: #fdeeee;
	--ebk-info: #1d6a8a;
	--ebk-info-soft: #eaf4f8;
	--ebk-focus: #1d7c82;
	--ebk-radius: 14px;
	--ebk-radius-sm: 8px;
	--ebk-shadow: 0 1px 2px rgba(16, 24, 16, .05), 0 8px 24px rgba(16, 24, 16, .05);
	--ebk-space-xs: 6px;
	--ebk-space-sm: 10px;
	--ebk-space-md: 16px;
	--ebk-fast: 150ms;
	--ebk-ease: cubic-bezier(.4, 0, .2, 1);
	color: var(--ebk-ink);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 32px;
}
.ebk-df *, .ebk-df *::before, .ebk-df *::after { box-sizing: border-box; }
.ebk-df .screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal;
}
.ebk-df-noscript { background: var(--ebk-warn-soft); padding: 12px 16px; border-radius: var(--ebk-radius-sm); }
.ebk-df-icon { flex: 0 0 auto; display: block; }

/* Cards */
.ebk-df-card { background: var(--ebk-surface); border: 1px solid var(--ebk-line); border-radius: var(--ebk-radius); box-shadow: var(--ebk-shadow); }
.ebk-df-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ebk-space-sm); margin-bottom: var(--ebk-space-md); }
.ebk-df-card-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ebk-ink); }
.ebk-df-card-title:focus { outline: none; }
.ebk-df-small { font-size: 13px; color: var(--ebk-muted); margin: var(--ebk-space-sm) 0 0; }
.ebk-df-small a { color: var(--ebk-green); text-decoration: underline; }

/* Book bar */
.ebk-df-drafts { display: flex; flex-wrap: wrap; gap: var(--ebk-space-sm) var(--ebk-space-md); align-items: flex-end; padding: var(--ebk-space-md) 18px; margin-bottom: var(--ebk-space-md); }
.ebk-df-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ebk-muted); min-width: 0; }
.ebk-df-field--book { flex: 0 1 200px; }
.ebk-df-field--grow { flex: 1 1 200px; }
.ebk-df-field select, .ebk-df-field input[type="text"] {
	font: inherit; font-size: 15px; font-weight: 400; color: var(--ebk-ink); height: 42px; padding: 8px 12px; width: 100%;
	border: 1px solid var(--ebk-line-strong); border-radius: var(--ebk-radius-sm); background: #fff;
	transition: border-color var(--ebk-fast) var(--ebk-ease), box-shadow var(--ebk-fast) var(--ebk-ease);
}
.ebk-df-field select:hover, .ebk-df-field input[type="text"]:hover { border-color: #9aa39a; }
.ebk-df-field input::placeholder { color: #737973; }
.ebk-df-draft-actions { display: flex; flex-wrap: wrap; gap: var(--ebk-space-xs); }
.ebk-df-note { flex-basis: 100%; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ebk-muted); }
.ebk-df-note .ebk-df-icon { width: 15px; height: 15px; color: var(--ebk-green); }

/* Buttons */
.ebk-df-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 42px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	color: var(--ebk-ink); background: #fff; border: 1px solid var(--ebk-line-strong); border-radius: var(--ebk-radius-sm); cursor: pointer;
	transition: background var(--ebk-fast) var(--ebk-ease), border-color var(--ebk-fast) var(--ebk-ease), color var(--ebk-fast) var(--ebk-ease), transform var(--ebk-fast) var(--ebk-ease), box-shadow var(--ebk-fast) var(--ebk-ease);
}
.ebk-df-btn:hover { border-color: var(--ebk-green); color: var(--ebk-green-dark); background: var(--ebk-green-soft); }
.ebk-df-btn:active { transform: scale(.98); }
.ebk-df-btn--primary { background: var(--ebk-green); color: #fff; border-color: var(--ebk-green); }
.ebk-df-btn--primary:hover { background: var(--ebk-green-dark); border-color: var(--ebk-green-dark); color: #fff; box-shadow: 0 4px 12px rgba(13, 46, 13, .25); transform: translateY(-1px); }
.ebk-df-btn--primary:active { transform: scale(.98); box-shadow: none; }
.ebk-df-btn--danger:hover { border-color: var(--ebk-err); color: var(--ebk-err); background: var(--ebk-err-soft); }
.ebk-df-btn--wide { width: 100%; min-height: 48px; font-size: 15px; letter-spacing: .01em; }

.ebk-df button:focus-visible, .ebk-df input:focus-visible, .ebk-df select:focus-visible, .ebk-df textarea:focus-visible,
.ebk-df summary:focus-visible, .ebk-df a:focus-visible, .ebk-df-editor:focus-visible { outline: 3px solid var(--ebk-focus); outline-offset: 2px; }
.ebk-df-field select:focus, .ebk-df-field input[type="text"]:focus { border-color: var(--ebk-focus); box-shadow: 0 0 0 3px rgba(29, 124, 130, .15); outline: none; }

/* Workspace: editor left, live preview right; then rules check + outputs */
.ebk-df-workspace, .ebk-df-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
@media (max-width: 991px) { .ebk-df-workspace, .ebk-df-lower { grid-template-columns: 1fr; } }

/* Editor card */
.ebk-df-editor-card { display: flex; flex-direction: column; }
.ebk-df-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--ebk-canvas); border-bottom: 1px solid var(--ebk-line); border-radius: var(--ebk-radius) var(--ebk-radius) 0 0; }
.ebk-df-toolgroup { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--ebk-line); border-radius: 10px; }
.ebk-df-tool {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 38px; height: 38px; padding: 0 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ebk-ink);
	background: transparent; border: 0; border-radius: 7px; cursor: pointer; transition: background var(--ebk-fast) var(--ebk-ease), color var(--ebk-fast) var(--ebk-ease);
}
.ebk-df-tool:hover { background: var(--ebk-green-soft); color: var(--ebk-green-dark); }
.ebk-df-tool:active { background: #d9eac9; }
.ebk-df-tool--b { font-weight: 800; font-size: 15px; }
.ebk-df-tool--i { font-style: italic; font-family: Georgia, serif; font-size: 16px; }
.ebk-df-tool--u { text-decoration: underline; text-underline-offset: 3px; }
.ebk-df-tool--text { font-size: 13px; }
.ebk-df-tool--accent { background: var(--ebk-green); color: #fff; padding: 0 12px; }
.ebk-df-tool--accent:hover { background: var(--ebk-green-dark); color: #fff; }

.ebk-df-symbols { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 2px; }
.ebk-df-symbols-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ebk-muted); margin-right: 6px; }
.ebk-df-symbol {
	position: relative; min-width: 34px; height: 34px; padding: 0 6px; font-size: 16px; line-height: 1; color: var(--ebk-ink);
	background: #fff; border: 1px solid var(--ebk-line); border-radius: 7px; cursor: pointer;
	font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", Arial, sans-serif; font-variant-emoji: text;
	transition: background var(--ebk-fast) var(--ebk-ease), border-color var(--ebk-fast) var(--ebk-ease), transform var(--ebk-fast) var(--ebk-ease);
}
.ebk-df-symbol:hover { background: var(--ebk-green-soft); border-color: var(--ebk-green); }
.ebk-df-symbol:active { transform: scale(.94); }

/* Tooltips */
.ebk-df [data-tip]::after {
	content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
	padding: 5px 9px; font-size: 12px; font-weight: 500; font-style: normal; font-family: inherit; text-decoration: none; letter-spacing: 0; line-height: 1.3; white-space: nowrap;
	color: #fff; background: #1f2421; border-radius: 6px; pointer-events: none; opacity: 0; z-index: 20;
	transition: opacity var(--ebk-fast) var(--ebk-ease), transform var(--ebk-fast) var(--ebk-ease);
}
.ebk-df [data-tip]:hover::after, .ebk-df [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 300ms; }

.ebk-df-import-html { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--ebk-line); }
.ebk-df-import-html label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ebk-muted); }
.ebk-df-import-html textarea { width: 100%; font: 13px/1.45 Consolas, Menlo, monospace; padding: 10px; border: 1px solid var(--ebk-line-strong); border-radius: var(--ebk-radius-sm); margin-bottom: 8px; }

.ebk-df-editor { min-height: 360px; max-height: 62vh; overflow-y: auto; padding: 22px 24px; background: #fff; font-size: 16px; line-height: 1.7; color: var(--ebk-ink); outline: none; }
.ebk-df-editor:focus-visible { outline-offset: -3px; }
.ebk-df-editor:empty::before { content: attr(data-placeholder); color: #6f756f; }
.ebk-df-editor p, .ebk-df-preview p { margin: 0 0 12px; }
.ebk-df-editor h4, .ebk-df-editor h5, .ebk-df-editor h6,
.ebk-df-preview h4, .ebk-df-preview h5, .ebk-df-preview h6 { margin: 16px 0 8px; line-height: 1.3; color: var(--ebk-ink); }
.ebk-df-editor h4 { font-size: 20px; }
.ebk-df-editor h5 { font-size: 17px; }
.ebk-df-editor ul, .ebk-df-editor ol, .ebk-df-preview ul, .ebk-df-preview ol { margin: 0 0 12px 22px; padding: 0; }

.ebk-df-editor-foot { padding: 14px 18px 16px; border-top: 1px solid var(--ebk-line); background: var(--ebk-canvas); border-radius: 0 0 var(--ebk-radius) var(--ebk-radius); }
.ebk-df-count { margin-bottom: 12px; }
.ebk-df-count-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.ebk-df-count-text { margin: 0; font-size: 13px; color: var(--ebk-muted); font-variant-numeric: tabular-nums; }
.ebk-df.is-over .ebk-df-count-text { color: var(--ebk-err); font-weight: 700; }
.ebk-df-count-bar { height: 6px; background: #e3e7e3; border-radius: 99px; overflow: hidden; }
.ebk-df-count-bar span { display: block; height: 100%; width: 0; background: var(--ebk-green); border-radius: 99px; transition: width 250ms var(--ebk-ease), background var(--ebk-fast); }
.ebk-df.is-near .ebk-df-count-bar span { background: #c98a00; }
.ebk-df.is-over .ebk-df-count-bar span { background: var(--ebk-err); }
.ebk-df-rules-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; font-weight: 600; border-radius: 99px; color: var(--ebk-green-dark); background: var(--ebk-green-soft); text-decoration: none; }
.ebk-df-rules-badge.has-problems { color: #5a3a00; background: var(--ebk-warn-soft); }
.ebk-df-rules-badge:hover { text-decoration: underline; }
.ebk-df-status { min-height: 1.4em; margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--ebk-muted); text-align: center; }

/* Preview card */
.ebk-df-preview-card { padding: 18px 20px; }
.ebk-df-segmented { display: inline-flex; padding: 3px; background: var(--ebk-canvas); border: 1px solid var(--ebk-line); border-radius: 10px; }
.ebk-df-segmented button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ebk-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; transition: background var(--ebk-fast), color var(--ebk-fast); }
.ebk-df-segmented button .ebk-df-icon { width: 16px; height: 16px; }
.ebk-df-segmented button[aria-pressed="true"] { background: #fff; color: var(--ebk-green-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ebk-df-book-details { margin-bottom: 14px; border: 1px solid var(--ebk-line); border-radius: 10px; padding: 0 14px; }
.ebk-df-book-details summary { cursor: pointer; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ebk-green-dark); }
.ebk-df-book-details[open] { padding-bottom: 14px; }
.ebk-df-preview-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ebk-df-preview-fields .ebk-df-field input[type="text"] { height: 40px; }
.ebk-df-field--cover { grid-column: 1 / -1; }
.ebk-df-field--cover input[type="file"] { font-size: 13px; font-weight: 400; color: var(--ebk-ink); }
@media (max-width: 480px) { .ebk-df-preview-fields { grid-template-columns: 1fr 1fr; } }

.ebk-df-preview-frame { position: relative; margin: 0 auto; padding: 20px; background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; transition: max-width 250ms var(--ebk-ease); }
.ebk-df-preview-frame.is-mobile { max-width: 375px; padding: 16px; }
.ebk-df-product { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; margin-bottom: 14px; font-family: Arial, Helvetica, sans-serif; color: #0f1111; }
.ebk-df-preview-frame.is-mobile .ebk-df-product { grid-template-columns: 1fr; }
.ebk-df-preview-frame.is-mobile .ebk-df-product-cover { max-width: 150px; margin: 0 auto; }
.ebk-df-product-cover { aspect-ratio: 2 / 3; background: linear-gradient(160deg, #f3f5f3, #e4e8e4); border: 1px solid #d9dcd9; border-radius: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 2px 3px 8px rgba(0,0,0,.12); }
.ebk-df-product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebk-df-cover-placeholder { padding: 10px; text-align: center; font-size: 13px; font-weight: 700; color: #4d544d; word-break: break-word; }
.ebk-df-product-crumbs { margin: 0 0 4px; font-size: 12px; color: #565959; }
.ebk-df-product-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; font-weight: 400; color: #0f1111; }
.ebk-df-product-author { margin: 0 0 12px; font-size: 14px; color: #007185; }
.ebk-df-product-title.is-placeholder, .ebk-df-product-author.is-placeholder { color: #595e59; font-style: italic; } /* 6.6:1 on white (was 4.3:1) */
.ebk-df-product-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.ebk-df-format { display: inline-flex; flex-direction: column; min-width: 92px; padding: 7px 12px; border: 1px solid #d5d9d9; border-radius: 8px; font-size: 12px; background: #fff; }
.ebk-df-format.is-selected { border-color: #e77600; background: #fef8f2; box-shadow: 0 0 0 1px #e77600 inset; }
.ebk-df-format-name { color: #0f1111; font-weight: 700; }
.ebk-df-format-price { color: #b12704; font-weight: 700; font-size: 14px; }
.ebk-df-product-desc-label { margin: 6px 0 10px; padding-top: 12px; border-top: 1px solid #e7e7e7; font: 700 17px/1.3 Arial, Helvetica, sans-serif; color: #0f1111; }
.ebk-df-preview { font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55; color: #0f1111; overflow: hidden; }
.ebk-df-preview h4 { font-size: 17px; }
.ebk-df-preview h5 { font-size: 15px; }
.ebk-df-preview.is-folded { max-height: 260px; position: relative; }
.ebk-df-preview.is-folded::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.ebk-df-preview mark { background: #ffe58a; color: inherit; padding: 0 2px; border-radius: 2px; }
.ebk-df-empty { color: #707570; font-style: italic; }
.ebk-df-readmore { margin-top: 6px; padding: 6px 0; font: inherit; font-size: 14px; background: none; border: 0; color: #007185; text-decoration: underline; cursor: pointer; }
.ebk-df-readmore[hidden] { display: none; }
.ebk-df-preview-foot { margin-top: 12px; }
.ebk-df-check { font-size: 13px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.ebk-df-check input { width: 18px; height: 18px; accent-color: var(--ebk-green); }

/* Lower row: rules check + outputs */
.ebk-df-rules-card, .ebk-df-outputs { padding: 18px 20px; }
.ebk-df-rules-summary { padding: 4px 12px; font-size: 13px; font-weight: 700; border-radius: 99px; color: var(--ebk-green-dark); background: var(--ebk-green-soft); }
.ebk-df-rules-summary.has-problems { color: #5a3a00; background: var(--ebk-warn-soft); }
.ebk-df-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ebk-df-check-item { padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.ebk-df-check-head { display: flex; gap: 10px; align-items: center; }
.ebk-df-check-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: var(--ebk-green); }
.ebk-df-check-detail, .ebk-df-check-found { display: block; margin: 4px 0 0 32px; font-size: 13px; }
.ebk-df-check-found { font-style: italic; word-break: break-word; }
.ebk-df-check-item.is-ok { background: #f3f8ee; }
.ebk-df-check-item.is-ok .ebk-df-check-detail { color: var(--ebk-muted); }
.ebk-df-check-item.is-warn { background: var(--ebk-warn-soft); color: #4a3200; }
.ebk-df-check-item.is-warn .ebk-df-check-icon { background: var(--ebk-warn); }
.ebk-df-check-item.is-error { background: var(--ebk-err-soft); color: #5c1515; }
.ebk-df-check-item.is-error .ebk-df-check-icon { background: var(--ebk-err); }
.ebk-df-check-item.is-info { background: var(--ebk-info-soft); color: #18384a; }
.ebk-df-check-item.is-info .ebk-df-check-icon { background: var(--ebk-info); }
/* Passed checks fold into a compact two-column grid; problems and notes keep full rows on top. */
.ebk-df-checks { grid-template-columns: 1fr 1fr; }
.ebk-df-check-item:not(.is-ok), .ebk-df-check-item[data-check="length"] { grid-column: 1 / -1; }
.ebk-df-check-item.is-ok:not([data-check="length"]) { padding: 6px 10px; font-size: 13px; background: none; border: 1px solid #e3eddb; }
.ebk-df-check-item.is-ok:not([data-check="length"]) .ebk-df-check-head { gap: 8px; }
.ebk-df-check-item.is-ok:not([data-check="length"]) strong { font-weight: 600; }
.ebk-df-check-item.is-ok:not([data-check="length"]) .ebk-df-check-icon { flex-basis: 18px; height: 18px; font-size: 10px; }
@media (max-width: 480px) { .ebk-df-checks { grid-template-columns: 1fr; } }

.ebk-df-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--ebk-canvas); border: 1px solid var(--ebk-line); border-radius: 10px; margin-bottom: 4px; }
.ebk-df-tab { height: 36px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ebk-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.ebk-df-tab[aria-selected="true"] { background: #fff; color: var(--ebk-green-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ebk-df-panel { padding-top: 10px; }
.ebk-df-help { margin: 0 0 8px; font-size: 13px; color: var(--ebk-muted); }
.ebk-df-panel textarea { width: 100%; padding: 12px; border: 1px solid var(--ebk-line-strong); border-radius: var(--ebk-radius-sm); margin-bottom: 10px; background: #fbfcfb; font: 13px/1.55 Consolas, Menlo, monospace; resize: vertical; color: var(--ebk-ink); }
.ebk-df-out-text { font-family: inherit !important; font-size: 14px !important; }

.ebk-df-guide { margin-top: 18px; border-top: 1px solid var(--ebk-line); padding-top: 14px; }
.ebk-df-guide summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.ebk-df-guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 12px; }
@media (max-width: 600px) { .ebk-df-guide-cols { grid-template-columns: 1fr; } }
.ebk-df-guide h3 { font-size: 15px; margin: 10px 0 6px; }
.ebk-df-guide ol { margin: 0 0 0 20px; padding: 0; font-size: 14px; }

/* Template picker */
.ebk-df-dialog { width: min(940px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; padding: 22px 24px; box-shadow: 0 24px 64px rgba(0,0,0,.3); color: var(--ebk-ink); }
.ebk-df-dialog::backdrop { background: rgba(10, 20, 10, .5); }
.ebk-df-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ebk-df-template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.ebk-df-template {
	display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; min-height: 118px;
	font: inherit; color: var(--ebk-ink); background: #fff; border: 1px solid var(--ebk-line); border-radius: 12px; cursor: pointer;
	transition: border-color var(--ebk-fast) var(--ebk-ease), box-shadow var(--ebk-fast) var(--ebk-ease), transform var(--ebk-fast) var(--ebk-ease);
}
.ebk-df-template:hover, .ebk-df-template:focus-visible { border-color: var(--ebk-green); box-shadow: 0 6px 18px rgba(13, 46, 13, .12); transform: translateY(-2px); }
.ebk-df-template-name { font-weight: 700; font-size: 16px; color: var(--ebk-green-dark); }
.ebk-df-template-sample { font-size: 13px; color: var(--ebk-muted); font-style: italic; line-height: 1.45; }

/* Touch screens: 44px targets, no hover tooltips */
@media (pointer: coarse) {
	.ebk-df-tool, .ebk-df-symbol, .ebk-df-segmented button, .ebk-df-tab { min-height: 44px; height: 44px; min-width: 44px; }
	.ebk-df-btn { min-height: 44px; }
	.ebk-df [data-tip]::after { display: none; }
}

/* Respect "reduce motion" */
@media (prefers-reduced-motion: reduce) {
	.ebk-df *, .ebk-df *::before, .ebk-df *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.ebk-df-btn--primary:hover, .ebk-df-template:hover, .ebk-df-template:focus-visible { transform: none; }
}
