.dba-course-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body .dba-course-sidebar-card.tutor-card {
	background: #fff;
	border: 0;
	border-radius: 8px;
	box-shadow: rgba(0, 0, 0, .04) 0 0 2px 0, rgba(0, 0, 0, .08) 0 4px 10px 0;
}

body .dba-course-sidebar-card.tutor-card:hover {
	box-shadow: rgba(0, 0, 0, .04) 0 0 2px 0, rgba(0, 0, 0, .08) 0 4px 10px 0;
}

.tutor-single-course-sidebar .tutor-sidebar-card .tutor-card-body {
	background-color: #fff;
	border-radius: 8px;
	padding: 16px 24px;
	display: flex;
	flex-flow: column;
}

/* v1.1 stream A: spacing + selector polish */
.dba-course-sidebar {
	gap: 1.5rem;
}

.dba-course-sidebar__price {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.dba-course-sidebar__price ins,
.dba-course-sidebar__price ins .amount,
.dba-course-sidebar__price ins bdi {
	background: transparent;
	text-decoration: none;
}

.dba-course-sidebar__enrollment-window {
	padding: 10px 12px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.dba-session-selector,
.dba-mode-selector {
	border: 0;
	padding: 0;
	margin: 0;
}

.dba-session-selector legend,
.dba-mode-selector legend {
	font-weight: 600;
	margin-bottom: 8px;
}

.dba-hint {
	font-size: 13px;
	font-weight: 400;
	color: #6d7175;
	margin-left: 6px;
}

.dba-session-option,
.dba-mode-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	margin-bottom: 6px;
	border: 1px solid #e3e5e8;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.dba-session-option:hover,
.dba-mode-option:hover {
	background: #f6f7f7;
	border-color: #c3c4c7;
}

.dba-session-option input[type="checkbox"],
.dba-session-option input[type="radio"],
.dba-mode-option input[type="radio"],
.dba-mode-option input[type="checkbox"] {
	margin: 0;
}

.dba-mode-selector__bundle-hint {
	margin: 10px 2px 0;
	font-size: 13px;
	color: #4b5563;
}

.dba-mode-selector__included-note {
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #1d4ed8;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}

/* PROB-042 / TASK-050 follow-up: pre-purchase viewing-period hint. Mirrors
   the post-purchase .dba-course-sidebar__expiry-note mint callout so buyers
   see the same visual language before and after enrollment. */
.dba-mode-selector__expiry-note {
	margin: 10px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #0f766e;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.dba-mode-selector__placeholder,
.dba-mode-selector__auto {
	margin: 4px 0 10px;
	font-size: 13px;
	color: #6d7175;
}

.dba-mode-selector__auto {
	color: #1f2937;
	font-weight: 600;
}

.dba-mode-selector__options[hidden] {
	display: none;
}

/* v1.7.0 — per-agenda attendance picker for series_package courses.
   Brand-green primary (#00603b) anchors the bulk-apply chips so they read as
   secondary actions distinct from the muted mode-option rows. !important on
   `color` and `background` defends against Kadence's button reset, which
   defaults <button> text to inherit from theme tokens that match the chip
   background and turn it invisible. */
.dba-agenda-attendance-picker {
	margin-top: 14px;
}

.dba-agenda-attendance-picker__intro {
	margin: 4px 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: #4b5563;
}

.dba-agenda-attendance-picker__bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px dashed #d6d8dc;
}

.dba-agenda-attendance-picker__bulk-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1.5px solid #00603b !important;
	background: #00603b !important;
	color: #ffffff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 96, 59, 0.18);
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dba-agenda-attendance-picker__bulk-btn:hover {
	background: #004a2c !important;
	border-color: #004a2c !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 96, 59, 0.28);
}

.dba-agenda-attendance-picker__bulk-btn:focus-visible {
	outline: 3px solid rgba(0, 96, 59, 0.35);
	outline-offset: 2px;
}

.dba-agenda-attendance-picker__bulk-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 96, 59, 0.18);
}

.dba-agenda-attendance-picker__bulk-btn::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.dba-agenda-attendance-picker__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dba-agenda-attendance-picker__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dba-agenda-attendance-picker__row:hover {
	border-color: #c9cdd2;
	background: #f9fafb;
}

.dba-agenda-attendance-picker__row.is-missing {
	border-color: #ef4444;
	background: #fef2f2;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.dba-agenda-attendance-picker__label {
	flex: 1 1 140px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 120px;
}

.dba-agenda-attendance-picker__date {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: #111827;
	letter-spacing: 0.01em;
}

.dba-agenda-attendance-picker__title {
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
}

.dba-agenda-attendance-picker__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.dba-agenda-attendance-picker__option {
	margin: 0;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1.3;
	color: #1f2937;
	background: #ffffff;
	border: 1px solid #d1d5db;
}

.dba-mode-option.dba-agenda-attendance-picker__option:hover {
	border-color: #00603b;
	background: #ecfdf5;
}

.dba-mode-option.dba-agenda-attendance-picker__option:has(input[type="radio"]:checked) {
	border-color: #00603b;
	background: #00603b;
	color: #ffffff;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 96, 59, 0.22);
}

.dba-mode-option.dba-agenda-attendance-picker__option:has(input[type="radio"]:checked) span {
	color: #ffffff;
}

.dba-mode-option.dba-agenda-attendance-picker__option:has(input[type="radio"]:focus-visible) {
	outline: 3px solid rgba(0, 96, 59, 0.35);
	outline-offset: 2px;
}

.dba-session-selector__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.dba-session-card {
	padding: 1rem;
	margin-bottom: 0;
}

.dba-session-card.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.dba-session-card.is-disabled:hover {
	background: #fff;
	border-color: #e3e5e8;
}

.dba-session-selector__placeholder,
.dba-session-selector__empty {
	margin: 4px 0 8px;
	font-size: 13px;
	color: #6d7175;
}

.dba-session-selector__empty {
	color: #b45309;
}

.dba-session-option__label {
	flex: 1;
}

.dba-session-option__seats {
	margin-left: auto;
	color: #6d7175;
	font-size: 13px;
}

.dba-course-sidebar__cta {
	margin-top: 4px;
}

.dba-course-sidebar__cta {
	margin-top: 1.5rem;
}

.dba-course-sidebar__btn {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #2563eb;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.dba-course-sidebar__btn:hover:not([disabled]) {
	background: #1d4ed8;
}

.dba-course-sidebar__btn[disabled] {
	background: #9ca3af;
	cursor: not-allowed;
}

.dba-course-sidebar__btn--free {
	background: #059669;
}

.dba-course-sidebar__btn--free:hover:not([disabled]) {
	background: #047857;
}

.dba-course-sidebar__btn--enrolled {
	background: #0f766e;
}

.dba-course-sidebar__btn--enrolled:hover:not([disabled]) {
	background: #115e59;
}

.dba-course-sidebar__cta-hint {
	margin-top: 8px;
	font-size: 13px;
	color: #d63638;
}

.dba-course-sidebar__live-pricing {
	padding: 12px;
	border: 1px solid #e3e5e8;
	border-radius: 8px;
	background: #f9fafb;
}

.dba-sidebar-package-summary {
	position: relative;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafaf5;
}

.dba-sidebar-package-summary__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.dba-sidebar-package-summary__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow: hidden;
	max-height: 11rem;
	transition: max-height 0.2s ease;
}

