:root {
  color-scheme: light;
  /* Tolin interface palette — keep all UI colors derived from these six tokens. */
  --navy: #204a5f;
  --navy-deep: #153747;
  --green: #01a64f;
  --green-deep: #008f43;
  --canvas: #f4f8f6;
  --white: #ffffff;
  --bg: var(--canvas);
  --surface: var(--white);
  --surface-soft: rgba(244, 248, 246, 0.78);
  --ink: var(--navy-deep);
  --muted: rgba(32, 74, 95, 0.68);
  --line: rgba(32, 74, 95, 0.13);
  --line-strong: rgba(32, 74, 95, 0.24);
  --brand: var(--green);
  --brand-dark: var(--green-deep);
  --brand-soft: rgba(1, 166, 79, 0.09);
  --brand-mist: rgba(1, 166, 79, 0.16);
  --sidebar: var(--navy-deep);
  --danger: var(--navy-deep);
  --danger-dark: var(--navy-deep);
  --danger-soft: rgba(21, 55, 71, 0.08);
  --warning: var(--navy);
  --warning-soft: rgba(32, 74, 95, 0.07);
  --info-soft: rgba(32, 74, 95, 0.07);
  --shadow: 0 12px 32px rgba(21, 55, 71, 0.07);
  --shadow-hover: 0 18px 44px rgba(21, 55, 71, 0.12);
  --radius: 18px;
  --radius-small: 11px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 20;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 28px 20px;
  color: var(--canvas);
  background:
    radial-gradient(circle at 20% 0%, rgba(1, 166, 79, 0.2), transparent 38%),
    var(--sidebar);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 128px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 7px 9px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(9, 32, 43, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: rgba(244, 248, 246, 0.68);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 46px;
}

.nav-group {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-group-title {
  padding: 0 12px 5px;
  color: rgba(244, 248, 246, 0.48);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(244, 248, 246, 0.72);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  color: var(--white);
  background: rgba(1, 166, 79, 0.18);
  outline: none;
}

.nav-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.nav-flag {
  font-size: 17px;
  letter-spacing: 0;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note small {
  margin-top: 3px;
  color: rgba(244, 248, 246, 0.62);
  font-size: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(1, 166, 79, 0.16);
}

.main-content {
  min-height: 100vh;
  margin-inline-start: 248px;
  padding: 24px clamp(24px, 4vw, 58px) 32px;
}

.security-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1480px;
  margin: 0 auto 30px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.security-banner strong {
  padding-inline-end: 12px;
  border-inline-end: 1px solid var(--line-strong);
  white-space: nowrap;
}

.security-banner form {
  margin-inline-start: auto;
}

.security-logout {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.security-logout:hover,
.security-logout:focus-visible {
  border-color: var(--green);
  color: var(--green-deep);
  outline: none;
}

/* Authentication */
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 12%, rgba(1, 166, 79, 0.12), transparent 27%),
    var(--canvas);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 0.88fr) minmax(480px, 1.12fr);
}

.auth-brand-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: clamp(34px, 5vw, 72px);
  color: var(--white);
  background:
    radial-gradient(circle at 12% 5%, rgba(1, 166, 79, 0.32), transparent 32%),
    linear-gradient(145deg, var(--navy-deep), var(--navy));
}

.auth-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  font-size: 17px;
}

