:root {
  --bg: #f3f5f9;
  --card: #ffffff;
  --panel: #f8fafc;
  --text: #0f172a;
  --subtle: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff6ff;
  --success-bg: #ecfdf3;
  --success-line: #b7ebc6;
  --success-text: #166534;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  --danger-text: #991b1b;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0%, transparent 48%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 55%);
  color: var(--text);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

a {
  color: var(--accent-strong);
}

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

h1 {
  margin: 0 0 1rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h1 a:hover {
  color: inherit;
  text-decoration: none;
}

h2 {
  margin: 0 0 0.75rem;
}

.meta {
  margin: 0;
  color: var(--subtle);
  font-size: 0.92rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: end;
}

.date-range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  grid-column: span 2;
  min-width: 0;
}

.date-range-group label {
  min-width: 0;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.35rem;
}

input,
select,
button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.45;
  background: #fff;
  color: var(--text);
  resize: vertical;
  min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  outline-offset: 1px;
  border-color: #b8cbf2;
}

button {
  border-color: var(--line);
  color: var(--text);
  cursor: pointer;
  min-height: 42px;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

button:hover {
  border-color: #9db4e8;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.inline-form {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.primary-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  min-width: 120px;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.primary-btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 90px;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.secondary-btn:hover {
  background: var(--panel);
  border-color: #bfccde;
}

.checkline {
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
}

.inline {
  display: inline-flex;
}

.error {
  color: var(--danger-text);
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  padding: 0.7rem;
  line-height: 1.45;
}

.success {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  border-radius: 10px;
  padding: 0.7rem;
  line-height: 1.45;
}

.summary {
  margin: 0.5rem 0 0.8rem;
}

.summary p {
  margin: 0.2rem 0;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: center;
}

.auth-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 46%),
    linear-gradient(145deg, #f8fbff, #ffffff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.auth-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.35rem;
}

.auth-hero p {
  margin: 0.3rem 0 0.8rem;
  color: #1f2937;
}

.auth-hero ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
}

.auth-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow-md);
}

.auth-form {
  display: grid;
  gap: 0.7rem;
}

.auth-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #d8e3f2;
  padding: 0.45rem;
  box-shadow: var(--shadow-sm);
}

.auth-hero-intro {
  margin-bottom: 0;
  line-height: 1.5;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.75rem 0 0.9rem;
}

.auth-feature-card {
  border: 1px solid #e7edf7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.75rem;
}

.auth-feature-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
}

.auth-feature-card .meta {
  font-size: 0.84rem;
}

.auth-plan-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.auth-plan-pill {
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}

.auth-plan-pill strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.auth-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.9rem 0 0;
}

.auth-links a {
  text-decoration: none;
  font-weight: 600;
}

.auth-card-head {
  margin-bottom: 0.75rem;
}

.auth-card-head h2 {
  margin-bottom: 0.2rem;
}

.auth-card .primary-btn {
  width: 100%;
}

.auth-guest-box {
  margin-top: 0.9rem;
  border: 1px solid #e7edf7;
  border-radius: 12px;
  background: #fbfdff;
  padding: 0.75rem;
}

.auth-guest-box p {
  margin: 0.1rem 0;
}

.pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #ffedd5;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.coverage {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.coverage h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.coverage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem;
  background: #fff;
}

.coverage-card p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

.admin-nav-panel {
  margin-bottom: 0.8rem;
}

.admin-section-links {
  margin-bottom: 0;
}

.admin-section-links a {
  font-size: 0.85rem;
}

.danger-panel {
  border-color: #f2c5c5;
  background: #fffafb;
}

.danger-btn {
  border-color: #ef4444;
  color: #b91c1c;
}

.danger-btn:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.report-table td form.inline-form input,
.report-table td form.inline-form select {
  min-width: 120px;
}

.ticket-create-form,
.ticket-reply-form {
  display: grid;
  gap: 0.7rem;
}

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

.ticket-panel-head h2 {
  margin: 0 0 0.2rem;
}

.ticket-count-badge {
  border: 1px solid #dbe5f4;
  background: #f8fbff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticket-compose {
  border: 1px solid #e3eaf5;
  background: linear-gradient(180deg, #fcfdff, #f8fbff);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.85rem;
}

.ticket-compose-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.35fr);
  gap: 0.75rem;
  align-items: start;
}

.ticket-compose-actions {
  margin-top: 0.6rem;
  justify-content: flex-end;
}

.ticket-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.ticket-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
}

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

.ticket-head h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.ticket-head .meta {
  margin: 0;
}