.dba-sidebar-package-summary__content.is-collapsed::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 72px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(250, 250, 245, 0) 0%, #fafaf5 78%);
}

.dba-sidebar-package-summary__content.is-expanded {
	max-height: min(45vh, 420px);
	overflow-y: auto;
	padding-right: 4px;
}

.dba-sidebar-package-summary__body,
.dba-sidebar-package-summary__meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #4b5563;
}

.dba-sidebar-package-summary__meta + .dba-sidebar-package-summary__meta,
.dba-sidebar-package-summary__body + .dba-sidebar-package-summary__meta {
	margin-top: 8px;
}

.dba-sidebar-package-summary__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	min-height: 34px;
	margin: -36px auto 0;
	padding: 7px 16px;
	border: 0;
	border-radius: 999px;
	background: #f2994a;
	box-shadow: 0 10px 22px rgba(242, 153, 74, 0.22);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.dba-sidebar-package-summary__toggle:hover {
	background: #ea8a35;
	color: #fff;
}

.dba-sidebar-package-summary__content.is-expanded + .dba-sidebar-package-summary__toggle {
	margin-top: 12px;
	background: #f3f4f6;
	box-shadow: none;
	color: #374151;
}

.dba-sidebar-package-summary__content.is-expanded + .dba-sidebar-package-summary__toggle:hover {
	background: #e5e7eb;
	color: #111827;
}