.auth-brand small {
  margin-top: 2px;
  color: rgba(244, 248, 246, 0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-brand-copy {
  max-width: 520px;
  margin-block: auto;
  padding-block: 72px;
}

.auth-eyebrow {
  color: var(--green);
}

.auth-brand-copy h1 {
  max-width: 500px;
  margin: 18px 0 20px;
  font-family: Georgia, serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-brand-copy p {
  max-width: 480px;
  margin: 0;
  color: rgba(244, 248, 246, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.auth-security-note {
  display: flex;
  max-width: 480px;
  align-items: center;
  gap: 13px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.auth-security-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.auth-security-note p,
.auth-security-note strong,
.auth-security-note small {
  display: block;
  margin: 0;
}

.auth-security-note strong {
  font-size: 12px;
}

.auth-security-note small {
  margin-top: 3px;
  color: rgba(244, 248, 246, 0.6);
  font-size: 10px;
  line-height: 1.45;
}

.auth-form-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(32px, 7vw, 100px);
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(21, 55, 71, 0.1);
}

.auth-card-heading {
  margin-bottom: 30px;
}

.auth-step {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.auth-card-heading h2 {
  margin: 17px 0 10px;
  color: var(--navy-deep);
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.auth-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.auth-error {
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--navy-deep);
  background: var(--danger-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field > span,
.auth-field small {
  display: block;
}

.auth-field > span {
  margin-bottom: 8px;
  color: var(--navy-deep);
  font-size: 12px;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--brand-soft);
  outline: none;
}

.auth-field small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 28px;
  }

  .auth-brand-copy {
    padding: 56px 0 40px;
  }

  .auth-brand-copy h1 {
    font-size: clamp(36px, 9vw, 52px);
  }

  .auth-security-note {
    display: none;
  }

  .auth-form-panel {
    min-height: auto;
    padding: 34px 22px 54px;
  }
}

.page-header,
.dashboard-hero,
.section-block,
.metric-grid,
.content-grid,
.job-layout,
.settings-form,
.message,
.page-footer {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(1, 166, 79, 0.055), transparent 48%),
    var(--white);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  position: relative;
  min-height: 330px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 87% 15%, rgba(1, 166, 79, 0.24), transparent 28%),
    radial-gradient(circle at 18% 110%, rgba(32, 74, 95, 0.46), transparent 38%),
    var(--sidebar);
  box-shadow: 0 22px 55px rgba(21, 55, 71, 0.16);
}

.dashboard-hero::after {
  position: absolute;
  inset-block-start: -90px;
  inset-inline-end: -55px;
  width: 285px;
  height: 285px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.025), 0 0 0 92px rgba(255, 255, 255, 0.018);
  content: "";
}

.dashboard-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  align-items: end;
  gap: clamp(30px, 6vw, 90px);
  min-height: 330px;
  padding: clamp(34px, 5vw, 58px);
}

.dashboard-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 62px);
}

.dashboard-hero h1 span,
.hero-eyebrow {
  color: var(--green);
}

.dashboard-hero .page-description {
  max-width: 610px;
  color: rgba(244, 248, 246, 0.74);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.button-hero {
  gap: 20px;
  color: var(--white);
  background: var(--green);
}

.button-hero:hover,
.button-hero:focus-visible {
  background: var(--green-deep);
}

.button-hero-secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.button-hero-secondary:hover,
.button-hero-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero-status-card {
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.hero-status-label {
  color: rgba(244, 248, 246, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-status-value {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 13px;
}

.hero-status-value strong {
  font-size: 20px;
}

.hero-pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(1, 166, 79, 0.16);
}

.hero-status-card p {
  margin: 14px 0 18px;
  color: rgba(244, 248, 246, 0.7);
  font-size: 11px;
  line-height: 1.6;
}

.hero-status-card a {
  display: flex;
  justify-content: space-between;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 9px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.page-description {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 42px;
}

.metric-card,
.panel,
.store-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel,
.metric-card,
.store-card,
.table-wrap,
.job-list,
.empty-state {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.metric-card {
  position: relative;
  padding: 20px 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metric-card-brand::before {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--brand);
  content: "";
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}

.metric-label,
.metric-note {
  display: block;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 25px;
}

.metric-note {
  color: var(--muted);
  font-size: 11px;
}

.metric-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.text-success {
  color: var(--brand);
}

.text-warning {
  color: var(--warning);
}

.section-block {
  margin-bottom: 38px;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading {
  margin-bottom: 16px;
  padding-inline: 2px;
}

.section-heading h2,
.panel-heading h2 {
  margin-bottom: 0;
}

.panel-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

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

.store-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  text-decoration: none;
}

.active-store {
  border-color: var(--brand-mist);
  background:
    radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 43%),
    var(--surface);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.active-store:hover,
.active-store:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.store-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.country-code {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--brand-dark);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.country-code-active {
  border-color: transparent;
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 7px 18px rgba(1, 166, 79, 0.2);
}

.country-flag {
  font-size: 23px;
  letter-spacing: 0;
}

.store-card-body {
  margin-top: 28px;
}

.store-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-card-body h3 {
  font-size: 22px;
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link-arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand);
}

.text-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-card p,
.compact-panel p,
.muted-panel small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.card-link,
.text-link {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.card-link.muted {
  color: var(--muted);
}

.disabled-card {
  color: var(--muted);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(32, 74, 95, 0.025) 10px,
      rgba(32, 74, 95, 0.025) 20px
    ),
    var(--canvas);
  box-shadow: none;
}

.coming-soon {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coming-soon.large {
  padding: 9px 13px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status-succeeded {
  color: var(--green-deep);
  background: var(--brand-soft);
}

.status-partially_succeeded {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-running {
  color: var(--navy);
  background: var(--info-soft);
}

.status-queued,
.status-warning {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-failed {
  color: var(--danger);
  background: var(--danger-soft);
}

.text-danger {
  color: var(--danger);
}

.empty-state {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.empty-state.small {
  padding: 24px;
}

.empty-state p {
  margin-bottom: 0;
  font-size: 13px;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 21px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: start;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: var(--surface-soft);
}

.job-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.job-name-cell strong,
.job-name-cell small {
  display: block;
}

.job-name-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-transform: capitalize;
}

.job-type-icon {
  display: grid;
  flex: 0 0 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 900;
}

.table-progress-cell {
  min-width: 140px;
}

.table-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.table-progress-copy small {
  color: var(--muted);
  font-weight: 600;
}

.table-progress {
  height: 5px;
  margin-top: 7px;
}

.table-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand);
  text-decoration: none;
}

.table-action:hover,
.table-action:focus-visible {
  border-color: var(--brand);
  background: var(--brand-soft);
  outline: none;
}

.content-grid,
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 0.75fr);
  gap: 18px;
  margin-bottom: 38px;
}

.panel {
  min-width: 0;
  padding: clamp(22px, 2.5vw, 30px);
}

.primary-panel {
  padding: clamp(24px, 4vw, 38px);
}

.sync-form {
  margin-top: 32px;
}

.batch-sync-panel {
  padding: clamp(24px, 4vw, 38px);
}

.batch-sync-panel textarea {
  width: 100%;
  min-height: 170px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
}

.batch-sync-panel textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
}

.batch-sync-panel textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: var(--surface-soft);
}

.batch-field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.batch-field-meta [data-batch-count] {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.batch-field-meta .limit-exceeded {
  color: var(--danger);
}

.sync-form > label,
.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
}

.reference-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  background: var(--white);
}

.reference-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
}

