/* ==========================================================================
   万能工具箱 - 独立 UI（不依赖 zib-widget / box-body，避免与子比主题叠层）
   ========================================================================== */

.tbfp-dashboard,
.tbfp-dashboard *,
.tbfp-run,
.tbfp-run * {
	box-sizing: border-box;
}

/* 隔离子比 .wp-posts-content 对列表的默认样式 */
.wp-posts-content .tbfp-run ul,
.wp-posts-content .tbfp-run ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-posts-content .tbfp-run li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbfp-msg {
	margin: 0;
	padding: 14px 16px;
	border-radius: 10px;
	font-size: 14px;
	color: #64748b;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

/* 执行二次确认弹窗 */
.tbfp-confirm {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.tbfp-confirm.is-visible {
	opacity: 1;
	visibility: visible;
}

.tbfp-confirm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.52);
}

.tbfp-confirm-dialog {
	position: relative;
	width: min(100%, 420px);
	padding: 22px 22px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
	transform: translateY(8px) scale(0.98);
	transition: transform 0.18s ease;
}

.tbfp-confirm.is-visible .tbfp-confirm-dialog {
	transform: translateY(0) scale(1);
}

.tbfp-confirm-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}

.tbfp-confirm-message {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #475569;
}

.tbfp-confirm-extra {
	margin-bottom: 14px;
}

.tbfp-confirm-note {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.tbfp-confirm-note.is-balance {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.tbfp-confirm.is-balance .tbfp-confirm-btn.is-ok {
	background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
	border-color: #d97706;
}

.tbfp-confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.tbfp-confirm-btn {
	min-width: 96px;
	padding: 9px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	border: 1px solid transparent;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.tbfp-confirm-btn:hover {
	opacity: 0.92;
}

.tbfp-confirm-btn:active {
	transform: scale(0.98);
}

.tbfp-confirm-btn.is-cancel {
	color: #475569;
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-confirm-btn.is-ok {
	color: #fff;
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
	border-color: #2563eb;
}

body.dark-theme .tbfp-confirm-dialog {
	background: #1e293b;
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-confirm-title {
	color: #f1f5f9;
}

body.dark-theme .tbfp-confirm-message {
	color: #cbd5e1;
}

body.dark-theme .tbfp-confirm-btn.is-cancel {
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-msg {
	color: #94a3b8;
	background: #1e293b;
	border-color: #334155;
}

/* ==========================================================================
   一、全部工具列表页 .tbfp-dashboard
   ========================================================================== */

.tbfp-dashboard {
	--tb-blue: #2563eb;
	--tb-blue-light: #3b82f6;
	--tb-blue-soft: #eff6ff;
	--tb-blue-border: #bfdbfe;
	--tb-bg: #ffffff;
	--tb-surface: #f8fafc;
	--tb-text: #334155;
	--tb-title: #0f172a;
	--tb-muted: #64748b;
	--tb-line: #e2e8f0;
	--tb-radius: 12px;
	--tb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);

	position: relative;
	z-index: 1;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 0 24px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tb-text);
	touch-action: manipulation;
}

/* 顶部用户条 */
.tbfp-dash-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	margin-bottom: 20px;
	border-radius: var(--tb-radius);
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.tbfp-dash-user {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.tbfp-dash-avatar .avatar-img,
.tbfp-dash-avatar img.avatar {
	width: 56px !important;
	height: 56px !important;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	object-fit: cover;
}

.tbfp-dash-name,
.tbfp-dash-name a,
.tbfp-dash-name span {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #fff !important;
	line-height: 1.3;
}

.tbfp-dash-email {
	margin-top: 3px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
	word-break: break-all;
}

.tbfp-dash-wallet {
	display: flex;
	align-items: flex-end;
	gap: 22px;
	flex-shrink: 0;
}

.tbfp-dash-wallet-item {
	text-align: right;
}

.tbfp-dash-wallet-label {
	display: block;
	font-size: 11px;
	opacity: 0.8;
	margin-bottom: 2px;
}

.tbfp-dash-wallet-num {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.tbfp-dash-wallet-unit {
	font-size: 14px;
	font-weight: 600;
	opacity: 0.9;
}

.tbfp-dash-wallet-icon svg {
	width: 20px;
	height: 20px;
}

.tbfp-dash-hero-guest {
	align-items: flex-start;
}

.tbfp-dash-guest-title {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 6px;
}

.tbfp-dash-guest-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
	max-width: 520px;
}

.tbfp-dash-guest-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

.tbfp-dash-guest-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	transition: opacity 0.2s;
}

.tbfp-dash-guest-btn:hover {
	opacity: 0.92;
	color: #1d4ed8;
}

.tbfp-dash-guest-btn.is-outline {
	color: #fff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.65);
}

.tbfp-dash-guest-btn.is-outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* 列表区 */
.tbfp-dash-main {
	background: var(--tb-bg);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-radius);
	padding: 20px 22px 22px;
	box-shadow: var(--tb-shadow);
}

.tbfp-dash-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.tbfp-dash-head-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 10px;
	color: var(--tb-blue);
	background: var(--tb-blue-soft);
}

.tbfp-dash-head-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.tbfp-dash-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: var(--tb-title);
}

.tbfp-dash-subtitle {
	margin: 0;
	font-size: 13px;
	color: var(--tb-muted);
}

.tbfp-dash-empty {
	margin: 0;
	padding: 32px;
	text-align: center;
	color: var(--tb-muted);
	background: var(--tb-surface);
	border-radius: 10px;
}

/* 分类导航 */
.tbfp-dash-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tb-line);
}

.tbfp-dash-cat-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.4;
	color: var(--tb-muted);
	text-decoration: none;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
	border-radius: 999px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tbfp-dash-cat-link:hover {
	color: var(--tb-blue);
	border-color: var(--tb-blue-border);
	text-decoration: none;
}

.tbfp-dash-cat-link.is-active {
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	border-color: transparent;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.tbfp-dash-cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	background: rgba(0, 0, 0, 0.08);
}

.tbfp-dash-cat-link.is-active .tbfp-dash-cat-count {
	background: rgba(255, 255, 255, 0.22);
}

.tbfp-dash-sections {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.tbfp-dash-cat-section {
	scroll-margin-top: 88px;
}

.tbfp-dash-cat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.tbfp-dash-cat-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--tb-title);
}

.tbfp-dash-cat-meta {
	font-size: 12px;
	color: var(--tb-muted);
	white-space: nowrap;
}