.dba-live-pricing__row {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #374151;
}

.dba-live-pricing__row + .dba-live-pricing__row {
	margin-top: 6px;
}

.dba-live-pricing__row--subtotal {
	padding-top: 8px;
	border-top: 1px dashed #d1d5db;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}

/* Dashboard */
.dba-dashboard-my-courses {
	padding: 16px 0;
}

.dba-dashboard-my-courses h2 {
	margin: 0 0 16px;
	font-size: 22px;
}

.dba-dashboard-empty {
	color: #6d7175;
}

.dba-dashboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 6px;
	overflow: hidden;
}

.dba-dashboard-table th,
.dba-dashboard-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f0f1f2;
	font-size: 14px;
	vertical-align: top;
}

.dba-dashboard-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.dba-dashboard-table tr:last-child td {
	border-bottom: 0;
}

.dba-dashboard-table a {
	color: #2563eb;
	text-decoration: none;
}

.dba-dashboard-table a:hover {
	text-decoration: underline;
}

/* v1.5.9: outer .tutor-single-course-sidebar stickiness is now owned by
 * sen-xiao-fu-da-tutor-cta-sync v1.1.0+. Removed the inner-card sticky
 * rule that previously pinned .dba-course-sidebar-card at top: 80px,
 * which was double-pinning the card inside the outer scroll container
 * and creating an 80px empty band above it. See
 * docs/ai-collab/specs/site-spec.md REQ-004 + cta-sync README v1.1.0. */

/* v1.0.1: order/session visibility + dashboard surfaces per spec §4.4 / §4.5 */
.dba-order-summary {
	margin-top: 24px;
	padding: 24px;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 12px;
}

.dba-order-summary h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.dba-order-summary__course + .dba-order-summary__course {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f1f2;
}

.dba-order-summary__course h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.dba-order-summary__mode-summary {
	margin: 0 0 12px;
	color: #4b5563;
	font-size: 14px;
}

.dba-order-summary__sessions {
	margin: 0;
	padding-left: 20px;
}

.dba-order-summary__sessions li + li {
	margin-top: 12px;
}

.dba-order-summary__entry {
	margin: 12px 0 0;
	font-size: 13px;
	color: #6d7175;
}

.dba-dashboard-upcoming {
	margin-bottom: 24px;
}

.dba-dashboard-upcoming__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 420px;
	overflow-y: auto;
}

.dba-dashboard-upcoming__item {
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f1f2;
}

.dba-dashboard-upcoming__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.dba-dashboard-upcoming__course {
	font-weight: 600;
	color: #111827;
	text-decoration: none;
}

.dba-dashboard-upcoming__course:hover {
	text-decoration: underline;
}

.dba-dashboard-upcoming__meta {
	margin-top: 4px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

/* v1.2: Dashboard tab — 即將上課 */
.dba-dashboard-upcoming-page__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dba-dashboard-upcoming-page__item {
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	background: #fff;
}

.dba-dashboard-upcoming-page__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
}

.dba-dashboard-upcoming-page__main {
	flex: 1 1 320px;
	min-width: 0;
}

.dba-dashboard-upcoming-page__course {
	display: inline-block;
	margin-bottom: 8px;
	text-decoration: none;
}

