[hidden] {
	display: none !important;
}
.rs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
.tool-panel ~ .tool-panel {
	margin-top: 16px;
}
.rs-title {
	margin: 0 0 14px;
	font-size: 1.1rem;
}
.rs-sub {
	margin: 20px 0 8px;
	font-size: 1rem;
}
.rs-sub span {
	color: var(--text-soft);
	font-weight: 400;
	font-size: 0.9rem;
}

/* 1. Open */
.rs-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 28px 16px;
	border: 2px dashed var(--border);
	border-radius: var(--radius);
	color: var(--accent);
	text-align: center;
	cursor: pointer;
}
.rs-drop:hover,
.rs-drop.is-over,
.rs-drop:focus-within {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.rs-drop__main {
	font-weight: 700;
	font-size: 1.05rem;
}
.rs-drop__sub {
	color: var(--text-soft);
	font-size: 0.875rem;
}
.rs-error {
	margin: 10px 0 0;
	color: #b3261e;
	font-size: 0.9rem;
}

/* 2. Review */
.rs-progress {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 12px;
	font-size: 0.9rem;
}
.rs-progress progress {
	flex: 1 1 160px;
	accent-color: var(--accent);
}
.rs-warn {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff4e5;
	color: #7a4100;
	font-size: 0.9rem;
}
.rs-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.rs-toggle {
	gap: 6px;
}
.rs-toggle[aria-pressed='true'] {
	background: var(--accent);
	color: #fff;
}
/* The photo scrolls inside this frame when zoomed in. */
.rs-viewport {
	margin-top: 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface);
}
.rs-viewport.is-zoomed {
	max-height: 75vh;
	overflow: auto;
	overscroll-behavior: contain;
}
.rs-stage {
	position: relative;
	width: 100%;
	line-height: 0;
}
.rs-stage img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.rs-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.rs-stage.is-drawing {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}
.rs-stage.is-drawing .rs-overlay {
	touch-action: none;
	cursor: crosshair;
}
.rs-mask {
	fill: rgba(0, 0, 0, 0.62);
	stroke: #e5484d;
	cursor: pointer;
}
.rs-mask.is-off {
	fill: rgba(255, 255, 255, 0.05);
	stroke: #e5484d;
	stroke-dasharray: 6 4;
	opacity: 0.8;
}
.rs-mask.is-manual {
	stroke: #0b6b73;
}
.rs-mask.is-new {
	fill: rgba(11, 107, 115, 0.25);
}
.rs-word {
	fill: none;
	stroke: #2f80ed;
	opacity: 0.6;
	pointer-events: none;
}
.rs-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.rs-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	padding: 8px 0;
	border-top: 1px solid var(--border);
}
.rs-item__main {
	display: flex;
	flex: 1 1 180px;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
}
.rs-item.is-off .rs-item__main {
	opacity: 0.6;
}
.rs-item__off {
	flex: none;
	padding: 1px 6px;
	border: 1px dashed var(--text-soft);
	border-radius: 999px;
	color: var(--text-soft);
	font-size: 0.75rem;
}
.rs-item__actions {
	display: flex;
	flex: none;
	gap: 6px;
}
.rs-act {
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid var(--accent);
	border-radius: 8px;
	background: var(--bg);
	color: var(--accent);
	font: inherit;
	font-size: 0.85rem;
	white-space: nowrap;
	cursor: pointer;
}
.rs-act--del {
	border-color: #b3261e;
	color: #b3261e;
}
.rs-mask.is-flash {
	stroke: #f5a524;
	animation: rs-flash 0.4s ease-in-out 4 alternate;
}
@keyframes rs-flash {
	from {
		fill-opacity: 1;
	}
	to {
		fill-opacity: 0.1;
	}
}
.rs-kind {
	flex: none;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--dw-teal-dark);
	font-size: 0.8rem;
	font-weight: 500;
}
.rs-kind--manual {
	background: var(--surface);
}
.rs-item__text {
	overflow: hidden;
	color: var(--text-soft);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.875rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.rs-del {
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: none;
	color: var(--text-soft);
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

/* 3. Confirm and save */
.rs-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0;
	font-weight: 500;
	cursor: pointer;
}
.rs-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--accent);
}
.rs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.rs-actions .button[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}
.rs-result {
	margin-top: 16px;
}
/* Confirmed: the boxes look exactly like the saved picture (2026-11-25: the step 3 result picture was dropped). */
.rs-mask.is-final {
	fill: #000;
	fill-opacity: 1;
	stroke: none;
}
.rs-mask.is-final.is-off {
	display: none;
}
.rs-done {
	margin: 0 0 8px;
	color: var(--dw-teal-dark);
	font-weight: 700;
}

