/* Support — customer tickets (matches articles / link / store shell) */

.support-page-shell {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.support-app {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #121314;
	color: var(--text);
	font-family: var(--font-body);
}

.support-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
}

.support-wrap {
	max-width: 56rem;
	padding-bottom: 2rem;
}

/* ─── Hub tabs (tickets / articles) ─────────────────────────────────────── */
.support-hub-tabs {
	flex-shrink: 0;
}

.support-page-head,
.s-page-head {
	margin-bottom: 1.5rem;
}

.support-page-head__title,
.s-h1 {
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 0.35rem;
	color: var(--text);
}

.support-page-head__sub,
.s-sub {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 1.25rem;
	max-width: 50ch;
}

/* ─── Cards ───────────────────────────────────────────────────────────── */
.s-card {
	background: var(--bg-card);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1rem;
}

.s-card + .s-card {
	margin-top: 0;
}

.s-landing {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	flex-wrap: wrap;
	padding: 1.1rem 1.35rem;
}

.s-landing-text h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}

.s-landing-text p {
	margin: 0.2rem 0 0;
	color: var(--text-muted);
	font-size: 0.85rem;
	line-height: 1.5;
	max-width: 48ch;
}

/* ─── Help articles strip ───────────────────────────────────────────── */
.s-articles-head {
	margin-bottom: 1rem;
}

.s-articles-head h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}

.s-articles-head p {
	margin: 0.2rem 0 0;
	color: var(--text-muted);
	font-size: 0.82rem;
	line-height: 1.5;
}

.s-articles-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.s-article {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	padding: 0.75rem 1rem;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.s-article:hover {
	border-color: rgba(196, 70, 26, 0.55);
	background: var(--bg-card);
	transform: translateY(-1px);
	text-decoration: none;
}

.s-article-title {
	color: var(--text);
	font-weight: 600;
	font-size: 0.92rem;
	grid-column: 2 / 3;
	grid-row: 1;
}

.s-article-summary {
	grid-column: 2 / 3;
	grid-row: 2;
	font-size: 0.76rem;
	color: var(--text-muted);
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.s-article .s-cat-pill {
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
}

.s-article-arrow {
	grid-column: 3;
	grid-row: 1 / 3;
	color: var(--text-muted);
	font-size: 1.1rem;
}

.s-article:hover .s-article-arrow {
	color: var(--accent);
}

.support-browse-link {
	color: var(--accent);
	font-size: 0.85rem;
	text-decoration: none;
	font-weight: 600;
}

.support-browse-link:hover {
	text-decoration: underline;
}

.support-back-link {
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
}

.support-back-link:hover {
	color: var(--text);
}

/* ─── Forms ─────────────────────────────────────────────────────────── */
.s-input,
.s-textarea,
.s-select {
	width: 100%;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	color: var(--text);
	border-radius: 2px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 0.95rem;
	margin-bottom: 0.9rem;
}

.s-input:focus,
.s-textarea:focus {
	outline: none;
	border-color: rgba(196, 70, 26, 0.55);
}

.s-textarea {
	min-height: 120px;
	resize: vertical;
}

.s-label {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-muted);
	margin-bottom: 0.35rem;
	font-weight: 700;
}

.s-help {
	font-size: 0.78rem;
	color: var(--text-muted);
	margin: -0.5rem 0 0.9rem;
	line-height: 1.4;
}

.s-help code {
	background: var(--bg-deeper);
	padding: 0.1rem 0.35rem;
	border-radius: 2px;
	font-size: 0.85em;
}

.s-btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 0.65rem 1.35rem;
	border: none;
	border-radius: 2px;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	font-size: 0.82rem;
	text-decoration: none;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.s-btn:hover {
	background: var(--accent-glow);
	text-decoration: none;
	color: #fff;
}

.s-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.s-btn--ghost {
	background: transparent;
	border: 1px solid var(--border-md);
	color: var(--text-muted);
}

.s-btn--ghost:hover {
	background: var(--bg-deeper);
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.2);
}

.s-row {
	display: flex;
	gap: 0.7rem;
	align-items: center;
}