.dba-dashboard-upcoming-page__course:hover {
	text-decoration: underline;
}

.dba-dashboard-upcoming-page__meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 14px;
	color: #4b5563;
}

.dba-dashboard-upcoming-page__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1.6;
}

.dba-dashboard-upcoming-page__meta-time {
	margin-left: 6px;
	color: #6b7280;
}

.dba-dashboard-upcoming-page__meta--hint {
	color: #047857;
}

.dba-dashboard-upcoming-page__meta--hint-expired {
	color: #b91c1c;
}

.dba-dashboard-upcoming-page__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.dba-dashboard-upcoming-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-start;
}

.dba-dashboard-upcoming-page__empty {
	border: 1px dashed #d1d5db;
	background: #fafafa;
	border-radius: 10px;
}

@media (max-width: 640px) {
	.dba-dashboard-upcoming-page__row {
		flex-direction: column;
	}

	.dba-dashboard-upcoming-page__actions {
		width: 100%;
	}

	.dba-dashboard-upcoming-page__actions .tutor-btn {
		flex: 1 1 auto;
	}
}

.dba-dashboard-upcoming__link,
.dba-dashboard-course-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 13px;
}

.dba-dashboard-course-detail {
	margin-top: 24px;
	margin-bottom: 24px;
}

.dba-dashboard-course-detail__summary {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 14px;
}

.dba-dashboard-course-detail__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dba-dashboard-course-detail__item {
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f1f2;
}

.dba-dashboard-course-detail__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.dba-dashboard-course-detail__item-title {
	font-weight: 600;
	color: #111827;
}

