/* =============================================================
   IdeaWeb Report UI — Dashboard Styles  v3.2.0
   UI Polish v1 (Product Finish)
   Decision UI Upgrade (Conversion Focus)
   Secondary Card Layer Fix (Visual Hierarchy)
   Typography Contrast Fix for Secondary Cards
   Reading Optimization (Taiwan UX Friendly)
   Minor Readability + List UI Enhancement
   List Style Rollback (Readability Fix)
   Section Title Pill Style Upgrade
   Section Title Pill Padding + Width Fix
   Fix Heading Padding Not Applied
   Selective Card Hierarchy Upgrade
   UI Spacing Enhancement (Premium Feel)
   Namespace : ideaweb-report-*
   目標       : SaaS 決策儀表板；覆蓋範圍僅限 .ideaweb-report-workspace
   ============================================================= */

/* ── CSS 自訂變數（全部限於本 namespace 內部，不污染主題） ── */
.ideaweb-report-workspace {
	/* 使用者自訂三色（localStorage；JS 會覆寫 inline style）*/
	--rui-user-primary    : #3B82F6;
	--rui-user-highlight  : #1a202c;
	--rui-user-bg         : #ffffff;
	/* 供 rgb() / 透明度使用（空白分隔，CSS Color 4）*/
	--rui-user-primary-rgb: 59 130 246;
	/* 主色膠囊／數字圓圈文字（螢幕上由 JS 依主色對比覆寫）*/
	--rui-pill-fg            : #ffffff;

	/* 色彩系統 */
	--rui-bg          : var( --rui-user-bg );
	--rui-card        : #ffffff;
	--rui-border      : #e8edf3;
	--rui-border-lt   : #f0f4f8;
	--rui-text        : #1e2a3a;
	--rui-muted       : #64748b;
	--rui-accent      : var( --rui-user-primary );
	--rui-accent-dk   : #1d4ed8;
	--rui-accent-lt   : #eff6ff;

	/* 語意色 */
	--rui-danger-bg   : #fff1f2;
	--rui-danger-fg   : #be123c;
	--rui-danger-bd   : #fecdd3;
	--rui-warn-bg     : #fff7ed;
	--rui-warn-fg     : #c2410c;
	--rui-warn-bd     : #fed7aa;
	--rui-ok-bg       : #f0fdf4;
	--rui-ok-fg       : #15803d;
	--rui-ok-bd       : #bbf7d0;

	/* 形狀 */
	--rui-radius      : 10px;
	--rui-radius-sm   : 6px;
	--rui-shadow-sm   : 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
	--rui-shadow      : 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
	--rui-shadow-hover: 0 4px 8px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);
	--rui-transition  : .18s ease;

	/* 閱讀優化主／次文字（v2.3.0，僅供報告區塊內指定元素使用）*/
	--rui-read-text   : #1a2433;
	--rui-read-muted  : #4a5568;

	background    : var( --rui-user-bg );
	padding       : 32px;
	border-radius : 16px;
	font-family   : -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	                'Helvetica Neue', Arial, 'PingFang TC', 'Noto Sans TC', sans-serif;
	color         : var(--rui-text);
	line-height   : 1.6;   /* 修正：原為 1，過緊 */
	margin        : 24px 0;
	box-sizing    : border-box;
}

/* box-sizing 重置 */
.ideaweb-report-workspace *,
.ideaweb-report-workspace *::before,
.ideaweb-report-workspace *::after {
	box-sizing : border-box;
}

/* 重置清單 */
.ideaweb-report-workspace ul,
.ideaweb-report-workspace ol {
	list-style : none;
	padding    : 0;
	margin     : 0;
}

/* 重置標題 */
.ideaweb-report-workspace h2,
.ideaweb-report-workspace h3 {
	margin      : 0;
	padding     : 0;
	font-size   : inherit;
	font-weight : inherit;
	line-height : inherit;
	border      : none;
}