/* 三列工具卡 */
.tbfp-dash-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tbfp-dash-card {
	display: flex;
	flex-direction: column;
	min-height: 118px;
	padding: 14px;
	border-radius: 10px;
	background: var(--tb-surface);
	border: 1px solid var(--tb-line);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: rgba(37, 99, 235, 0.12);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.tbfp-dash-card.is-active:hover {
	background: var(--tb-bg);
	border-color: var(--tb-blue-border);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
	transform: translateY(-2px);
	text-decoration: none;
	color: inherit;
}

.tbfp-dash-card.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.tbfp-dash-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	min-width: 0;
}

.tbfp-dash-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	border-radius: 8px;
	color: var(--tb-blue);
	background: var(--tb-blue-soft);
}

.tbfp-dash-card-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.tbfp-dash-card-name {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tb-title);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbfp-dash-card-desc {
	margin: 0;
	flex: 1;
	font-size: 12px;
	color: var(--tb-muted);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tbfp-dash-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed var(--tb-line);
}

.tbfp-dash-card-cost {
	font-size: 11px;
	font-weight: 600;
	color: var(--tb-blue);
}

.tbfp-dash-card-go {
	font-size: 11px;
	font-weight: 600;
	color: var(--tb-muted);
}

.tbfp-dash-card.is-active .tbfp-dash-card-go {
	color: var(--tb-blue);
}

/* 列表页深色 */
body.dark-theme .tbfp-dashboard {
	--tb-blue: #3b82f6;
	--tb-blue-soft: rgba(59, 130, 246, 0.15);
	--tb-blue-border: rgba(59, 130, 246, 0.35);
	--tb-bg: #1e293b;
	--tb-surface: #0f172a;
	--tb-text: #cbd5e1;
	--tb-title: #f1f5f9;
	--tb-muted: #94a3b8;
	--tb-line: #334155;
	--tb-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.dark-theme .tbfp-dash-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   二、单工具工作台 .tbfp-run（与列表页完全不同的视觉）
   ========================================================================== */

.tbfp-run {
	--tr-accent: #0ea5e9;
	--tr-accent-deep: #0284c7;
	--tr-accent-glow: rgba(14, 165, 233, 0.15);
	--tr-bg: #ffffff;
	--tr-panel: #f0f9ff;
	--tr-text: #334155;
	--tr-title: #0c4a6e;
	--tr-muted: #64748b;
	--tr-line: #bae6fd;
	--tr-radius: 16px;

	max-width: 720px;
	margin: 0 auto;
	padding: 0 0 28px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tr-text);
}

/* 横幅：青蓝渐变，区别于列表的深蓝 */
.tbfp-run-banner {
	position: relative;
	overflow: hidden;
	padding: 24px 24px 20px;
	margin-bottom: 0;
	border-radius: var(--tr-radius) var(--tr-radius) 0 0;
	background: linear-gradient(160deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 100%);
	color: #fff;
}

.tbfp-run-banner::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -30px;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.tbfp-run-banner-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(4px);
}

.tbfp-run-banner-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.tbfp-run-name {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.tbfp-run-desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.5;
}

.tbfp-run-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tbfp-run-chip {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
}

.tbfp-run-chip.is-cost {
	background: rgba(255, 255, 255, 0.95);
	color: #0369a1;
	border-color: transparent;
}

.tbfp-run-chip.is-guest {
	background: rgba(254, 226, 226, 0.95);
	color: #b91c1c;
	border-color: transparent;
}

a.tbfp-run-chip.is-login-link {
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
}

a.tbfp-run-chip.is-login-link:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	color: #b91c1c;
}

.tbfp-run-chip.is-free-guest {
	background: rgba(209, 250, 229, 0.95);
	color: #047857;
	border-color: transparent;
}

/* 主体面板 */
.tbfp-run-body {
	background: var(--tr-bg);
	border: 1px solid var(--tr-line);
	border-top: none;
	border-radius: 0 0 var(--tr-radius) var(--tr-radius);
	box-shadow: 0 12px 32px rgba(14, 165, 233, 0.1);
}

.tbfp-run-panel {
	padding: 20px 24px 24px;
}

.tbfp-run-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--tr-line);
}

.tbfp-run-panel-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--tr-title);
}

.tbfp-run-panel-tip {
	font-size: 12px;
	color: var(--tr-muted);
}

.tbfp-run-fields {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-run-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tbfp-run-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--tr-title);
}

.tbfp-run-label em {
	font-style: normal;
	color: #ef4444;
	margin-left: 2px;
}

.tbfp-run-input {
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	color: var(--tr-text);
	background: var(--tr-bg);
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tbfp-run-input:focus {
	border-color: var(--tr-accent);
	box-shadow: 0 0 0 3px var(--tr-accent-glow);
}

.tbfp-run-field.is-checkbox {
	gap: 0;
}

.tbfp-run-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
	color: var(--tr-text);
}

.tbfp-run-checkbox .tbfp-run-input[type="checkbox"] {
	width: 18px;
	height: 18px;
	padding: 0;
	margin: 0;
	flex: 0 0 18px;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	box-shadow: none;
	accent-color: var(--tr-accent);
}

.tbfp-run-checkbox-text {
	line-height: 1.4;
}

.tbfp-run-file-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 14px;
	background: var(--tr-bg);
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tbfp-run-file-wrap:focus-within,
.tbfp-run-file-wrap.has-file {
	border-color: #93c5fd;
	background: #f8fbff;
}

.tbfp-run-file-wrap:focus-within {
	box-shadow: 0 0 0 3px var(--tr-accent-glow);
}

.tbfp-run-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tbfp-run-file-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, var(--tr-accent-deep), var(--tr-accent));
	border-radius: 9px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28);
	transition: opacity 0.2s, transform 0.15s;
}

.tbfp-run-file-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.tbfp-run-file-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tbfp-run-file-btn-icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.tbfp-run-file-name {
	flex: 1;
	min-width: 120px;
	font-size: 13px;
	line-height: 1.5;
	color: #94a3b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbfp-run-file-name.has-file {
	color: #1e293b;
	font-weight: 500;
}

.tbfp-run-file-tip {
	margin: 8px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #64748b;
}

