html, body {
  min-height: 100%;
  background: radial-gradient(circle at top, #e0f7ff 0, #f1f5f9 40%, #e5f5eb 100%);
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.main-card {
  border-radius: 32px;
  background: #f9fafb;
  box-shadow: 0 22px 60px rgba(15,23,42,0.16);
}

.site-footer {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 20px 0 8px;
}

/* ── Global keyboard focus ring (covers all buttons/links not already styled) */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent, #10b981);
  outline-offset: 2px;
}

/* ── Password show/hide wrapper ─────────────────────────── */
.pw-field-wrap { position: relative; }
.pw-field-wrap input { padding-inline-end: 42px; }
.pw-toggle-btn {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 4px; color: #6b7280;
  display: flex; align-items: center;
  border-radius: 4px;
}
.pw-toggle-btn:hover { color: #374151; }
.pw-toggle-btn:focus-visible { outline: 2px solid var(--accent, #10b981); outline-offset: 2px; }

/* ─────────────────────────────────────────────────────────────────────────────
   Tailwind CSS utility fallbacks
   Tailwind is NOT compiled in this project (link commented out in base.html).
   These definitions give every page a working layout without Tailwind.
   ───────────────────────────────────────────────────────────────────────── */

/* Layout / sizing */
.min-h-screen            { min-height: 100vh; min-height: 100dvh; }
.max-w-xs  { max-width: 20rem;  margin-left: auto; margin-right: auto; }
.max-w-sm  { max-width: 24rem;  margin-left: auto; margin-right: auto; }
.max-w-md  { max-width: 28rem;  margin-left: auto; margin-right: auto; }
.max-w-lg  { max-width: 32rem;  margin-left: auto; margin-right: auto; }
.max-w-xl  { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }

/* Padding */
.p-1 { padding: .25rem; }  .p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }  .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-2 { padding-left: .5rem;  padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem;   padding-right: 1rem; }
.px-5 { padding-left: 1.25rem;padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem;  padding-bottom: .25rem; }
.py-2 { padding-top: .5rem;   padding-bottom: .5rem; }
.py-3 { padding-top: .75rem;  padding-bottom: .75rem; }
.py-3\.5 { padding-top: .875rem; padding-bottom: .875rem; }
.py-4 { padding-top: 1rem;    padding-bottom: 1rem; }
.py-8 { padding-top: 2rem;    padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pt-2 { padding-top: .5rem; }  .pt-3 { padding-top: .75rem; }
.pt-4 { padding-top: 1rem; }   .pt-5 { padding-top: 1.25rem; }

/* Margin */
.m-0 { margin: 0; }
.mt-1 { margin-top: .25rem; }  .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }  .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }.mb-6 { margin-bottom: 1.5rem; }
.ml-auto { margin-left: auto; }

/* Display / Flexbox */
.block        { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.flex         { display: flex; }
.hidden       { display: none !important; }
.flex-1       { flex: 1 1 0%; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-start  { align-items: flex-start; }
.items-center { align-items: center; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem;} .gap-6 { gap: 1.5rem; }

/* Grid */
.grid           { display: grid; }
.grid-cols-1    { grid-template-columns: 1fr; }
.grid-cols-2    { grid-template-columns: 1fr 1fr; }
.col-span-2     { grid-column: span 2 / span 2; }

/* Sizing */
.w-full  { width: 100%; }
.w-12    { width: 3rem;   }
.h-12    { height: 3rem;  }
.w-14    { width: 3.5rem; }
.h-14    { height: 3.5rem;}
.shrink-0, .flex-shrink-0 { flex-shrink: 0; }

/* Spacing helpers */
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-2 > * + * { margin-left: .5rem; }
.space-x-3 > * + * { margin-left: .75rem; }

/* Typography */
.text-xs   { font-size: .75rem;   line-height: 1rem; }
.text-sm   { font-size: .875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black     { font-weight: 900; }
.leading-relaxed  { line-height: 1.625; }
.leading-snug     { line-height: 1.375; }
.leading-tight    { line-height: 1.25; }
.tracking-tight   { letter-spacing: -.025em; }
.underline        { text-decoration: underline; }
.underline-offset-4 { text-underline-offset: 4px; }

/* Colors — text */
.text-white      { color: #fff; }
.text-gray-500   { color: #6b7280; }
.text-gray-600   { color: #4b5563; }
.text-gray-700   { color: #374151; }
.text-gray-900   { color: #111827; }
.text-slate-400  { color: #94a3b8; }
.text-slate-500  { color: #64748b; }
.text-slate-600  { color: #475569; }
.text-slate-700  { color: #334155; }
.text-slate-800  { color: #1e293b; }
.text-slate-900  { color: #0f172a; }
.text-red-500    { color: #ef4444; }
.text-red-600    { color: #dc2626; }
.text-red-700    { color: #b91c1c; }
.text-green-700  { color: #15803d; }
.text-emerald-600{ color: #059669; }
.text-amber-700  { color: #b45309; }

/* Colors — background */
.bg-white          { background-color: #fff; }
.bg-white\/90      { background-color: rgba(255,255,255,.9); }
.bg-slate-50       { background-color: #f8fafc; }
.bg-slate-100      { background-color: #f1f5f9; }
.bg-slate-900      { background-color: #0f172a; }
.bg-slate-800      { background-color: #1e293b; }
.bg-gray-50        { background-color: #f9fafb; }
.bg-gray-100       { background-color: #f3f4f6; }
.bg-red-50         { background-color: #fff1f2; }
.bg-amber-100      { background-color: #fef3c7; }
.bg-green-100      { background-color: #dcfce7; }
.bg-emerald-600    { background-color: #059669; }
.bg-gradient-to-b.from-slate-50.to-slate-100 {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}
/* Generic gradient fallback when Tailwind compound classes fail */
[class*="bg-gradient-to-b"][class*="from-slate-50"] {
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}
[class*="bg-gradient-to-r"][class*="from-green-500"] {
  background: linear-gradient(to right, #22c55e, #10b981);
}
[class*="bg-gradient-to-r"][class*="from-slate-800"] {
  background: linear-gradient(to right, #1e293b, #0f172a);
}

/* Colors — border */
.border           { border: 1px solid #e2e8f0; }
.border-t         { border-top: 1px solid #e2e8f0; }
.border-b         { border-bottom: 1px solid #e2e8f0; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-900 { border-color: #0f172a; }
.border-red-300   { border-color: #fca5a5; }
.border-red-200   { border-color: #fecaca; }

/* Border-radius */
.rounded      { border-radius: .375rem; }
.rounded-lg   { border-radius: .5rem; }
.rounded-xl   { border-radius: .75rem; }
.rounded-2xl  { border-radius: 1rem; }
.rounded-3xl  { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; }
.rounded-b-lg { border-bottom-left-radius: .5rem; border-bottom-right-radius: .5rem; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow    { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.04); }

/* Overflow / position */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-pointer     { cursor: pointer; }
.select-none { user-select: none; }

/* Backdrop / opacity */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.opacity-70    { opacity: .7; }

/* Responsive grid helpers (approximations for mobile-first without media queries) */
@media (min-width: 640px) {
  .sm\:flex-row    { flex-direction: row; }
  .sm\:p-8         { padding: 2rem; }
  .sm\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:px-6        { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:p-8         { padding: 2rem; }
  .md\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:grid-cols-2 { grid-template-columns: 1fr 1fr; }
  .md\:col-span-2  { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) {
  .lg\:col-span-2  { grid-column: span 2 / span 2; }
  .lg\:col-span-3  { grid-column: span 3 / span 3; }
  .lg\:col-span-5  { grid-column: span 5 / span 5; }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .lg\:px-8        { padding-left: 2rem; padding-right: 2rem; }
}

/* Hover effects */
.hover\:bg-slate-50:hover  { background-color: #f8fafc; }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:bg-black:hover     { background-color: #000; }
.hover\:bg-emerald-700:hover { background-color: #047857; }
.hover\:text-slate-900:hover { color: #0f172a; }
.hover\:underline:hover    { text-decoration: underline; }

/* Focus rings */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--ring-color, rgba(16,185,129,.4)); }
.focus\:ring-4:focus { box-shadow: 0 0 0 4px var(--ring-color, rgba(16,185,129,.25)); }

/* Transitions */
.transition-opacity { transition: opacity .15s ease; }

/* min-width custom */
.min-w-\[220px\] { min-width: 220px; }

/* page-pad-bottom: safe-area-inset for mobile */
.page-pad-bottom { padding-bottom: max(2rem, env(safe-area-inset-bottom, 2rem)); }

/* ─────────────────────────────────────────────────────────────────────────────
   Shared page CSS variables (used by settings + platforms pages)
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  --sl-text: #0f172a;
  --sl-muted: #64748b;
  --sl-border: rgba(148,163,184,0.35);
  --sl-card: #ffffff;
  --sl-shadow: 0 12px 26px rgba(15,23,42,0.06);
  --sl-focus: #2563eb;
  --sl-focusRing: rgba(37,99,235,0.35);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Shipping Settings page  (settings.html)
   ───────────────────────────────────────────────────────────────────────────── */
.settings-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
.settings-header { margin-bottom: 1.1rem; }
.settings-header-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--sl-text);
  margin-bottom: .3rem;
  letter-spacing: -0.01em;
}
.settings-header-sub {
  font-size: .95rem;
  color: var(--sl-muted);
  max-width: 46rem;
  line-height: 1.5;
}
.top-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.top-links a {
  font-size: 13px;
  color: var(--sl-muted);
  text-decoration: none;
}
.top-links a:hover { color: var(--sl-text); text-decoration: underline; }
.top-links a:focus-visible { outline: 3px solid var(--sl-focus); outline-offset: 2px; }
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.settings-card {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--sl-border);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  backdrop-filter: blur(8px);
}
.settings-card h2 {
  font-size: 15px;
  font-weight: 900;
  color: var(--sl-text);
  margin: 0 0 6px;
}
.settings-card-desc {
  font-size: 12px;
  color: var(--sl-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.carrier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.carrier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.30);
  background: rgba(255,255,255,0.90);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.carrier-item:hover { border-color: rgba(34,197,94,0.40); box-shadow: 0 6px 18px rgba(15,23,42,0.07); }
.carrier-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.carrier-info { min-width: 0; }
.carrier-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--sl-text);
  margin: 0;
  line-height: 1.2;
}
.carrier-meta {
  font-size: 11px;
  color: var(--sl-muted);
  margin-top: 3px;
  line-height: 1.45;
}
.carrier-actions { display:flex; gap: 8px; align-items:center; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.85);
  color: #0f172a;
  white-space: nowrap;
}
.badge.ok { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); color: #14532d; }
.badge.warn { border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); color: #92400e; }

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.40);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15,23,42,0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(34,197,94,0.55); box-shadow: 0 14px 26px rgba(15,23,42,0.10); }
.btn:focus-visible { outline: 3px solid var(--sl-focus); outline-offset: 3px; }
.btn.primary {
  border: none;
  background: linear-gradient(135deg,#22c55e,#4ade80);
  color: #052e1d;
  box-shadow: 0 14px 34px rgba(22,163,74,0.34);
}

.field-label { display:block; font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.field-input, .field-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--sl-border);
  padding: 10px;
  font-size: 13px;
  color: #111827;
  background: #f8fafc;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.field-input::placeholder { color: rgba(100,116,139,0.9); }
.field-input:focus, .field-select:focus {
  border-color: var(--sl-focus);
  box-shadow: 0 0 0 4px var(--sl-focusRing);
  background: #ffffff;
  outline: 2px solid var(--sl-focus);
  outline-offset: 2px;
}

.help-text { margin-top: 6px; font-size: 11px; color: rgba(100,116,139,0.95); line-height: 1.55; }

.fieldset {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.32);
  padding: 12px;
  margin-top: 12px;
  background: rgba(2,6,23,0.015);
}
.fieldset-legend { padding: 0 6px; font-size: 11px; font-weight: 800; color: rgba(100,116,139,0.95); }
.fieldset-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.fieldset-grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }

.btn-primary-wide {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg,#22c55e,#4ade80);
  color: #052e1d;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(22,163,74,0.34);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary-wide:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(22,163,74,0.42); }
.btn-primary-wide:focus-visible { outline: 3px solid var(--sl-focus); outline-offset: 3px; }

.status-note {
  margin-top: 10px;
  font-size: 12px;
  color: #166534;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 14px;
  padding: 10px 12px;
}
.status-note--mt { margin-top: 12px; }

.preview-empty { font-size: 13px; color: var(--sl-muted); line-height: 1.7; margin: 0; }
.preview-box {
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.35);
  background: linear-gradient(180deg, rgba(248,250,252,1), rgba(255,255,255,1));
  padding: 12px;
  font-size: 13px;
  line-height: 1.7;
}
.preview-row {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(148,163,184,0.28);
}
.preview-row:last-child { border-bottom: none; }
.preview-label { color: rgba(100,116,139,0.95); font-weight: 800; min-width: 110px; }
.preview-value {
  color: var(--sl-text);
  font-weight: 700;
  text-align: end;
  flex: 1;
  word-break: break-word;
}
.preview-price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148,163,184,0.35);
  font-weight: 900;
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.preview-price strong { font-size: 14px; color: var(--sl-text); }
.preview-pill {
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  color: #14532d;
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.carrier-logo-bubble { display:inline-flex; align-items:center; justify-content:center; flex: 0 0 auto; box-shadow: 0 10px 18px rgba(15,23,42,0.16); }
.carrier-logo-bubble.rounded { border-radius: 999px; }
.carrier-logo-svg { width: 66%; height: 66%; display:flex; align-items:center; justify-content:center; }
.carrier-logo-svg svg { width: 100%; height: 100%; }
.carrier-logo-bubble--img {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(148,163,184,0.25);
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(15,23,42,0.10);
}
.carrier-logo-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.preview-wrap { margin-top: 12px; }
.form-mt { margin-top: 10px; }

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

/* ─────────────────────────────────────────────────────────────────────────────
   Connected Platforms page  (platforms.html)
   ───────────────────────────────────────────────────────────────────────────── */
.platforms-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
[dir="rtl"] .platforms-shell { text-align: right; }

.platforms-header {
  margin-bottom: 1.1rem;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  background: #f9fafb;
  border: 1px solid rgba(148,163,184,0.35);
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
}
.platforms-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: .35rem;
  letter-spacing: -0.01em;
}
.platforms-subtitle {
  font-size: .95rem;
  color: #4b5563;
  max-width: 46rem;
  line-height: 1.45;
}

.platforms-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 1rem;
}
.platform-card {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148,163,184,0.35);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15,23,42,0.06);
}
.platform-headline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  margin-bottom:.45rem;
  flex-wrap: wrap;
}

.name-row {
  display:flex;
  align-items:center;
  gap:.6rem;
  min-width: 0;
}
.platform-name {
  font-size: 1rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.brand-bubble {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.28);
  box-shadow: 0 8px 16px rgba(15,23,42,0.06);
  overflow:hidden;
  flex: 0 0 auto;
}
.brand-svg { width: 84%; height: 84%; display:flex; }
.brand-svg svg { width: 100%; height: 100%; display:block; }

.platform-badge {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  background:#eef2ff;
  color:#3730a3;
  border: 1px solid rgba(99,102,241,0.25);
  white-space: nowrap;
}
.dot { width:.5rem; height:.5rem; border-radius:999px; background:#22c55e; }
.dot-off { background:#9ca3af; }

.platform-text {
  font-size:.9rem;
  color:#4b5563;
  margin-bottom:.75rem;
  line-height:1.5;
}
.platform-meta {
  font-size:.82rem;
  color:#6b7280;
  margin-bottom:.85rem;
  line-height:1.35;
}
.platform-actions {
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  align-items:center;
}
.btn-pill {
  padding:.5rem .95rem;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.45);
  background:#fff;
  font-size:.85rem;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1.1;
  min-height:40px;
  transition: transform .06s ease, background .12s ease, box-shadow .12s ease;
}
.btn-pill:active { transform: translateY(1px); }

.btn-pill-primary {
  border:none;
  background: var(--accent, #16a34a);
  color:#fff;
  box-shadow: 0 9px 20px rgba(22,163,74,0.32);
}
.btn-pill-primary:hover { background: var(--accent-dark, #15803d); }
.btn-pill-primary[disabled] { opacity:.55; cursor:not-allowed; box-shadow:none; }

.btn-pill-outline:hover { background:#f3f4f6; }

.btn-pill-muted {
  border: 1px dashed rgba(148,163,184,0.7);
  background: #f9fafb;
  color: #64748b;
  cursor: not-allowed;
}

.hint-text {
  font-size:.82rem;
  color:#6b7280;
  margin-top:.6rem;
  line-height:1.35;
}

.table-wrapper {
  margin-top:.85rem;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  overflow-x:auto;
}
table.platform-table {
  width:100%;
  border-collapse:collapse;
  font-size:.85rem;
}
table.platform-table th, table.platform-table td {
  padding:.55rem .65rem;
  border-bottom:1px solid #e5e7eb;
  white-space:nowrap;
  text-align: left;
}
[dir="rtl"] table.platform-table th,
[dir="rtl"] table.platform-table td { text-align: right; }
table.platform-table thead { background:#f3f4f6; }
table.platform-table th { font-weight:850; color:#6b7280; }

@media (prefers-reduced-motion: reduce) {
  .btn-pill { transition:none; }
  .btn-pill:active { transform:none; }
}
@media (min-width: 760px) {
  .platforms-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Integration connect pages — carrier logo in header
   ───────────────────────────────────────────────────────────────────────────── */
.int-hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
  background: rgba(255,255,255,0.9);
  padding: 4px;
  border: 1px solid rgba(148,163,184,0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile responsiveness enhancements
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .fieldset-grid { grid-template-columns: 1fr; }
  .fieldset-grid-3 { grid-template-columns: 1fr; }
  .carrier-item { flex-wrap: wrap; }
  .carrier-actions { width: 100%; }
  .preview-row { flex-direction: column; gap: 2px; }
  .preview-label { min-width: auto; }
  .preview-value { text-align: start; }
  .settings-card { padding: 14px 12px; }
  .platform-card { padding: 14px 12px; }
}