.reference-input span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-inline-end: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 800;
}

.reference-input input,
.field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.reference-input input {
  border: 0;
  border-radius: 0;
  padding: 15px;
  font-size: 16px;
}

.field input {
  padding: 11px 12px;
  font-size: 13px;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
}

.field input[readonly] {
  color: var(--muted);
  background: var(--surface-soft);
}

.field-help,
.field small {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled),
.button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: var(--brand);
}

.button-primary:hover:not(:disabled),
.button-primary:focus-visible:not(:disabled) {
  background: var(--brand-dark);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--white);
}

.button-secondary:hover:not(:disabled),
.button-secondary:focus-visible:not(:disabled) {
  border-color: var(--navy);
  background: var(--surface-soft);
}

.button-danger {
  border-color: var(--line-strong);
  color: var(--danger);
  background: var(--white);
}

.button-danger:hover:not(:disabled),
.button-danger:focus-visible:not(:disabled) {
  color: var(--white);
  background: var(--danger-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.full-width {
  width: 100%;
}

.apply-warning,
.inline-notice {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--navy);
  background: var(--warning-soft);
  font-size: 11px;
  line-height: 1.55;
}

.apply-warning strong {
  display: block;
  margin-bottom: 2px;
}

.side-stack {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}

.compact-panel {
  padding: 21px;
}

.stacked-actions {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.muted-panel {
  border-style: dashed;
  box-shadow: none;
}

.muted-panel small {
  display: block;
  margin-top: 10px;
  text-align: center;
}

.job-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.job-row:last-child {
  border-bottom: 0;
}

.job-row:hover {
  background: var(--surface-soft);
}

.job-row:focus-visible {
  background: var(--brand-soft);
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.job-row strong,
.job-row span {
  display: block;
}

.job-row strong {
  font-size: 13px;
}

.job-row > div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.message {
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: var(--radius-small);
  font-size: 12px;
  line-height: 1.55;
}

.message ul {
  margin: 7px 0 0;
  padding-inline-start: 20px;
}

.message-success {
  border-color: var(--brand-mist);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.message-error {
  border-color: var(--line-strong);
  color: var(--danger-dark);
  background: var(--danger-soft);
}

.message-warning {
  border-color: var(--line);
  color: var(--navy);
  background: var(--warning-soft);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.form-section {
  padding: clamp(22px, 4vw, 32px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
  margin-top: 27px;
}

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

.system-label {
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
}

.secret-status {
  margin-inline-start: 7px;
  color: var(--brand);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

/* Settings workspace */
.settings-page-header {
  align-items: center;
}

.settings-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.settings-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.settings-guide a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.settings-guide a:hover,
.settings-guide a:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  outline: none;
}

.settings-guide a > span,
.settings-section-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.settings-guide a > span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 9px;
}

.settings-guide strong,
.settings-guide small {
  display: block;
}

.settings-guide strong {
  font-size: 11px;
}

.settings-guide small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.settings-precedence-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 28px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--navy);
  background: var(--warning-soft);
}

.settings-precedence-note > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-size: 10px;
  font-weight: 900;
}

.settings-precedence-note strong {
  font-size: 11px;
}

.settings-precedence-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.settings-workspace {
  gap: 26px;
}

.settings-section {
  scroll-margin-top: 20px;
  padding: clamp(27px, 4vw, 42px);
}

.settings-section-heading,
.settings-section-title {
  display: flex;
}

.settings-section-heading {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.settings-section-title {
  align-items: flex-start;
  gap: 15px;
}

.settings-section-title .eyebrow,
.settings-section-title h2,
.settings-section-title p {
  margin-bottom: 0;
}

.settings-section-title > div > p:last-child {
  max-width: 680px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.settings-section-number {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 11px;
}

.settings-field-grid {
  gap: 18px;
  margin-top: 24px;
}

.settings-field-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.settings-field-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.08);
}

.settings-field-card > span {
  color: var(--ink);
  font-size: 12px;
}

.settings-field-card input {
  min-height: 45px;
  margin-top: 2px;
  padding: 11px 12px;
  background: var(--white);
}

.settings-field-card > small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.settings-secret-field {
  border-color: var(--brand-mist);
  background:
    linear-gradient(135deg, rgba(1, 166, 79, 0.045), transparent 65%),
    var(--surface-soft);
}

.settings-save-bar {
  padding: 18px 20px;
}

.settings-save-bar .button {
  min-width: 210px;
}

@media (max-width: 720px) {
  .settings-header-actions,
  .settings-guide {
    width: 100%;
  }

  .settings-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-guide {
    grid-template-columns: 1fr;
  }

  .settings-section {
    padding: 23px 19px;
  }

  .settings-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-field-card {
    padding: 16px;
  }

  .settings-save-bar .button {
    min-width: 0;
  }
}

.form-actions {
  position: sticky;
  inset-block-end: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-hover);
  backdrop-filter: blur(12px);
}

.form-actions strong {
  font-size: 12px;
}

.form-actions p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--navy-deep);
  background: var(--warning-soft);
  font-size: 0.9em;
}