/* Test information (stage 1) */
.rs-debug summary {
	font-weight: 500;
	cursor: pointer;
}
.rs-debug__opts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 12px;
	font-size: 0.9rem;
}
.rs-debug__log,
.rs-debug__text {
	max-height: 260px;
	margin: 12px 0 0;
	padding: 10px;
	overflow: auto;
	border-radius: 8px;
	background: var(--surface);
	font-size: 0.8rem;
	white-space: pre-wrap;
}

/* Options and list notes (stage 2) */
.rs-option {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-top: 10px;
	font-size: 0.95rem;
	cursor: pointer;
}
.rs-option input {
	width: 20px;
	height: 20px;
	accent-color: var(--accent);
}
.rs-option span {
	color: var(--text-soft);
	font-size: 0.85rem;
}
.rs-item__note {
	flex: none;
	color: var(--text-soft);
	font-size: 0.75rem;
}

/* Several photos (stage 3) */
.rs-photos {
	margin-bottom: 12px;
}
.rs-photos__title {
	margin: 0 0 8px;
	font-weight: 500;
}
.rs-photos__hint {
	color: var(--text-soft);
	font-size: 0.85rem;
	font-weight: 400;
}
.rs-photos__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 0 6px;
	overflow-x: auto;
	list-style: none;
}
.rs-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 84px;
	padding: 4px;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	font: inherit;
	cursor: pointer;
}
.rs-thumb img {
	width: 72px;
	height: 72px;
	border-radius: 4px;
	object-fit: cover;
}
.rs-thumb__status {
	color: var(--text-soft);
	font-size: 0.75rem;
	white-space: nowrap;
}
.rs-thumb.is-current {
	border-color: var(--accent);
}
.rs-thumb.is-ready .rs-thumb__status,
.rs-thumb.is-failed .rs-thumb__status {
	color: #7a4100;
	font-weight: 500;
}
.rs-thumb.is-confirmed .rs-thumb__status {
	color: var(--dw-teal-dark);
	font-weight: 700;
}

/* Zoom */
.rs-zoom {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--accent);
	border-radius: 8px;
	overflow: hidden;
}
.rs-zoom__btn {
	width: 44px;
	height: 42px;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-size: 1.3rem;
	cursor: pointer;
}
.rs-zoom__btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.rs-zoom__level {
	min-width: 52px;
	text-align: center;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

/* Chosen box: outline and corner handles for moving and resizing (its actions are in its list row) */
.rs-mask.is-selected {
	stroke: #0b6b73;
	cursor: move;
	touch-action: none;
}
.rs-handle {
	fill: #fff;
	stroke: #0b6b73;
	touch-action: none;
}
.rs-handle--nw,
.rs-handle--se {
	cursor: nwse-resize;
}
.rs-handle--ne,
.rs-handle--sw {
	cursor: nesw-resize;
}
.rs-item.is-selected {
	background: var(--accent-soft);
}

/* Saving all photos */
.rs-all {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
.rs-all .rs-sub {
	margin-top: 0;
}
.rs-actions .button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Bring back deleted automatic boxes */
.rs-restore {
	margin-top: 12px;
}

/* Masking style per kind */
.rs-styles {
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 8px;
}
.rs-styles summary {
	font-weight: 500;
	cursor: pointer;
}
.rs-styles__summary {
	margin-left: 6px;
	color: var(--text-soft);
	font-size: 0.85rem;
	font-weight: 400;
}
.rs-styles__list {
	display: grid;
	gap: 8px;
	margin-top: 10px;
}
.rs-style {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 12px;
	font-size: 0.95rem;
}
.rs-style__select {
	min-height: 40px;
	max-width: 100%;
	padding: 0 8px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-size: 0.9rem;
}

.rs-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* Photos or PDF */
.rs-mode {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}
.rs-mode__options {
	display: flex;
	gap: 8px;
}
.rs-mode__opt {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
}
.rs-mode__opt:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--dw-teal-dark);
}
.rs-mode__opt input {
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
}

/* Warning inside the usage popup */
.rs-guide-warn {
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff4e5;
	color: #7a4100;
}