/* P12 证书检测结果 */
.tbfp-run-output.is-p12 {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-p12 .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output-content .tbfp-p12-result {
	white-space: normal;
}

.tbfp-p12-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-p12-hero {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-p12-icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
}

.tbfp-p12-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.tbfp-p12-icon.is-valid {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-p12-icon.is-invalid {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tbfp-p12-hero-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-p12-name {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-p12-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-p12-badge.is-valid {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-p12-badge.is-invalid {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tbfp-p12-dates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.tbfp-p12-date-item {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-p12-date-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: #64748b;
}

.tbfp-p12-date-value {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-p12-date-value.is-invalid {
	color: #b91c1c;
}

.tbfp-p12-modify-actions {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.tbfp-p12-download-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.tbfp-p12-download-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.tbfp-p12-download-btn-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
}

.tbfp-p12-download-btn-icon svg {
	width: 100%;
	height: 100%;
}

.tbfp-p12-modify-tip {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.6;
	color: #64748b;
}

.tbfp-p12-password-code {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(37, 99, 235, 0.08);
	color: #1d4ed8;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
}

body.dark-theme .tbfp-p12-modify-actions {
	border-top-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-p12-modify-tip {
	color: #94a3b8;
}

body.dark-theme .tbfp-p12-password-code {
	background: rgba(96, 165, 250, 0.12);
	color: #93c5fd;
}

/* Apple 共享 ID 列表 */
.tbfp-run-output.is-shared-id {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-shared-id .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-shared-id-result {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-shared-id-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tbfp-shared-id-stat {
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.tbfp-shared-id-stat-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: #64748b;
}

.tbfp-shared-id-stat-value {
	font-size: 18px;
	line-height: 1.2;
	color: #0f172a;
}

.tbfp-shared-id-stat-value.is-safe {
	color: #047857;
}

.tbfp-shared-id-notice {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
	font-size: 13px;
	line-height: 1.6;
}

.tbfp-shared-id-table-wrap {
	overflow: auto;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

.tbfp-shared-id-table {
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	font-size: 13px;
	table-layout: fixed;
}

.tbfp-shared-id-table th,
.tbfp-shared-id-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	vertical-align: middle;
}

.tbfp-shared-id-table th:nth-child(1),
.tbfp-shared-id-table td:nth-child(1) {
	width: 28px;
	padding-left: 6px;
	padding-right: 4px;
}

.tbfp-shared-id-table th:nth-child(2),
.tbfp-shared-id-table td:nth-child(2) {
	width: 11%;
}

.tbfp-shared-id-table th:nth-child(3),
.tbfp-shared-id-table td:nth-child(3),
.tbfp-shared-id-table th:nth-child(4),
.tbfp-shared-id-table td:nth-child(4) {
	width: 24%;
}

.tbfp-shared-id-table th:nth-child(5),
.tbfp-shared-id-table td:nth-child(5) {
	width: 13%;
}

.tbfp-shared-id-table th:nth-child(6),
.tbfp-shared-id-table td:nth-child(6) {
	width: 15%;
}

.tbfp-shared-id-table th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
	white-space: nowrap;
}

.tbfp-shared-id-row.is-unavailable {
	opacity: 0.72;
}

.tbfp-shared-id-index {
	width: 28px;
	padding-left: 6px !important;
	padding-right: 4px !important;
	color: #64748b;
	font-size: 12px;
	text-align: center;
}

.tbfp-shared-id-table th:first-child {
	padding-left: 6px;
	padding-right: 4px;
	text-align: center;
}

.tbfp-shared-id-country {
	max-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbfp-shared-id-account,
.tbfp-shared-id-password {
	min-width: 0;
}

.tbfp-shared-id-code {
	display: inline-block;
	min-width: 0;
	padding: 2px 6px;
	border: 0;
	border-radius: 6px;
	background: #f1f5f9;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	white-space: nowrap;
}

.tbfp-shared-id-code.is-copyable {
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tbfp-shared-id-code.is-copyable:hover {
	background: #e0ecff;
	color: #1d4ed8;
	box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.tbfp-shared-id-code.is-copyable:active {
	transform: translateY(1px);
}

.tbfp-shared-id-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.tbfp-shared-id-badge.is-ok {
	background: #ecfdf5;
	color: #047857;
}

.tbfp-shared-id-badge.is-bad {
	background: #fef2f2;
	color: #b91c1c;
}

.tbfp-shared-id-msg {
	display: block;
	margin-top: 4px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
}

.tbfp-shared-id-status-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.tbfp-shared-id-time {
	color: #64748b;
	white-space: nowrap;
}

.tbfp-shared-id-empty {
	padding: 24px 12px !important;
	text-align: center;
	color: #64748b;
}

body.dark-theme .tbfp-run-output.is-shared-id {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-shared-id-stat,
body.dark-theme .tbfp-shared-id-table-wrap {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-shared-id-stat-value {
	color: #f1f5f9;
}

body.dark-theme .tbfp-shared-id-notice {
	background: rgba(120, 53, 15, 0.25);
	border-color: rgba(251, 191, 36, 0.35);
	color: #fde68a;
}

body.dark-theme .tbfp-shared-id-table th {
	background: rgba(15, 23, 42, 0.85);
	color: #cbd5e1;
}

body.dark-theme .tbfp-shared-id-table td {
	border-bottom-color: rgba(148, 163, 184, 0.15);
	color: #e2e8f0;
}

body.dark-theme .tbfp-shared-id-code {
	background: rgba(15, 23, 42, 0.65);
	color: #f8fafc;
}

body.dark-theme .tbfp-shared-id-code.is-copyable:hover {
	background: rgba(37, 99, 235, 0.22);
	color: #bfdbfe;
	box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.28);
}

@media (max-width: 768px) {
	.tbfp-shared-id-summary {
		grid-template-columns: 1fr;
	}

	.tbfp-shared-id-table-wrap {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.tbfp-shared-id-table {
		display: block;
	}

	.tbfp-shared-id-table thead {
		display: none;
	}

	.tbfp-shared-id-table tbody {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.tbfp-shared-id-table tr {
		display: block;
		padding: 12px 14px;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 14px;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	}

	.tbfp-shared-id-table td {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 12px;
		width: 100% !important;
		padding: 8px 0;
		border-bottom: 1px dashed #eef2f7;
	}

	.tbfp-shared-id-table td:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.tbfp-shared-id-table td::before {
		content: attr(data-label);
		flex: 0 0 72px;
		color: #64748b;
		font-size: 12px;
		font-weight: 600;
		line-height: 1.6;
	}

	.tbfp-shared-id-index {
		display: none;
	}

	.tbfp-shared-id-index::before {
		content: none;
	}

	.tbfp-shared-id-country,
	.tbfp-shared-id-account,
	.tbfp-shared-id-password,
	.tbfp-shared-id-status,
	.tbfp-shared-id-time {
		max-width: none;
		text-align: right;
	}

	.tbfp-shared-id-account,
	.tbfp-shared-id-password {
		flex-wrap: wrap;
	}

	.tbfp-shared-id-account::before,
	.tbfp-shared-id-password::before {
		flex-basis: 72px;
	}

	.tbfp-shared-id-code {
		margin-left: auto;
		max-width: calc(100% - 84px);
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tbfp-shared-id-status {
		align-items: center;
	}

	.tbfp-shared-id-status-body {
		margin-left: auto;
		align-items: flex-end;
		max-width: calc(100% - 84px);
	}

	.tbfp-shared-id-status .tbfp-shared-id-msg {
		margin-top: 0;
		max-width: 100%;
		text-align: right;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		word-break: break-word;
	}

	body.dark-theme .tbfp-shared-id-table tr {
		background: rgba(15, 23, 42, 0.55);
		border-color: rgba(148, 163, 184, 0.25);
	}

	body.dark-theme .tbfp-shared-id-table td {
		border-bottom-color: rgba(148, 163, 184, 0.15);
	}
}

body.dark-theme .tbfp-run-output.is-p12 {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-p12-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-p12-hero {
	border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-p12-name,
body.dark-theme .tbfp-p12-date-value {
	color: #f1f5f9;
}

body.dark-theme .tbfp-p12-date-item {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-run-file-wrap {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.35);
}

body.dark-theme .tbfp-run-file-wrap:focus-within,
body.dark-theme .tbfp-run-file-wrap.has-file {
	border-color: rgba(96, 165, 250, 0.55);
	background: rgba(30, 58, 138, 0.18);
}

body.dark-theme .tbfp-run-file-name.has-file {
	color: #e2e8f0;
}

body.dark-theme .tbfp-run-file-name {
	color: #64748b;
}

body.dark-theme .tbfp-run-file-tip {
	color: #94a3b8;
}

/* P12 描述权限检测结果 */
.tbfp-run-output.is-profile {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-profile .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output-content .tbfp-profile-result {
	white-space: normal;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-profile-summary {
	display: flex;
	justify-content: center;
}

.tbfp-profile-summary-badge {
	display: inline-block;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
}

.tbfp-profile-summary-badge.is-match {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-profile-summary-badge.is-mismatch {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tbfp-profile-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-profile-section-title {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.tbfp-profile-hero {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-profile-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.tbfp-profile-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}

.tbfp-profile-icon.is-valid {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-profile-icon.is-invalid {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tbfp-profile-hero-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-profile-name {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-profile-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
}

.tbfp-profile-badge.is-valid {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-profile-badge.is-invalid {
	color: #b91c1c;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.tbfp-profile-highlights {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.tbfp-profile-highlight {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-profile-highlight-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: #64748b;
}

.tbfp-profile-highlight-value {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-profile-highlight-value.is-safe {
	color: #047857;
}

.tbfp-profile-highlight-value.is-warn {
	color: #b45309;
}

.tbfp-profile-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0;
}

.tbfp-profile-spec {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 8px;
	align-items: start;
	padding: 8px 0;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-profile-spec dt {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.tbfp-profile-spec dd {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-profile-spec dd code {
	padding: 1px 6px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	word-break: break-all;
}

.tbfp-profile-perms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tbfp-profile-perm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.tbfp-profile-perm.is-on {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.tbfp-profile-perm-label {
	font-size: 12px;
	color: #475569;
}

.tbfp-profile-perm-value {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	flex-shrink: 0;
}

.tbfp-profile-perm.is-on .tbfp-profile-perm-value {
	color: #047857;
}

.tbfp-profile-empty {
	margin: 0;
	font-size: 13px;
	color: #94a3b8;
}

body.dark-theme .tbfp-run-output.is-profile {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-profile-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-profile-name,
body.dark-theme .tbfp-profile-highlight-value,
body.dark-theme .tbfp-profile-spec dd {
	color: #f1f5f9;
}

body.dark-theme .tbfp-profile-highlight,
body.dark-theme .tbfp-profile-perm {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-profile-spec dd code {
	color: #e2e8f0;
	background: #0f172a;
	border-color: #475569;
}

.tbfp-run-input[type="textarea"],
textarea.tbfp-run-input {
	min-height: 150px;
	resize: vertical;
}

.tbfp-run-empty {
	margin: 0 0 16px;
	padding: 14px;
	font-size: 13px;
	color: var(--tr-muted);
	background: var(--tr-panel);
	border-radius: 10px;
	text-align: center;
}

.tbfp-run-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 18px;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--tr-accent-deep), var(--tr-accent));
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
	box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.tbfp-run-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.tbfp-run-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

/* 结果区 */
.tbfp-run-output {
	margin: 0 24px 24px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-run-output.is-error {
	background: #fffbeb;
	border-color: #fde68a;
}

.tbfp-run-output.is-error .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output.is-error .tbfp-run-output-label {
	display: none;
}

/* 通用错误提示（居中卡片） */
.tbfp-result-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 6px 8px 2px;
}

.tbfp-result-error-icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	border-radius: 50%;
	background: linear-gradient(145deg, #fef3c7, #fde68a);
	color: #d97706;
	border: 1px solid #fcd34d;
}

.tbfp-result-error.is-points .tbfp-result-error-icon {
	background: linear-gradient(145deg, #ffedd5, #fed7aa);
	color: #ea580c;
	border-color: #fdba74;
}

.tbfp-result-error-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.tbfp-result-error-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	color: #92400e;
	line-height: 1.35;
	max-width: 320px;
}

.tbfp-result-error.is-points .tbfp-result-error-title {
	color: #c2410c;
}

.tbfp-result-error-desc {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #78716c;
	max-width: 300px;
}

.tbfp-result-error-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-bottom: 10px;
}

.tbfp-result-error-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-result-error-badge.is-safe {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-result-error-badge.is-refund {
	color: #0369a1;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
}

.tbfp-result-error-tips {
	margin: 0 0 14px;
	padding: 0;
	max-width: 280px;
}

.tbfp-result-error-tip {
	position: relative;
	padding-left: 14px;
	font-size: 12px;
	line-height: 1.55;
	color: #a16207;
	text-align: left;
}

.tbfp-result-error-tip::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fbbf24;
}

.tbfp-result-error-tip + .tbfp-result-error-tip {
	margin-top: 6px;
}

.tbfp-result-error-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 9px 20px;
	font-size: 13px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	background: linear-gradient(135deg, #d97706, #f59e0b);
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
	transition: opacity 0.2s, transform 0.15s;
}

.tbfp-result-error-btn:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	color: #fff !important;
	text-decoration: none !important;
}

body.dark-theme .tbfp-run-output.is-error {
	background: rgba(120, 53, 15, 0.12);
	border-color: rgba(251, 191, 36, 0.28);
}

body.dark-theme .tbfp-result-error-icon {
	background: rgba(251, 191, 36, 0.15);
	border-color: rgba(251, 191, 36, 0.35);
	color: #fbbf24;
}

body.dark-theme .tbfp-result-error.is-points .tbfp-result-error-icon {
	background: rgba(251, 146, 60, 0.15);
	border-color: rgba(251, 146, 60, 0.35);
	color: #fb923c;
}

body.dark-theme .tbfp-result-error-title {
	color: #fcd34d;
}

body.dark-theme .tbfp-result-error.is-points .tbfp-result-error-title {
	color: #fdba74;
}

body.dark-theme .tbfp-result-error-desc {
	color: #a8a29e;
}

body.dark-theme .tbfp-result-error-tip {
	color: #d97706;
}

body.dark-theme .tbfp-result-error-tip::before {
	background: #f59e0b;
}

body.dark-theme .tbfp-result-error-badge.is-safe {
	color: #6ee7b7;
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.35);
}

body.dark-theme .tbfp-result-error-badge.is-refund {
	color: #7dd3fc;
	background: rgba(56, 189, 248, 0.12);
	border-color: rgba(56, 189, 248, 0.35);
}

.tbfp-run-output-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #059669;
	margin-bottom: 8px;
}

.tbfp-run-output-content {
	font-size: 14px;
	line-height: 1.6;
	color: #065f46;
	white-space: pre-wrap;
	word-break: break-word;
}

.tbfp-run-output-content a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.tbfp-run-output-content a.tbfp-result-error-btn,
.tbfp-run-output-content a.tbfp-result-auth-btn,
.tbfp-run-output-content a.tbfp-result-auth-link,
.tbfp-run-output-content a.tbfp-douyin-btn {
	text-decoration: none !important;
	font-weight: 600;
}

.tbfp-run-output-content a.tbfp-douyin-btn:hover,
.tbfp-run-output-content a.tbfp-douyin-btn:focus {
	text-decoration: none !important;
}

/* 登录提示（非错误红样式） */
.tbfp-run-output.is-auth {
	background: #f0f9ff;
	border-color: #bae6fd;
}

.tbfp-run-output.is-auth .tbfp-run-output-label {
	display: none;
}

.tbfp-result-auth {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px 12px 4px;
}

.tbfp-result-auth-icon {
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	border-radius: 50%;
	background: linear-gradient(145deg, #e0f2fe, #bae6fd);
	color: #0369a1;
	border: 1px solid #7dd3fc;
}

.tbfp-result-auth-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.tbfp-result-auth-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #0c4a6e;
	line-height: 1.35;
}

.tbfp-result-auth-desc {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.tbfp-result-auth-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	background: linear-gradient(135deg, #0284c7, #0ea5e9);
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
	transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.tbfp-result-auth-btn:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4);
	color: #fff !important;
	text-decoration: none !important;
}

.tbfp-result-auth-link {
	display: inline-block;
	margin-top: 12px;
	font-size: 12px;
	color: #0369a1 !important;
	text-decoration: none !important;
	opacity: 0.9;
}

.tbfp-result-auth-link:hover {
	opacity: 1;
	text-decoration: underline !important;
	color: #0284c7 !important;
}

body.dark-theme .tbfp-run-output.is-auth {
	background: rgba(14, 165, 233, 0.1);
	border-color: rgba(56, 189, 248, 0.35);
}

body.dark-theme .tbfp-result-auth-icon {
	background: rgba(56, 189, 248, 0.15);
	border-color: rgba(56, 189, 248, 0.35);
	color: #7dd3fc;
}

body.dark-theme .tbfp-result-auth-title {
	color: #e0f2fe;
}

body.dark-theme .tbfp-result-auth-desc {
	color: #94a3b8;
}

body.dark-theme .tbfp-result-auth-link {
	color: #7dd3fc !important;
}

/* 单工具页深色 */
body.dark-theme .tbfp-run {
	--tr-accent: #38bdf8;
	--tr-accent-deep: #0ea5e9;
	--tr-accent-glow: rgba(56, 189, 248, 0.2);
	--tr-bg: #0f172a;
	--tr-panel: #1e293b;
	--tr-text: #cbd5e1;
	--tr-title: #e0f2fe;
	--tr-muted: #94a3b8;
	--tr-line: #334155;
}

body.dark-theme .tbfp-run-banner {
	background: linear-gradient(160deg, #082f49 0%, #0c4a6e 45%, #0369a1 100%);
}

body.dark-theme .tbfp-run-input {
	background: #1e293b;
	border-color: #475569;
	color: #e2e8f0;
}

body.dark-theme .tbfp-run-output {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.3);
}

body.dark-theme .tbfp-run-output-content {
	color: #6ee7b7;
}

body.dark-theme .tbfp-run-output.is-error {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
}

body.dark-theme .tbfp-run-output.is-error .tbfp-run-output-content {
	color: #fca5a5;
}

/* TDK 查询结果 */
.tbfp-run-output-content .tbfp-tdk-result {
	white-space: normal;
}

.tbfp-tdk-result {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tbfp-tdk-card {
	padding: 16px 18px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid #a7f3d0;
	border-radius: 12px;
}

.tbfp-tdk-card-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}

.tbfp-tdk-favicon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tbfp-tdk-favicon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tbfp-tdk-card-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-tdk-card-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: #064e3b;
	word-break: break-word;
}

.tbfp-tdk-card-url {
	display: inline-block;
	font-size: 12px;
	color: #0d9488;
	text-decoration: none;
	word-break: break-all;
}

.tbfp-tdk-card-url:hover {
	text-decoration: underline;
}

.tbfp-tdk-field + .tbfp-tdk-field {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #a7f3d0;
}

.tbfp-tdk-field-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #059669;
}

.tbfp-tdk-field-value {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #065f46;
	word-break: break-word;
}

.tbfp-tdk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tbfp-tdk-tag {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 500;
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-tdk-empty-tag {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

body.dark-theme .tbfp-tdk-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(16, 185, 129, 0.35);
}

body.dark-theme .tbfp-tdk-favicon {
	background: #1e293b;
	border-color: #334155;
}

body.dark-theme .tbfp-tdk-card-title {
	color: #ecfdf5;
}

body.dark-theme .tbfp-tdk-card-url {
	color: #5eead4;
}

body.dark-theme .tbfp-tdk-field-label {
	color: #6ee7b7;
}

body.dark-theme .tbfp-tdk-field-value {
	color: #a7f3d0;
}

body.dark-theme .tbfp-tdk-field + .tbfp-tdk-field {
	border-top-color: rgba(16, 185, 129, 0.25);
}

body.dark-theme .tbfp-tdk-tag {
	color: #6ee7b7;
	background: rgba(16, 185, 129, 0.15);
	border-color: rgba(16, 185, 129, 0.4);
}

/* 苹果 UDID 可视化 */
.tbfp-run-output.is-apple {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-apple .tbfp-run-output-label {
	color: #475569;
}

.tbfp-run-output.is-apple .tbfp-run-output-content {
	color: inherit;
}

.tbfp-run-output-content .tbfp-apple-result {
	white-space: normal;
}

.tbfp-apple-result {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-apple-success {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 6px 14px 6px 10px;
	font-size: 13px;
	font-weight: 600;
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 999px;
}

.tbfp-apple-success svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #10b981;
}

.tbfp-apple-devices {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-apple-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tbfp-apple-device-index {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 999px;
}

.tbfp-apple-card-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 18px 16px;
	background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 55%, #48484a 100%);
	color: #f5f5f7;
}

.tbfp-apple-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
}

.tbfp-apple-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.tbfp-apple-card-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-apple-model {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	word-break: break-word;
}

.tbfp-apple-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbfp-apple-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: lowercase;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-apple-badge.is-platform {
	color: #bae6fd;
	background: rgba(14, 165, 233, 0.2);
	border: 1px solid rgba(125, 211, 252, 0.35);
}

.tbfp-apple-badge.is-class {
	color: #fde68a;
	background: rgba(251, 191, 36, 0.15);
	border: 1px solid rgba(252, 211, 77, 0.35);
}

.tbfp-apple-specs {
	margin: 0;
	padding: 4px 0;
}

.tbfp-apple-spec {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 8px 14px;
	align-items: start;
	padding: 14px 18px;
	border-top: 1px solid #f1f5f9;
}

.tbfp-apple-spec:first-child {
	border-top: none;
}

.tbfp-apple-spec dt {
	margin: 0;
	padding-top: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #94a3b8;
}

.tbfp-apple-spec dd {
	margin: 0;
	min-width: 0;
}

.tbfp-apple-spec dd code {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	word-break: break-all;
	line-height: 1.55;
}

.tbfp-apple-empty {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

body.dark-theme .tbfp-run-output.is-apple {
	background: rgba(15, 23, 42, 0.6);
	border-color: #334155;
}

body.dark-theme .tbfp-run-output.is-apple .tbfp-run-output-label {
	color: #94a3b8;
}

body.dark-theme .tbfp-apple-success {
	color: #6ee7b7;
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.35);
}

body.dark-theme .tbfp-apple-card {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

body.dark-theme .tbfp-apple-card-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

body.dark-theme .tbfp-apple-spec {
	border-top-color: #334155;
}

body.dark-theme .tbfp-apple-spec dt {
	color: #64748b;
}

body.dark-theme .tbfp-apple-spec dd code {
	color: #e2e8f0;
	background: #0f172a;
	border-color: #475569;
}

body.dark-theme .tbfp-apple-device-index {
	color: #7dd3fc;
	background: rgba(56, 189, 248, 0.15);
}

/* IMEI 查询结果 */
.tbfp-run-output.is-imei {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-imei .tbfp-run-output-label {
	color: #475569;
}

.tbfp-run-output.is-imei .tbfp-run-output-content {
	color: inherit;
}

.tbfp-run-output-content .tbfp-imei-result {
	white-space: normal;
}

.tbfp-imei-result {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-imei-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-imei-card-hero {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-imei-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(145deg, #ede9fe, #ddd6fe);
	color: #7c3aed;
	border: 1px solid #c4b5fd;
}

.tbfp-imei-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.tbfp-imei-card-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-imei-manufacturer {
	display: inline-block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7c3aed;
}

.tbfp-imei-model {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-imei-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tbfp-imei-badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-imei-badge.is-type {
	color: #5b21b6;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
}

.tbfp-imei-badge.is-phone.yes {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-imei-badge.is-phone.no {
	color: #64748b;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.tbfp-imei-specs {
	margin: 0;
}

.tbfp-imei-spec {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 8px 12px;
	padding: 8px 0;
	border-top: 1px solid #f1f5f9;
}

.tbfp-imei-spec:first-child {
	border-top: none;
	padding-top: 0;
}

.tbfp-imei-spec dt {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.tbfp-imei-spec dd {
	margin: 0;
	font-size: 14px;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-imei-spec dd code {
	display: inline-block;
	padding: 2px 8px;
	font-size: 13px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

body.dark-theme .tbfp-run-output.is-imei {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-imei-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-imei-card-hero {
	border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-imei-manufacturer {
	color: #c4b5fd;
}

body.dark-theme .tbfp-imei-model {
	color: #f1f5f9;
}

body.dark-theme .tbfp-imei-spec {
	border-top-color: rgba(148, 163, 184, 0.15);
}

body.dark-theme .tbfp-imei-spec dt {
	color: #94a3b8;
}

body.dark-theme .tbfp-imei-spec dd {
	color: #e2e8f0;
}

body.dark-theme .tbfp-imei-spec dd code {
	color: #e2e8f0;
	background: #0f172a;
	border-color: #475569;
}

body.dark-theme .tbfp-imei-icon {
	background: rgba(124, 58, 237, 0.18);
	border-color: rgba(167, 139, 250, 0.35);
	color: #c4b5fd;
}

/* 苹果激活保修查询 */
.tbfp-run-output.is-warranty {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-warranty .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output-content .tbfp-warranty-result {
	white-space: normal;
}

.tbfp-warranty-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-warranty-hero {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-warranty-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.tbfp-warranty-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tbfp-warranty-thumb.is-fallback {
	background: linear-gradient(145deg, #ecfdf5, #d1fae5);
	color: #059669;
	border-color: #a7f3d0;
}

.tbfp-warranty-thumb.is-fallback svg {
	width: 34px;
	height: 34px;
	display: block;
}

.tbfp-warranty-hero-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-warranty-serial {
	display: inline-block;
	margin-bottom: 6px;
}

.tbfp-warranty-serial code {
	padding: 2px 8px;
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.tbfp-warranty-model {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-warranty-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-warranty-badge.is-active {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-warranty-badge.is-expired {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.tbfp-warranty-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.tbfp-warranty-date-item {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-warranty-date-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
}

.tbfp-warranty-date-value {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-warranty-date-value.is-expired {
	color: #b45309;
}

.tbfp-warranty-status-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tbfp-warranty-status-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-warranty-status-label {
	font-size: 12px;
	color: #64748b;
}

.tbfp-warranty-status-value {
	flex-shrink: 0;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-warranty-status-value.is-yes {
	color: #047857;
	background: #ecfdf5;
}

.tbfp-warranty-status-value.is-no {
	color: #64748b;
	background: #f1f5f9;
}

.tbfp-warranty-status-value.is-unknown {
	color: #b45309;
	background: #fffbeb;
}

body.dark-theme .tbfp-run-output.is-warranty {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-warranty-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-warranty-hero {
	border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-warranty-model,
body.dark-theme .tbfp-warranty-date-value {
	color: #f1f5f9;
}

body.dark-theme .tbfp-warranty-date-item,
body.dark-theme .tbfp-warranty-status-item {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-warranty-serial code {
	color: #e2e8f0;
	background: #0f172a;
	border-color: #475569;
}

body.dark-theme .tbfp-warranty-thumb {
	background: #1e293b;
	border-color: #334155;
}

/* 苹果验机报告 */
.tbfp-run-output.is-inspection {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-inspection .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output-content .tbfp-inspection-result {
	white-space: normal;
}

.tbfp-inspection-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-inspection-hero {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-inspection-thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.tbfp-inspection-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.tbfp-inspection-thumb.is-fallback {
	background: linear-gradient(145deg, #eff6ff, #dbeafe);
	color: #2563eb;
	border-color: #bfdbfe;
}

.tbfp-inspection-thumb.is-fallback svg {
	width: 34px;
	height: 34px;
	display: block;
}

.tbfp-inspection-hero-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-inspection-serial {
	display: inline-block;
	margin-bottom: 6px;
}

.tbfp-inspection-serial code {
	padding: 2px 8px;
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.tbfp-inspection-model {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-inspection-desc {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.tbfp-inspection-badge {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-inspection-badge.is-active {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-inspection-badge.is-expired {
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
}

.tbfp-inspection-highlights {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.tbfp-inspection-highlight {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-inspection-highlight-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: #64748b;
}

.tbfp-inspection-highlight-value {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-inspection-highlight-value.is-safe {
	color: #047857;
}

.tbfp-inspection-highlight-value.is-warn {
	color: #b45309;
}

.tbfp-inspection-section-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.tbfp-inspection-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin: 0 0 16px;
}

.tbfp-inspection-spec {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 8px;
	align-items: start;
	padding: 8px 0;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-inspection-spec dt {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.tbfp-inspection-spec dd {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-inspection-spec dd code {
	padding: 1px 6px;
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.tbfp-inspection-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.tbfp-inspection-date-item {
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.tbfp-inspection-date-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	color: #64748b;
}

.tbfp-inspection-date-value {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
}

.tbfp-inspection-date-value.is-expired {
	color: #b45309;
}

.tbfp-inspection-status-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.tbfp-inspection-status-grid .tbfp-warranty-status-item {
	margin: 0;
}

body.dark-theme .tbfp-run-output.is-inspection {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-inspection-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-inspection-hero {
	border-bottom-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-inspection-model,
body.dark-theme .tbfp-inspection-highlight-value,
body.dark-theme .tbfp-inspection-date-value,
body.dark-theme .tbfp-inspection-spec dd {
	color: #f1f5f9;
}

body.dark-theme .tbfp-inspection-highlight,
body.dark-theme .tbfp-inspection-date-item {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.2);
}

body.dark-theme .tbfp-inspection-serial code,
body.dark-theme .tbfp-inspection-spec dd code {
	color: #e2e8f0;
	background: #0f172a;
	border-color: #475569;
}

body.dark-theme .tbfp-inspection-thumb {
	background: #1e293b;
	border-color: #334155;
}

/* 通用可视化结果 */
.tbfp-run-output.is-visual {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-run-output.is-visual .tbfp-run-output-content {
	color: inherit;
	white-space: normal;
}

.tbfp-run-output-content .tbfp-stats-result,
.tbfp-run-output-content .tbfp-codec-result,
.tbfp-run-output-content .tbfp-password-result,
.tbfp-run-output-content .tbfp-joke-result {
	white-space: normal;
}

/* 字数统计 */
.tbfp-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.tbfp-stat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 18px 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	text-align: center;
}

.tbfp-stat-value {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
	color: #0f766e;
	letter-spacing: -0.02em;
}

.tbfp-stat-label {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

/* Base64 编解码 */
.tbfp-codec-result {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tbfp-codec-badge {
	align-self: flex-start;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1.4;
}

.tbfp-codec-badge.is-encode {
	color: #0369a1;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
}

.tbfp-codec-badge.is-decode {
	color: #047857;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.tbfp-codec-output {
	margin: 0;
	padding: 14px 16px;
	font-size: 13px;
	line-height: 1.65;
	color: #1e293b;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	white-space: pre-wrap;
	word-break: break-all;
	overflow-x: auto;
}

.tbfp-codec-output code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: inherit;
}

/* 随机密码 */
.tbfp-password-result {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tbfp-password-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	font-size: 13px;
	color: #64748b;
}

.tbfp-password-meta-item strong {
	color: #0f766e;
	font-weight: 700;
}

.tbfp-password-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tbfp-password-tag {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #0369a1;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	border-radius: 999px;
}

.tbfp-password-tip {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.tbfp-password-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tbfp-password-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tbfp-password-index {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
}

.tbfp-password-code {
	flex: 1;
	min-width: 0;
	text-align: left;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 14px;
	word-break: break-all;
}

.tbfp-password-empty {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

body.dark-theme .tbfp-password-meta-item strong {
	color: #5eead4;
}

body.dark-theme .tbfp-password-tag {
	color: #7dd3fc;
	background: rgba(14, 116, 144, 0.25);
	border-color: rgba(56, 189, 248, 0.35);
}

/* 笑话 */
.tbfp-joke-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 8px;
}

.tbfp-joke-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	border-radius: 50%;
	background: linear-gradient(145deg, #fef3c7, #fde68a);
	color: #d97706;
	border: 1px solid #fcd34d;
}

.tbfp-joke-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.tbfp-joke-quote {
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.7;
	font-weight: 500;
	color: #334155;
	max-width: 420px;
}

.tbfp-joke-quote::before {
	content: "\201C";
	color: #f59e0b;
	font-size: 1.2em;
	margin-right: 2px;
}

.tbfp-joke-quote::after {
	content: "\201D";
	color: #f59e0b;
	font-size: 1.2em;
	margin-left: 2px;
}

body.dark-theme .tbfp-run-output.is-visual {
	background: rgba(15, 23, 42, 0.45);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-stat-card {
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-stat-value {
	color: #5eead4;
}

body.dark-theme .tbfp-stat-label {
	color: #94a3b8;
}

body.dark-theme .tbfp-codec-output {
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.55);
	border-color: rgba(148, 163, 184, 0.25);
}

body.dark-theme .tbfp-joke-icon {
	background: rgba(251, 191, 36, 0.15);
	border-color: rgba(251, 191, 36, 0.35);
	color: #fbbf24;
}

body.dark-theme .tbfp-joke-quote {
	color: #e2e8f0;
}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width: 960px) {
	.tbfp-dash-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tbfp-dash-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.tbfp-dash-wallet {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 16px 24px;
	}

	.tbfp-dash-wallet-item {
		text-align: left;
	}

	.tbfp-dash-grid {
		grid-template-columns: 1fr;
	}

	.tbfp-run-banner,
	.tbfp-run-panel {
		padding-left: 18px;
		padding-right: 18px;
	}

	.tbfp-run-output {
		margin-left: 18px;
		margin-right: 18px;
	}

	.tbfp-warranty-dates,
	.tbfp-warranty-status-grid,
	.tbfp-inspection-highlights,
	.tbfp-inspection-dates,
	.tbfp-inspection-status-grid,
	.tbfp-inspection-specs,
	.tbfp-p12-dates,
	.tbfp-profile-highlights,
	.tbfp-profile-specs,
	.tbfp-profile-perms {
		grid-template-columns: 1fr;
	}

	.tbfp-profile-spec {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.tbfp-run-file-wrap {
		flex-direction: column;
		align-items: stretch;
	}

	.tbfp-run-file-btn {
		width: 100%;
	}

	.tbfp-run-file-name {
		width: 100%;
		text-align: center;
	}

	.tbfp-inspection-spec {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.tbfp-imei-spec {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.tbfp-apple-spec {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.tbfp-stats-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   抖音聚合解析结果
   ========================================================================== */

.tbfp-run-output.is-douyin .tbfp-run-output-label {
	color: #475569;
}

.tbfp-run-output-content .tbfp-douyin-result {
	white-space: normal;
}

.tbfp-douyin-result {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbfp-douyin-card {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tbfp-douyin-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #e2e8f0;
}

.tbfp-douyin-avatar {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fecdd3;
	background: #fff1f2;
}

.tbfp-douyin-avatar.is-placeholder {
	background: linear-gradient(145deg, #ffe4e6, #fecdd3);
}

.tbfp-douyin-head-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-douyin-author-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.tbfp-douyin-author-name {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
}

.tbfp-douyin-type-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%);
}

.tbfp-douyin-result.is-image .tbfp-douyin-type-badge {
	background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.tbfp-douyin-result.is-live_photo .tbfp-douyin-type-badge {
	background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.tbfp-douyin-author-id {
	font-size: 12px;
	color: #94a3b8;
}

.tbfp-douyin-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.45;
	color: #1e293b;
	word-break: break-word;
}

.tbfp-douyin-desc {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #64748b;
	white-space: pre-wrap;
	word-break: break-word;
}

.tbfp-douyin-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.tbfp-douyin-meta-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #be123c;
	background: #fff1f2;
	border: 1px solid #fecdd3;
}

.tbfp-douyin-meta-chip.is-muted {
	color: #64748b;
	background: #f8fafc;
	border-color: #e2e8f0;
}

.tbfp-douyin-media {
	margin-bottom: 14px;
}

.tbfp-douyin-video-wrap {
	overflow: hidden;
	border-radius: 12px;
	background: #0f172a;
	border: 1px solid #1e293b;
}

.tbfp-douyin-video,
.tbfp-douyin-live-video {
	display: block;
	width: 100%;
	max-height: 520px;
	background: #000;
}

.tbfp-douyin-actions,
.tbfp-douyin-gallery-actions,
.tbfp-douyin-music-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 0;
	margin-bottom: 10px;
}

.tbfp-douyin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tbfp-douyin-btn:hover,
.tbfp-douyin-btn:focus {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #1e293b;
	text-decoration: none !important;
}

.tbfp-douyin-btn.is-primary {
	color: #fff;
	background: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%);
	border-color: #fe2c55;
}

.tbfp-douyin-btn.is-primary:hover,
.tbfp-douyin-btn.is-primary:focus {
	background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
	border-color: #e11d48;
	color: #fff;
	text-decoration: none !important;
}

.tbfp-douyin-btn.is-small {
	min-height: 30px;
	padding: 0 10px;
	font-size: 12px;
	border-radius: 8px;
}

.tbfp-douyin-backup {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
}

.tbfp-douyin-backup-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}

.tbfp-douyin-backup-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbfp-douyin-backup-list li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
	font-size: 13px;
}

.tbfp-douyin-backup-list a {
	color: #2563eb;
	text-decoration: none;
	word-break: break-all;
}

.tbfp-douyin-backup-list a:hover {
	text-decoration: underline;
}

.tbfp-douyin-link-copy {
	padding: 2px 8px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	color: #64748b;
	cursor: pointer;
}

.tbfp-douyin-gallery,
.tbfp-douyin-live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.tbfp-douyin-gallery-item,
.tbfp-douyin-live-item {
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.tbfp-douyin-gallery-link {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #0f172a;
}

.tbfp-douyin-gallery-link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tbfp-douyin-gallery-item .tbfp-douyin-gallery-actions,
.tbfp-douyin-live-item .tbfp-douyin-gallery-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 6px;
	padding: 10px 10px 8px;
	margin-bottom: 0;
}

.tbfp-douyin-gallery-item .tbfp-douyin-gallery-actions .tbfp-douyin-btn,
.tbfp-douyin-live-item .tbfp-douyin-gallery-actions .tbfp-douyin-btn {
	width: 100%;
	min-width: 0;
	padding: 0 6px;
	font-size: 12px;
}

.tbfp-douyin-gallery-label,
.tbfp-douyin-live-label {
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	grid-column: 1 / -1;
	margin-right: 0;
}

.tbfp-douyin-live-label {
	color: #7c3aed;
}

.tbfp-douyin-empty {
	margin: 0;
	padding: 14px;
	border-radius: 10px;
	font-size: 14px;
	color: #64748b;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	text-align: center;
}

.tbfp-douyin-music-wrap {
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
}

.tbfp-douyin-music {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.tbfp-douyin-music-cover {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
}

.tbfp-douyin-music-meta {
	min-width: 0;
	flex: 1;
}

.tbfp-douyin-music-label {
	display: block;
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tbfp-douyin-music-title {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	color: #1e293b;
}

.tbfp-douyin-music-author {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	color: #64748b;
}

.tbfp-douyin-audio {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 4px;
}

@media (max-width: 640px) {
	.tbfp-douyin-gallery,
	.tbfp-douyin-live-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbfp-douyin-actions,
	.tbfp-douyin-music-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tbfp-douyin-btn {
		width: 100%;
	}
}