/* ============================================================
   ─── Header 區（結論 / 判斷 / 行動）
   ============================================================ */

.ideaweb-report-header {
	display               : grid;
	grid-template-columns : 1fr 1fr;
	gap                   : 16px;
	margin-bottom         : 16px;
}

/* Decision Engine v1：一句話結論全寬；判斷與唯一行動並列 */
.ideaweb-report-header--de-v1 .ideaweb-report-summary {
	grid-column : 1 / -1;
}

.ideaweb-report-header--de-v1 .ideaweb-report-decision--span-full {
	grid-column : 1 / -1;
}

.ideaweb-report-header--de-v1 .ideaweb-report-priority-action--span-full {
	grid-column : 1 / -1;
}

/* ── Executive Summary（強調區塊色：--rui-user-highlight）── */
.ideaweb-report-summary {
	grid-column   : 1 / -1;
	background    : var( --rui-user-highlight );
	color         : #ffffff;
	border-radius : var(--rui-radius);
	padding       : 32px 36px;
	position      : relative;
	overflow      : hidden;
	box-shadow    : 0 4px 24px rgba(0,0,0,.18);
}

/* 裝飾光暈 */
.ideaweb-report-summary::before,
.ideaweb-report-summary::after {
	content        : '';
	position       : absolute;
	border-radius  : 50%;
	pointer-events : none;
}
.ideaweb-report-summary::before {
	width      : 260px;
	height     : 260px;
	top        : -80px;
	right      : -60px;
	background : radial-gradient( circle, rgb( var( --rui-user-primary-rgb ) / 0.14 ) 0%, transparent 70% );
}
.ideaweb-report-summary::after {
	width      : 160px;
	height     : 160px;
	bottom     : -50px;
	right      : 100px;
	background : radial-gradient( circle, rgb( var( --rui-user-primary-rgb ) / 0.08 ) 0%, transparent 70% );
}

.ideaweb-report-summary__label {
	font-size      : 9px;
	font-weight    : 800;
	text-transform : uppercase;
	letter-spacing : 3px;
	color          : rgba(255,255,255,.38);
	margin-bottom  : 14px;
}

.ideaweb-report-summary p {
	font-size   : 17px;
	font-weight : 500;
	line-height : 1.8;
	color       : rgba(255,255,255,.92);
	margin      : 0;
	position    : relative; /* 保持在裝飾圓上層 */
}

