.rcpt-app {
	--rcpt-green: #16a34a; --rcpt-red: #dc2626; --rcpt-amber: #d97706;
	--rcpt-bg: #f1f5f9; --rcpt-card: #ffffff; --rcpt-text: #0f172a; --rcpt-muted: #64748b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rcpt-text); max-width: 1800px; width: 100%; margin: 0 auto;
	padding: 16px 24px; box-sizing: border-box;
}
.rcpt-app *, .rcpt-app *::before, .rcpt-app *::after { box-sizing: border-box; }

.rcpt-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.rcpt-brand { display: flex; align-items: center; gap: 12px; }
.rcpt-logo { height: 48px; width: 48px; border-radius: 12px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.25); flex: none; }
.rcpt-title { font-size: 26px; font-weight: 800; margin: 0; }
.rcpt-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.rcpt-btn {
	display: inline-block; border: none; border-radius: 8px; padding: 10px 16px;
	font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1;
	transition: transform .08s ease, filter .15s ease, background .15s ease;
	background: #e2e8f0; color: #0f172a;
}
.rcpt-btn:hover { filter: brightness(1.05); }
.rcpt-btn:active { transform: scale(.97); }
.rcpt-btn-mini { padding: 6px 10px; font-size: 12px; }
.rcpt-btn-full { width: 100%; text-align: center; }
.rcpt-btn-sound { background: #0ea5e9; color: #fff; }
.rcpt-btn-sound[aria-pressed="false"] { background: #94a3b8; }
.rcpt-btn-test { background: #8b5cf6; color: #fff; }
.rcpt-btn-start { background: var(--rcpt-green); color: #fff; flex: 1; }
.rcpt-btn-reset { background: #64748b; color: #fff; flex: 1; }
.rcpt-btn-ack { background: var(--rcpt-red); color: #fff; width: 100%; animation: rcpt-pulse 1s infinite; }
.rcpt-btn-extend { background: #0ea5e9; color: #fff; padding: 6px 10px; font-size: 12px; }
.rcpt-btn-warn { background: #d97706; color: #fff; }
.rcpt-btn-close { background: #dc2626; color: #fff; }
.rcpt-btn-menu { background: #0f172a; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.rcpt-menu-icon { font-size: 18px; line-height: 1; }
@keyframes rcpt-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.5); } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0); } }

/* ---------- Menu dropdown ---------- */
.rcpt-menu { position: relative; }
.rcpt-menu-panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 500;
	width: 260px; background: #fff; border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 10px;
	border: 1px solid #e2e8f0;
}
.rcpt-menu-heading { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: 6px 8px 8px; }
.rcpt-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 4px; font-size: 13px; font-weight: 600; color: #334155; }
.rcpt-menu-row .rcpt-btn { padding: 9px 12px; }
.rcpt-menu-divider { height: 1px; background: #e2e8f0; margin: 8px 4px; }
.rcpt-select { padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 13px; font-weight: 600; background: #fff; color: #0f172a; cursor: pointer; max-width: 140px; }
.rcpt-switch-wrap { cursor: pointer; user-select: none; }
.rcpt-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.rcpt-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.rcpt-switch:checked { background: var(--rcpt-green); }
.rcpt-switch:checked::after { transform: translateX(18px); }

/* ---------- Summary ---------- */
.rcpt-summary { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.rcpt-pill { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e2e8f0; color: #334155; }
.rcpt-pill-run { background: #dcfce7; color: #166534; }
.rcpt-pill-pause { background: #fef3c7; color: #92400e; }
.rcpt-pill-done { background: #fee2e2; color: #991b1b; }

/* ---------- Sections ---------- */
.rcpt-section { margin-bottom: 24px; }
.rcpt-section-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.rcpt-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.rcpt-dot-kid { background: var(--rcpt-green); }
.rcpt-dot-adult { background: var(--rcpt-red); }
.rcpt-count { background: #0f172a; color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 10px; font-weight: 700; }
.rcpt-shop-badge { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .06em; background: #16a34a; color: #fff; text-transform: uppercase; }
.rcpt-shop-badge.rcpt-badge-closed { background: #dc2626; }

/* ---------- Visibility control ---------- */
.rcpt-visctl { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.rcpt-vis-label { font-size: 12px; font-weight: 700; color: #475569; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.rcpt-hidden { display: none !important; }
.rcpt-btn-mini[disabled] { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* ---------- Cards ---------- */
.rcpt-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rcpt-card {
	background: var(--rcpt-card); border-radius: 14px; padding: 14px;
	box-shadow: 0 1px 3px rgba(15,23,42,.12); border: 3px solid transparent;
	transition: border-color .2s, background .2s; display: flex; flex-direction: column; gap: 8px;
}
.rcpt-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rcpt-player-num { font-size: 22px; font-weight: 800; }
.rcpt-player-label { font-size: 12px; color: var(--rcpt-muted); }
.rcpt-state-tag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e2e8f0; color: #334155; text-transform: uppercase; letter-spacing: .04em; }
.rcpt-time { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.1; letter-spacing: .02em; }
.rcpt-duration { display: flex; justify-content: center; }
.rcpt-duration-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--rcpt-muted); }
.rcpt-duration-input { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 14px; font-weight: 600; background: #fff; }
.rcpt-extend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 0; }
.rcpt-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

.rcpt-state-running { border-color: var(--rcpt-green); background: #f0fdf4; }
.rcpt-state-running .rcpt-state-tag { background: #bbf7d0; color: #166534; }
.rcpt-state-paused { border-color: #64748b; background: #f8fafc; }
.rcpt-state-paused .rcpt-state-tag { background: #cbd5e1; color: #334155; }
.rcpt-state-warn { border-color: var(--rcpt-amber); background: #fffbeb; animation: rcpt-warn-blink 1s infinite; }
.rcpt-state-warn .rcpt-state-tag { background: #fde68a; color: #92400e; }
.rcpt-state-warn .rcpt-time { color: var(--rcpt-amber); }
.rcpt-state-complete { border-color: var(--rcpt-red); background: #fef2f2; animation: rcpt-flash 0.6s infinite alternate; }
.rcpt-state-complete .rcpt-time { color: var(--rcpt-red); }
.rcpt-state-complete .rcpt-state-tag { background: #fecaca; color: #991b1b; }
@keyframes rcpt-warn-blink { 0%,100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } 50% { box-shadow: 0 0 0 6px rgba(217,119,6,.25); } }
@keyframes rcpt-flash { from { background: #fef2f2; } to { background: #fecaca; } }

.rcpt-empty-msg { padding: 40px; text-align: center; color: var(--rcpt-muted); background: #fff; border-radius: 14px; border: 2px dashed #cbd5e1; }

/* ---------- Lock overlay ---------- */
.rcpt-lock { position: fixed; inset: 0; z-index: 99999; background: rgba(8,12,22,.96); display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); }
.rcpt-lock-card { background: #fff; border-radius: 20px; padding: 28px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); color: #0f172a; }
.rcpt-lock-logo { height: 96px; width: 96px; border-radius: 18px; object-fit: cover; display: block; margin: 0 auto 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.rcpt-lock-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; letter-spacing: .04em; }
.rcpt-lock-msg { font-size: 14px; color: #64748b; margin: 0 0 18px; }
.rcpt-pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 8px; }
.rcpt-pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5e1; transition: background .12s; }
.rcpt-pin-dots span.filled { background: #16a34a; border-color: #16a34a; }
.rcpt-pin-error { min-height: 20px; font-size: 13px; font-weight: 700; color: #dc2626; margin-bottom: 10px; }
.rcpt-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.rcpt-keypad button { padding: 16px 0; font-size: 22px; font-weight: 700; border: none; border-radius: 12px; background: #f1f5f9; color: #0f172a; cursor: pointer; transition: transform .08s, background .15s; }
.rcpt-keypad button:hover { background: #e2e8f0; }
.rcpt-keypad button:active { transform: scale(.94); }
.rcpt-keypad .rcpt-key-alt { background: #fef3c7; font-size: 18px; }
.rcpt-keypad .rcpt-key-enter { background: #16a34a; color: #fff; font-size: 16px; }
.rcpt-keypad .rcpt-key-enter:hover { background: #15803d; }
.rcpt-lock-hint { font-size: 12px; color: #94a3b8; margin: 0; }
@keyframes rcpt-shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
.rcpt-shake { animation: rcpt-shake .4s ease; }

/* ---------- Dark mode ---------- */
html.rcpt-dark, html.rcpt-dark body { background: #0b1220 !important; }
.rcpt-app.rcpt-dark { --rcpt-bg: #0b1220; --rcpt-card: #131c2e; --rcpt-text: #e2e8f0; --rcpt-muted: #94a3b8; background: var(--rcpt-bg); color: var(--rcpt-text); }
.rcpt-app.rcpt-dark .rcpt-card { background: var(--rcpt-card); border-color: #1e293b; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.rcpt-app.rcpt-dark .rcpt-vis-label { color: #cbd5e1; }
.rcpt-app.rcpt-dark .rcpt-select { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.rcpt-app.rcpt-dark .rcpt-duration-input { background: #1e293b; color: #e2e8f0; border-color: #334155; }
.rcpt-app.rcpt-dark .rcpt-state-tag { background: #334155; color: #cbd5e1; }
.rcpt-app.rcpt-dark .rcpt-pill { background: #1e293b; color: #cbd5e1; }
.rcpt-app.rcpt-dark .rcpt-pill-run { background: #14532d; color: #86efac; }
.rcpt-app.rcpt-dark .rcpt-pill-pause { background: #78350f; color: #fcd34d; }
.rcpt-app.rcpt-dark .rcpt-pill-done { background: #7f1d1d; color: #fca5a5; }
.rcpt-app.rcpt-dark .rcpt-btn { background: #334155; color: #f1f5f9; }
.rcpt-app.rcpt-dark .rcpt-btn-start { background: #15803d; }
.rcpt-app.rcpt-dark .rcpt-btn-reset { background: #475569; }
.rcpt-app.rcpt-dark .rcpt-btn-ack { background: #b91c1c; }
.rcpt-app.rcpt-dark .rcpt-btn-extend { background: #0369a1; }
.rcpt-app.rcpt-dark .rcpt-btn-sound { background: #0284c7; }
.rcpt-app.rcpt-dark .rcpt-btn-test { background: #7c3aed; }
.rcpt-app.rcpt-dark .rcpt-btn-warn { background: #b45309; }
.rcpt-app.rcpt-dark .rcpt-btn-close { background: #b91c1c; }
.rcpt-app.rcpt-dark .rcpt-btn-menu { background: #f1f5f9; color: #0f172a; }
.rcpt-app.rcpt-dark .rcpt-menu-panel { background: #131c2e; border-color: #334155; }
.rcpt-app.rcpt-dark .rcpt-menu-row { color: #cbd5e1; }
.rcpt-app.rcpt-dark .rcpt-menu-divider { background: #334155; }
.rcpt-app.rcpt-dark .rcpt-count { background: #e2e8f0; color: #0f172a; }
.rcpt-app.rcpt-dark .rcpt-state-running { border-color: #22c55e; background: #0f2417; }
.rcpt-app.rcpt-dark .rcpt-state-running .rcpt-state-tag { background: #14532d; color: #86efac; }
.rcpt-app.rcpt-dark .rcpt-state-paused { border-color: #64748b; background: #1e293b; }
.rcpt-app.rcpt-dark .rcpt-state-warn { border-color: #f59e0b; background: #2a1f0a; }
.rcpt-app.rcpt-dark .rcpt-state-warn .rcpt-state-tag { background: #78350f; color: #fcd34d; }
.rcpt-app.rcpt-dark .rcpt-state-warn .rcpt-time { color: #fbbf24; }
.rcpt-app.rcpt-dark .rcpt-state-complete { border-color: #ef4444; background: #2a0f0f; animation: rcpt-flash-dark 0.6s infinite alternate; }
.rcpt-app.rcpt-dark .rcpt-state-complete .rcpt-time { color: #f87171; }
.rcpt-app.rcpt-dark .rcpt-state-complete .rcpt-state-tag { background: #7f1d1d; color: #fca5a5; }
.rcpt-app.rcpt-dark .rcpt-empty-msg { background: #131c2e; color: #94a3b8; border-color: #334155; }
.rcpt-app.rcpt-dark .rcpt-lock-card { background: #131c2e; color: #e2e8f0; }
.rcpt-app.rcpt-dark .rcpt-lock-msg { color: #94a3b8; }
.rcpt-app.rcpt-dark .rcpt-keypad button { background: #1e293b; color: #e2e8f0; }
.rcpt-app.rcpt-dark .rcpt-keypad button:hover { background: #334155; }
.rcpt-app.rcpt-dark .rcpt-keypad .rcpt-key-alt { background: #78350f; color: #fcd34d; }
@keyframes rcpt-flash-dark { from { background: #2a0f0f; } to { background: #7f1d1d; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.rcpt-app { padding: 12px 16px; }
	.rcpt-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
	.rcpt-time { font-size: 38px; }
}
@media (max-width: 768px) {
	.rcpt-header { flex-direction: column; align-items: stretch; gap: 10px; }
	.rcpt-header-actions { justify-content: flex-end; }
	.rcpt-section-title { font-size: 16px; }
	.rcpt-visctl { margin-left: 0; }
	.rcpt-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
	.rcpt-card { padding: 10px; }
	.rcpt-time { font-size: 32px; }
	.rcpt-player-num { font-size: 18px; }
	.rcpt-btn { padding: 9px 12px; font-size: 13px; }
	.rcpt-menu-panel { right: 0; left: auto; width: 240px; }
}
@media (max-width: 480px) {
	.rcpt-app { padding: 10px; }
	.rcpt-title { font-size: 18px; }
	.rcpt-logo { height: 38px; width: 38px; }
	.rcpt-lock-logo { height: 76px; width: 76px; }
	.rcpt-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.rcpt-time { font-size: 26px; }
	.rcpt-btn { padding: 8px 10px; font-size: 12px; }
	.rcpt-extend .rcpt-btn-extend { font-size: 11px; padding: 5px 8px; }
	.rcpt-menu-panel { position: fixed; top: 60px; left: 10px; right: 10px; width: auto; }
	.rcpt-lock-card { padding: 24px 18px; }
	.rcpt-keypad button { padding: 14px 0; font-size: 20px; }
}
@media (max-width: 360px) { .rcpt-grid { grid-template-columns: 1fr; } }
