/* R2S instructor dashboard + tablet sign-in sheet. Neutral, theme-agnostic. */
.r2spm-dash,
.r2spm-signin-body {
	--r2spm-text: #1d2327;
	--r2spm-muted: #646970;
	--r2spm-border: #e2e4e7;
	--r2spm-bg: #f6f7f9;
	--r2spm-card: #ffffff;
	--r2spm-accent: #1f5fae;
	--r2spm-accent-dark: #174a88;
	--r2spm-success: #1a7f37;
	--r2spm-success-bg: #e8f5ec;
	--r2spm-danger: #b42318;
	--r2spm-danger-bg: #fdecea;
	--r2spm-warn-bg: #fff6e0;
	--r2spm-radius: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--r2spm-text);
	line-height: 1.45;
}

.r2spm-dash {
	max-width: min(1100px, 100%) !important;
	margin: 0 auto;
	box-sizing: border-box;
	font-size: 16px;
}
.r2spm-dash *,
.r2spm-signin-body * { box-sizing: border-box; }
.r2spm-dash h2, .r2spm-dash h3, .r2spm-dash h4 { margin: 0 0 .5em; line-height: 1.25; }
.r2spm-dash h2 { font-size: 1.6rem; }
.r2spm-dash h3 { font-size: 1.15rem; }
.r2spm-dash h4 { font-size: 1rem; margin-top: 1.25rem; }
.r2spm-dash a { color: var(--r2spm-accent); }

.r2spm-muted { color: var(--r2spm-muted); }
.r2spm-small { font-size: .85rem; }
.r2spm-pos { color: var(--r2spm-success); font-weight: 600; }
.r2spm-neg { color: var(--r2spm-danger); font-weight: 600; }