/* 強調區塊自動對比字色（僅螢幕；PDF／Word 內嵌樣式不依賴本段）*/
@media screen {
	.ideaweb-report-summary {
		color : var( --rui-summary-fg, #ffffff );
	}

	.ideaweb-report-summary__label {
		color : var( --rui-summary-fg-muted, rgba(255,255,255,.38) );
	}

	.ideaweb-report-summary p,
	.ideaweb-report-summary li,
	.ideaweb-report-summary td,
	.ideaweb-report-summary th {
		color : var( --rui-summary-fg-soft, rgba(255,255,255,.92) );
	}

	/* 分析重點摘要等頂端標籤（Executive Summary 區內）*/
	.ideaweb-report-summary .ideaweb-report-decision-label {
		color : var( --rui-summary-fg, #ffffff ) !important;
	}
}

/* ── Decision Panel ─────────────────────────────────────────── */
.ideaweb-report-decision {
	background    : var(--rui-card);
	border        : 1px solid var(--rui-border);
	border-radius : var(--rui-radius);
	padding       : 22px 26px;
	box-shadow    : var(--rui-shadow-sm);
	transition    : box-shadow var(--rui-transition);
}

.ideaweb-report-decision:hover {
	box-shadow : var(--rui-shadow);
}

/* 唯一最優先行動（Decision Engine v1：主色強調、層級高於一般卡）*/
.ideaweb-report-priority-action {
	background    : var( --rui-card );
	border        : 1px solid var( --rui-border );
	border-radius : var( --rui-radius );
	border-top    : 4px solid var( --rui-accent );
	padding       : 22px 26px 26px;
	box-shadow    : var( --rui-shadow );
	position      : relative;
	transition    : box-shadow var( --rui-transition );
	background-image : linear-gradient(
		180deg,
		rgb( var( --rui-user-primary-rgb ) / 0.07 ) 0%,
		var( --rui-card ) 56px
	);
}

.ideaweb-report-priority-action:hover {
	box-shadow : var( --rui-shadow-hover );
}

.ideaweb-report-priority-action__eyebrow {
	font-size      : 11px;
	font-weight    : 800;
	letter-spacing : 0.12em;
	text-transform : uppercase;
	color          : var( --rui-accent );
	margin-bottom  : 8px;
}

.ideaweb-report-priority-action__title {
	display        : inline-block;
	width          : auto;
	max-width      : fit-content;
	background     : linear-gradient( 135deg, var( --rui-accent ) 0%, var( --rui-accent-dk ) 100% );
	color          : var( --rui-pill-fg, #ffffff );
	border-radius  : 999px;
	padding        : 6px 18px;
	font-size      : 19px;
	font-weight    : 700;
	line-height    : 1.25;
	margin-bottom  : 16px;
	border         : none;
}

.ideaweb-report-priority-action__body {
	font-size   : 17px;
	line-height : 1.75;
	font-weight : 500;
	color       : var( --rui-read-text, #1a2433 );
}

.ideaweb-report-priority-action__body p {
	margin : 0 0 10px;
}

.ideaweb-report-priority-action__body p:last-child {
	margin-bottom : 0;
}

/* Decision / Actions / Card 區塊標題：膠囊 pill（v2.6.0；v2.7.0 padding／寬度）；唯一行動標題見上獨立規則 */
.ideaweb-report-decision__title,
.ideaweb-report-actions__title,
.ideaweb-report-card__title {
	display        : inline-block;
	width          : auto;
	max-width      : fit-content;
	align-self     : flex-start;
	background     : linear-gradient( 135deg, var( --rui-accent ) 0%, var( --rui-accent-dk ) 100% );
	color          : var( --rui-pill-fg, #ffffff );
	border-radius  : 999px;
	padding        : 5px 15px;
	font-size      : 18px;
	font-weight    : 600;
	line-height    : 1.2;
	margin-bottom  : 16px;
	border         : none;
	text-transform : none;
	letter-spacing : .02em;
}

.ideaweb-report-decision__grid {
	display        : flex;
	flex-direction : column;
	gap            : 0;
}

.ideaweb-report-metric {
	display     : flex;
	align-items : center;
	flex-wrap   : wrap;
	gap         : 6px 10px;
	padding     : 9px 0;
	border-bottom : 1px solid var(--rui-border-lt);
}

.ideaweb-report-metric:last-child {
	border-bottom : none;
	padding-bottom : 0;
}

.ideaweb-report-metric__label {
	font-size   : 12px;
	font-weight : 500;
	color       : var(--rui-muted);
	min-width   : 80px;
	flex-shrink : 0;
	line-height : 1.4;
}

.ideaweb-report-metric__val-wrap {
	display     : flex;
	align-items : center;
	flex-wrap   : wrap;
	gap         : 5px 8px;
	flex        : 1;
}

.ideaweb-report-metric__reason {
	font-size   : 14px;
	line-height : 1.6;
	color       : #4a5568;
}

/* ── Badges ────────────────────────────────────────────────── */
.ideaweb-badge {
	display        : inline-flex;
	align-items    : center;
	padding        : 3px 12px;
	border-radius  : 100px;
	font-size      : 12px;
	font-weight    : 700;
	line-height    : 1.6;
	letter-spacing : .3px;
	white-space    : nowrap;
	border         : 1px solid transparent;
}

.ideaweb-badge--danger {
	background : var(--rui-danger-bg);
	color      : var(--rui-danger-fg);
	border     : 1px solid var(--rui-danger-bd);
}

.ideaweb-badge--medium {
	background : var(--rui-warn-bg);
	color      : var(--rui-warn-fg);
	border     : 1px solid var(--rui-warn-bd);
}

.ideaweb-badge--success {
	background : var(--rui-ok-bg);
	color      : var(--rui-ok-fg);
	border     : 1px solid var(--rui-ok-bd);
}

.ideaweb-badge--neutral {
	background : #f1f5f9;
	color      : var(--rui-muted);
	border     : 1px solid var(--rui-border);
}

/* ── Priority Actions（TOP 3）─────────────────────────────── */
.ideaweb-report-actions {
	background    : var(--rui-card);
	border        : 1px solid var(--rui-border);
	border-top    : 3px solid var(--rui-accent);
	border-radius : var(--rui-radius);
	padding       : 22px 26px;
	box-shadow    : var(--rui-shadow-sm);
	transition    : box-shadow var(--rui-transition);
}

.ideaweb-report-actions:hover {
	box-shadow : var(--rui-shadow);
}

.ideaweb-report-actions__list {
	display        : flex;
	flex-direction : column;
	gap            : 0;
}

.ideaweb-report-action-item {
	display     : flex;
	align-items : flex-start;
	gap         : 14px;
	padding     : 13px 0;
	border-bottom : 1px solid var(--rui-border-lt);
	transition  : background var(--rui-transition);
}

.ideaweb-report-action-item:last-child {
	border-bottom  : none;
	padding-bottom : 0;
}

/* 圓形數字標記（v2.0.0：放大 → 28px）*/
.ideaweb-report-action-item__num {
	width           : 28px;
	height          : 28px;
	min-width       : 28px;
	background      : linear-gradient( 135deg, var(--rui-accent) 0%, var(--rui-accent-dk) 100% );
	color           : var( --rui-pill-fg, #ffffff );
	border-radius   : 50%;
	display         : flex;
	align-items     : center;
	justify-content : center;
	font-size       : 12px;
	font-weight     : 800;
	margin-top      : 0;
	flex-shrink     : 0;
	box-shadow      : 0 2px 8px rgb( var( --rui-user-primary-rgb ) / 0.40 );
}

.ideaweb-report-action-item__text {
	font-size      : 16px;
	line-height    : 1.7;
	color          : var(--rui-read-text, #1a2433);
	padding-top    : 4px;
	display        : flex;
	flex-direction : column;
	gap            : 6px;
	flex           : 1;
}

/* ============================================================
   ─── 卡片格線區
   ============================================================ */

.ideaweb-report-grid {
	display               : grid;
	grid-template-columns : repeat( 2, 1fr );
	gap                   : 28px;
}

/* 舊版或未分類區塊：保留辨識度 */
.ideaweb-report-card--fallback {
	border-style : dashed;
	border-color : var( --rui-border );
	opacity      : 0.98;
}

/* 最後一張卡片獨佔一行 */
.ideaweb-report-grid > .ideaweb-report-card:last-child:nth-child(odd) {
	grid-column : 1 / -1;
}

/* ── 卡片（基底：佈局共用；下方格線區實際樣式見 Secondary 層）── */
.ideaweb-report-card {
	display        : flex;
	flex-direction : column;
	transition     : box-shadow var(--rui-transition), transform var(--rui-transition);
}

/* ── 下方區塊卡片（補充層）：Secondary Card Layer Fix ─────────
   僅限 grid 內 .ideaweb-report-card；與上方 Decision / TOP3 白底區隔 */
.ideaweb-report-grid > .ideaweb-report-card,
.ideaweb-report-card.ideaweb-report-card-secondary {
	background     : #f5f5f5;
	border         : 1px solid #e8edf3;
	border-radius  : 12px;
	padding        : 26px 28px;
	box-shadow     :
		0 4px 12px rgba( 0, 0, 0, .04 ),
		0 1px 3px rgba( 0, 0, 0, .06 );
}

.ideaweb-report-grid > .ideaweb-report-card:hover,
.ideaweb-report-card.ideaweb-report-card-secondary:hover {
	box-shadow :
		0 6px 16px rgba( 0, 0, 0, .05 ),
		0 2px 5px rgba( 0, 0, 0, .06 );
	transform  : translateY( -1px );
}

/* 卡片段落 */
.ideaweb-report-card__body > p {
	font-size   : 16px;
	line-height : 1.7;
	color       : var(--rui-read-text, #1a2433);
	margin      : 0 0 9px;
}

.ideaweb-report-card__body > p:last-child {
	margin-bottom : 0;
}

/* 卡片清單 */
.ideaweb-report-card__body ul,
.ideaweb-report-card__body ol {
	list-style : none;
	padding    : 0;
	margin     : 0;
}

.ideaweb-report-card__body li {
	position      : relative;
	padding       : 8px 0 8px 22px;
	font-size     : 16px;
	color         : var(--rui-read-text, #1a2433);
	line-height   : 1.7;
	border-bottom : 1px solid var(--rui-border-lt);
}

.ideaweb-report-card__body li:last-child {
	border-bottom  : none;
	padding-bottom : 2px;
}

/* bullet dot */
.ideaweb-report-card__body li::before {
	content       : '';
	position      : absolute;
	left          : 4px;
	top           : 0.65em;
	width         : 5px;
	height        : 5px;
	border-radius : 50%;
	background    : var(--rui-accent);
	opacity       : .5;
}

.ideaweb-report-card__body strong {
	color       : var(--rui-read-text, #1a2433);
	font-weight : 600;
}

/* ============================================================
   ─── v2.3.0 Reading Optimization (Taiwan UX Friendly)
       補充層卡片：次要文字／表格／圖說；不動背景／邊框／陰影／grid
   ============================================================ */

.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body small,
.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body em,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body small,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body em {
	font-size   : 14.5px;
	line-height : 1.7;
	color       : var(--rui-read-muted, #4a5568);
}

/* 補充層卡片內表格 */
.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body table,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body table {
	font-size   : 16px;
	line-height : 1.7;
}

.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body table th,
.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body table td,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body table th,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body table td {
	color : var(--rui-read-text, #1a2433);
}

.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body table th,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body table th {
	color     : var(--rui-read-text, #1a2433);
	font-size : 15px;
}

.ideaweb-report-grid > .ideaweb-report-card .ideaweb-report-card__body figcaption,
.ideaweb-report-card.ideaweb-report-card-secondary .ideaweb-report-card__body figcaption {
	font-size   : 14.5px;
	line-height : 1.7;
	color       : var(--rui-read-muted, #4a5568);
	font-style  : normal;
}

.ideaweb-report-actions figure figcaption {
	font-size   : 14.5px;
	line-height : 1.7;
	color       : var(--rui-read-muted, #4a5568);
	font-style  : normal;
}

/* 優先行動區：段落（非 Decision）*/
.ideaweb-report-actions > p {
	font-size   : 16px;
	line-height : 1.7;
	color       : var(--rui-read-text, #1a2433);
	margin      : 10px 0 0;
}

/* ============================================================
   ─── 響應式
   ============================================================ */

@media ( max-width: 960px ) {
	.ideaweb-report-header,
	.ideaweb-report-grid {
		grid-template-columns : 1fr;
	}

	.ideaweb-report-summary {
		grid-column : auto;
	}

	.ideaweb-report-grid > .ideaweb-report-card:last-child:nth-child(odd) {
		grid-column : auto;
	}
}

@media ( max-width: 600px ) {
	.ideaweb-report-workspace {
		padding : 18px;
	}

	.ideaweb-report-summary {
		padding : 22px 20px;
	}

	.ideaweb-report-summary p {
		font-size : 15px;
	}

	.ideaweb-report-header {
		gap : 12px;
	}

	.ideaweb-report-grid {
		gap : 18px;
	}
}

/* ============================================================
   ─── HTML 保留：img / figure / table（v1.6.0+）
   ============================================================ */

.ideaweb-report-workspace img {
	max-width    : 100%;
	height       : auto;
	display      : block;
	border-radius: var(--rui-radius-sm);
}

.ideaweb-report-workspace figure {
	margin : 12px 0;
}

.ideaweb-report-workspace figure img {
	display : block;
}

.ideaweb-report-workspace figcaption {
	font-size  : 12px;
	color      : var(--rui-muted);
	margin-top : 6px;
	text-align : center;
	font-style : italic;
}

.ideaweb-report-workspace table {
	width           : 100%;
	border-collapse : collapse;
	font-size       : 13px;
	line-height     : 1.6;
	margin          : 12px 0;
	overflow-x      : auto;
	display         : block;
}

.ideaweb-report-workspace table th,
.ideaweb-report-workspace table td {
	padding        : 8px 14px;
	border         : 1px solid var(--rui-border);
	text-align     : left;
	vertical-align : top;
	word-break     : break-word;
}

.ideaweb-report-workspace table th {
	background  : var(--rui-bg);
	font-weight : 600;
	font-size   : 12px;
	color       : var(--rui-text);
	white-space : nowrap;
}

.ideaweb-report-workspace table tr:nth-child(even) td {
	background : rgb( var( --rui-user-primary-rgb ) / 0.03 );
}

.ideaweb-report-decision > p {
	font-size   : 13px;
	line-height : 1.75;
	color       : var(--rui-text);
	margin      : 10px 0 0;
}

.ideaweb-report-decision > figure,
.ideaweb-report-actions  > figure,
.ideaweb-report-decision > table,
.ideaweb-report-actions  > table {
	margin-top : 14px;
}

/* ============================================================
   ─── v2.0.0 Decision UI Upgrade (Conversion Focus)
   ============================================================ */

/* ── 決策標籤（Executive Summary 頂端）─────────────────────── */
.ideaweb-report-decision-label {
	display        : inline-flex;
	align-items    : center;
	gap            : 6px;
	padding        : 6px 16px;
	border-radius  : 100px;
	font-size      : 13px;
	font-weight    : 700;
	letter-spacing : .2px;
	margin-bottom  : 18px;
	position       : relative;
}

.ideaweb-report-decision-label--danger {
	background : rgba(239, 68, 68, .18);
	color      : #fca5a5;
	border     : 1px solid rgba(239, 68, 68, .35);
}

.ideaweb-report-decision-label--medium {
	background : rgba(251, 146, 60, .18);
	color      : #fdba74;
	border     : 1px solid rgba(251, 146, 60, .35);
}

.ideaweb-report-decision-label--success {
	background : rgba(34, 197, 94, .16);
	color      : #86efac;
	border     : 1px solid rgba(34, 197, 94, .30);
}

/* ── 高風險 metric 列（左色條 + 淡紅背景）───────────────────── */
.ideaweb-report-metric--high {
	background    : rgba(254, 202, 202, .18);
	border-left   : 3px solid var(--rui-danger-fg);
	border-bottom : 1px solid rgba(254, 202, 202, .4);
	padding-left  : 10px;
	margin-left   : -2px;
	border-radius : 0 4px 4px 0;
}

.ideaweb-report-metric--high .ideaweb-report-metric__label {
	color : var(--rui-danger-fg);
}

/* ── 行動 「建議」小標籤（CSS ::before；v2.3.0 閱讀優化）────── */
.ideaweb-report-action-item__text::before {
	content        : '建議';
	display        : inline-flex;
	align-items    : center;
	align-self     : flex-start;
	background     : var(--rui-accent-lt);
	color          : #6b7280;
	border         : 1px solid rgb( var( --rui-user-primary-rgb ) / 0.22 );
	border-radius  : 4px;
	padding        : 2px 10px;
	font-size      : 14px;
	font-weight    : 500;
	letter-spacing : .02em;
	line-height    : 1.7;
	white-space    : nowrap;
}

/* ============================================================
   ─── v2.5.0 List Style Rollback (Readability Fix)
       僅 .ideaweb-report-content li（一般條列；grid 內 li 回復既有 body 規則）
   ============================================================ */

.ideaweb-report-content li {
	background    : none;
	border        : none;
	padding       : 0;
	margin-bottom : 8px;
	list-style    : disc;
}

/* ============================================================
   ─── v2.8.0 Fix Heading Padding Not Applied
       區塊標題為 h3.*__title；加權重覆蓋主題 .entry-content h3 等
       僅 padding + display，不動配色／寬度邏輯
   ============================================================ */

.ideaweb-report-workspace h3.ideaweb-report-decision__title,
.ideaweb-report-workspace h3.ideaweb-report-actions__title,
.ideaweb-report-workspace h3.ideaweb-report-card__title,
.ideaweb-report-workspace .ideaweb-report-card > h3.ideaweb-report-card__title {
	padding        : 5px 15px !important;
	display        : inline-block !important;
}

/* ============================================================
   ─── v2.9.0 Selective Card Hierarchy Upgrade
       依 .ideaweb-report-grid 子元素序（對應 10 區塊中第 4～10 段）：
       1–5 張＝輕量（背景／狀況／需求／重點／分析）
       6–7 張＝建議強調（建議方向／後續行動）
       Header 內 Summary／Decision／TOP3 未套用此段
   ============================================================ */

/* ── A 輕量：grid 第 1～5 張 ───────────────────────────────── */
.ideaweb-report-grid > .ideaweb-report-card:nth-child( -n + 5 ) {
	box-shadow :
		0 2px 8px rgba( 0, 0, 0, .028 ),
		0 1px 2px rgba( 0, 0, 0, .04 );
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( -n + 5 ):hover {
	box-shadow :
		0 4px 12px rgba( 0, 0, 0, .04 ),
		0 1px 3px rgba( 0, 0, 0, .05 );
	transform  : translateY( -0.5px );
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( -n + 5 ) .ideaweb-report-card__body li {
	border-bottom-color : rgba( 226, 232, 240, .55 );
	padding-top         : 7px;
	padding-bottom      : 7px;
}

/* ── B 中度：grid 第 6～7 張（條列左色條＋極淡底，非厚重按鈕）── */
.ideaweb-report-grid > .ideaweb-report-card:nth-child( n + 6 ):nth-child( -n + 7 ) {
	box-shadow :
		0 4px 14px rgba( 15, 23, 42, .055 ),
		0 1px 3px rgba( 0, 0, 0, .065 );
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( n + 6 ):nth-child( -n + 7 ):hover {
	box-shadow :
		0 6px 18px rgba( 15, 23, 42, .07 ),
		0 2px 5px rgba( 0, 0, 0, .06 );
	transform  : translateY( -1px );
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( n + 6 ):nth-child( -n + 7 ) .ideaweb-report-card__body li {
	border-bottom  : none;
	padding        : 11px 12px 11px 14px;
	margin-bottom  : 10px;
	background     : rgba( 59, 130, 246, .055 );
	border-radius  : 8px;
	border-left    : 3px solid var( --rui-accent );
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( n + 6 ):nth-child( -n + 7 ) .ideaweb-report-card__body li:last-child {
	margin-bottom  : 0;
	padding-bottom : 11px;
}

.ideaweb-report-grid > .ideaweb-report-card:nth-child( n + 6 ):nth-child( -n + 7 ) .ideaweb-report-card__body li::before {
	display : none;
	content : none;
}