.ticket-thread {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.ticket-message {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 0.6rem 0.65rem;
}

.ticket-message.is-admin {
  border-color: #cfe0fb;
  background: #f5f9ff;
}

.ticket-message .meta {
  margin: 0 0 0.2rem;
}

.ticket-message p:last-child {
  margin: 0;
  white-space: pre-wrap;
}

.ticket-create-form textarea,
.ticket-reply-form textarea {
  min-height: 96px;
}

.ticket-compose textarea {
  min-height: 112px;
}

.ticket-empty {
  border: 1px dashed #d9e3f2;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fbfdff;
}

.ticket-empty p {
  margin: 0.15rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.contact-card,
.contact-side-card {
  margin: 0;
}

.contact-header {
  margin-bottom: 0.8rem;
}

.contact-header h2 {
  margin-bottom: 0.2rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-message-field {
  gap: 0.45rem;
}

.contact-actions {
  justify-content: flex-start;
}

.contact-actions .primary-btn {
  min-width: 160px;
}

.usage-panel {
  margin: 0.9rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem;
}

.usage-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.usage-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.usage-item {
  display: grid;
  gap: 0.35rem;
}

.usage-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.usage-row strong {
  font-size: 0.9rem;
}

.usage-row .meta {
  text-align: right;
}

.usage-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
  border: 1px solid #dde6f2;
}

.usage-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.usage-fill.warn {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.usage-fill.danger {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

.exports {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.exports a:not(.secondary-btn) {
  text-decoration: none;
  color: var(--accent-strong);
  border: 1px solid #d6e0ef;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.exports a:not(.secondary-btn):hover {
  background: var(--accent-soft);
  border-color: #bfd3f8;
}

.paypal-hosted-wrap {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 520px;
}

.paypal-hosted-wrap > div {
  width: 100%;
  min-width: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.report-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.card h2 {
  font-size: 1rem;
  margin: 0.7rem 0 0.4rem;
  line-height: 1.3;
}

.card h2 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--accent);
}

.card .meta {
  margin: 0 0 0.6rem;
  color: var(--subtle);
  font-size: 0.85rem;
}

.card .stats {
  margin: 0 0 0.5rem;
  color: var(--subtle);
  font-size: 0.84rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: #1f2937;
  white-space: pre-wrap;
}

.detail-link {
  margin: 0 0 0.5rem;
}

.detail-link a {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.9rem;
}

.detail-link a:hover {
  text-decoration: none;
}

.detail-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #d7e3f5;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-link-btn:hover {
  border-color: #b7cdf8;
  background: #eef4ff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.detail-link-count {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8f0ff;
  border: 1px solid #c8d8fb;
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.25rem;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.pager a {
  color: var(--accent-strong);
  text-decoration: none;
}

#scrollSentinel {
  height: 4px;
}

.detail-page .detail-header {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.youtube-actions {
  margin: 0.8rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.connect-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-page .detail-header img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.detail-page .detail-header h1 {
  margin-bottom: 0.5rem;
}

.detail-page .detail-header p {
  margin: 0.35rem 0;
}

.back-link {
  margin: 0.2rem 0 0.8rem;
}

.video-description {
  color: #1f2937;
  line-height: 1.5;
  white-space: pre-wrap;
}

.translation-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.translation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.translation-header h2 {
  margin-bottom: 0.25rem;
}

.translation-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 180px) auto auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.translation-toolbar .toolbar-search {
  min-width: 0;
}

.toolbar-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-summary {
  justify-self: end;
  font-size: 0.88rem;
  color: var(--subtle);
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
}

.translation-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.translation-actions {
  display: grid;
  gap: 0.9rem;
}

.batch-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.lang-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  line-height: 1.35;
}

.lang-row input[type="checkbox"] {
  margin-top: 0.15rem;
}

.lang-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--subtle);
  padding: 0.15rem 0.45rem;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-pill.cached {
  background: var(--accent-soft);
  border-color: #bfd3f8;
  color: var(--accent-strong);
}

.status-pill.missing {
  background: #f8fafc;
  color: #475569;
}

.translation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.translation-card h3 {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.translation-card p {
  margin: 0.2rem 0;
  white-space: pre-wrap;
  color: #334155;
  line-height: 1.45;
}

.translation-card.missing {
  background: #fbfcfe;
}

.translation-details {
  margin-top: 0.45rem;
  border-top: 1px solid #edf2f7;
  padding-top: 0.45rem;
}

.translation-details summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 600;
  user-select: none;
}

.translation-details summary:hover {
  color: var(--accent);
}

.translation-details[open] summary {
  margin-bottom: 0.35rem;
}

.translation-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.translation-card[hidden] {
  display: none !important;
}

.faq-hero h2 {
  margin: 0.15rem 0 0.35rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.faq-steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.faq-steps li > p {
  margin: 0.2rem 0 0;
}

.faq-list {
  display: grid;
  gap: 0.6rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.15rem 0.7rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0;
}

.faq-item p {
  margin: 0 0 0.65rem;
}

@media (max-width: 950px) {
  .controls {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .date-range-group {
    grid-column: 1 / -1;
  }

  .auth-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-plan-strip {
    grid-template-columns: 1fr;
  }

  .translation-toolbar {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .toolbar-summary {
    justify-self: start;
    grid-column: 1 / -1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 1rem 0.75rem 2.25rem;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .auth-page {
    gap: 0.85rem;
  }

  .auth-hero,
  .auth-card {
    border-radius: 14px;
    padding: 0.9rem;
  }

  .auth-brand {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .auth-logo {
    width: 64px;
    height: 64px;
  }

  .auth-hero h1 {
    font-size: 1.7rem;
    margin-bottom: 0.25rem;
  }

  .auth-feature-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin: 0.65rem 0 0.75rem;
  }

  .auth-feature-card {
    padding: 0.65rem;
  }

  .auth-links {
    gap: 0.55rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .date-range-group {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .controls button,
  .form-actions button,
  .batch-controls .action-btn {
    width: 100%;
  }

  .form-actions {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn {
    flex: 1;
  }

  .detail-page .detail-header {
    grid-template-columns: 1fr;
    padding: 0.8rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem;
  }

  .exports {
    margin-bottom: 0;
  }

  .exports a {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }

  .coverage,
  .youtube-actions,
  .translation-panel {
    padding: 0.8rem;
  }

  .translation-toolbar {
    grid-template-columns: 1fr;
  }

  .toolbar-inline {
    width: 100%;
  }

  .toolbar-inline input[type="checkbox"] {
    flex-shrink: 0;
  }

  .batch-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .translation-grid.compact {
    grid-template-columns: 1fr;
  }

  .translation-card {
    padding: 0.7rem;
  }

  .ticket-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-head .inline-form {
    width: 100%;
  }

  .ticket-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ticket-count-badge {
    align-self: flex-start;
  }

  .ticket-compose-grid {
    grid-template-columns: 1fr;
  }

  .ticket-compose-actions {
    justify-content: stretch;
  }
}
