:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #12151c;
  --surface-glass: rgba(18, 21, 28, 0.72);
  --surface-glass-card: rgba(24, 28, 38, 0.65);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-glass-glow: rgba(0, 240, 255, 0.15);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: 0 0 16px rgba(0, 240, 255, 0.35);
  --accent-neon-yellow: #facc15;
  --accent-gold: #eab308;
  --accent-emerald: #10b981;
  --backdrop-blur: blur(14px);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --border-subtle: 1px solid var(--surface-glass-border);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 2.5rem clamp(1rem, 4vw, 3.5rem) 1.5rem;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(0, 240, 255, 0.08), transparent 32rem),
    radial-gradient(ellipse at 100% 38%, rgba(250, 204, 21, 0.035), transparent 34rem),
    var(--bg-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  box-sizing: border-box;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
}

button {
  color: inherit;
}

.glass-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.045), transparent 55%);
  pointer-events: none;
}

.container {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.glass-panel,
.glass-card {
  background: var(--surface-glass-card);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  border: var(--border-subtle);
}

.glass-panel {
  border-radius: var(--radius-md);
}

.glass-card {
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22), 0 0 24px rgba(0, 240, 255, 0.035);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.logo-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  box-shadow: var(--accent-cyan-glow);
}

.eyebrow,
.section-index,
.badge,
.count-badge,
.privacy-badge,
.pro-badge {
  font-family: var(--font-mono);
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent-cyan);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.header-subtitle {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  color: #bafaff;
  background: rgba(0, 240, 255, 0.065);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.privacy-badge > span:first-child {
  font-size: 0.85rem;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.55fr);
  align-items: stretch;
  gap: 1.25rem;
}

.sidebar,
.preview-panel {
  min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.65rem);
}

.sidebar {
  display: flex;
  flex-direction: column;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.section-index {
  color: var(--accent-cyan);
  font-size: 0.66rem;
  font-weight: 700;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
}

.field label,
.license-field > label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: var(--text-main);
  font-size: 0.77rem;
  font-weight: 600;
}

.helper-text {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 400;
}

.batch-field {
  margin-top: 1.1rem;
}

.batch-options {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.8rem;
}

.batch-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-toolbar > .field {
  flex: 1 1 110px;
}

.batch-toolbar .field {
  gap: 0.35rem;
}

.batch-toolbar .field label {
  font-size: 0.68rem;
}

.batch-toolbar input[type="number"],
.batch-toolbar input[type="text"] {
  min-height: 40px;
  padding: 0.5rem;
  font-size: 0.72rem;
}

.batch-toolbar .btn,
.batch-options .btn {
  min-height: 40px;
  padding: 0.55rem 0.65rem;
  font-size: 0.68rem;
}

.batch-options .sync-status {
  margin-left: auto;
}

.batch-grid-wrap {
  max-height: 390px;
  margin-top: 0.75rem;
  overflow: auto;
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
}

.batch-grid-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.68rem;
}

.batch-grid-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 0.55rem 0.45rem;
  color: var(--text-muted);
  background: #151a22;
  font-size: 0.62rem;
  font-weight: 650;
  text-align: left;
}

.batch-grid-table td {
  padding: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.batch-grid-table .row-index {
  width: 2.25rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: center;
}

.batch-grid-table .row-label {
  min-width: 110px;
  min-height: 38px;
  padding: 0.5rem;
  font-size: 0.68rem;
}

.batch-grid-table .row-payload {
  min-width: 180px;
  min-height: 38px;
  padding: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.batch-grid-table tr.is-invalid .row-payload {
  border-color: rgba(251, 146, 60, 0.85);
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.1);
}

.row-status {
  display: inline-flex;
  min-width: 68px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.4rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-glass-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
}

.row-status.is-valid {
  color: #86efac;
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.25);
}

.row-status.is-invalid {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.3);
}

.row-del {
  width: 30px;
  height: 30px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

.row-del:hover,
.row-del:focus-visible {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.2);
  outline: none;
}

.sync-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  color: #bafaff;
  background: rgba(0, 240, 255, 0.065);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  white-space: nowrap;
}

textarea,
input[type="number"],
input[type="text"],
select {
  width: 100%;
  color: var(--text-main);
  background: rgba(7, 9, 13, 0.64);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 215px;
  padding: 0.85rem;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
}

textarea::placeholder,
input::placeholder {
  color: #5e6674;
  opacity: 1;
}

input[type="number"],
select {
  min-height: 42px;
  padding: 0.6rem 0.7rem;
  font-size: 0.78rem;
}

input[type="number"],
input[type="text"] {
  font-family: var(--font-mono);
}

select {
  cursor: pointer;
}

select option {
  color: var(--text-main);
  background: var(--bg-secondary);
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(0, 240, 255, 0.72);
  background-color: rgba(7, 12, 17, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.09);
}

.settings-heading {
  margin: 1.4rem 0 0.9rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--surface-glass-border);
}

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

