#btApp {
	--bt-ink: #0f172a;
	--bt-line: #e2e8f0;
	--bt-primary: #3b82f6;
	--bt-primary-hover: #2563eb;
	--bt-soft: #eff6ff;
	--bt-mid: #dbeafe;
	--bt-radius: 0.375rem;
	--bt-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

#btApp .bt-shell {
	background:
		radial-gradient(1200px 420px at 10% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
		radial-gradient(900px 360px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%);
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	box-shadow: var(--bt-shadow);
	overflow: hidden;
	height: 100%;
}

#btApp .bt-panel {
	background: rgba(255, 255, 255, 0.92);
	height: 100%;
}

@media (min-width: 1024px) {
	#btApp .bt-shell-form {
		align-self: start;
		height: auto;
	}

	#btApp .bt-shell-form .bt-panel {
		height: auto;
	}
}

#btApp .bt-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.375rem;
}

#btApp .bt-hint {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: var(--bt-radius);
	padding: 0.65rem 0.85rem;
}

#btApp .bt-input {
	font-variant-numeric: tabular-nums;
}

#btApp .bt-input:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 1px #3b82f6;
}

#btApp .bt-mode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.35rem;
	border-radius: 999px;
	background: var(--bt-soft);
	border: 1px solid var(--bt-mid);
}

#btApp .bt-mode-btn {
	min-height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#btApp .bt-mode-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

#btApp .bt-mode-btn.is-active {
	background: #fff;
	color: var(--bt-primary-hover);
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18);
}

#btApp .bt-mode-btn:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

#btApp .bt-submit {
	height: 3rem;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--bt-primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
	transition: background-color 200ms ease;
}

#btApp .bt-submit:hover {
	background: var(--bt-primary-hover);
}

#btApp .bt-submit:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

#btApp .bt-clear {
	height: 3rem;
	padding: 0 1.5rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #374151;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}

#btApp .bt-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

#btApp .bt-clear:focus-visible {
	outline: 2px solid #9ca3af;
	outline-offset: 2px;
}

#btApp .bt-empty {
	border: 1px dashed #e5e7eb;
	background: #f9fafb;
	border-radius: var(--bt-radius);
	color: #9ca3af;
}

#btApp .bt-highlight {
	border: 1px solid #bfdbfe;
	border-radius: var(--bt-radius);
	background: var(--bt-soft);
	padding: 1.1rem 1.15rem;
	margin-bottom: 0.75rem;
}

#btApp .bt-highlight-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#btApp .bt-highlight-value {
	margin-top: 0.4rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--bt-primary-hover);
	font-variant-numeric: tabular-nums;
}

#btApp .bt-highlight-unit {
	margin-left: 0.3rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b;
}

#btApp .bt-metrics {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

#btApp .bt-metric {
	border: 1px solid #e2e8f0;
	border-radius: var(--bt-radius);
	background: #fff;
	padding: 1rem 1.1rem;
}

#btApp .bt-metric-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#btApp .bt-metric-value {
	margin-top: 0.4rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--bt-ink);
	font-variant-numeric: tabular-nums;
}

#btApp .bt-metric-unit {
	margin-left: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b;
}

#btApp .bt-note {
	margin-top: 0.85rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #64748b;
}

#btApp .bt-notes {
	background: #fff;
	border: 1px solid var(--bt-line);
	border-radius: var(--bt-radius);
	box-shadow: var(--bt-shadow);
}

#btApp .bt-notes h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.75rem;
}

#btApp .bt-notes h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 0.75rem;
}

#btApp .bt-notes p,
#btApp .bt-notes li {
	font-size: 0.875rem;
	line-height: 1.7;
	color: #475569;
}

#btApp .bt-notes ol,
#btApp .bt-notes ul {
	margin-bottom: 2rem;
}

#btApp .bt-notes p {
	margin-bottom: 2rem;
}

#btApp .bt-notes p:last-child {
	margin-bottom: 0;
}

#btApp .bt-notes a {
	color: var(--bt-primary-hover);
	text-decoration: none;
}

#btApp .bt-notes a:hover {
	text-decoration: underline;
}

@media (min-width: 640px) {
	#btApp .bt-metrics {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	#btApp .bt-mode-btn,
	#btApp .bt-submit,
	#btApp .bt-clear {
		transition: none;
	}
}

#btApp .bt-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.375rem;
}

#btApp .bt-field-head .bt-label {
	margin-bottom: 0;
}

#btApp .bt-cal {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.25rem;
	padding: 0.2rem;
	border-radius: 999px;
	background: var(--bt-soft);
	border: 1px solid var(--bt-mid);
	flex-shrink: 0;
}

#btApp .bt-cal-btn {
	min-height: 1.85rem;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#btApp .bt-cal-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