.log-panel {
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.batch-progress-panel,
.batch-items-panel {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.batch-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.current-reference {
  max-width: 50%;
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-track {
  height: 10px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 74, 95, 0.11);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 220ms ease;
}

.batch-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.batch-count-grid div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.batch-count-grid span,
.batch-count-grid strong {
  display: block;
}

.batch-count-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.batch-count-grid strong {
  margin-top: 4px;
  font-size: 18px;
}

.batch-items-panel {
  padding: 0;
  overflow: hidden;
}

.batch-items-panel > .panel-heading {
  margin-bottom: 0;
  padding: 21px 23px;
}

.batch-table-wrap {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.batch-items-table td:first-child {
  min-width: 150px;
}

.batch-item-result {
  min-width: 280px;
  color: var(--muted);
  line-height: 1.5;
}

.muted-copy {
  color: var(--muted);
}

.log-panel .panel-heading {
  margin-bottom: 0;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.polling-label {
  color: var(--muted);
  font-size: 10px;
}

.log-output {
  min-height: 430px;
  max-height: 620px;
  overflow: auto;
  padding: 15px;
  color: var(--canvas);
  background: var(--navy-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
}

.log-line {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.log-line time {
  color: rgba(244, 248, 246, 0.56);
}

.log-warn {
  color: var(--green);
}

.log-error {
  color: var(--white);
}

.log-empty {
  color: rgba(244, 248, 246, 0.52);
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 17px 0 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 11px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  font-weight: 700;
  text-align: end;
}

.error-copy {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}

.coming-soon-panel,
.error-page {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.coming-soon-panel {
  padding: 62px 34px;
}

.large-code {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  font-size: 15px;
}

.error-page {
  padding: 70px 24px;
}

.error-code {
  display: block;
  color: var(--line-strong);
  font-size: clamp(80px, 18vw, 170px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.error-page p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.page-footer {
  margin-top: 55px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

[dir="rtl"] .sidebar {
  direction: rtl;
}

@media (max-width: 1000px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    padding: 18px 22px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 2px;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-top: 0;
    padding: 0 0 0 12px;
    border-top: 0;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-group-title {
    padding: 0 4px;
  }

  .nav-list a {
    flex: 0 0 auto;
  }

  .sidebar-note {
    display: none;
  }

  .main-content {
    margin-inline-start: 0;
    padding: 20px 22px 30px;
  }

  .dashboard-hero-content {
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, 0.65fr);
    gap: 28px;
    padding: 38px;
  }

  .content-grid,
  .job-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .security-banner,
  .page-header,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .security-banner strong {
    padding-inline-end: 0;
    border-inline-end: 0;
  }

  .page-header {
    gap: 18px;
  }

  .dashboard-hero {
    min-height: auto;
    border-radius: 18px;
  }

  .dashboard-hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 30px 24px 24px;
  }

  .dashboard-hero h1 {
    font-size: clamp(34px, 11vw, 45px);
  }

  .hero-status-card {
    padding: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .metric-grid,
  .store-grid,
  .form-grid,
  .side-stack {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .store-card {
    min-height: 190px;
  }

  .section-heading {
    align-items: flex-end;
  }

  .action-row {
    flex-direction: column;
  }

  .batch-field-meta,
  .batch-progress-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .current-reference {
    max-width: 100%;
  }

  .batch-count-grid {
    grid-template-columns: 1fr;
  }

  .action-row .button,
  .form-actions .button {
    width: 100%;
  }

  .form-actions {
    position: static;
  }
}

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

.job-progress-panel {
  margin-bottom: 18px;
}

.job-stage {
  margin: 15px 0 0;
  color: var(--muted);
}

.job-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.job-actions:empty {
  display: none;
}

.job-item-list {
  display: grid;
  gap: 10px;
}

.job-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.job-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.job-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.progress-track.small {
  height: 5px;
}

.status-paused .status-dot,
.status-cancelled .status-dot {
  background: var(--muted);
}

/* Store workspace */
.store-page-header {
  align-items: center;
}

.store-connections-section,
.store-sync-section,
.store-jobs-section {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
}

.store-connections-section {
  margin-bottom: 58px;
}

.store-sync-section {
  margin-bottom: 62px;
}

.store-step-heading,
.store-step-copy,
.connection-card-heading,
.connection-identity,
.sync-option-heading {
  display: flex;
}

.store-step-heading,
.connection-card-heading,
.sync-option-heading {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.store-step-heading {
  margin-bottom: 24px;
  padding: 0 2px 22px;
  border-bottom: 1px solid var(--line);
}

.store-step-copy,
.connection-identity {
  align-items: flex-start;
  gap: 15px;
}

.store-step-copy h2,
.store-step-copy p,
.connection-identity h3,
.sync-option-heading h2,
.sync-option-heading p {
  margin-bottom: 0;
}

.store-step-copy > div > p:last-child,
.sync-option-heading > div > p:last-child {
  max-width: 700px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.store-step-number {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.connection-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.connection-card {
  min-width: 0;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.connection-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.connection-card.connection-success {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.08), var(--shadow);
}

.connection-card.connection-failed {
  border-color: var(--navy);
}

.connection-logo {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: var(--navy);
  font-size: 15px;
  font-weight: 900;
}

.connection-role {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connection-identity h3 {
  font-size: 20px;
}

.connection-pending {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
}

.connection-details {
  display: grid;
  gap: 0;
  margin: 26px 0 22px;
  border-block: 1px solid var(--line);
}

.connection-details div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.connection-details div:last-child {
  border-bottom: 0;
}

.connection-details dt,
.connection-details dd {
  min-width: 0;
  margin: 0;
  font-size: 10px;
}

.connection-details dt {
  color: var(--muted);
}

.connection-details dd {
  overflow-wrap: anywhere;
  font-weight: 800;
  text-align: end;
}

.connection-card .button {
  gap: 20px;
}

.sync-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sync-choice {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: start;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sync-choice:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.sync-choice.active {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow-hover);
}

.sync-choice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--green-deep);
  background: var(--brand-soft);
  font-size: 11px;
  font-weight: 900;
}

.sync-choice.active .sync-choice-icon {
  color: var(--white);
  background: var(--green);
}

.sync-choice strong,
.sync-choice small {
  display: block;
}

.sync-choice strong {
  font-size: 13px;
}

.sync-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.sync-choice.active small {
  color: rgba(244, 248, 246, 0.7);
}

.sync-panel-stack {
  display: grid;
}

.sync-option-panel {
  padding: clamp(28px, 4vw, 46px);
}

.sync-option-panel[hidden] {
  display: none;
}

.sync-option-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.sync-option-panel .sync-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.sync-form-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.sync-form-section > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.sync-form-section select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
}

.sync-option-panel textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  outline: none;
}

.sync-option-panel textarea:focus,
.sync-form-section select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
  outline: none;
}

.sync-submit-area {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.sync-submit-area .apply-warning,
.sync-submit-area .action-row {
  margin: 0;
}

.sync-submit-area .apply-warning {
  max-width: 600px;
}

.catalog-scope-note {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.catalog-scope-note div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.catalog-scope-note span {
  color: var(--green-deep);
  font-size: 9px;
  font-weight: 900;
}

.catalog-scope-note strong {
  font-size: 10px;
}

.store-jobs-section .job-list {
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .sync-option-panel .sync-form {
    grid-template-columns: 1fr;
  }

  .sync-submit-area,
  .catalog-scope-note {
    grid-column: auto;
  }

  .sync-submit-area {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .store-step-heading,
  .connection-card-heading,
  .sync-option-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-card-grid,
  .sync-choice-grid,
  .catalog-scope-note {
    grid-template-columns: 1fr;
  }

  .store-connections-section {
    margin-bottom: 46px;
  }

  .store-sync-section {
    margin-bottom: 50px;
  }

  .connection-card,
  .sync-option-panel {
    padding: 22px 19px;
  }

  .connection-details div {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sync-choice {
    padding: 17px;
  }

  .sync-form-section {
    padding: 18px;
  }

  .sync-submit-area .action-row,
  .sync-submit-area .button {
    width: 100%;
  }
}

.fast-mode-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 11px;
}

.automation-page-header {
  align-items: center;
  margin-bottom: 28px;
}

.automation-header-meta {
  display: grid;
  min-width: 250px;
  gap: 9px;
}

.automation-header-meta span {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 10px;
}

.automation-header-meta strong {
  color: var(--ink);
}

.automation-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 42px;
}

.automation-summary-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.automation-summary-note {
  background:
    linear-gradient(135deg, rgba(1, 166, 79, 0.07), transparent 75%),
    var(--white);
}

.automation-summary-icon,
.schedule-card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-deep);
  background: var(--brand-soft);
  font-weight: 900;
}

.automation-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.automation-summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.automation-summary-card strong {
  display: block;
  font-size: 27px;
  line-height: 1.15;
}

.automation-summary-card .automation-summary-date {
  font-size: 16px;
  line-height: 1.4;
}

.automation-summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.automation-create-card {
  padding: clamp(28px, 4vw, 48px);
}

.automation-section-heading,
.automation-heading-copy,
.schedule-card-heading,
.schedule-card-title,
.schedule-card-footer,
.automation-submit-row {
  display: flex;
}

.automation-section-heading,
.schedule-card-heading,
.schedule-card-footer,
.automation-submit-row {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.automation-section-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.automation-heading-copy,
.schedule-card-title {
  align-items: flex-start;
  gap: 16px;
}

.automation-heading-copy h2,
.automation-heading-copy p,
.schedule-card-title h3 {
  margin-bottom: 0;
}

.automation-heading-copy > div > p:last-child {
  max-width: 650px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.automation-step {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.schedule-form {
  margin-top: 30px;
}

.automation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.automation-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 4px 13px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.automation-field[hidden] {
  display: none;
}

.automation-field-wide {
  grid-column: 1 / -1;
}

.automation-field-number {
  grid-row: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-deep);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 900;
}

.automation-field label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.automation-field p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.automation-field input,
.automation-field select {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.automation-field input:focus,
.automation-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
}

.automation-timing-field {
  background:
    linear-gradient(135deg, rgba(1, 166, 79, 0.05), transparent 60%),
    var(--surface-soft);
}

.automation-mode-note {
  margin-top: 22px;
  padding: 16px 18px;
  line-height: 1.6;
}

.automation-mode-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.automation-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 19px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.automation-confirmation:hover {
  border-color: var(--brand);
}

.automation-confirmation:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.08);
}

.automation-confirmation input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.automation-confirmation strong,
.automation-confirmation small {
  display: block;
}

.automation-confirmation strong {
  font-size: 12px;
}

.automation-confirmation small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.automation-submit-row {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.automation-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.automation-submit-row .button {
  gap: 24px;
  min-width: 180px;
}

.automation-schedules-section {
  margin-top: 54px;
}

.automation-list-heading {
  max-width: 1480px;
  margin: 0 auto 24px;
  padding: 0 2px 22px;
}

.automation-count {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 10px;
  font-weight: 800;
}

.automation-empty-state {
  padding-block: 60px;
}

.schedule-card-list {
  display: grid;
  gap: 22px;
}

.schedule-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.schedule-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.schedule-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
}

.schedule-card-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-card-title h3 {
  font-size: 19px;
}

.schedule-detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.schedule-detail-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
}

.schedule-detail-grid dt,
.schedule-detail-grid dd {
  margin: 0;
}

.schedule-detail-grid dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-detail-grid dd {
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.schedule-card-footer {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.schedule-card-footer > span {
  color: var(--muted);
  font-size: 10px;
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.schedule-actions .button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 10px;
}

@media (max-width: 1000px) {
  .automation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .automation-summary-note {
    grid-column: 1 / -1;
  }

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

/* Category Mapping */
.category-page-header,
.category-list-section {
  max-width: 1480px;
  margin-inline: auto;
}

.category-refresh-actions,
.category-selection-actions,
.bulk-submit-row,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: end;
  gap: 18px;
  padding: clamp(20px, 2.5vw, 28px);
}

.category-toolbar label,
.collection-picker > label,
.category-filter-group legend,
.bulk-operation-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-with-action {
  display: flex;
  gap: 8px;
}

.category-toolbar input[type="search"],
.collection-picker input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.category-toolbar input[type="search"]:focus,
.collection-picker input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.1);
}

.category-filter-group,
.bulk-operation-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.segmented-control button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.segmented-control button.active {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(21, 55, 71, 0.08);
}

.category-live-counts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.category-live-counts strong {
  color: var(--ink);
}

.bulk-mapping-panel {
  position: sticky;
  z-index: 8;
  top: 12px;
  max-width: 1480px;
  margin-inline: auto;
  padding: clamp(20px, 2.5vw, 28px);
  border-color: var(--brand-mist);
  box-shadow: var(--shadow-hover);
}

.bulk-mapping-heading,
.category-card-title,
.bulk-submit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bulk-mapping-heading h2 {
  margin-bottom: 0;
}

.bulk-mapping-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.7fr);
  gap: 20px;
  margin-top: 18px;
}

.bulk-operation-fieldset {
  display: grid;
  align-content: start;
  gap: 7px;
}

.operation-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  cursor: pointer;
  background: var(--white);
}

.operation-option.recommended {
  border-color: var(--brand-mist);
  background: var(--brand-soft);
}

.operation-option.danger-option {
  border-color: var(--line-strong);
}

.operation-option strong,
.operation-option small {
  display: block;
}

.operation-option strong {
  font-size: 12px;
}

.operation-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.bulk-submit-row {
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bulk-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.collection-picker {
  min-width: 0;
}

.selected-collection-chips,
.mapping-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-collection-chips {
  min-height: 31px;
  margin: 9px 0;
}

.mapping-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mapping-chip.muted,
.selection-placeholder {
  color: var(--muted);
  background: var(--surface-soft);
}

.mapping-chip.removable button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--brand-dark);
  background: rgba(1, 166, 79, 0.11);
  cursor: pointer;
  line-height: 1;
}

.collection-option-list {
  display: grid;
  max-height: 190px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--white);
}

.collection-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.collection-option[hidden],
.category-card[hidden] {
  display: none;
}

.collection-option:last-child {
  border-bottom: 0;
}

.collection-option:hover:not(.is-disabled) {
  background: var(--surface-soft);
}

.collection-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.collection-option-copy {
  min-width: 0;
}

.collection-option-copy strong,
.collection-option-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.collection-option-copy strong {
  font-size: 11px;
}

.collection-option-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.collection-source-state {
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.collection-source-state.ready {
  color: var(--brand);
}

.collection-source-state.unsupported {
  color: var(--danger);
}

.category-card-list {
  display: grid;
  gap: 12px;
}

.category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.category-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.category-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 166, 79, 0.08);
}

.category-card-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.category-card-content,
.category-card-title h3 {
  min-width: 0;
}

.category-card-title h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.category-id-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
}

.category-meta,
.category-samples {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.category-card .mapping-chip-list {
  margin-top: 10px;
}

.category-card-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.individual-mapping-dialog {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(21, 55, 71, 0.42);
  backdrop-filter: blur(2px);
}

.individual-mapping-dialog[hidden] {
  display: none;
}

.individual-dialog-panel {
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(21, 55, 71, 0.26);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.dialog-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
}

.dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
  font-size: 20px;
}

.dialog-description {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.individual-delete-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  text-align: end;
}

.category-no-results {
  padding: 38px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  text-align: center;
  background: var(--surface-soft);
}

.category-no-results p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

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

.category-metrics .metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.mapping-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1480px;
  margin: -12px auto 34px;
}