.s-toast {
	padding: 0.8rem 1rem;
	border-radius: 2px;
	margin-bottom: 1rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.88rem;
}

.s-toast--ok {
	background: rgba(45, 222, 136, 0.1);
	color: #5ee89a;
	border: 1px solid rgba(45, 222, 136, 0.35);
}

.s-toast--err {
	background: rgba(227, 77, 62, 0.1);
	color: #f08070;
	border: 1px solid rgba(227, 77, 62, 0.35);
}

.support-signed-banner {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	padding: 0.65rem 0.85rem;
	background: rgba(45, 222, 136, 0.08);
	border: 1px solid rgba(45, 222, 136, 0.3);
	border-radius: 2px;
	margin-bottom: 0.9rem;
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--text-muted);
}

.support-signed-banner__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.05rem;
	color: #5ee89a;
}

.support-signed-banner__icon svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* ─── Category picker ─────────────────────────────────────────────────── */
.s-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.8rem;
}

.s-cat {
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	padding: 1.1rem 1.2rem;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	text-align: left;
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.s-cat:hover {
	border-color: rgba(196, 70, 26, 0.55);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	text-decoration: none;
}

.s-cat-icon {
	margin-bottom: 0.35rem;
}

.support-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 2px;
	border: 1px solid var(--border-md);
	background: rgba(255, 255, 255, 0.04);
}

.support-cat-icon--md {
	width: 2.5rem;
	height: 2.5rem;
}

.support-cat-icon--md svg {
	width: 1.35rem;
	height: 1.35rem;
}

.support-cat-icon--sm {
	width: 1.15rem;
	height: 1.15rem;
	border: none;
	background: transparent;
}

.support-cat-icon--sm svg {
	width: 0.85rem;
	height: 0.85rem;
}

.s-cat-pill--with-icon {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.support-form-cat-head {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.support-form-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.support-form-steps__item {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
	color: var(--text-muted);
}
.support-form-steps__item.is-active {
	border-color: rgba(255, 255, 255, 0.35);
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}
.support-form-steps__item.is-done {
	color: var(--text);
	opacity: 0.75;
}

.support-form-step {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin-bottom: 1rem;
}
.support-form-field {
	margin-bottom: 0.85rem;
}
.support-form-field .s-field-control {
	margin-bottom: 0;
}

/* Custom select (Play sb-sort, full width) */
.s-field-select.sb-sort {
	width: 100%;
	height: auto;
	min-height: 44px;
	display: block;
	margin-bottom: 0;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
}
.s-field-select .sb-sort__trigger {
	width: 100%;
	justify-content: space-between;
	padding: 0.7rem 0.9rem;
	height: auto;
	min-height: 44px;
}
.s-field-select .sb-sort__field {
	flex: 1;
	min-width: 0;
	width: 100%;
	padding-right: 1.25rem;
}
.s-field-select .sb-sort__value {
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	color: var(--text);
}
.s-field-select .sb-sort__value.is-placeholder {
	color: var(--text-muted);
	font-weight: 500;
}
.s-field-select .s-field-select__menu {
	left: 0;
	right: 0;
	width: 100%;
	max-height: 240px;
	overflow-y: auto;
}

/* Number input with steppers */
.s-number-input {
	display: flex;
	align-items: stretch;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	overflow: hidden;
}
.s-number-input__field {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	color: var(--text);
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 0.95rem;
}
.s-number-input__field:focus {
	outline: none;
}
.s-number-input__steppers {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--border-md);
	flex-shrink: 0;
}
.s-number-input__step {
	width: 2.1rem;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: rgba(255, 255, 255, 0.03);
	color: var(--text-muted);
	cursor: pointer;
	padding: 0;
}
.s-number-input__step + .s-number-input__step {
	border-top: 1px solid var(--border-md);
}
.s-number-input__step:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}
.s-number-input__step svg {
	width: 1rem;
	height: 1rem;
}
.s-number-input.is-disabled {
	opacity: 0.55;
}