.dba-dashboard-course-detail__meta {
	margin-top: 6px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

/* Single-course schedule tab */
.dba-course-schedule-tab {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dba-course-schedule-tab__summary {
	padding: 16px 18px;
	border-radius: 12px;
	background: #f7f4ea;
	color: #4b5563;
	line-height: 1.7;
}

.dba-course-schedule-tab__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dba-course-schedule-card {
	padding: 18px 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #fff;
}

.dba-course-schedule-card__eyebrow {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: #8b5e3c;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dba-course-schedule-card__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.35;
	color: #111827;
}

.dba-course-schedule-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 10px;
	font-size: 14px;
	color: #4b5563;
}

.dba-course-schedule-card__meta strong {
	color: #111827;
}

.dba-course-schedule-card__link {
	margin-left: 6px;
	font-weight: 700;
	color: #0f766e;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dba-course-schedule-card__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.dba-course-schedule-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.dba-course-schedule-card__description {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.8;
	color: #374151;
}

/* ==========================================================================
   Owned-state sidebar (TASK-038 / PROB-026)
   ========================================================================== */

.dba-course-sidebar--owned {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dba-course-sidebar__owned-heading {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #0f766e;
	text-transform: uppercase;
}

.dba-course-sidebar__owned-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.dba-course-sidebar__owned-card {
	padding: 14px 16px;
}

.dba-course-sidebar__owned-card .dba-course-schedule-card__title {
	font-size: 17px;
}

.dba-course-sidebar__owned-card .dba-course-schedule-card__meta {
	font-size: 13px;
	gap: 6px 12px;
	margin-top: 6px;
}

.dba-course-sidebar__owned-actions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dba-course-sidebar__owned-link {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #0f766e;
	background: #ccfbf1;
	text-decoration: none;
}

.dba-course-sidebar__owned-link:hover {
	background: #99f6e4;
	color: #115e59;
}

.dba-course-sidebar__owned-body--upsell {
	gap: 12px;
}

.dba-course-sidebar__expiry-note {
	margin: 0 0 8px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #0f766e;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
}

.dba-course-sidebar__expiry-note--expired {
	color: #b91c1c;
	background: #fef2f2;
	border-color: #fecaca;
}

.dba-course-sidebar__access-duration {
	margin: 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	color: #7c2d12;
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

.dba-course-sidebar__upsell--repurchase {
	border-color: #fecaca;
	background: #fef2f2;
}

.dba-course-sidebar__upsell--repurchase .dba-course-sidebar__upsell-eyebrow {
	color: #b91c1c;
}

.dba-course-sidebar__upsell--repurchase .dba-course-sidebar__upsell-title,
.dba-course-sidebar__upsell--repurchase .dba-course-sidebar__upsell-copy {
	color: #7f1d1d;
}

.dba-course-sidebar__owned-compact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dba-course-sidebar__owned-compact-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 14px;
	color: #374151;
}

.dba-course-sidebar__owned-compact-dot {
	color: #0f766e;
	font-weight: 700;
}

.dba-course-sidebar__upsell {
	padding: 14px 16px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
}

.dba-course-sidebar__upsell-eyebrow {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #b45309;
	text-transform: uppercase;
}

.dba-course-sidebar__upsell-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	color: #92400e;
}

.dba-course-sidebar__upsell-copy {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #78350f;
}

.dba-course-sidebar__upsell-price {
	margin: 10px 0 0;
	font-size: 18px;
	font-weight: 700;
	color: #b45309;
}

.dba-course-sidebar__btn--owned {
	background: #0f766e;
}

.dba-course-sidebar__btn--owned[disabled] {
	background: #0f766e;
	opacity: 0.75;
	cursor: default;
}

.dba-course-sidebar__btn--owned_upsell {
	background: #d97706;
}

.dba-course-sidebar__btn--owned_upsell:hover:not([disabled]) {
	background: #b45309;
}

/* ==========================================================================
 * v1.10.0 — Pre-sale (集資型預售) sidebar variant.
 * Design contract: design/page-contracts/20260508-tutor-course-presale.md
 * ========================================================================== */
:root {
	--dba-color-urgency: #C8531A;
	--dba-color-urgency-soft: #FBE9D9;
	--dba-color-state-success: #2F855A;
	--dba-color-state-success-soft: #E6F4EA;
	--dba-color-state-error: #B3261E;
	--dba-color-state-muted: #9CA3AF;
	--dba-color-progress-fill: #B8422E;
	--dba-color-progress-track: #EAE7E2;
}

.dba-course-sidebar__pre-sale {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.dba-course-sidebar-card[data-cta-state^="pre_sale"] {
	border-color: rgba(184, 66, 46, 0.28);
	box-shadow: 0 12px 30px -24px rgba(184, 66, 46, 0.55);
}

.dba-course-sidebar-card[data-cta-state^="pre_sale"] .dba-course-sidebar {
	gap: 18px;
}

.dba-pre-sale-status-bar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid rgba(184, 66, 46, 0.18);
	border-radius: 8px;
	background: #FFFBF8;
}

.dba-pre-sale-status-bar--compact {
	gap: 12px;
}

.dba-pre-sale-status-chip {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	border: 1px solid var(--dba-color-urgency);
	background: var(--dba-color-urgency-soft);
	color: var(--dba-color-urgency);
}

.dba-pre-sale-status-chip--success {
	border-color: var(--dba-color-state-success);
	background: var(--dba-color-state-success-soft);
	color: var(--dba-color-state-success);
}

.dba-pre-sale-status-chip--failed {
	border-color: var(--dba-color-state-muted);
	background: #F3F4F6;
	color: var(--dba-color-state-muted);
}

.dba-pre-sale-countdown {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid rgba(200, 83, 26, 0.18);
	border-radius: 8px;
	background: #FFFFFF;
	font-variant-numeric: tabular-nums;
}

.dba-pre-sale-countdown__label {
	font-size: 12px;
	font-weight: 600;
	color: #6C7278;
}

.dba-pre-sale-countdown__value {
	font-size: 18px;
	font-weight: 600;
	color: #1A1C1E;
	white-space: nowrap;
}

.dba-pre-sale-countdown__value > span[data-role] {
	display: inline-block;
	min-width: 1.5ch;
	text-align: right;
	margin-right: 2px;
}

.dba-pre-sale-progress {
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: var(--dba-color-progress-track);
	overflow: hidden;
}

.dba-pre-sale-progress__fill {
	height: 100%;
	background: var(--dba-color-progress-fill);
	border-radius: 999px;
	transition: width 500ms ease-out;
}

.dba-pre-sale-progress__fill--success {
	background: var(--dba-color-state-success);
}

.dba-pre-sale-progress__fill--muted {
	background: var(--dba-color-state-muted);
}

.dba-pre-sale-progress-meta {
	font-size: 14px;
	font-weight: 500;
	color: #6C7278;
}

.dba-pre-sale-progress-summary {
	padding: 10px 12px;
	border: 1px solid rgba(200, 83, 26, 0.18);
	border-radius: 8px;
	background: #FFFFFF;
	color: #1A1C1E;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.dba-pre-sale-status-bar__sub {
	font-size: 13px;
	font-weight: 500;
	color: #6C7278;
}

/* ==========================================================================
 * Tutor course sales-page enhancement shell.
 * ========================================================================== */
body.dba-course-page-enhanced .tutor-course-details-page {
	--dba-course-page-ink: #1A1C1E;
	--dba-course-page-muted: #6C7278;
	--dba-course-page-accent: #B8422E;
	--dba-course-page-soft: #FFF7F1;
	--dba-course-page-widget-bg: #F8F4EC;
	--dba-course-page-sidebar-widget-bg: #FFFFFF;
	--dba-course-page-sidebar-widget-border: #D1D5DB;
	--dba-course-page-sidebar-widget-accent: var(--dba-course-page-accent);
}

body.dba-course-page-enhanced .tutor-course-details-header {
	margin-bottom: 28px;
}

.dba-course-short-description {
	max-width: 760px;
	margin: 12px 0 0;
	color: #4B5563;
	font-size: 17px;
	line-height: 1.75;
}

.dba-course-media-frame {
	overflow: hidden;
	border-radius: 12px;
	background: #F7F5F2;
}

.dba-course-media-frame > *,
.dba-course-media-frame img,
.dba-course-media-frame iframe,
.dba-course-media-frame video {
	display: block;
	max-width: 100%;
	border-radius: 12px;
}

.dba-course-media-frame iframe,
.dba-course-media-frame video {
	width: 100%;
}

.dba-course-summary-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 20px 0 0;
	overflow: hidden;
	border: 1px solid rgba(26, 28, 30, 0.08);
	border-radius: 8px;
	background: #FFFDF9;
}

