/* Scoped store administration, following the platform's light and dark themes. */
.ead-stores {
  --stores-primary: var(--primary, #7354ef);
  --stores-surface: var(--surface, #131229);
  --stores-surface-2: var(--surface-2, #1b1a37);
  --stores-ink: var(--ink, #f3f2fb);
  --stores-ink-2: var(--ink-2, #cac7e2);
  --stores-muted: var(--muted, #a8a4c7);
  --stores-line: var(--line, #262446);
  --stores-line-2: var(--line-2, #37345f);
  --stores-link: var(--primary, #baa7ff);
  --stores-bad: var(--bad, #ff6b97);
  --stores-ok: var(--ok, #3dd39f);
  min-width: 0;
  color: var(--stores-ink);
  font: 14px/1.55 var(--f-body, Inter, system-ui, sans-serif);
  text-align: left;
}
@supports (color: color-mix(in srgb, #000, #fff)) {
  .ead-stores {
    --stores-link: color-mix(in srgb, var(--stores-primary) 70%, var(--stores-ink));
    --stores-bad: color-mix(in srgb, var(--bad, #ff6b97) 85%, var(--stores-ink));
    --stores-ok: color-mix(in srgb, var(--ok, #3dd39f) 65%, var(--stores-ink));
  }
}
.ead-stores *, .ead-stores *::before, .ead-stores *::after { box-sizing: border-box; }
.ead-stores :is(h2, h3, p) { margin: 0; }
.ead-stores :is(h2, h3) { font-family: var(--f-head, "Plus Jakarta Sans", system-ui, sans-serif); color: var(--stores-ink); }
.ead-stores h2 { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.3; letter-spacing: -.025em; }
.ead-stores h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
.ead-stores :is(button, input) { font: inherit; }
.ead-stores button { cursor: pointer; }
.ead-stores button:disabled { cursor: not-allowed; opacity: .5; }
.ead-stores :is(button, input, [tabindex]):focus-visible { outline: 3px solid var(--blue, #52b6ec); outline-offset: 4px; }
.ead-stores h3[tabindex="-1"]:focus { outline: none; }
.ead-stores-icon { flex: none; width: 19px; height: 19px; }
.ead-stores-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 4px 0 24px; }
.ead-stores-heading-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ead-stores-heading-copy p { margin-top: 6px; color: var(--stores-muted); font-size: 13px; }
.ead-stores-emblem { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; color: var(--stores-link); background: var(--primary-soft, #241e58); border: 1px solid var(--stores-line); }
.ead-stores-emblem .ead-stores-icon { width: 25px; height: 25px; }
.ead-stores-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font: 700 12px/1.45 var(--f-head, "Plus Jakarta Sans", system-ui, sans-serif) !important; text-align: center; transition: background .15s ease; }
.ead-stores-button-primary { color: #fff !important; background: #6247f5; }
.ead-stores-button-primary:hover:not(:disabled) { background: #5136e4; }
.ead-stores-button-secondary { color: var(--stores-ink); background: var(--stores-surface); border-color: var(--stores-line-2); }
.ead-stores-button-secondary:hover:not(:disabled) { background: var(--stores-surface-2); }
.ead-stores-button-small { min-height: 38px; padding: 8px 13px; font-size: 11px !important; }
.ead-stores-button-small .ead-stores-icon { width: 16px; height: 16px; }
.ead-stores-text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 34px; padding: 5px 0; background: transparent; border: 0; color: var(--stores-link); font-size: 12px !important; font-weight: 600 !important; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.ead-stores-text-button .ead-stores-icon { width: 16px; height: 16px; }
.ead-stores-icon-button { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid var(--stores-line-2); border-radius: 12px; background: var(--stores-surface); color: var(--stores-ink-2); }
.ead-stores-icon-button:hover:not(:disabled) { background: var(--stores-surface-2); }
.ead-stores-feedback { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 14px 16px; background: var(--bad-soft, #431629); color: var(--stores-bad); font-size: 13px; border-radius: 12px; overflow-wrap: anywhere; }
.ead-stores-feedback > .ead-stores-icon { margin-top: 2px; }
.ead-stores-feedback > div { min-width: 0; }
.ead-stores-feedback-success { color: var(--stores-ok); background: var(--ok-soft, #0e3a2d); }
.ead-stores-feedback .ead-stores-text-button { color: inherit; margin-top: 5px; }
.ead-stores-form { margin-bottom: 26px; border: 1px solid var(--stores-line-2); border-radius: 22px; background: var(--stores-surface); padding: 25px; box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.08)); scroll-margin-top: 22px; }
.ead-stores-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.ead-stores-form-heading h3 { font-size: 24px; margin-top: 5px; }
.ead-stores-form-heading p { font-size: 13px; color: var(--stores-muted); margin-top: 8px; }
.ead-stores-kicker { color: var(--stores-link); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ead-stores-store-fields { display: grid; grid-template-columns: minmax(250px, .95fr) minmax(220px, 1.05fr); align-items: center; gap: 28px; margin-bottom: 24px; }
.ead-stores-logo-field { display: flex; align-items: center; gap: 18px; min-width: 0; }
.ead-stores-logo { display: grid; place-items: center; flex: none; width: 55px; height: 55px; overflow: hidden; background: #fff; border: 1px solid #e6e5ec; border-radius: 13px; }
.ead-stores-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ead-stores-initials { display: grid; place-items: center; width: 100%; height: 100%; color: #6e51c8; background: #f0eafc; font: 800 17px/1 var(--f-head, "Plus Jakarta Sans", system-ui, sans-serif); letter-spacing: -.025em; }
.ead-stores-logo-preview { width: 96px; height: 96px; border-radius: 19px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.ead-stores-logo-preview img { padding: 9px; }
.ead-stores-logo-preview .ead-stores-initials { font-size: 27px; }
.ead-stores-logo-controls { min-width: 0; }
.ead-stores-logo-controls > strong { display: block; font-size: 13px; }
.ead-stores-logo-controls > p { color: var(--stores-muted); font-size: 11px; margin-top: 4px; }
.ead-stores-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 13px; margin-top: 10px; }
.ead-stores-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
.ead-stores-field { min-width: 0; }
.ead-stores-field > label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--stores-ink-2); font-size: 12px; }
.ead-stores-label-required::after { content: ' *'; color: var(--stores-link); }
.ead-stores-field input { display: block; width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid var(--stores-line-2); border-radius: 11px; background: var(--stores-surface-2); color: var(--stores-ink); font-size: 14px; }
.ead-stores-field input::placeholder { color: var(--stores-muted); opacity: .9; }
.ead-stores-field input[aria-invalid="true"] { border-color: var(--stores-bad); }
.ead-stores-field input:disabled { opacity: .65; }
.ead-stores-field-error { font-size: 12px; line-height: 1.55; color: var(--stores-bad); margin-top: 7px !important; }
.ead-stores-contact-fields { min-width: 0; margin: 0 0 22px; border: 1px solid var(--stores-line); border-radius: 16px; padding: 19px; }
.ead-stores-contact-fields legend { padding: 0 7px; margin-left: -7px; color: var(--stores-ink); font-weight: 700; font-size: 14px; }
.ead-stores-contact-fields legend .ead-stores-icon { vertical-align: middle; margin-right: 8px; color: var(--stores-link); }
.ead-stores-optional { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 7px; color: var(--stores-muted); border: 1px solid var(--stores-line-2); border-radius: 999px; font-size: 10px; font-weight: 600; }
.ead-stores-contact-note { color: var(--stores-muted); font-size: 12px; margin-bottom: 18px !important; }
.ead-stores-fields-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.ead-stores-field-wide { grid-column: 1 / -1; }
.ead-stores-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--stores-line); padding-top: 20px; }
.ead-stores-form-footer > span { color: var(--stores-muted); font-size: 11px; }
.ead-stores-form-actions { display: flex; align-items: center; gap: 10px; }
.ead-stores-conflict { margin-top: 10px; }
.ead-stores-list { min-width: 0; overflow: hidden; border: 1px solid var(--stores-line); border-radius: 20px; background: var(--stores-surface); }
.ead-stores-list-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px 22px 18px; }
.ead-stores-list-heading p { margin-top: 5px; color: var(--stores-muted); font-size: 12px; }
.ead-stores-list-controls { display: flex; align-items: center; gap: 12px; }
.ead-stores-count { color: var(--stores-muted); font-size: 12px; white-space: nowrap; }
.ead-stores-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ead-stores-table th, .ead-stores-table td { text-align: left; vertical-align: middle; padding: 17px 10px; border-top: 1px solid var(--stores-line); }
.ead-stores-table th:first-child { padding-left: 22px; width: 25%; }
.ead-stores-table th:nth-child(2) { width: 24%; }
.ead-stores-table th:nth-child(3) { width: 12%; }
.ead-stores-table th:nth-child(4) { width: 10%; }
.ead-stores-table th:nth-child(5) { width: 11%; }
.ead-stores-table th:nth-child(6) { width: 18%; }
.ead-stores-table th:last-child, .ead-stores-table td:last-child { padding-right: 22px; }
.ead-stores-table thead th { padding-top: 10px; padding-bottom: 10px; background: var(--stores-surface-2); color: var(--stores-muted); font-size: 10px; line-height: 1.5; font-weight: 700; letter-spacing: .015em; }
.ead-stores-table tbody tr:hover { background: color-mix(in srgb, var(--stores-surface-2) 35%, transparent); }
.ead-stores-identity { font-weight: 400; }
.ead-stores-identity-inner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ead-stores-identity-inner > div { min-width: 0; }
.ead-stores-identity strong { display: block; overflow-wrap: anywhere; color: var(--stores-ink); font-size: 13px; font-weight: 700; line-height: 1.5; }
.ead-stores-identity .ead-stores-text-button { min-height: 31px; font-size: 11px !important; }
.ead-stores-inactive { display: block; color: var(--stores-muted); font-size: 10px; margin-top: 3px; }
.ead-stores-contact > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.ead-stores-contact strong { color: var(--stores-ink-2); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ead-stores-contact > div > span { display: flex; align-items: flex-start; gap: 6px; color: var(--stores-muted); font-size: 11px; max-width: 100%; }
.ead-stores-contact > div > span > span { min-width: 0; overflow-wrap: anywhere; }
.ead-stores-contact .ead-stores-icon { width: 13px; height: 13px; margin-top: 2px; }
.ead-stores-muted { color: var(--stores-muted); font-size: 11px; }
.ead-stores-metric > strong, .ead-stores-accuracy > strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ead-stores-metric > strong > span { color: var(--stores-muted); font-size: 11px; font-weight: 400; }
.ead-stores-metric small { display: block; color: var(--stores-muted); font-size: 10px; margin-top: 3px; }
.ead-stores-meter { display: block; height: 5px; max-width: 62px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: var(--stores-line); }
.ead-stores-meter i { display: block; height: 100%; border-radius: inherit; background: var(--stores-primary); }
.ead-stores-danger-count { display: inline-flex; align-items: center; justify-content: center; min-width: 29px; min-height: 27px; padding: 3px 8px; color: var(--stores-bad); background: var(--bad-soft, #431629); border-radius: 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ead-stores-row-actions .ead-stores-button { width: 100%; padding-inline: 9px; }
.ead-stores-row-actions .ead-stores-icon { width: 15px; height: 15px; }
.ead-stores-loading, .ead-stores-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 225px; padding: 30px 22px; text-align: center; color: var(--stores-muted); }
.ead-stores-loading { flex-direction: row; }
.ead-stores-empty > .ead-stores-icon { width: 35px; height: 35px; color: var(--stores-link); }
.ead-stores-empty p { max-width: 43ch; font-size: 13px; }
.ead-stores-spinner { display: block; flex: none; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ead-stores-spin .8s linear infinite; }
.ead-stores-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); border: 0; white-space: nowrap; }
@keyframes ead-stores-spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .ead-stores-table th, .ead-stores-table td { padding-inline: 8px; }
  .ead-stores-table th:first-child { padding-left: 16px; }
  .ead-stores-table th:last-child, .ead-stores-table td:last-child { padding-right: 16px; }
  .ead-stores-identity-inner { gap: 9px; }
  .ead-stores-identity .ead-stores-logo { width: 44px; height: 44px; border-radius: 11px; }
  .ead-stores-store-fields { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 780px) {
  .ead-stores-heading { align-items: flex-start; gap: 15px; }
  .ead-stores-heading > .ead-stores-button { margin-left: 62px; }
  .ead-stores-list-heading { padding: 19px 18px; }
  .ead-stores-table, .ead-stores-table tbody { display: block; width: 100%; }
  .ead-stores-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
  .ead-stores-table tbody tr { display: grid; grid-template-columns: 1.05fr .8fr .85fr; column-gap: 12px; padding: 20px 18px; border-top: 1px solid var(--stores-line); }
  .ead-stores-table tbody th, .ead-stores-table tbody td { display: block; border: 0; padding: 0 !important; width: auto; min-width: 0; }
  .ead-stores-table tbody .ead-stores-identity { grid-column: 1 / -1; width: auto; padding-bottom: 13px !important; }
  .ead-stores-identity .ead-stores-logo { width: 55px; height: 55px; }
  .ead-stores-identity-inner { gap: 13px; }
  .ead-stores-identity strong { font-size: 15px; }
  .ead-stores-table tbody .ead-stores-contact { grid-column: 1 / -1; padding-bottom: 16px !important; margin-bottom: 15px; border-bottom: 1px solid var(--stores-line); }
  .ead-stores-contact > div { gap: 5px; }
  .ead-stores-contact > div > span { font-size: 12px; }
  .ead-stores-contact strong { font-size: 13px; }
  .ead-stores-table tbody td[data-label]::before { content: attr(data-label); display: block; color: var(--stores-muted); font-size: 10px; font-weight: 600; margin-bottom: 7px; line-height: 1.4; }
  .ead-stores-table tbody .ead-stores-row-actions { grid-column: 1 / -1; margin-top: 20px; }
  .ead-stores-row-actions .ead-stores-button { width: auto; min-height: 41px; padding-inline: 16px; }
  .ead-stores-metric > strong, .ead-stores-accuracy > strong { font-size: 16px; }
}
@media (max-width: 520px) {
  .ead-stores-heading > .ead-stores-button { margin-left: 0; width: 100%; }
  .ead-stores-heading-copy { gap: 12px; }
  .ead-stores-emblem { width: 43px; height: 43px; border-radius: 13px; }
  .ead-stores-form { padding: 19px 16px; border-radius: 17px; }
  .ead-stores-form-heading h3 { font-size: 22px; }
  .ead-stores-form-heading p { font-size: 12px; }
  .ead-stores-logo-field { gap: 13px; }
  .ead-stores-logo-preview { width: 82px; height: 82px; border-radius: 16px; }
  .ead-stores-logo-controls > p { font-size: 10px; }
  .ead-stores-logo-actions { gap: 3px 10px; }
  .ead-stores-contact-fields { padding: 17px 13px; }
  .ead-stores-contact-fields legend { font-size: 12px; }
  .ead-stores-contact-fields legend .ead-stores-icon { width: 16px; height: 16px; margin-right: 6px; }
  .ead-stores-optional { font-size: 9px; margin-left: 6px; }
  .ead-stores-fields-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ead-stores-field-wide { grid-column: auto; }
  .ead-stores-field input { font-size: 16px; }
  .ead-stores-form-footer { align-items: stretch; flex-direction: column; gap: 13px; }
  .ead-stores-form-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
  .ead-stores-form-actions .ead-stores-button { width: 100%; padding-inline: 12px; }
  .ead-stores-list-heading { align-items: flex-start; }
  .ead-stores-list-controls { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .ead-stores * { scroll-behavior: auto !important; transition: none !important; }
  .ead-stores-spinner { animation-duration: 1.7s; }
}