.mapping-guide > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.66);
}

.mapping-guide > div > span {
  grid-row: 1 / 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-size: 9px;
  font-weight: 900;
}

.mapping-guide strong,
.mapping-guide small {
  display: block;
}

.mapping-guide strong {
  font-size: 11px;
}

.mapping-guide small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.mapping-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) 58px minmax(360px, 0.78fr);
  align-items: start;
  gap: 18px;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto 48px;
}

.mapping-column {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 34px);
}

.mapping-column-heading,
.mapping-system-identity,
.shopify-picker-section {
  display: flex;
  align-items: center;
}

.mapping-column-heading {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mapping-system-identity {
  gap: 13px;
}

.mapping-system-identity .eyebrow,
.mapping-system-identity h2 {
  margin-bottom: 0;
}

.mapping-system-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.shopify-mapping-column .mapping-system-logo {
  background: var(--green-deep);
}

.mapping-column-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 800;
}

.mapping-column-description {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.odoo-category-toolbar {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.odoo-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.odoo-category-toolbar .category-live-counts {
  grid-column: auto;
}

.odoo-mapping-column .category-card-list {
  gap: 10px;
}

.odoo-mapping-column .category-card {
  padding: 16px;
  box-shadow: 0 6px 20px rgba(21, 55, 71, 0.055);
}

.mapping-flow-indicator {
  position: sticky;
  top: 180px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding-top: 100px;
  color: var(--muted);
}

.mapping-flow-indicator span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--brand-mist);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 24px rgba(1, 166, 79, 0.18);
  font-size: 17px;
}

