/* select-sheet (js/AppJs/select-sheet.js). Colours come from --ss-* variables, falling back to
   Bootstrap's, so the same list fits the dark landing page and the light/dark account area. */
.ss { position: relative; min-width: 0; }
.ss-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }

.ss-trigger { display: block; width: 100%; min-width: 0; text-align: left; cursor: pointer; }
.ss-value { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-trigger.ss-placeholder .ss-value { opacity: .65; }

.ss-backdrop { display: none; }
.ss-panel {
	display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1060;
	background: var(--ss-bg, var(--bs-body-bg, #fff)); color: var(--ss-text, var(--bs-body-color, #212529));
	border: 1px solid var(--ss-border, var(--bs-border-color, #dee2e6)); border-radius: 14px;
	box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .45); overflow: hidden;
}
.ss.ss-up .ss-panel { top: auto; bottom: calc(100% + 6px); }
.ss.ss-open .ss-panel { display: block; animation: ssDrop .14s ease-out; }
.ss-head { display: none; }

.ss-list { list-style: none; margin: 0; padding: 6px; max-height: 280px; overflow-y: auto; outline: none; overscroll-behavior: contain; }
.ss-option {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
	line-height: 1.35; overflow-wrap: anywhere; /* long names wrap instead of widening the page */
}
.ss-option span { flex: 1 1 auto; min-width: 0; }
.ss-option.ss-active { background: var(--ss-hover, rgba(var(--bs-primary-rgb, 13, 110, 253), .1)); }
.ss-option[aria-selected="true"] { color: var(--ss-accent, var(--bs-primary, #0d6efd)); font-weight: 600; }
.ss-tick { flex: 0 0 auto; visibility: hidden; font-size: 1.05em; }
.ss-option[aria-selected="true"] .ss-tick { visibility: visible; }

/* Phones: a bottom sheet — full width, big targets, the page behind it dimmed and still. */
@media (max-width: 600px) {
	html.ss-lock, html.ss-lock body { overflow: hidden; }
	.ss.ss-open .ss-backdrop { display: block; position: fixed; inset: 0; z-index: 1059; background: rgba(0, 0, 0, .55); animation: ssFade .18s ease-out; }
	.ss-panel, .ss.ss-up .ss-panel {
		position: fixed; left: 0; right: 0; top: auto; bottom: 0; border-radius: 20px 20px 0 0; border-bottom: 0;
		max-height: 72vh; display: none; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
	}
	.ss.ss-open .ss-panel { display: flex; animation: ssRise .22s cubic-bezier(.2, .9, .3, 1); }
	.ss-head {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 16px 18px 12px; border-bottom: 1px solid var(--ss-border, var(--bs-border-color, #dee2e6));
		font-weight: 600; font-size: 1rem;
	}
	.ss-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--ss-border, var(--bs-border-color, #ccc)); }
	.ss-close { background: none; border: 0; color: inherit; font-size: 1.25rem; padding: 4px; line-height: 1; cursor: pointer; opacity: .75; }
	.ss-list { max-height: none; flex: 1 1 auto; padding: 8px 10px 14px; }
	.ss-option { padding: 14px 14px; font-size: 1rem; min-height: 48px; }
}

@keyframes ssDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ssRise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ssFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ss-panel, .ss-backdrop { animation: none !important; } }