/* Wiping */
.rs-wipe {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 12px;
}
.rs-wipe .field-hint {
	margin: 0;
	flex: 1 1 220px;
}
.rs-done-note {
	margin: 12px 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--dw-teal-dark);
	font-size: 0.9rem;
}
.rs-wipe-dialog {
	width: min(480px, calc(100vw - 32px));
	padding: 20px;
	border: 0;
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(8, 63, 68, 0.3);
	color: var(--text);
}
.rs-wipe-dialog::backdrop {
	background: rgba(20, 23, 31, 0.55);
}
.rs-wipe-dialog h2 {
	margin: 0 0 10px;
	font-size: 1.1rem;
}
.rs-wipe-dialog p {
	margin: 0 0 12px;
	font-size: 0.95rem;
}
.rs-wipe-dialog small {
	color: var(--text-soft);
	font-weight: 400;
}

/* Confirming, at the bottom of step 2 */
.rs-confirm {
	margin-top: 20px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
.rs-confirm .rs-sub {
	margin-top: 0;
}
.rs-confirm .rs-done {
	margin-top: 12px;
}

/* The photo on screen: which one, its status, previous/next */
.rs-current {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 10px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
}
.rs-current__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.rs-current__info strong {
	color: var(--dw-teal-dark);
	font-size: 1rem;
}
.rs-current__file {
	overflow: hidden;
	color: var(--text-soft);
	font-size: 0.8rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.rs-thumb.is-confirmed {
	border-color: #2e9e6b;
}
.rs-thumb.is-confirmed.is-current {
	border-color: var(--accent);
	box-shadow: 0 0 0 2px #2e9e6b;
}

/* Thumbnails, the photo on screen and its confirmation, in one card (2026-11-25) */
.rs-nav {
	margin: 12px 0;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}
.rs-nav .rs-photos {
	margin-bottom: 10px;
}
.rs-nav .rs-current {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}
.rs-nav .rs-confirm {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
}
.rs-confirm__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.rs-confirm__row .rs-check {
	flex: 1 1 240px;
	margin: 0;
}
.rs-confirm__row .button {
	flex: none;
}
.rs-confirm__hint {
	margin-top: 8px;
}
.rs-nav .rs-done {
	margin-top: 0;
}

/* '가림 방식' opens as a popup from next to '자동으로 찾아 가리기' (2026-11-25) */
.rs-mode__auto {
	display: flex;
	flex: 1;
	gap: 6px;
	min-width: 0;
}
.rs-mode__auto .rs-mode__opt {
	flex: 1;
}
.rs-gear {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--accent);
	border-radius: 8px;
	background: var(--bg);
	color: var(--accent);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}
.rs-styles-line {
	margin-top: 4px;
}
.rs-styles-line span {
	color: var(--dw-teal-dark);
	font-weight: 500;
}
.rs-styles-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: min(86vh, 760px);
	overflow: auto;
}
@media (max-width: 480px) {
	.rs-mode__options {
		flex-wrap: wrap;
	}
	.rs-mode__auto {
		flex: 1 1 100%;
	}
}
.rs-styles-dialog .rs-style__select {
	flex: 0 1 60%;
	min-width: 200px;
}

/* Thumbnails and the current photo as one control (2026-11-25): the current photo's line on top,
   then ‹ thumbnails ›, then how many are confirmed. */
.rs-nav .rs-current {
	margin-bottom: 8px;
}
.rs-strip {
	display: flex;
	align-items: center;
	gap: 6px;
}
.rs-strip .rs-photos__list {
	position: relative;
	flex: 1;
	min-width: 0;
	scroll-behavior: smooth;
}
.rs-nav .rs-photos {
	margin-bottom: 0;
}
/* 'n장 중 m장 확정' at the end of the '사진 2 / 3' line (2026-11-25) */
.rs-current__title {
	margin: 0;
}
.rs-current__count {
	color: var(--text-soft);
	font-size: 0.85rem;
	font-weight: 400;
}

/* '가릴 곳' heading with the '가림 방식' button (2026-11-25: no method choice any more) */
.rs-list-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin: 20px 0 8px;
}
.rs-list-head .rs-sub {
	margin: 0;
}
.rs-list-head .rs-gear {
	min-height: 36px;
}