/* Layout */
.r2spm-header {
	display: flex; flex-wrap: wrap; gap: 1rem;
	align-items: flex-start; justify-content: space-between;
	margin: 0 0 1.25rem;
}
.r2spm-header p { margin: .25rem 0 0; }
.r2spm-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
.r2spm-grid > * { min-width: 0; } /* let wide tables scroll inside their card instead of stretching the column past the screen on phones */
.r2spm-card {
	background: var(--r2spm-card);
	border: 1px solid var(--r2spm-border);
	border-radius: var(--r2spm-radius);
	padding: 1.25rem 1.4rem;
	margin: 0 0 1.25rem;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

/* Stats */
.r2spm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.r2spm-stat {
	background: var(--r2spm-card); border: 1px solid var(--r2spm-border); border-radius: var(--r2spm-radius);
	padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem;
}
.r2spm-stat__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--r2spm-muted); }
.r2spm-stat__value { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.r2spm-stat--warn { background: var(--r2spm-warn-bg); }
.r2spm-stat .r2spm-btn { align-self: flex-start; }

/* Tables */
.r2spm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.r2spm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.r2spm-table th, .r2spm-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--r2spm-border); vertical-align: top; }
.r2spm-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--r2spm-muted); font-weight: 600; }
.r2spm-table tbody tr:hover { background: #fafbfc; }
.r2spm-table--compact td { font-size: .85rem; }
.r2spm-table code { font-size: .85rem; background: #f0f2f4; padding: .1rem .35rem; border-radius: 4px; }

/* Badges */
.r2spm-badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #eef0f2; color: var(--r2spm-text); vertical-align: middle; }
.r2spm-badge--pending { background: var(--r2spm-warn-bg); color: #8a5a00; }
.r2spm-badge--issued, .r2spm-badge--sent { background: var(--r2spm-success-bg); color: var(--r2spm-success); }
.r2spm-badge--failed { background: var(--r2spm-danger-bg); color: var(--r2spm-danger); }

/* Notices */
.r2spm-notice { padding: .8rem 1rem; border-radius: 8px; margin: 0 0 1rem; border-left: 4px solid; font-weight: 500; }
.r2spm-notice--success { background: var(--r2spm-success-bg); border-color: var(--r2spm-success); }
.r2spm-notice--error { background: var(--r2spm-danger-bg); border-color: var(--r2spm-danger); }
.r2spm-notice--warn { background: var(--r2spm-warn-bg); border-color: #d9a200; }
.r2spm-nowrap { white-space: nowrap; }

/* Forms */
.r2spm-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem 1rem; margin-bottom: 1rem; align-items: end; }
.r2spm-fields--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
.r2spm-span-2 { grid-column: span 2; }
.r2spm-dash label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; }
.r2spm-dash label .r2spm-muted { font-weight: 400; }
.r2spm-dash input[type=text], .r2spm-dash input[type=email], .r2spm-dash input[type=date],
.r2spm-dash input[type=password], .r2spm-dash select {
	width: 100%; font: inherit; font-weight: 400; padding: .55rem .7rem; min-height: 42px;
	border: 1px solid #c3c7cc; border-radius: 6px; background: #fff; color: var(--r2spm-text);
}
.r2spm-dash .r2spm-verses-form input[type=number], .r2spm-dash .r2spm-verses-form textarea {
	width: 100%; font: inherit; font-weight: 400; padding: .55rem .5rem; min-height: 42px;
	border: 1px solid #c3c7cc; border-radius: 6px; background: #fff; color: var(--r2spm-text);
}
.r2spm-dash .r2spm-verses-form textarea { resize: vertical; }
.r2spm-dash input:focus, .r2spm-dash select:focus { outline: 2px solid var(--r2spm-accent); outline-offset: 1px; border-color: var(--r2spm-accent); }
.r2spm-check { flex-direction: row !important; align-items: center; font-weight: 400 !important; margin-bottom: .6rem; }

/* Buttons */
.r2spm-btn, .r2spm-dash #wp-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
	padding: .65rem 1.1rem; min-height: 42px; border-radius: 8px; cursor: pointer;
	background: var(--r2spm-accent); color: #fff !important; border: 1px solid var(--r2spm-accent);
	text-decoration: none !important; white-space: nowrap;
}
.r2spm-btn:hover, .r2spm-dash #wp-submit:hover { background: var(--r2spm-accent-dark); }
.r2spm-btn[disabled] { opacity: .5; cursor: not-allowed; }
.r2spm-btn--ghost { background: #fff; color: var(--r2spm-text) !important; border-color: #c3c7cc; }
.r2spm-btn--ghost:hover { background: #f3f4f6; }
.r2spm-btn--danger { background: #fff; color: var(--r2spm-danger) !important; border-color: #f0b4ae; }
.r2spm-btn--danger:hover { background: var(--r2spm-danger-bg); }
.r2spm-btn--primary { background: var(--r2spm-success); border-color: var(--r2spm-success); }
.r2spm-btn--primary:hover { background: #136c2e; }
.r2spm-btn--small { padding: .35rem .7rem; min-height: 34px; font-size: .85rem; }
.r2spm-btn--large { padding: .9rem 1.5rem; font-size: 1.05rem; }

.r2spm-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.r2spm-form--inline { display: inline; margin: 0; }
.r2spm-inline-edit > summary { list-style: none; }
.r2spm-inline-edit > summary::-webkit-details-marker { display: none; }
.r2spm-inline-edit[open] { flex-basis: 100%; }
.r2spm-inline-edit[open] form {
	display: block; margin-top: .5rem; padding: .8rem; border: 1px solid var(--r2spm-border); border-radius: 8px; background: #fafbfc; min-width: 320px;
}
.r2spm-inline-edit[open] .r2spm-fields { grid-template-columns: 1fr; }
.r2spm-details > summary { cursor: pointer; font-weight: 600; }
.r2spm-details[open] > summary { margin-bottom: 1rem; }
/* Optional class name + location: compact disclosure inside the class form. */
.r2spm-more { margin: -.1rem 0 0; }
.r2spm-more > summary { list-style: none; }
.r2spm-more > summary::-webkit-details-marker { display: none; }
.r2spm-more__toggle {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .2rem .1rem; cursor: pointer;
	font-size: .9rem; font-weight: 600; color: var(--r2spm-accent); border-radius: 6px; -webkit-tap-highlight-color: transparent;
}
.r2spm-more__toggle::before {
	content: "+"; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 1.25rem; height: 1.25rem; border: 1.5px solid currentColor; border-radius: 50%; font-size: .95rem; line-height: 1; font-weight: 700;
}
.r2spm-more[open] > .r2spm-more__toggle::before { content: "\2212"; }
.r2spm-more__toggle:hover { color: var(--r2spm-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.r2spm-more__toggle:focus-visible { outline: 2px solid var(--r2spm-accent); outline-offset: 2px; }
.r2spm-more__toggle .r2spm-muted { font-weight: 400; }
.r2spm-more__toggle .r2spm-tip { cursor: default; flex: 0 0 auto; }
.r2spm-more__label { min-width: 0; }
.r2spm-more__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: .8rem 1rem; padding: .5rem 0 .2rem; }
@media (max-width: 820px) { .r2spm-more__body { grid-template-columns: 1fr; } }
.r2spm-submit-panel { border-color: #b7d7c1; background: #fbfefc; }

/* Login (wp_login_form) */
.r2spm-login { max-width: 440px; margin: 2rem auto; }
.r2spm-login form p { margin: 0 0 .9rem; }
.r2spm-login label { display: block; }
.r2spm-login input[type=text], .r2spm-login input[type=password] { margin-top: .3rem; }
.r2spm-login .login-remember label { display: flex; flex-direction: row; gap: .4rem; align-items: center; font-weight: 400; }

@media (max-width: 820px) {
	.r2spm-grid, .r2spm-stats { grid-template-columns: 1fr; }
	.r2spm-fields, .r2spm-fields--3 { grid-template-columns: 1fr; }
	.r2spm-span-2 { grid-column: auto; }
}

/* ---------- Tablet sign-in sheet (standalone page) ---------- */
.r2spm-signin-body { margin: 0; background: var(--r2spm-bg); min-height: 100vh; }
.r2spm-signin { max-width: 640px; margin: 0 auto; padding: 5vh 1.5rem 2rem; }
.r2spm-signin header { text-align: center; margin-bottom: 1.5rem; }
.r2spm-signin h1 { font-size: 2.2rem; margin: .2rem 0 .4rem; }
.r2spm-signin__eyebrow { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--r2spm-accent); margin: 0; }
.r2spm-signin__form {
	background: #fff; border: 1px solid var(--r2spm-border); border-radius: 16px; padding: 1.75rem;
	display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 4px 16px rgba(16, 24, 40, .06);
}
.r2spm-signin__form label { display: flex; flex-direction: column; gap: .4rem; font-size: 1.15rem; font-weight: 600; }
.r2spm-signin__form input {
	font: inherit; font-size: 1.4rem; font-weight: 400; padding: .8rem 1rem; min-height: 64px;
	border: 2px solid #c3c7cc; border-radius: 10px; width: 100%;
}
.r2spm-signin__form input:focus { outline: none; border-color: var(--r2spm-accent); box-shadow: 0 0 0 3px rgba(31, 95, 174, .2); }
.r2spm-btn--xl { font-size: 1.4rem; min-height: 72px; border-radius: 12px; margin-top: .5rem; width: 100%; }
.r2spm-signin__flash { font-size: 1.3rem; text-align: center; animation: r2spm-fade 6s forwards; }
.r2spm-signin__footer { text-align: center; margin-top: 2.5rem; font-size: .85rem; }
.r2spm-signin__footer a { color: var(--r2spm-muted); }
@keyframes r2spm-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* Search */
.r2spm-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.r2spm-search { display: flex; gap: .5rem; margin: .25rem 0 .75rem; flex-wrap: wrap; }
.r2spm-search input[type=search] { flex: 1 1 260px; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--r2spm-border); border-radius: 8px; font-size: 1rem; }
.r2spm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.r2spm-pager { display: flex; gap: .75rem; align-items: center; justify-content: flex-end; margin-top: .75rem; }
.r2spm-dash h4 { margin-top: 1.25rem; }
.r2spm-notice--info { background: #eef4fb; border-color: var(--r2spm-accent); }

/* Business contact group + info tooltip */
.r2spm-fieldset { border: 1px solid var(--r2spm-border); border-radius: 8px; padding: .5rem .9rem .1rem; margin: 0; min-width: 0; }
.r2spm-fieldset legend { font-weight: 600; padding: 0 .3rem; }
.r2spm-fieldset .r2spm-fields { margin-bottom: .6rem; }
.r2spm-tip { position: relative; display: inline-block; vertical-align: middle; }
.r2spm-tip__btn {
	width: 1.25rem; height: 1.25rem; padding: 0; border-radius: 50%;
	border: 1.5px solid var(--r2spm-accent); background: #fff; color: var(--r2spm-accent);
	font: italic 700 .75rem/1 Georgia, serif; cursor: help; display: inline-flex; align-items: center; justify-content: center;
}
.r2spm-tip__btn:focus-visible { outline: 2px solid var(--r2spm-accent); outline-offset: 2px; }
.r2spm-tip__bubble {
	position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
	width: max-content; max-width: min(300px, 80vw); padding: .6rem .75rem; border-radius: 8px;
	background: #1d2327; color: #fff; font-size: .85rem; font-weight: 400; font-style: normal; line-height: 1.4; text-align: left;
	box-shadow: 0 6px 20px rgba(0,0,0,.18); visibility: hidden; opacity: 0; transition: opacity .12s; pointer-events: none;
}
.r2spm-tip__bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #1d2327; }
.r2spm-tip:hover .r2spm-tip__bubble,
.r2spm-tip:focus-within .r2spm-tip__bubble,
.r2spm-tip.is-open .r2spm-tip__bubble { visibility: visible; opacity: 1; }
@media (max-width: 600px) {
	.r2spm-tip__bubble { left: 0; transform: none; }
	.r2spm-tip__bubble::after { left: .6rem; }
	/* The toggle's tip sits near the right edge on phones: open it leftwards so it stays on screen. */
	.r2spm-more__toggle .r2spm-tip__bubble { left: auto; right: -.4rem; }
	.r2spm-more__toggle .r2spm-tip__bubble::after { left: auto; right: .65rem; }
}

/* Sign-in completion toast (shown only when JS runs; the inline notice is the fallback) */
.r2spm-toast { display: none; }
.r2spm-js .r2spm-toast {
	display: flex; align-items: center; gap: .8rem;
	position: fixed; z-index: 1000; left: 50%; top: 1.5rem; transform: translateX(-50%);
	max-width: calc(100vw - 2rem); padding: 1rem 1.6rem; border-radius: 14px;
	background: var(--r2spm-success); color: #fff; font-size: 1.5rem; font-weight: 700;
	box-shadow: 0 12px 32px rgba(0,0,0,.22);
	animation: r2spm-toast-in .35s cubic-bezier(.2,.9,.3,1.3) both, r2spm-toast-out .4s ease-in 3.6s forwards;
}
.r2spm-toast__check {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 1.3rem;
	animation: r2spm-toast-pop .5s .15s ease-out both;
}
@keyframes r2spm-toast-in { from { opacity: 0; transform: translate(-50%, -24px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes r2spm-toast-out { to { opacity: 0; transform: translate(-50%, -16px); visibility: hidden; } }
@keyframes r2spm-toast-pop { from { transform: scale(.3); } 70% { transform: scale(1.15); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.r2spm-js .r2spm-toast, .r2spm-toast__check { animation: r2spm-toast-out .01s linear 4s forwards; }
}
.r2spm-table code { white-space: nowrap; }

/* Claim Your Card (public) */
.r2spm-claim .r2spm-login { margin-top: 1rem; }
.r2spm-claim__form p { margin: 0 0 .9rem; }
.r2spm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.r2spm-js .r2spm-toast--sm { font-size: 1.05rem; padding: .75rem 1.2rem; }
.r2spm-toast--sm .r2spm-toast__check { width: 1.7rem; height: 1.7rem; font-size: 1rem; }

/* Roster and issued-card tables become stacked rows on phones so actions (Issue card, Resend card) stay visible. */
@media (max-width: 600px) {
	.r2spm-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.r2spm-table--stack, .r2spm-table--stack tbody, .r2spm-table--stack tr, .r2spm-table--stack td { display: block; width: 100%; }
	.r2spm-table--stack tr { padding: .5rem 0; border-bottom: 1px solid var(--r2spm-border); }
	.r2spm-table--stack td { position: relative; padding: .2rem 0 .2rem 6.5rem; border: 0; overflow-wrap: anywhere; }
	.r2spm-table--stack td::before { content: attr(data-label); position: absolute; left: 0; top: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--r2spm-muted); font-weight: 600; }
	.r2spm-table--stack td[data-label="Name"] { font-weight: 600; }
	.r2spm-table--stack td.r2spm-actions { display: flex; padding: .5rem 0 .2rem; }
	.r2spm-table--stack td.r2spm-actions::before { display: none; }
	.r2spm-table--stack .r2spm-inline-edit[open] form { min-width: 0; }
}

/* Admin view of another instructor's class: their balance + Add credits (v0.8.8). */
.r2spm-admin-credits { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; }
.r2spm-admin-credits h3 { margin: 0 0 4px; }
.r2spm-admin-credits__value { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.r2spm-admin-credits__balance p { margin: 4px 0 0; }
.r2spm-admin-credits__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.r2spm-admin-credits__form label { flex-basis: 100%; font-weight: 600; margin: 0; }
.r2spm-admin-credits__form input[type="number"] { width: 7em; min-height: 44px; }
.r2spm-admin-credits__form .r2spm-btn { min-height: 44px; }

/* Edit details (v0.8.9): name + email for pending and issued students. */
.r2spm-badge--saved { background: #e8f0fb; color: var(--r2spm-accent-dark); }
.r2spm-inline-edit[open] > summary.r2spm-btn, .r2spm-inline-edit[open] > summary.r2spm-btn:hover { background: var(--r2spm-accent); border-color: var(--r2spm-accent); color: #fff !important; }
.r2spm-inline-edit[open] form.r2spm-edit { max-width: 440px; background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .08); }
.r2spm-edit__title { margin: 0 0 .6rem; font-weight: 600; }
.r2spm-edit .r2spm-fields { margin-bottom: .2rem; }
.r2spm-edit__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .5rem; }
.r2spm-edit__actions .r2spm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.r2spm-edit__hint { margin: 0 0 .4rem; }
.r2spm-edit p.r2spm-small:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
	.r2spm-inline-edit[open] form.r2spm-edit { max-width: none; padding: .9rem; }
	.r2spm-edit input { font-size: 16px; } /* no iOS zoom on focus */
	.r2spm-edit__actions .r2spm-btn { flex: 1 1 100%; min-height: 44px; justify-content: center; }
}

/* v0.9.2: classes list as cards on phones; submit disabled when credits are short */
.r2spm-btn[disabled]:hover { background: var(--r2spm-success); }
.r2spm-btn--primary[disabled] { background: #8a959e; border-color: #8a959e; opacity: .75; }
.r2spm-short-credits__cta { margin: .6rem 0 0; }
@media (max-width: 600px) {
	.r2spm-table--classes tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: .75rem; padding: .75rem 0; }
	.r2spm-table--classes td { padding-left: 0; padding-top: 1.1rem; }
	.r2spm-table--classes td::before { top: 0; }
	.r2spm-table--classes td.r2spm-cell-title { grid-column: 1 / -1; padding-top: 0; font-size: 1rem; }
	.r2spm-table--classes td.r2spm-cell-location { grid-column: 1 / -1; }
	.r2spm-table--classes td.r2spm-actions { grid-column: 1 / -1; }
	.r2spm-table--classes td.r2spm-actions .r2spm-btn { width: 100%; justify-content: center; text-align: center; }
	.r2spm-table--classes tbody tr:hover { background: transparent; }
}

/* "Edit details" toggle reads "Close editing" while the form is open. */
.r2spm-inline-edit[open] > summary .r2spm-toggle-closed,
.r2spm-inline-edit:not([open]) > summary .r2spm-toggle-open { display: none; }

/* Class page tabs, list search and the inline business contact editor. */
.r2spm-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0 0; border-bottom: 1px solid var(--r2spm-border); }
.r2spm-tabs [role=tab] { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 -1px; padding: .6rem 1rem; font: inherit; font-weight: 600; color: var(--r2spm-muted); background: #f6f7f8; border: 1px solid var(--r2spm-border); border-radius: 8px 8px 0 0; cursor: pointer; }
.r2spm-tabs [role=tab][aria-selected=true] { color: inherit; background: #fff; border-bottom-color: #fff; }
.r2spm-tabs [role=tab]:focus-visible { outline: 3px solid rgba(34, 113, 177, .45); outline-offset: 1px; }
.r2spm-tab-panel[hidden] { display: none; }
.r2spm-list-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .75rem; }
.r2spm-list-search input[type=search] { flex: 1 1 220px; max-width: 360px; }
.r2spm-pager { flex-wrap: wrap; }
.r2spm-contact-edit { margin: .5rem 0 1rem; }
.r2spm-contact-edit > summary { list-style: none; display: inline-flex; }
.r2spm-contact-edit > summary::-webkit-details-marker { display: none; }
.r2spm-contact-edit[open] > summary .r2spm-toggle-closed,
.r2spm-contact-edit:not([open]) > summary .r2spm-toggle-open { display: none; }
.r2spm-contact-form { margin-top: .75rem; padding: .75rem; border: 1px solid var(--r2spm-border); border-radius: 8px; background: #fafbfc; }
@media (max-width: 600px) { .r2spm-tabs [role=tab] { flex: 1 1 100%; border-radius: 8px; margin-bottom: .25rem; } }

/* Approved UX: legible disabled state and pending counts; not an active button. */
.r2spm-btn--primary[disabled], .r2spm-btn--primary[disabled]:hover { background:#596570; border-color:#596570; color:#fff; opacity:1; cursor:not-allowed; }
.r2spm-badge--pending { font-size:.875rem; padding:.2rem .65rem; line-height:1.4; }

/* Keep the whole-roster action bounded even with large counts or enlarged text. */
.r2spm-dash .r2spm-issue-all { max-width:100%; min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:center; }