.dba-course-summary-strip__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	padding: 16px 18px;
	border-right: 1px solid rgba(26, 28, 30, 0.08);
}

.dba-course-summary-strip__item:last-child {
	border-right: 0;
}

.dba-course-summary-strip__label {
	color: #6C7278;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.dba-course-summary-strip__value {
	color: #1A1C1E;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	line-height: 1.25;
}

body.dba-course-page-enhanced .tutor-course-details-tab {
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid rgba(26, 28, 30, 0.08);
	border-radius: 12px;
	background: linear-gradient(180deg, #FFFFFF 0%, #FFFCF8 100%);
	box-shadow: 0 18px 40px -36px rgba(26, 28, 30, 0.32);
}

body.dba-course-page-enhanced .tutor-course-details-tab .tutor-tab {
	padding-top: 20px !important;
}

body.dba-course-page-enhanced .tutor-course-details-content {
	margin: 0 0 clamp(22px, 3vw, 34px);
	padding: clamp(18px, 2.8vw, 28px);
	border: 1px solid rgba(26, 28, 30, 0.07);
	border-radius: 10px;
	background: #FFFDF9;
}

body.dba-course-page-enhanced .tutor-course-content-title,
body.dba-course-page-enhanced .tutor-course-details-widget-title {
	color: var(--dba-course-page-ink);
	letter-spacing: 0;
}

body.dba-course-page-enhanced .tutor-course-details-content h2,
body.dba-course-page-enhanced .tutor-course-content-title {
	position: relative;
	padding-bottom: 12px;
}

body.dba-course-page-enhanced .tutor-course-details-content h2::after,
body.dba-course-page-enhanced .tutor-course-content-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 2px;
	border-radius: 999px;
	background: #B8422E;
}