/* True / False toggle */
.s-bool-field {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}
.s-bool-field__opt {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--border-md);
	border-radius: 2px;
	background: var(--bg-deeper);
	color: var(--text-muted);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.s-bool-field__opt:hover:not(:disabled) {
	border-color: rgba(255, 255, 255, 0.22);
	color: var(--text);
}
.s-bool-field__opt.is-active {
	border-color: rgba(196, 70, 26, 0.55);
	background: rgba(196, 70, 26, 0.12);
	color: var(--text);
}
.s-bool-field.is-disabled {
	opacity: 0.55;
}

/* Custom date field */
.s-date-field {
	position: relative;
}
.s-date-field.is-open .s-date-field__trigger {
	border-color: rgba(196, 70, 26, 0.55);
}
.s-date-field__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	text-align: left;
}
.s-date-field__trigger:hover:not(:disabled) {
	border-color: rgba(255, 255, 255, 0.22);
}
.s-date-field__trigger:focus-visible {
	outline: none;
	border-color: rgba(196, 70, 26, 0.55);
}
.s-date-field__text.is-placeholder {
	color: var(--text-muted);
}
.s-date-field__icon {
	display: flex;
	color: var(--text-muted);
	flex-shrink: 0;
}
.s-date-field__icon svg {
	width: 1.1rem;
	height: 1.1rem;
}
.s-date-field__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 200;
	padding: 0.75rem;
	background: rgba(32, 36, 42, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(12px) saturate(1.1);
	-webkit-backdrop-filter: blur(12px) saturate(1.1);
}
.s-date-field__panel[hidden] {
	display: none;
}
.s-date-field__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}
.s-date-field__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--text-muted);
	cursor: pointer;
}
.s-date-field__nav-btn:hover {
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}
.s-date-field__nav-btn svg {
	width: 1.1rem;
	height: 1.1rem;
}
.s-date-field__month {
	flex: 1;
	text-align: center;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text);
}
.s-date-field__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	margin-bottom: 0.35rem;
}
.s-date-field__weekday {
	text-align: center;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	padding: 0.2rem 0;
}
.s-date-field__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.s-date-field__day {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.1rem;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 2px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.s-date-field__day.is-empty {
	pointer-events: none;
	border: none;
}
.s-date-field__day:not(.is-empty):hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}
.s-date-field__day.is-today:not(.is-selected) {
	border-color: rgba(255, 255, 255, 0.18);
	color: var(--text);
}
.s-date-field__day.is-selected {
	background: rgba(196, 70, 26, 0.22);
	border-color: rgba(196, 70, 26, 0.55);
	color: #fff;
	box-shadow: inset 2px 0 0 var(--accent);
}
.s-date-field__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.65rem;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.s-date-field__footer-btn {
	border: none;
	background: transparent;
	color: var(--accent);
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	padding: 0.25rem 0.35rem;
}
.s-date-field__footer-btn:hover {
	color: var(--accent-glow);
}
.s-date-field__footer-btn--muted {
	color: var(--text-muted);
	margin-left: auto;
}
.s-date-field__footer-btn--muted:hover {
	color: var(--text);
}
.s-date-field.is-disabled {
	opacity: 0.55;
}