.mapping-flow-indicator small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bulk-mapping-panel.shopify-mapping-column {
  top: 18px;
  max-width: none;
  margin: 0;
  border-color: var(--brand-mist);
}

.mapping-selection-summary {
  margin: 18px 0 22px;
  padding: 17px;
  border: 1px solid var(--brand-mist);
  border-radius: var(--radius-small);
  background: var(--brand-soft);
}

.mapping-selection-summary span,
.mapping-selection-summary strong,
.mapping-selection-summary small {
  display: block;
}

.mapping-selection-summary > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mapping-selection-summary strong {
  margin-top: 5px;
  font-size: 18px;
}

.mapping-selection-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.shopify-picker-section {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
}

.shopify-picker-section strong,
.shopify-picker-section small {
  display: block;
}

.shopify-picker-section strong {
  font-size: 11px;
}

.shopify-picker-section small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.mapping-section-number {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--brand-soft);
  font-size: 9px;
  font-weight: 900;
}

.shopify-mapping-column .collection-picker > label {
  display: none;
}

.shopify-mapping-column .collection-option-list {
  max-height: 360px;
}

.operation-section-heading {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.shopify-mapping-column .bulk-operation-fieldset {
  gap: 9px;
}

.shopify-mapping-column .operation-option {
  padding: 13px;
}

.mapping-impact-note {
  margin-top: 20px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--navy);
  background: var(--warning-soft);
}