body.dba-course-page-enhanced .tutor-course-details-content .tutor-color-secondary {
	color: #525458 !important;
	font-size: 16px;
	line-height: 1.75;
}

body.dba-course-page-enhanced .tutor-course-details-widget {
	padding: clamp(18px, 2.8vw, 28px);
	border-radius: 10px;
	background: var(--dba-course-page-widget-bg);
}

body.dba-course-page-enhanced .tutor-single-course-sidebar-more .tutor-course-details-widget {
	border: 1px solid var(--dba-course-page-sidebar-widget-border);
	background: var(--dba-course-page-sidebar-widget-bg);
}

body.dba-course-page-enhanced .tutor-course-details-widget-list li {
	align-items: flex-start;
	padding: 10px 0;
	margin-bottom: 0 !important;
	border-bottom: 1px solid rgba(26, 28, 30, 0.06);
}

body.dba-course-page-enhanced .tutor-course-details-widget-list li:last-child {
	border-bottom: 0;
}

body.dba-course-page-enhanced .tutor-course-details-widget-list .tutor-icon-bullet-point {
	color: var(--dba-course-page-accent) !important;
}

body.dba-course-page-enhanced .tutor-single-course-sidebar-more .tutor-course-details-widget-list .tutor-icon-bullet-point {
	color: var(--dba-course-page-sidebar-widget-accent) !important;
}

body.dba-course-page-enhanced .tutor-accordion {
	overflow: hidden;
	border: 1px solid rgba(26, 28, 30, 0.08);
	border-radius: 10px;
	background: #FFFFFF;
}

body.dba-course-page-enhanced .tutor-accordion .tutor-accordion-item {
	border: 0;
	border-bottom: 1px solid rgba(26, 28, 30, 0.08);
	border-radius: 0;
	background: transparent;
}

body.dba-course-page-enhanced .tutor-accordion .tutor-accordion-item:last-child {
	border-bottom: 0;
}

body.dba-course-page-enhanced .tutor-accordion-item-header {
	padding: 18px 22px;
	background: #FFFDF9;
	color: #1A1C1E;
	font-size: 16px;
	font-weight: 700;
}

body.dba-course-page-enhanced .tutor-accordion-item-header.is-active {
	background: #F8F4EC;
}

body.dba-course-page-enhanced .tutor-accordion-item-body-content {
	padding: 0;
}

body.dba-course-page-enhanced .tutor-course-content-list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

body.dba-course-page-enhanced .tutor-course-content-list-item {
	padding: 15px 22px;
	border-bottom: 1px solid rgba(26, 28, 30, 0.06);
}

body.dba-course-page-enhanced .tutor-course-content-list-item:last-child {
	border-bottom: 0;
}

body.dba-course-page-enhanced .tutor-course-content-list-item-icon {
	color: #B8422E !important;
}

body.dba-course-page-enhanced .tutor-course-content-list-item-title {
	color: #1A1C1E;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
}

.dba-course-hero-presale {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 24px;
	padding: clamp(14px, 2.4vw, 20px);
	border: 1px solid rgba(184, 66, 46, 0.18);
	border-radius: 12px;
	background: linear-gradient(135deg, #FFF8F2 0%, #FFFFFF 62%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dba-course-hero-presale__topline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;
}

.dba-course-hero-presale__badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #FBE9D9;
	color: #B8422E;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.dba-course-hero-presale--pre_sale_succeeded .dba-course-hero-presale__badge {
	background: #E6F4EA;
	color: #2F855A;
}

.dba-course-hero-presale--pre_sale_failed .dba-course-hero-presale__badge {
	background: #F3F4F6;
	color: #6C7278;
}

.dba-course-hero-presale__countdown,
.dba-course-hero-presale__meta {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	color: #374151;
	font-size: 14px;
	line-height: 1.45;
	font-variant-numeric: tabular-nums;
}