#btApp .bt-cal-btn.is-active {
	background: #fff;
	color: var(--bt-primary-hover);
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18);
}

#btApp .bt-cal-btn:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

#btApp .bt-select {
	appearance: none;
	width: 100%;
	padding: 0.75rem 2rem 0.75rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #0f172a;
	outline: none;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

#btApp .bt-select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px #3b82f6;
}

#btApp .bt-highlight-sub {
	margin-top: 0.45rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #64748b;
}

#btApp .bt-progress-wrap {
	margin-top: 0.85rem;
}

#btApp .bt-progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 0.35rem;
}

#btApp .bt-progress {
	height: 0.5rem;
	border-radius: 999px;
	background: var(--bt-mid);
	overflow: hidden;
}

#btApp .bt-progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--bt-primary);
	transition: width 200ms ease;
}

#btApp .bt-block {
	border: 1px solid #e2e8f0;
	border-radius: var(--bt-radius);
	background: #fff;
	padding: 0.9rem 1rem;
	margin-bottom: 0.75rem;
}

#btApp .bt-block-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#btApp .bt-block-value {
	margin-top: 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bt-ink);
	font-variant-numeric: tabular-nums;
}

#btApp .bt-block-extra {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--bt-primary-hover);
}

@media (prefers-reduced-motion: reduce) {
	#btApp .bt-cal-btn,
	#btApp .bt-progress-bar {
		transition: none;
	}
}

#btApp .bt-rules {
	border: 1px solid #e2e8f0;
	border-radius: var(--bt-radius);
	background: #f8fafc;
	padding: 0.85rem 1rem;
}

#btApp .bt-rules h2 {
	font-size: 0.875rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.5rem;
}

#btApp .bt-rules li {
	font-size: 0.75rem;
	line-height: 1.6;
	color: #475569;
}

#btApp .bt-warn {
	margin-bottom: 0.75rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #fde68a;
	border-radius: var(--bt-radius);
	background: #fffbeb;
	color: #92400e;
	font-size: 0.8125rem;
	line-height: 1.6;
}

#btApp .bt-modes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

#btApp .bt-mode {
	text-align: left;
	padding: 0.75rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #475569;
	cursor: pointer;
	transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#btApp .bt-mode strong {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #334155;
}

#btApp .bt-mode span {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #64748b;
}

#btApp .bt-mode:hover {
	border-color: #93c5fd;
	background: var(--bt-soft);
}

#btApp .bt-mode.is-active {
	border-color: var(--bt-primary-hover);
	background: var(--bt-soft);
	box-shadow: 0 0 0 1px var(--bt-primary-hover);
}

#btApp .bt-mode.is-active strong {
	color: var(--bt-primary-hover);
}

#btApp .bt-mode:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

#btApp .bt-copy-all {
	border: 0;
	background: transparent;
	color: var(--bt-primary-hover);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

#btApp .bt-copy-all:hover {
	text-decoration: underline;
}

#btApp .bt-next {
	border: 1px solid #bfdbfe;
	border-radius: var(--bt-radius);
	background: #fff;
	padding: 0.9rem 1rem;
	margin-bottom: 0.75rem;
}

#btApp .bt-list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

#btApp .bt-item {
	border: 1px solid #e2e8f0;
	border-radius: var(--bt-radius);
	background: #fff;
	padding: 0.85rem 0.95rem;
}

#btApp .bt-item.is-next {
	border-color: var(--bt-primary-hover);
	box-shadow: 0 0 0 1px var(--bt-primary-hover);
	background: var(--bt-soft);
}

#btApp .bt-item.is-passed {
	opacity: 0.72;
}

#btApp .bt-item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

#btApp .bt-item-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--bt-ink);
}

#btApp .bt-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.35rem;
}

#btApp .bt-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.15rem 0.55rem;
	font-size: 0.75rem;
	font-weight: 600;
	background: #eff6ff;
	color: #1d4ed8;
}

#btApp .bt-badge.is-passed {
	background: #f1f5f9;
	color: #64748b;
}

#btApp .bt-badge.is-today {
	background: #ecfdf5;
	color: #047857;
}

#btApp .bt-badge.is-next {
	background: #fff7ed;
	color: #c2410c;
}

#btApp .bt-item-date {
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: #334155;
}

#btApp .bt-item-sub,
#btApp .bt-item-tip {
	margin-top: 0.2rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #64748b;
}

#btApp .bt-copy {
	flex-shrink: 0;
	height: 2rem;
	padding: 0 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

#btApp .bt-copy:hover {
	border-color: #93c5fd;
	color: var(--bt-primary-hover);
	background: var(--bt-soft);
}

@media (prefers-reduced-motion: reduce) {
	#btApp .bt-mode,
	#btApp .bt-copy {
		transition: none;
	}
}