/* 2026-11-25: '가림 방식' at the end of the drawing/zoom row; confirming at the right end of the '가릴 곳' heading row. */
.rs-toolbar .rs-gear {
	margin-left: auto;
}
.rs-list-head .rs-confirm {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
}
.rs-list-head .rs-confirm .rs-check {
	margin: 0;
	white-space: nowrap;
}
.rs-list-head .rs-confirm .button {
	min-height: 40px;
}
.rs-list-head + .rs-warn {
	margin: 0 0 10px;
}

/* 2026-11-25: the '가릴 곳' heading row (with confirming) comes before the drawing/zoom row. */
.rs-review .rs-list-head {
	margin: 16px 0 10px;
}
.rs-review .rs-toolbar {
	margin-bottom: 10px;
}

/* The photo on screen, large, in front of '가릴 곳' (2026-11-25) */
.rs-sub .rs-sub__photo {
	margin-right: 4px;
	color: var(--dw-teal-dark);
	font-size: 1.3rem;
	font-weight: 700;
}

/* The boxes to mask, grouped in one card (2026-11-25); hidden while there is nothing in it. */
.rs-boxes {
	margin: 0 0 12px;
	padding: 4px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}
.rs-boxes:not(:has(li, p:not([hidden]), button:not([hidden]))) {
	display: none;
}
.rs-boxes .rs-item:first-child {
	border-top: 0;
}
.rs-boxes > .field-hint {
	margin: 8px 0;
}
.rs-boxes .rs-restore {
	margin: 8px 0;
}

/* Compact '1. 파일 고르기' (2026-11-25): the file type on one line next to its label, the drop zone as one
   low row (icon, then the two lines of text), and '모두 지우기' beside it once files are open. */
.rs-open .rs-mode {
	display: block;
	margin-bottom: 10px;
}
.rs-open .rs-mode legend {
	float: left;
	margin: 0 12px 0 0;
	padding: 0;
	line-height: 36px;
}
.rs-open .rs-mode__options {
	flex-wrap: nowrap;
}
.rs-open .rs-mode__opt {
	flex: 0 1 auto;
	min-height: 36px;
	padding: 0 14px;
	font-size: 0.95rem;
	white-space: nowrap;
}
.rs-open__row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	clear: both;
}
.rs-open .rs-drop {
	flex: 1 1 0;
	min-width: 0;
	flex-direction: row;
	justify-content: flex-start;
	gap: 12px;
	padding: 10px 14px;
	text-align: left;
}
.rs-drop__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.rs-open .rs-drop__main {
	font-size: 1rem;
}
.rs-open .rs-drop__sub:empty {
	display: none;
}
.rs-open .rs-wipe {
	flex: none;
	margin: 0;
}
.rs-open .rs-wipe__btn {
	height: 100%;
}
@media (max-width: 420px) {
	.rs-open .rs-mode legend {
		margin-right: 6px;
		font-size: 0.9rem;
	}
	.rs-open .rs-mode__options {
		gap: 6px;
	}
	.rs-open .rs-mode__opt {
		gap: 4px;
		padding: 0 8px;
		font-size: 0.9rem;
	}
	.rs-open .rs-mode__opt input {
		width: 16px;
		height: 16px;
	}
	.rs-open .rs-drop {
		gap: 10px;
		padding: 8px 10px;
	}
	.rs-open .rs-wipe__btn {
		padding: 0 10px;
	}
}

/* '다 끝났으면': why to wipe, and a wide '모두 지우기' (2026-11-25) */
.rs-finish__text {
	margin: 0 0 10px;
	color: var(--text-soft);
	font-size: 0.9rem;
	line-height: 1.6;
}
.rs-finish__btn {
	display: flex;
	width: 100%;
	justify-content: center;
}
/* A long file name is cut with an ellipsis (full name in its tooltip). */
.rs-sub .rs-sub__photo {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	vertical-align: bottom;
}
.rs-list-head .rs-sub {
	display: flex;
	flex: 0 1 auto;
	align-items: baseline;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
}
.rs-sub .rs-sub__photo {
	flex: 0 1 auto;
	min-width: 0;
}
.rs-sub .rs-sub__rest {
	flex: none;
	color: inherit;
	font-weight: inherit;
	white-space: nowrap;
}

/* '작업 내용 지우기' is not a step: set apart from the numbered panels (2026-11-25). */
.rs-finish {
	margin-top: 28px;
	border-style: dashed;
	background: var(--surface);
}
.rs-finish .rs-title {
	font-size: 1rem;
}

