/* ADS Premium — design system */

:root {
  --bg: #f3efe4;
  --bg-alt: #fffdf9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: rgba(31, 58, 45, 0.10);
  --border-strong: rgba(31, 58, 45, 0.18);

  --brand: #c96b18;
  --brand-dark: #a2530f;
  --brand-soft: #fdeedd;

  --ink: #201a08;
  --dark: #17301f;
  --dark-alt: #24462f;
  --dark-soft: #2e5238;

  --text: #241f16;
  --text-muted: #6f6552;
  --text-faint: #9c927c;

  --success-bg: #e5f5e6;
  --success-text: #1e6b31;
  --error-bg: #fdeceb;
  --error-text: #a3312a;
  --info-bg: #eaf1fb;
  --info-text: #2a5aa3;
  --warning-bg: #fff2df;
  --warning-text: #93591a;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 8px rgba(36, 27, 8, 0.05);
  --shadow-md: 0 16px 40px rgba(36, 27, 8, 0.09);
  --shadow-lg: 0 24px 60px rgba(23, 48, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 480px at 100% -8%, rgba(201, 107, 24, 0.08), transparent 60%),
    radial-gradient(900px 480px at -8% 0%, rgba(23, 48, 31, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #faf8f2 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}

h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }

p { color: var(--text-muted); margin: 0 0 0.6rem; }

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

a:hover { color: var(--brand-dark); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

/* Buttons */

button,
input,
textarea,
select {
  font: inherit;
}

button,
.button-link {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.2rem;
  background: linear-gradient(180deg, #d4772a 0%, var(--brand) 100%);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 18px rgba(201, 107, 24, 0.24);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

button:hover,
.button-link:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(201, 107, 24, 0.3);
  color: white;
}

button:active,
.button-link:active {
  transform: translateY(0);
}

button.secondary {
  background: transparent;
  color: #eef3ee;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.secondary-dark {
  background: var(--dark-soft);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 48, 31, 0.22);
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

/* Layout */

.layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(200deg, var(--dark-alt) 0%, var(--dark) 68%);
  color: #f4f1e8;
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(155deg, #e08a3d 0%, var(--brand) 100%);
  display: grid;
  place-items: center;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  box-shadow: 0 6px 14px rgba(201, 107, 24, 0.35);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-text span {
  font-size: 0.72rem;
  color: rgba(244, 241, 232, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar nav {
  display: grid;
  gap: 0.25rem;
  margin-bottom: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.68rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(244, 241, 232, 0.72);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(201, 107, 24, 0.9), rgba(201, 107, 24, 0.55));
  color: #fff;
  box-shadow: 0 6px 16px rgba(201, 107, 24, 0.28);
}

.sidebar-footer {
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 0.75rem;
}

.user-chip .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e08a3d, var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.user-chip .email {
  font-size: 0.78rem;
  color: rgba(244, 241, 232, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer form button {
  width: 100%;
}

.content {
  padding: 2rem 2.25rem 3rem;
  min-width: 0;
}

.content.full {
  display: grid;
  place-items: center;
  padding: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.topbar h1 {
  font-size: 1.55rem;
  font-weight: 800;
}

.topbar .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

/* Surfaces */

.hero,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(6px);
}

.hero,
.panel {
  padding: 1.6rem 1.75rem;
  margin-bottom: 1.5rem;
}

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

.panel-head p {
  margin: 0;
}

.panel > h2:first-child,
.panel > h3:first-child,
.panel-head:first-child {
  margin-top: 0;
}

.narrow {
  max-width: 520px;
}

.pill-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.hero {
  background:
    linear-gradient(120deg, rgba(23, 48, 31, 0.96), rgba(36, 70, 47, 0.92)),
    radial-gradient(600px 260px at 100% 0%, rgba(201, 107, 24, 0.35), transparent 60%);
  color: #f4f1e8;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero h2 { color: #fff; }
.hero p { color: rgba(244, 241, 232, 0.78); max-width: 46ch; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f4f1e8;
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card {
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card .card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.6rem;
}

.card .card-icon svg { width: 17px; height: 17px; }

.card strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ink);
}

.card span {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Forms */

.form-grid {
  display: grid;
  gap: 1.05rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(201, 107, 24, 0.15);
}

input[type="file"] {
  padding: 0.6rem 0.7rem;
  cursor: pointer;
}

.field-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint);
}

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

.photo-slot {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-box {
  min-height: 120px;
  border: 1.5px dashed #d3a06a;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  margin: 0.5rem 0;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Tables */

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.table-card .panel-head {
  padding: 1.5rem 1.75rem 0.75rem;
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-card table thead th:first-child { padding-left: 1.75rem; }
.table-card table thead th:last-child { padding-right: 1.75rem; }
.table-card table tbody td:first-child { padding-left: 1.75rem; }
.table-card table tbody td:last-child { padding-right: 1.75rem; }

td,
tbody th {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  text-align: left;
  font-weight: 600;
}

tbody th { font-weight: 700; white-space: nowrap; }
tbody td { font-weight: 500; }

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background 0.12s ease;
}

tbody tr:hover {
  background: rgba(201, 107, 24, 0.045);
}

td.empty-cell {
  text-align: center;
  color: var(--text-faint);
  padding: 2.75rem 1rem;
  font-weight: 500;
}

/* Status icons (products / ads lists) */

.ad-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.ad-status-icon svg { width: 15px; height: 15px; }

.ad-status-icon.done { background: var(--success-bg); color: var(--success-text); }
.ad-status-icon.pending { background: var(--warning-bg); color: var(--warning-text); }
.ad-status-icon.none { background: #eee9dd; color: var(--text-faint); }

.photo-count-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warning-text);
}

.photo-count-icon svg { width: 15px; height: 15px; }
.photo-count-icon.ready { color: var(--success-text); }

/* Status badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-error { background: var(--error-bg); color: var(--error-text); }
.badge-neutral { background: #eee9dd; color: var(--text-muted); }

/* Flash messages */

.flash-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.flash.success { background: var(--success-bg); color: var(--success-text); border-color: rgba(30, 107, 49, 0.15); }
.flash.error { background: var(--error-bg); color: var(--error-text); border-color: rgba(163, 49, 42, 0.15); }

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-muted);
  max-height: 360px;
  overflow-y: auto;
}

/* Login screen */

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100%;
}

.auth-brand {
  background:
    linear-gradient(150deg, rgba(23, 48, 31, 0.97), rgba(36, 70, 47, 0.94)),
    radial-gradient(700px 340px at 100% 100%, rgba(201, 107, 24, 0.4), transparent 60%);
  color: #f4f1e8;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand .brand { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.auth-brand .brand-mark { width: 46px; height: 46px; font-size: 1.2rem; }
.auth-brand .brand-text strong { font-size: 1.2rem; }

.auth-copy h1 {
  color: #fff;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 2.25rem 0 0.9rem;
  max-width: 13ch;
}

.auth-copy p {
  color: rgba(244, 241, 232, 0.78);
  font-size: 1rem;
  max-width: 40ch;
}

.auth-features {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.75rem;
  list-style: none;
  padding: 0;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(244, 241, 232, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
}

.auth-features .feature-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffcb9a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-features svg { width: 14px; height: 14px; }

.auth-foot {
  font-size: 0.76rem;
  color: rgba(244, 241, 232, 0.5);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--bg-alt);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2.1rem;
}

.auth-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.auth-card > p {
  margin-bottom: 1.4rem;
  font-size: 0.88rem;
}

.auth-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.4rem;
}

.auth-status.ok { background: var(--success-bg); color: var(--success-text); }
.auth-status.down { background: var(--error-bg); color: var(--error-text); }

.auth-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.auth-card button { width: 100%; padding: 0.85rem 1.1rem; margin-top: 0.25rem; }

/* Photo drag zone */

.photo-dragzone {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.photo-square-wrap {
  cursor: grab;
  position: relative;
}

.photo-square-wrap:active { cursor: grabbing; }

.photo-square-wrap form { margin: 0; }

.photo-square {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: 1 / 1;
  border: 2px dashed #d3a06a;
  border-radius: var(--radius-md);
  background-color: var(--brand-soft);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.12s ease, transform 0.12s ease;
}

.photo-square:hover { border-color: var(--brand); }

.photo-square.filled {
  border-style: solid;
  border-color: var(--border-strong);
}

.photo-square-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem;
}

.photo-square-empty svg { width: 26px; height: 26px; }

.drag-handle {
  position: absolute;
  top: 0.4rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(23, 48, 31, 0.55);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.1em;
}

.photo-square-wrap:not(:first-child) .photo-square-primary-badge {
  display: none;
}

.photo-square-primary-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.photo-remove-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
}

.error-hint {
  color: var(--error-text);
  font-weight: 600;
  margin-top: 0.4rem;
}

/* Compatibility rows */

.compat-rows {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.compat-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr 0.8fr 0.8fr 0.7fr auto;
  gap: 0.5rem;
  align-items: center;
}

.compat-row input {
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
}

.compat-remove {
  background: var(--error-bg);
  color: var(--error-text);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  padding: 0;
  box-shadow: none;
  font-weight: 700;
}

.compat-remove:hover {
  filter: none;
  transform: none;
  background: var(--error-bg);
}

/* Attributes grid */

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

.attr-tag {
  margin-left: 0.4rem;
  vertical-align: middle;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
}

/* Checklist */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.checklist-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.checklist-icon svg { width: 13px; height: 13px; }

.checklist li.ok .checklist-icon {
  background: var(--success-bg);
  color: var(--success-text);
}

.checklist li.pending .checklist-icon {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.checklist li.pending { color: var(--text-muted); }

/* Category search */

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.75rem;
}

.category-results {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.category-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
}

.category-result strong {
  display: block;
  font-size: 0.9rem;
}

.category-result button {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.current-category {
  margin-top: 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .auth-brand {
    padding: 2.25rem;
  }

  .auth-copy h1 { max-width: none; margin-top: 1.5rem; }
}

@media (max-width: 620px) {
  .content { padding: 1.25rem 1.1rem 2rem; }
  .hero, .panel { padding: 1.25rem; }
  .stats { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .category-result { flex-direction: column; align-items: flex-start; }
  .compat-row { grid-template-columns: 1fr 1fr; }
  .attributes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .photo-dragzone { grid-template-columns: 1fr; }
}