.dba-course-hero-presale__countdown strong,
.dba-course-hero-presale__meta strong {
	color: #B8422E;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 700;
}

.dba-course-hero-presale__progress {
	width: 100%;
	height: 8px;
	border-radius: 999px;
	background: #EAE7E2;
	overflow: hidden;
}

.dba-course-hero-presale__progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: #B8422E;
	transition: width 500ms ease-out;
}

.dba-course-hero-presale--pre_sale_succeeded .dba-course-hero-presale__progress span {
	background: #2F855A;
}

.dba-course-hero-presale--pre_sale_failed .dba-course-hero-presale__progress span {
	background: #9CA3AF;
}

.dba-course-hero-presale__note {
	margin: 0;
	color: #6C7278;
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.dba-course-hero-presale__topline {
		align-items: flex-start;
		flex-direction: column;
	}

	.dba-course-hero-presale__countdown,
	.dba-course-hero-presale__meta {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.dba-course-short-description {
		font-size: 15px;
		line-height: 1.7;
	}

	.dba-course-summary-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dba-course-summary-strip__item:nth-child(2n) {
		border-right: 0;
	}

	.dba-course-summary-strip__item:nth-child(n+3) {
		border-top: 1px solid rgba(26, 28, 30, 0.08);
	}
}

.dba-pre-sale-price {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 2px 0;
}

.dba-pre-sale-price__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--dba-color-urgency);
}

.dba-pre-sale-price__value {
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	color: #1A1C1E;
}

.dba-pre-sale-price__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.dba-pre-sale-price__original {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	color: #6C7278;
	text-decoration: line-through;
}

.dba-pre-sale-price__original .amount {
	color: inherit;
}

.dba-pre-sale-price__original .price ins,
.dba-pre-sale-price__original .price del {
	background: transparent;
	text-decoration: line-through;
}

.dba-pre-sale-price--muted .dba-pre-sale-price__value {
	color: var(--dba-color-state-muted);
	text-decoration: line-through;
}

.dba-pre-sale-helper {
	margin: 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #F7F5F2;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: #6C7278;
}

.dba-pre-sale-helper--success {
	background: var(--dba-color-state-success-soft);
	color: var(--dba-color-state-success);
}

.dba-pre-sale-helper--failed {
	background: #FEF3F2;
	color: var(--dba-color-state-error);
	overflow-wrap: anywhere;
}

.dba-pre-sale-helper__link {
	color: var(--dba-color-progress-fill);
	text-decoration: none;
	font-weight: 600;
}

.dba-pre-sale-helper__link:hover {
	text-decoration: underline;
}

.dba-pre-sale-info {
	padding: 10px 12px;
	border: 1px solid rgba(184, 66, 46, 0.18);
	border-radius: 6px;
	background: #FFFBF8;
	color: #4B5563;
	font-size: 13px;
	line-height: 1.55;
}

.dba-pre-sale-info p {
	margin: 0;
}

.dba-pre-sale-info:focus {
	outline: 2px solid var(--dba-color-progress-fill);
	outline-offset: 2px;
}

.dba-pre-sale-open-note {
	margin: 0;
	color: #4B5563;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

/* CTA button variants — primary CTA stays project-tertiary;
 * urgency lives only in the helper chip + price label. */
.dba-course-sidebar__btn--pre_sale {
	background: var(--dba-color-progress-fill);
	min-height: 48px;
	font-weight: 700;
}

.dba-course-sidebar__btn--pre_sale:hover:not([disabled]) {
	background: #9C3923;
}

.dba-course-sidebar__btn--pre_sale_succeeded {
	background: var(--dba-color-progress-fill);
	min-height: 48px;
	font-weight: 700;
}

.dba-course-sidebar__btn--pre_sale_succeeded:hover:not([disabled]) {
	background: #9C3923;
}

.dba-course-sidebar__btn--pre_sale_failed,
.dba-course-sidebar__btn--pre_sale_failed[disabled] {
	background: var(--dba-color-state-muted);
	color: #FFFFFF;
	cursor: not-allowed;
	opacity: 0.85;
}