/* Panel 2 by stage (2026-11-25): no files → a hint; files but none chosen → the small pictures and a hint;
   the chosen one being read → the small pictures and its progress. */
.rs-review.is-none > :not(.rs-title):not(.rs-none),
.rs-review.is-empty > :not(.rs-title):not(.rs-nav):not(.rs-pick),
.rs-review.is-loading > :not(.rs-title):not(.rs-nav):not(.rs-loading) {
	display: none !important;
}
.rs-review:not(.is-none) .rs-none,
.rs-review:not(.is-empty) .rs-pick,
.rs-review:not(.is-loading) .rs-loading {
	display: none;
}
.rs-none {
	margin: 0;
}
.rs-pick {
	margin: 12px 0 0;
	padding: 12px 16px;
	border: 1px dashed var(--accent);
	border-radius: var(--radius);
	background: var(--accent-soft);
	color: var(--dw-teal-dark);
	font-weight: 500;
	text-align: center;
}
.rs-review.is-loading .rs-loading {
	margin-top: 12px;
}
.rs-loading {
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}
.rs-loading__title {
	margin: 0 0 10px;
	color: var(--dw-teal-dark);
	font-weight: 700;
}
.rs-loading progress {
	width: 100%;
	accent-color: var(--accent);
}
.rs-loading__step {
	margin: 6px 0 0;
	color: var(--text-soft);
	font-size: 0.875rem;
}

/* '작업 내용 지우기' in the warning colours (same as .rs-warn) so it reads as a caution (2026-11-25). */
.rs-finish {
	border: 1px solid #f0c27a;
	background: #fff4e5;
}
.rs-finish .rs-title {
	color: #7a4100;
}
.rs-finish .rs-finish__text {
	color: #7a4100;
}
.rs-finish .rs-finish__btn {
	border-color: #b3261e;
	background: #fff;
	color: #b3261e;
}
.rs-finish .rs-finish__btn:hover {
	background: #fdecea;
}

/* Every section folds (2026-11-25): the title is the button; a folded panel shows only its title. */
.tool-panel.is-folded > :not(.rs-title) {
	display: none !important;
}
.tool-panel.is-folded .rs-title {
	margin-bottom: 0;
}
.rs-fold {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.rs-fold::after {
	content: '';
	flex: none;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s;
}
.rs-fold[aria-expanded='false']::after {
	transform: rotate(-45deg);
}
.rs-fold:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 4px;
}

/* '3. 저장 및 공유': confirmed pictures as tiles to pick (2026-11-25) */
.rs-save__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}
.rs-save__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.rs-save__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	padding: 6px;
	border: 2px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	cursor: pointer;
}
.rs-save__item:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}
.rs-save__item.is-disabled {
	opacity: 0.6;
	cursor: default;
}
.rs-save__item input {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--accent);
}
.rs-save__item img {
	width: 88px;
	height: 88px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--surface);
}
.rs-save__name {
	max-width: 100%;
	overflow: hidden;
	font-size: 0.8rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.rs-save__item small {
	color: var(--text-soft);
	font-size: 0.75rem;
}
.rs-save .rs-warn {
	margin-top: 10px;
}


/* ‹ › as small round buttons (2026-11-25), for the photo strip in panel 2 and the save list in panel 3 */
.rs-arrow {
	display: grid;
	flex: none;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color: var(--dw-teal-dark);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rs-arrow:hover:not(:disabled) {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}
.rs-arrow:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.rs-arrow:disabled {
	opacity: 0.35;
	box-shadow: none;
	cursor: default;
}
.rs-strip {
	align-items: center;
}

/* The save list: a scrolling row of tiles on a background, like the photo strip (2026-11-25) */
.rs-save__strip {
	gap: 8px;
	margin: 0 0 12px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}
.rs-save__strip .rs-save__list {
	display: flex;
	flex: 1;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 2px 0 6px;
	overflow-x: auto;
	scroll-behavior: smooth;
}
.rs-save__strip .rs-save__list > li {
	flex: none;
	width: 104px;
}
.rs-photos__list,
.rs-save__list {
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}
.rs-finish .rs-finish__btn.is-done {
	border-color: #2e7d4f;
	background: #e8f5ee;
	color: #1f6b40;
	font-weight: 700;
}
.rs-save__summary {
	min-width: 0;
	color: var(--text-soft);
	font-size: 0.9rem;
}
.rs-save #save-note:empty {
	display: none;
}