/* Player grid picker */
.pp-grid {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.pp-grid__selected {
	margin-bottom: 0;
}
.pp-grid__search {
	position: relative;
}
.pp-grid__search-icon {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
	height: 1rem;
	color: var(--text-muted);
	pointer-events: none;
	display: flex;
}
.pp-grid__search-icon svg {
	width: 100%;
	height: 100%;
}
.pp-grid__search-input {
	width: 100%;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	color: var(--text);
	border-radius: 2px;
	padding: 0.7rem 0.9rem 0.7rem 2.35rem;
	font: inherit;
	font-size: 0.95rem;
}
.pp-grid__search-input:focus {
	outline: none;
	border-color: rgba(196, 70, 26, 0.55);
}
.pp-grid__list {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-height: calc(5 * 3.35rem + 4 * 0.35rem);
	max-height: calc(5 * 3.35rem + 4 * 0.35rem);
	overflow-y: auto;
	border: 1px solid var(--border-md);
	border-radius: 2px;
	background: var(--bg-deeper);
}
.pp-grid__row {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: none;
	border-bottom: 1px solid var(--border);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.pp-grid__row:last-child {
	border-bottom: none;
}
.pp-grid__row:hover {
	background: rgba(255, 255, 255, 0.04);
}
.pp-grid__row.is-active {
	background: rgba(196, 70, 26, 0.12);
	box-shadow: inset 2px 0 0 var(--accent);
}
.pp-grid__row-main {
	flex: 1;
	min-width: 0;
}
.pp-grid__status {
	padding: 1rem 0.9rem;
	color: var(--text-muted);
	font-size: 0.85rem;
	text-align: center;
}

/* Server banner grid */
.support-server-banner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 0.65rem;
}
.support-server-banner-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	border: 1px solid var(--border-md);
	border-radius: 2px;
	background: var(--bg-deeper);
	overflow: hidden;
	cursor: pointer;
	font: inherit;
	color: var(--text);
	text-align: left;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.support-server-banner-card:hover {
	border-color: rgba(255, 255, 255, 0.22);
}
.support-server-banner-card.is-active {
	border-color: rgba(196, 70, 26, 0.65);
	box-shadow: 0 0 0 1px rgba(196, 70, 26, 0.35);
}
.support-server-banner-card__img {
	width: 100%;
	aspect-ratio: 16 / 5;
	object-fit: cover;
	display: block;
	background: rgba(0, 0, 0, 0.35);
}
.support-server-banner-card__name {
	padding: 0.55rem 0.65rem;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.support-form-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.s-cat-title {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--text);
}

.s-cat-desc {
	font-size: 0.78rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* ─── Ticket list ─────────────────────────────────────────────────────── */
.s-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.s-list li {
	padding: 0.8rem 1rem;
	background: var(--bg-deeper);
	border-radius: 2px;
	border: 1px solid transparent;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	transition: border-color 0.12s ease;
}

.s-list li:hover {
	border-color: var(--border-md);
}

.s-list a,
.s-list-main {
	color: var(--text);
	text-decoration: none;
	flex: 1;
	font-weight: 600;
	font-size: 0.92rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
}

.s-list a:hover {
	color: var(--accent);
}

.s-list li.clickable-row {
	cursor: pointer;
}

.s-list li.clickable-row:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.s-list-meta {
	display: flex;
	gap: 0.4rem;
	align-items: center;
	flex-shrink: 0;
}

.s-unread-dot {
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.s-cat-pill {
	font-size: 0.65rem;
	padding: 0.1rem 0.5rem;
	border-radius: 2px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: rgba(255, 255, 255, 0.06);
}

.s-pill {
	font-size: 0.68rem;
	padding: 0.15rem 0.55rem;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}

.s-pill--open {
	background: rgba(234, 179, 8, 0.12);
	color: #eab308;
}

.s-pill--wait {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
}

.s-pill--done {
	background: rgba(45, 222, 136, 0.12);
	color: #5ee89a;
}

.s-pill--new {
	background: rgba(196, 70, 26, 0.15);
	color: var(--accent-glow);
}

.support-list-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.support-list-head h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.support-list-count {
	font-size: 0.7rem;
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.support-empty-card {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.95rem;
	padding: 2rem 1.5rem;
}

.support-empty-card__icon {
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 auto 0.75rem;
	color: var(--text-muted);
	opacity: 0.55;
}

.support-empty-card__icon svg {
	width: 100%;
	height: 100%;
}

.support-empty-card__title {
	color: var(--text);
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 0.3rem;
}

.support-ticket-id {
	font-size: 0.75rem;
	color: var(--text-muted);
}

.support-ticket-subject {
	font-size: 1.15rem;
	font-weight: 700;
	margin-top: 0.1rem;
	font-family: var(--font-display);
	letter-spacing: 0.02em;
}

.support-ticket-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1rem;
}

/* ─── Ticket detail (/support?id=) — full-page chat ───────────────────── */
:root {
	--support-nav-height: 64px;
}

.site-page__content:has(.support-page-shell--chat) {
	min-height: 0;
	overflow: hidden;
}

.site-page__scroll:has(.support-page-shell--chat) {
	overflow: hidden;
}

.site-page__main:has(.support-page-shell--chat) {
	overflow: hidden;
	min-height: 0;
	padding: 0;
}

.site-page__scroll:has(.support-page-shell--chat) .site-footer {
	display: none;
}

.support-page-shell--chat {
	display: block;
	min-height: 0;
	overflow: hidden;
}

/* Fixed panel below nav — does not depend on flex parents */
.support-ticket-view {
	position: fixed;
	top: var(--support-nav-height);
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	background: #121314;
	overflow: hidden;
}

.support-ticket-topbar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.85rem;
	border-bottom: 1px solid var(--border-md);
	background: #18191a;
}

.support-ticket-topbar .support-back-link {
	flex-shrink: 0;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0.35rem 0.5rem;
	margin: 0;
}

.support-ticket-topbar__info {
	flex: 1;
	min-width: 0;
}

.support-ticket-topbar__subject {
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.support-ticket-topbar__meta {
	margin: 0.12rem 0 0;
	font-size: 0.68rem;
	color: var(--text-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	line-height: 1.3;
}

.support-ticket-topbar__meta .s-cat-pill {
	font-size: 0.62rem;
}

.support-ticket-topbar .sc-status {
	flex-shrink: 0;
	font-size: 0.62rem;
	padding: 0.2rem 0.45rem;
}

.support-ticket-toast {
	margin: 0;
	border-radius: 0;
	flex-shrink: 0;
}

.sc-thread--ticket {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.sc-messages.sc-messages--ticket {
	flex: 1 1 auto;
	min-height: 0 !important;
	max-height: none !important;
	height: 0;
	overflow-x: hidden;
	overflow-y: scroll;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	padding: 0.85rem 1rem 1rem;
	margin: 0 !important;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	/* Block layout — flex on scroll container prevents overflow scrolling */
	display: block;
}

.sc-messages--ticket .sc-messages-empty {
	padding: 2rem 1rem;
	text-align: center;
}

.sc-messages--ticket .sc-msg {
	display: block;
	width: fit-content;
	max-width: min(28rem, calc(100vw - 2rem));
	margin-bottom: 0.55rem;
	clear: both;
}

.sc-messages--ticket .sc-msg--mine {
	margin-left: auto;
	margin-right: 0;
}

.sc-messages--ticket .sc-msg--theirs {
	margin-right: auto;
	margin-left: 0;
}

.support-ticket-view .sc-bar-wrap {
	flex-shrink: 0;
}

.sc-thread {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.sc-messages--ticket .sc-msg-ident {
	flex: 0 1 auto;
}

.sc-messages--ticket .sc-msg-staff {
	flex-wrap: wrap;
	align-items: center;
}

.sc-messages--ticket .sc-msg-staff .sc-msg-time {
	margin-left: 0;
}

.sc-messages--ticket .sc-msg-head--mine {
	flex-direction: row;
	justify-content: flex-end;
	flex-wrap: nowrap;
}

.sc-messages--ticket .sc-msg-head--mine .sc-msg-time {
	margin-left: 0.35rem;
	margin-right: 0;
}

.sc-messages--ticket .sc-msg-body,
.sc-messages--ticket .sc-attachments {
	max-width: 100%;
}

.sc-messages-empty {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.88rem;
	margin: auto;
	padding: 2rem 1rem;
	line-height: 1.5;
}

.sc-bar-wrap {
	flex-shrink: 0;
	border-top: 1px solid var(--border-md);
	background: #141516;
}

.sc-bar {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 0.75rem;
	margin: 0;
	width: 100%;
}

.sc-bar-input {
	flex: 1;
	min-width: 0;
	min-height: 2.25rem;
	max-height: 7.5rem;
	margin: 0;
	padding: 0.5rem 0.7rem;
	resize: none;
	border: 1px solid var(--border-md);
	border-radius: 2px;
	background: var(--bg-deeper);
	color: var(--text);
	font: inherit;
	font-size: 0.92rem;
	line-height: 1.35;
	align-self: center;
}

.sc-bar-input:focus {
	outline: none;
	border-color: rgba(196, 70, 26, 0.55);
}

.sc-bar-send {
	flex-shrink: 0;
	margin: 0;
	padding: 0.45rem 0.9rem;
	min-height: 2.25rem;
	font-size: 0.75rem;
}

.sc-bar-attach {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-md);
	border-radius: 2px;
	background: var(--bg-deeper);
	color: var(--text-muted);
	cursor: pointer;
	padding: 0;
}

.sc-bar-attach:hover:not(:disabled) {
	border-color: rgba(196, 70, 26, 0.45);
	color: var(--text);
}

.sc-bar-attach:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.sc-bar-attach svg {
	width: 1.05rem;
	height: 1.05rem;
}

.sc-bar-files {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0.75rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	width: 100%;
}

.sc-bar-files li {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	padding: 0.2rem 0.45rem;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	max-width: 100%;
}

.sc-bar-files li span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-bar-error {
	margin: 0;
	padding: 0.4rem 0.75rem 0;
	font-size: 0.78rem;
	color: #f08070;
	width: 100%;
}

.sc-bar-counter {
	padding: 0 0.75rem 0.35rem;
	font-size: 0.68rem;
	color: var(--text-muted);
	text-align: right;
	width: 100%;
}

.sc-bar-counter.near {
	color: #eab308;
}

.sc-bar-counter.over {
	color: #f08070;
}

.sc-bar-hint {
	margin: 0;
	padding: 0 0.75rem 0.4rem;
	font-size: 0.68rem;
	color: var(--text-muted);
	width: 100%;
}

.sc-bar-resolved {
	margin: 0;
	padding: 0.65rem 0.85rem;
	font-size: 0.82rem;
	text-align: center;
}

.sc-file-input--compact {
	flex-shrink: 0;
}

/* ─── Player picker ───────────────────────────────────────────────────── */
.pp {
	position: relative;
	margin-bottom: 0.9rem;
}

.pp-input {
	width: 100%;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	color: var(--text);
	border-radius: 2px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 0.95rem;
}

.pp-results {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--bg-card);
	border: 1px solid var(--border-md);
	border-top: none;
	border-radius: 0 0 2px 2px;
	max-height: 260px;
	overflow-y: auto;
	z-index: 50;
	display: none;
}

.pp-results.open {
	display: block;
}

.pp-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem 0.8rem;
	cursor: pointer;
	border-bottom: 1px solid var(--border);
}

.pp-item:last-child {
	border-bottom: none;
}

.pp-item:hover {
	background: var(--bg-deeper);
}

.pp-avatar {
	width: 32px;
	height: 32px;
	border-radius: 2px;
	background: var(--bg-deeper);
	object-fit: cover;
	flex-shrink: 0;
}

.pp-avatar-ph {
	width: 32px;
	height: 32px;
	border-radius: 2px;
	background: var(--border-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--text-muted);
	font-size: 0.75rem;
	flex-shrink: 0;
}

.pp-name {
	color: var(--text);
	font-weight: 600;
	font-size: 0.9rem;
}

.pp-sid {
	color: var(--text-muted);
	font-family: monospace;
	font-size: 0.7rem;
}

.pp-empty,
.pp-loading {
	padding: 0.7rem 0.9rem;
	color: var(--text-muted);
	font-size: 0.8rem;
	text-align: center;
}

.pp-selected {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.6rem 0.8rem;
	background: rgba(45, 222, 136, 0.08);
	border: 1px solid rgba(45, 222, 136, 0.3);
	border-radius: 2px;
	margin-bottom: 0.9rem;
}

.pp-selected-remove {
	margin-left: auto;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 0.9rem;
	padding: 0.2rem 0.5rem;
	border-radius: 2px;
	background: transparent;
	border: none;
	font: inherit;
}

.pp-selected-remove:hover {
	background: rgba(227, 77, 62, 0.14);
	color: #f08070;
}

/* ─── Chat ────────────────────────────────────────────────────────────── */
.sc-messages {
	flex: 1 1 auto;
	min-height: 12rem;
	max-height: min(55vh, calc(100dvh - 22rem));
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 0;
	margin: 0 0 1rem;
}

.sc-msg {
	background: var(--bg-deeper);
	border-radius: 2px;
	padding: 0.75rem 1rem;
	max-width: min(85%, 100%);
	min-width: 0;
	overflow: hidden;
	border-left: 3px solid var(--accent);
}

.sc-msg--mine {
	align-self: flex-end;
	border-left-color: #5ee89a;
	background: rgba(45, 222, 136, 0.06);
}

.sc-msg--theirs {
	align-self: flex-start;
	border-left-color: var(--accent);
}

.sc-msg-head {
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-bottom: 0.3rem;
	display: flex;
	gap: 0.4rem;
	align-items: center;
	flex-wrap: wrap;
}

.sc-msg-head--mine {
	flex-direction: row-reverse;
	justify-content: flex-start;
}

.sc-msg-head--mine .sc-msg-avatar {
	width: 28px;
	height: 28px;
}

.sc-msg-head--mine .sc-msg-time {
	margin-left: 0;
	margin-right: auto;
}

.sc-msg-name {
	color: var(--text);
	font-weight: 600;
}

.sc-msg-time {
	margin-left: auto;
}

.sc-msg-staff {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.45rem;
}

.sc-msg-avatar {
	width: 36px;
	height: 36px;
	border-radius: 2px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--bg-card);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
}

.sc-msg-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-msg-avatar-fb {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-muted);
}

.sc-msg-ident {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
	flex: 1;
}

.sc-msg-name--big {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.15;
}

.sc-msg-role-tag {
	font-size: 0.7rem;
	color: var(--text-muted);
}

.sc-msg-staff .sc-msg-time {
	font-size: 0.68rem;
	color: var(--text-muted);
	margin-left: auto;
	flex-shrink: 0;
}

.sc-msg-body {
	font-size: 0.9rem;
	line-height: 1.5;
	max-width: 100%;
	min-width: 0;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.sc-msg-body pre,
.sc-msg-body code {
	max-width: 100%;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.sc-msg-body a {
	color: var(--accent-glow);
	text-decoration: underline;
}

.sc-msg-body a:hover {
	text-decoration: none;
}

.sc-msg-body a.art-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.15rem 0.55rem;
	border-radius: 2px;
	background: rgba(196, 70, 26, 0.12);
	border: 1px solid rgba(196, 70, 26, 0.35);
	color: var(--accent-glow);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sc-msg-body a.art-link::before {
	content: "📘";
}

.sc-msg-body a.art-link:hover {
	background: rgba(196, 70, 26, 0.2);
	border-color: var(--accent);
}

.sc-msg-body .sc-q {
	margin: 0.35rem 0;
	padding: 0.4rem 0.7rem;
	border-left: 3px solid var(--border-md);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 0 2px 2px 0;
}

.sc-msg-body .sc-q-author {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.15rem;
}

.sc-msg-body .sc-q-body {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	opacity: 0.85;
}

.sc-msg--internal {
	display: none !important;
}

.sc-status {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 2px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	flex-shrink: 0;
}

.sc-status--open {
	background: rgba(234, 179, 8, 0.12);
	color: #eab308;
}

.sc-status--waiting_user {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
}

.sc-status--resolved {
	background: rgba(45, 222, 136, 0.12);
	color: #5ee89a;
}

.sc-error {
	color: #f08070;
	font-size: 0.8rem;
	margin: 0.4rem 0 0;
}

.s-ticket-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	font-size: 0.7rem;
	color: var(--text-muted);
	margin-top: 0.3rem;
	align-items: center;
}

.s-ticket-meta code {
	background: var(--bg-deeper);
	padding: 0.1rem 0.35rem;
	border-radius: 2px;
	color: var(--text-muted);
	font-size: 0.7rem;
}

.support-resolved-note {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-top: 1rem;
}

/* Discord card */
.s-discord {
	display: flex;
	gap: 1rem;
	align-items: center;
	background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.04));
	border: 1px solid rgba(88, 101, 242, 0.35);
	flex-wrap: wrap;
}