.color-picker-wrapper {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

input[type="color"] {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 4px;
  cursor: pointer;
  background: rgba(7, 9, 13, 0.64);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.color-picker-wrapper input[type="text"] {
  min-width: 0;
  min-height: 42px;
  padding: 0.6rem 0.55rem;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.logo-field {
  grid-column: 1 / -1;
}

.logo-field input[type="file"] {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-preview[hidden] {
  display: none;
}

.logo-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-sm);
}

.raw-paste-body textarea {
  min-height: 190px;
  margin-top: 0.85rem;
  padding: 0.75rem;
  font-size: 0.72rem;
}

.raw-paste-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.action-group {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--surface-glass-border);
}

.pro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:focus-visible,
.btn-stripe:focus-visible,
.restore-button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.btn-primary {
  color: #061013;
  background: var(--accent-cyan);
  box-shadow: 0 5px 18px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #61f7ff;
  box-shadow: var(--accent-cyan-glow);
}

.btn-success {
  color: #04150f;
  background: var(--accent-emerald);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.16);
}

.btn-success:hover:not(:disabled) {
  background: #34d399;
}

.btn-pro {
  color: #fce588;
  background: rgba(234, 179, 8, 0.09);
  border-color: rgba(234, 179, 8, 0.38);
}

.btn-pro:hover:not(:disabled) {
  background: rgba(234, 179, 8, 0.16);
  border-color: var(--accent-gold);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.1);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.35rem;
  color: #211900;
  background: var(--accent-gold);
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.pro-badge.is-active {
  color: #042016;
  background: var(--accent-emerald);
}

.preview-panel {
  display: flex;
  min-height: 670px;
  flex-direction: column;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-glass-border);
}

.generation-status {
  min-height: 1.1rem;
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.generation-status:empty {
  display: none;
}

.generation-status.is-error {
  color: #fda4af;
}

.output-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.count-badge,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.55rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.62rem;
  white-space: nowrap;
}

.count-badge {
  gap: 0.3rem;
  color: #bafaff;
}

.grid-container {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 0.15rem 0.25rem;
}

.empty-state {
  display: flex;
  min-height: 460px;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.55rem;
  place-items: center;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0;
  color: #d7dbe2;
  font-size: 0.88rem;
  font-weight: 600;
}

.empty-state > span:last-child {
  color: var(--text-dim);
  font-size: 0.74rem;
}

.qr-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--surface-glass-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.qr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.35);
}

.qr-image-container {
  display: grid;
  width: 100%;
  min-width: 0;
  place-items: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.qr-card canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
}

.qr-info {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}

.qr-label,
.qr-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-download {
  align-self: center;
  padding: 0.4rem 0.65rem;
  color: #bafaff;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  cursor: pointer;
}

.qr-download:hover,
.qr-download:focus-visible {
  color: #061013;
  background: var(--accent-cyan);
  outline: none;
}

.qr-label {
  font-size: 0.74rem;
  font-weight: 650;
}

.qr-card > .qr-label {
  width: 100%;
}

.qr-val {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-align: center;
}

.footer-mark {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 10, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-backdrop.active {
  display: flex;
}

.pro-modal[hidden] {
  display: none;
}

.pro-modal:not([hidden]) {
  display: flex;
}

.modal-card {
  width: min(100%, 490px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--surface-glass-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48), 0 0 30px rgba(0, 240, 255, 0.035);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-glass-border);
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-title-group h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.modal-body {
  padding-top: 1rem;
}

.modal-body > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.65;
}

.modal-body strong {
  color: var(--text-main);
}

.price-banner {
  margin: 1.1rem 0;
  padding: 1rem;
  text-align: center;
  background: rgba(7, 9, 13, 0.58);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
}

.price-banner .price {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent-neon-yellow);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-banner > span:last-child {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.price-banner i {
  padding: 0 0.2rem;
  color: var(--text-dim);
  font-style: normal;
}

.btn-stripe {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #211900;
  background: var(--accent-gold);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.btn-stripe:hover {
  transform: translateY(-1px);
  background: var(--accent-neon-yellow);
}

.license-field {
  margin-top: 1.25rem;
}

#license-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.license-field > label {
  margin-bottom: 0.5rem;
}

#pro-license-key {
  width: 100%;
}

.license-actions {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}

.license-actions input[type="text"] {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
}

.license-actions .btn {
  min-height: 42px;
  flex: 0 0 auto;
}

.restore-button {
  margin-top: 0.55rem;
  padding: 0.2rem 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.restore-button:hover {
  color: var(--accent-cyan);
}

.license-message {
  min-height: 1rem;
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.license-error {
  margin: 0.1rem 0;
  color: #fda4af;
  font-size: 0.75rem;
}

.pro-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.btn-secondary {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--surface-glass-border);
}

.btn-secondary:hover:not(:disabled) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.32);
  background-clip: padding-box;
}

@media (max-width: 860px) {
  body {
    padding-top: 1.5rem;
  }

  .workbench-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-panel {
    min-height: 540px;
  }

  .empty-state {
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 1rem 0.75rem 1.25rem;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .header-meta {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    gap: 0.7rem;
  }

  .logo-mark {
    width: 2.55rem;
    height: 2.55rem;
  }

  .header-subtitle {
    max-width: 34ch;
    font-size: 0.75rem;
  }

  .privacy-badge {
    padding: 0.55rem 0.7rem;
    font-size: 0.66rem;
  }

  .sidebar,
  .preview-panel {
    padding: 1rem;
  }

  .pro-actions {
    grid-template-columns: 1fr;
  }

  .batch-options {
    align-items: center;
  }

  .sync-status {
    justify-self: start;
  }

  .pane-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .output-meta {
    width: 100%;
    justify-content: space-between;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .app-footer {
    align-items: flex-start;
    font-size: 0.65rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