.mapping-impact-note strong,
.mapping-impact-note span {
  display: block;
}

.mapping-impact-note strong {
  font-size: 10px;
}

.mapping-impact-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.shopify-mapping-column .bulk-submit-row {
  display: grid;
  align-items: stretch;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.shopify-mapping-column .bulk-submit-row .button {
  width: 100%;
}

@media (max-width: 1100px) {
  .mapping-workspace {
    grid-template-columns: 1fr;
  }

  .mapping-flow-indicator {
    position: static;
    padding: 0;
  }

  .mapping-flow-indicator span {
    transform: rotate(90deg);
  }

  .bulk-mapping-panel.shopify-mapping-column {
    position: static;
  }
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
.collection-option:focus-within {
  outline: 3px solid rgba(1, 166, 79, 0.18);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .automation-header-meta,
  .automation-submit-row .button {
    width: 100%;
  }

  .automation-summary-grid,
  .automation-form-grid,
  .schedule-detail-grid {
    grid-template-columns: 1fr;
  }

  .automation-summary-note,
  .automation-field-wide {
    grid-column: auto;
  }

  .automation-summary-grid {
    gap: 15px;
    margin-bottom: 30px;
  }

  .automation-summary-card {
    min-height: 0;
    padding: 21px;
  }

  .automation-create-card {
    padding: 24px 20px;
  }

  .automation-section-heading,
  .schedule-card-heading,
  .schedule-card-footer,
  .automation-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-section-heading {
    gap: 18px;
  }

  .automation-form-grid {
    gap: 14px;
  }

  .automation-field {
    padding: 18px;
  }

  .automation-schedules-section {
    margin-top: 42px;
  }

  .automation-count {
    width: fit-content;
  }

  .schedule-card {
    padding: 22px 19px;
  }

  .schedule-card-heading {
    gap: 16px;
  }

  .schedule-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .schedule-actions .button {
    width: 100%;
  }

  .category-metrics,
  .category-toolbar,
  .bulk-mapping-grid,
  .mapping-guide {
    grid-template-columns: 1fr;
  }

  .mapping-guide {
    gap: 10px;
    margin-bottom: 24px;
  }

  .mapping-column {
    padding: 21px 18px;
  }

  .mapping-column-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .odoo-toolbar-controls .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .category-selection-actions .button {
    flex: 1 1 auto;
  }

  .bulk-mapping-panel {
    position: static;
  }

  .search-with-action,
  .bulk-submit-row,
  .category-card-title {
    align-items: stretch;
    flex-direction: column;
  }

  .category-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .category-card-actions {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    justify-items: start;
  }

  .collection-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .collection-source-state {
    grid-column: 2;
    white-space: normal;
  }
}