.s-discord-icon {
	width: 48px;
	height: 48px;
	border-radius: 2px;
	background: rgba(88, 101, 242, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	flex-shrink: 0;
}

.s-btn--discord {
	background: #5865f2;
}

.s-btn--discord:hover {
	background: #4752c4;
}

.s-discord-title {
	font-weight: 700;
	color: var(--text);
	font-size: 0.95rem;
}

.s-discord-sub {
	color: var(--text-muted);
	font-size: 0.8rem;
	margin-top: 0.15rem;
	line-height: 1.5;
}

/* Attachments / upload hints */
.sc-attach-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.sc-attach {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	padding: 0.35rem 0.6rem;
	text-decoration: none;
	color: var(--text-muted);
	font-size: 0.75rem;
	max-width: 100%;
}

.sc-attach:hover {
	border-color: rgba(196, 70, 26, 0.55);
	color: var(--text);
	text-decoration: none;
}

.sc-counter {
	display: flex;
	justify-content: flex-end;
	font-size: 0.7rem;
	color: var(--text-muted);
	margin: -0.6rem 0 0.6rem;
	font-variant-numeric: tabular-nums;
}

.sc-counter.near {
	color: #eab308;
}

.sc-counter.over {
	color: #f08070;
	font-weight: 600;
}

.sc-upload-hint {
	font-size: 0.72rem;
	color: var(--text-dim);
	margin-top: 0.3rem;
	line-height: 1.4;
}

.sc-attach-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: transparent;
	border: 1px dashed var(--border-md);
	color: var(--text-muted);
	padding: 0.4rem 0.7rem;
	border-radius: 2px;
	font-size: 0.75rem;
	cursor: pointer;
	margin-top: 0.4rem;
}

.sc-attach-btn:hover {
	border-color: rgba(196, 70, 26, 0.55);
	color: var(--accent);
}

.sc-attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.55rem;
}

.sc-attach--image {
	padding: 0;
	border: none;
	background: transparent;
	max-width: min(100%, 280px);
}

.sc-attach--image img {
	display: block;
	max-width: 100%;
	max-height: 200px;
	border-radius: 4px;
	border: 1px solid var(--border-md);
}

.sc-attach-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 12rem;
}

.sc-attach-size {
	opacity: 0.75;
	font-size: 0.68rem;
}

.sc-file-input {
	margin: 0.5rem 0 0.75rem;
}

.sc-file-btn {
	font-size: 0.8rem;
	padding: 0.45rem 0.85rem;
}

.sc-file-hint {
	display: block;
	font-size: 0.72rem;
	color: var(--text-dim);
	margin-top: 0.35rem;
}

.sc-file-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.sc-file-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	font-size: 0.78rem;
	color: var(--text-muted);
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	padding: 0.35rem 0.55rem;
}

.sc-file-remove {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0 0.25rem;
}

.sc-file-remove:hover {
	color: #f08070;
}

.pn-order-picker {
	margin-bottom: 0.25rem;
}

.pn-order-picker__detail {
	margin-top: 0.55rem;
	padding: 0.65rem 0.75rem;
	background: var(--bg-deeper);
	border: 1px solid var(--border-md);
	border-radius: 2px;
	font-size: 0.82rem;
	line-height: 1.45;
}

.pn-order-picker__meta {
	color: var(--text-muted);
	font-size: 0.75rem;
}

.pn-order-picker__toggle {
	margin-top: 0.65rem;
	padding: 0.4rem 0.75rem !important;
	font-size: 0.78rem !important;
}

.support-signin-card {
	text-align: center;
}

.support-signin-card p {
	margin-bottom: 1rem;
	color: var(--text-muted);
}

@media (max-width: 640px) {
	.support-page-head__title,
	.s-h1 {
		font-size: 1.85rem;
	}

	.s-landing {
		flex-direction: column;
		align-items: flex-start;
	}

	.sc-messages {
		max-height: min(50vh, calc(100dvh - 18rem));
	}

	.support-ticket-topbar {
		padding: 0.5rem 0.65rem;
	}

	.sc-messages.sc-messages--ticket {
		padding: 0.65rem 0.65rem 0.85rem;
	}

	.sc-bar {
		padding: 0.45rem 0.5rem;
	}
}
