/* Atlas — module workspaces.
 * Loaded after the foundation, shell and shared components.
 * These rules style the administration interface only. Customer checkout
 * branding and email content stay isolated inside their preview frames.
 */

/* Shared geometry used only by the specialized workspaces. */
:is(.gateway10, .email10-library, .email10-editor, .editor-layout, .globe-layout, .routing-rule, .detail-grid, [data-v10-order])  {
  min-width: 0;
}

:is(.gateway10, .email10-editor, .editor-settings, [data-v10-order]) :is(code, strong, small, p)  {
  overflow-wrap: anywhere;
}

:is(.gateway10, .email10-editor, .editor-settings, .security-manual) :is(button, a, input, select, textarea, summary):focus-visible  {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 3px;
}

/* Stripe account workspace */
.gateway10  {
  --g10-border: var(--line);
  --g10-muted: var(--muted);
  --g10-bg: var(--card);
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.gateway10-header  {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
}

.gateway10-header > div:first-child  {
  min-width: 0;
}

.gateway10-header h2  {
  margin: 0 0 8px;
  font-size: 23px;
  letter-spacing: -.65px;
}

.gateway10-header code  {
  font-size: 11px;
  color: var(--muted);
}

.gateway10-header small  {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.gateway10-header > div:last-child  {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.gateway10-header .btn  {
  white-space: normal;
}

.gateway10-tabs  {
  display: flex;
  gap: 3px;
  margin: 0 -2px;
  padding: 0 2px 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line);
  scroll-padding-inline: 16px;
}

.gateway10-tabs > button  {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gateway10-tabs > button:hover  {
  background: var(--soft);
  color: var(--text);
}

.gateway10-tabs > button[aria-selected=true]  {
  background: var(--hover);
  color: var(--primary);
}

.gateway10-content  {
  min-height: 240px;
  padding-top: 24px;
}

.gateway10-content > h3  {
  margin: 26px 0 14px;
  font-size: 15px;
}

.gateway10-content > h3:first-child  {
  margin-top: 0;
}

.gateway10-content > h4  {
  margin: 20px 0 8px;
  font-size: 13px;
}

.gateway10-content > ul  {
  padding-left: 21px;
}

.gateway10-content > p[role=status], .gateway10 > p[role=status]  {
  color: var(--muted);
  padding: 24px 0;
}

.gateway10 code  {
  font-size: 11px;
  white-space: normal;
}

.gateway10 .notice  {
  margin: 18px 0;
  font-size: 12px;
}

.gateway10-metrics  {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.gateway10-metric  {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.gateway10-metric > span  {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.gateway10-metric > strong  {
  display: block;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.7px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.gateway10-metric > small  {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.gateway10-metric > small + strong  {
  margin-top: 12px;
  font-size: 17px;
}

.gateway10-badge  {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.gateway10-badge.good  {
  color: var(--green);
  background: var(--green-bg);
}

.gateway10-badge.warning  {
  color: var(--amber);
  background: var(--amber-bg);
}

.gateway10-badge + .gateway10-badge  {
  margin-left: 4px;
}

.gateway10-sync  {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  background: var(--soft);
  font-size: 12px;
}

.gateway10-sync strong  {
  color: var(--text);
  font-weight: 600;
}

.gateway10-sync > small  {
  display: block;
  margin-top: 6px;
}

.gateway10-sync.warning  {
  background: var(--amber-bg);
  border-color: color-mix(in srgb, var(--amber) 22%, var(--line));
}

.gateway10-detail  {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.gateway10-detail > span  {
  color: var(--muted);
}

.gateway10-detail > strong  {
  min-width: 0;
  text-align: right;
  font-weight: 550;
}

.gateway10-detail > strong > small  {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.gateway10 > .btn  {
  margin-top: 20px;
}

.gateway10-local, .gateway10-webhook  {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.gateway10-local h3, .gateway10-webhook h3  {
  margin: 0 0 12px;
  font-size: 15px;
}

.gateway10-local .btn  {
  margin: 3px 6px 3px 0;
}

.gateway10-local > small, .gateway10-webhook > small  {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gateway10-local p, .gateway10-webhook p  {
  color: var(--muted);
  margin: 8px 0 14px;
}

.gateway10-capabilities  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gateway10-capabilities > button  {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.gateway10-capabilities > button:hover  {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--soft);
}

.gateway10-capabilities > button > span:first-child  {
  font-weight: 600;
}

.gateway10-capabilities > button > small  {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.gateway10-capability-list  {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
}

.gateway10-capability-list .gateway10-badge  {
  margin: 0;
}

.gateway10-requirements  {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.gateway10-requirements > span  {
  color: var(--muted);
}

.gateway10-requirements ul  {
  padding-left: 18px;
  margin: 0;
  overflow-wrap: anywhere;
}

.gateway10-requirements li  {
  margin: 0 0 7px;
}

.gateway10-requirements li:last-child  {
  margin-bottom: 0;
}

.gateway10-balance  {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.gateway10-balance h3  {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.gateway10-balance > strong  {
  display: inline-block;
  margin-right: 18px;
  font-size: 22px;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

.gateway10-balance > small  {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

.gateway10-filter  {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gateway10-filter > label  {
  flex: 1 1 135px;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
}

.gateway10-filter input  {
  display: block;
  width: 100%;
  min-height: 39px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

.gateway10-page-label  {
  margin: 19px 0 5px;
  font-size: 12px;
  color: var(--muted);
}

.gateway10-item  {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(150px, 1.4fr) minmax(110px, .8fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.gateway10-item > div  {
  min-width: 0;
}

.gateway10-item > div:first-child > code  {
  font-weight: 600;
  color: var(--text);
}

.gateway10-item small  {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  line-height: 1.65;
}

.gateway10-item > div:nth-child(3)  {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gateway10-item > div:nth-child(3) > strong  {
  display: block;
  font-size: 15px;
}

.gateway10-item > .btn  {
  justify-self: end;
}

.gateway10-pagination  {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
}

.gateway10-pagination > small  {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.gateway10-webhook .row  {
  gap: 9px;
  flex-wrap: wrap;
}

.gateway10-webhook details  {
  margin: 17px 0;
  border-top: 1px solid var(--line);
}

.gateway10-webhook summary  {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.gateway10-webhook details ul  {
  max-height: 230px;
  overflow: auto;
  padding-left: 20px;
  margin: 0;
}

.gateway10-webhook details li  {
  padding-bottom: 5px;
}

/* Email library and visual authoring */
.email10-library .page-head  {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.email10-library .page-head h1  {
  font-size: 24px;
  letter-spacing: -.6px;
}

.email10-filters  {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 200px;
  gap: 14px;
  margin: 24px 0;
}

.email10-filters .field  {
  margin: 0;
}

.email10-grid  {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 275px), 1fr));
  gap: 18px;
}

.email10-card  {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.email10-card:hover  {
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
}

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

.email10-card h3  {
  font-size: 15px;
  margin: 17px 0 7px;
  overflow-wrap: anywhere;
}

.email10-card > p  {
  margin: 0 0 14px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.email10-card small  {
  color: var(--muted);
  font-size: 11px;
}

.email10-card > small  {
  margin-bottom: 15px;
}

.email10-mini  {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  height: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.email10-mini i  {
  display: block;
  height: 5px;
  width: 71%;
  margin-bottom: 9px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--muted) 15%, var(--soft));
}

.email10-mini i:first-child  {
  width: 32%;
  background: color-mix(in srgb, var(--primary) 52%, var(--card));
}

.email10-mini i:last-child  {
  width: 49%;
}

.email10-mini .badge  {
  position: absolute;
  top: 13px;
  right: 13px;
  background: var(--card);
}

.email10-tags  {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.email10-tags span  {
  max-width: 100%;
  padding: 3px 7px;
  background: var(--soft);
  color: var(--muted);
  border-radius: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.email10-card-actions  {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 17px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.email10-card-actions > .btn  {
  flex: 1;
  padding-inline: 10px;
}

.email10-menu  {
  position: relative;
  flex-shrink: 0;
}

.email10-menu > summary  {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
}

.email10-menu > summary::-webkit-details-marker  {
  display: none;
}

.email10-menu[open] > summary  {
  background: var(--soft);
}

.email10-menu > div  {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 30;
  width: 200px;
  max-width: calc(100vw - 40px);
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--elevated);
}

.email10-menu > div .btn  {
  display: block;
  width: 100%;
  min-height: 40px;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}

dialog.email10-dialog, dialog.email-editor09, dialog.checkout-editor07  {
  width: min(1440px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: min(960px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

:is(dialog.email10-dialog, dialog.email-editor09, dialog.checkout-editor07)[open]  {
  display: flex;
  flex-direction: column;
}

:is(.email10-dialog, .email-editor09, .checkout-editor07) > .dialog-head  {
  flex-shrink: 0;
  padding: 18px 24px;
}

:is(.email10-dialog, .email-editor09, .checkout-editor07) > form  {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

:is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-body  {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

:is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-foot  {
  flex-shrink: 0;
  padding: 14px 24px;
  background: var(--card);
}

.email10-editor  {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  height: 100%;
  align-items: stretch;
}

.email10-edit  {
  min-width: 0;
  min-height: 0;
  padding: 25px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--card);
  scrollbar-width: thin;
}

.email10-edit .form-grid  {
  grid-template-columns: 1fr;
  gap: 0;
}

.email10-edit .field  {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 19px;
}

.email10-edit :is(input, select, textarea)  {
  width: 100%;
  min-width: 0;
}

.email10-edit textarea  {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

.email10-edit textarea[name=body], .email10-edit textarea[name=bodyEn]  {
  font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace;
  min-height: 270px;
  tab-size: 2;
}

.email10-edit input[type=color]  {
  width: 70px;
  padding: 4px;
}

.email10-edit .check  {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.email10-edit .check input  {
  width: auto;
}

.email10-edit details  {
  margin-top: 20px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.email10-edit details > summary  {
  min-height: 46px;
  padding: 13px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.email10-edit details > p  {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.email10-edit input[type=file]  {
  font-size: 12px;
}

.email10-languages  {
  display: flex;
  gap: 4px;
  margin: 20px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.email10-languages .btn  {
  flex: 1;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.email10-languages .btn[aria-pressed=true]  {
  border-color: var(--line);
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.email10-variables input[type=search]  {
  margin-bottom: 10px;
}

.email10-variables [data-email10-tags]  {
  max-height: 300px;
  padding: 0 2px 5px;
  overflow: auto;
}

.email10-token  {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 60px;
  padding: 12px 5px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.email10-token:hover  {
  background: var(--soft);
}

.email10-token code  {
  color: var(--primary);
  font-size: 11px;
  white-space: normal;
}

.email10-save  {
  padding: 20px 0 5px;
  color: var(--muted);
  font-size: 12px;
}

.email10-save.error  {
  color: var(--red);
}

.email10-preview  {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--soft);
}

.email10-preview-tools  {
  flex-shrink: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.email10-preview-tools .field  {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12px;
}

.email10-preview-tools .row  {
  gap: 8px;
  flex-wrap: wrap;
}

.email10-preview-tools small  {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 11px;
}

.email10-preview-tools strong  {
  display: block;
  margin-top: 10px;
  font-size: 13px;
}

.email10-preview-tools [data-email10-issues]  {
  max-height: 160px;
  overflow: auto;
}

.email10-preview-tools details  {
  margin-top: 10px;
  font-size: 12px;
}

.email10-preview-tools details[open]  {
  padding: 11px;
  border-radius: 8px;
  background: var(--amber-bg);
  color: var(--amber);
}

.email10-preview-tools li  {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.email10-frame-canvas  {
  flex: 1;
  min-width: 0;
  min-height: 200px;
  overflow: auto;
  padding: 22px;
  overscroll-behavior: contain;
}

.email10-frame-canvas iframe  {
  display: block;
  flex-shrink: 0;
  width: 600px;
  max-width: none;
  height: 100%;
  min-height: 600px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.email10-editor[data-preview-width="375"] .email10-frame-canvas iframe  {
  width: min(375px, 100%);
  max-width: 100%;
}

.email10-editor[data-preview-width="375"] .email10-width-note  {
  display: none;
}

.email10-mobile-tabs  {
  display: none;
}

.email10-standalone > .row  {
  align-items: end;
  gap: 15px;
  flex-wrap: wrap;
}

.email10-standalone > .row .field  {
  flex: 1;
  min-width: 140px;
}

.email10-standalone [data-email10-issues]  {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.email10-standalone > iframe  {
  display: block;
  width: 100%;
  min-height: 560px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.email10-device-tools  {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 0 8px;
}

.email10-device-tools > span  {
  flex: 1;
}

.email10-device-tools .btn[aria-pressed=true]  {
  color: var(--primary);
  background: var(--hover);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}

.email10-fit-status  {
  display: block;
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 12px;
}

.email10-message-canvas  {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: min(620px, 65dvh);
  min-height: 260px;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.email10-message-canvas:focus-visible  {
  outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent);
  outline-offset: 3px;
}

.email10-message-stage  {
  position: relative;
  width: 100%;
  min-height: 1px;
  margin: 0 auto;
}

.email10-standalone .email10-message-stage iframe  {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 375px;
  height: 600px;
  min-width: 0;
  min-height: 0;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  transform-origin: top left;
  box-shadow: var(--shadow);
}

.email10-standalone[data-preview-zoom=actual] .email10-message-stage  {
  margin-inline: 0;
}

/* Email provider, Telegram setup and automation tools */
.email-connection-bar  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.email-connection-bar > div  {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.email-connection-bar span:not(.badge)  {
  font-size: 12px;
  color: var(--muted);
}

.provider-choice  {
  padding: 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.provider-choice strong  {
  font-size: 19px;
}

.provider-choice p  {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.v10-check-grid  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin: 17px 0;
}

.v10-check-grid .check  {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 12px;
}

.v10-check-grid .check:has(input:checked)  {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  background: var(--hover);
}

.v10-check-grid .check input  {
  flex-shrink: 0;
}

.setup-steps, .install-steps  {
  padding-left: 23px;
  margin: 0 0 24px;
}

.setup-steps li, .install-steps li  {
  padding: 5px 0 14px 7px;
  line-height: 1.7;
}

.setup-steps li::marker, .install-steps li::marker  {
  font-weight: 650;
  color: var(--primary);
}

.tg-monitor-secret  {
  min-width: 0;
}

.tg-monitor-secret .field  {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.tg-monitor-secret input  {
  width: 100%;
  min-width: 0;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

body[data-route=telegram] main > details  {
  margin-top: 24px;
}

body[data-route=telegram] main > details > summary  {
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}

body[data-route=telegram] main > details p  {
  max-width: 850px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.automation-steps  {
  display: grid;
  gap: 13px;
}

.automation-step  {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(96px, 120px) minmax(92px, 120px) 36px;
  grid-template-areas: "number template delay unit remove";
  align-items: end;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.automation-step > .step-number  {
  grid-area: number;
  margin-bottom: 5px;
}

.automation-step > .field  {
  min-width: 0;
  margin: 0;
}

.automation-step > .field:nth-of-type(1)  {
  grid-area: template;
}

.automation-step > .field:nth-of-type(2)  {
  grid-area: delay;
}

.automation-step > .field:nth-of-type(3)  {
  grid-area: unit;
}

.automation-step > .icon-btn  {
  grid-area: remove;
  align-self: end;
}

/* Operational detail pages */
.v10-order-summary  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.v10-order-summary > div  {
  min-width: 0;
}

.v10-order-summary strong  {
  font-variant-numeric: tabular-nums;
}

.v10-order-summary .large-amount  {
  margin-bottom: 5px;
}

.v10-order-summary .stat  {
  min-height: 0;
  padding: 14px;
}

.v10-order-grid  {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  margin: 20px 0 28px;
}

.v10-order-grid > *  {
  min-width: 0;
}

.v10-tabs  {
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.v10-tabs :is(button, a)  {
  flex-shrink: 0;
  min-height: 46px;
  padding: 12px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.v10-tabs :is(button, a):hover  {
  color: var(--text);
}

.v10-tabs :is(.active, [aria-selected=true], [aria-current=location])  {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.v10-detail-nav  {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 20px;
}

.v10-detail-nav > small  {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

[data-v10-order] > section  {
  padding: 25px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}

[data-v10-order] :is(section, .v10-order-grid) h3  {
  font-size: 14px;
  margin-bottom: 16px;
}

[data-v10-order] .product-row  {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

[data-v10-order] .product-row:not(:has(img))  {
  grid-template-columns: minmax(0, 1fr) auto;
}

[data-v10-order] .product-row img  {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 9px;
  background: var(--soft);
  border: 1px solid var(--line);
}

[data-v10-order] .product-row > div  {
  min-width: 0;
}

[data-v10-order] .product-row strong  {
  font-size: 13px;
}

[data-v10-order] .product-row small  {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}

.v10-timeline, .activity-timeline  {
  list-style: none;
  padding: 4px 0 0;
  margin: 0;
}

.v10-timeline > li, .v10-timeline > div  {
  position: relative;
  margin-left: 5px;
  padding: 0 0 24px 24px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}

.v10-timeline > :last-child  {
  padding-bottom: 4px;
  border-left-color: transparent;
}

.v10-timeline > li::before, .v10-timeline > div::before  {
  content: "";
  position: absolute;
  top: 7px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--card);
}

.v10-timeline small, .v10-timeline time  {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.activity-timeline > li  {
  display: flex;
  gap: 15px;
  position: relative;
  padding: 0 0 24px;
}

.activity-timeline > li::before  {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  border-left: 1px solid var(--line);
}

.activity-timeline > li:last-child::before  {
  display: none;
}

.activity-timeline > li > div  {
  min-width: 0;
}

.activity-timeline .timeline-dot  {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--card);
}

.activity-timeline strong  {
  display: block;
  font-size: 13px;
}

.activity-timeline small  {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.activity-timeline p  {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.v10-email-preview  {
  width: 100%;
  min-height: 420px;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.payment-failure09  {
  margin: 20px 0;
  padding: 19px;
  border: 1px solid color-mix(in srgb, var(--red) 25%, var(--line));
  border-radius: 14px;
  background: var(--red-bg);
  color: var(--text);
  min-width: 0;
}

.payment-failure09-pending  {
  background: var(--amber-bg);
  border-color: color-mix(in srgb, var(--amber) 25%, var(--line));
}

.payment-failure09-heading  {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-failure09-heading > span  {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--red);
  font-weight: 700;
}

.payment-failure09-pending .payment-failure09-heading > span  {
  color: var(--amber);
}

.payment-failure09-heading h3  {
  margin: 0;
  font-size: 14px;
}

.payment-failure09-summary  {
  margin: 13px 0;
  font-size: 13px;
}

.payment-failure09-label  {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.payment-failure09 blockquote  {
  margin: 0;
  padding: 13px;
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: var(--card);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.payment-failure09-pending blockquote  {
  border-left-color: var(--amber);
}

.payment-failure09 dl  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}

.payment-failure09 dl > div  {
  min-width: 0;
}

.payment-failure09 dt  {
  color: var(--muted);
  font-size: 11px;
}

.payment-failure09 dd  {
  margin: 5px 0 0;
}

.payment-failure09 code  {
  display: block;
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payment-failure09-note, .payment-failure09-missing  {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
}

.payment-failure09-technical  {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.payment-failure09-technical > summary  {
  min-height: 44px;
  align-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Account security and platform oversight */
.security-overview  {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 25px;
}

.security-icon  {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--hover);
  color: var(--primary);
}

.security-icon .icon  {
  width: 22px;
  height: 22px;
}

.security-overview h3  {
  margin: 0 0 7px;
  font-size: 16px;
}

.security-overview p  {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.security-settings-row  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.security-settings-row > strong  {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.security-footnote  {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.security-setup-steps  {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.security-setup-steps span  {
  padding: 7px 10px;
  border-radius: 7px;
}

.security-setup-steps .active  {
  color: var(--primary);
  background: var(--hover);
  font-weight: 600;
}

.security-qr  {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 224px;
  min-height: 224px;
  margin: 25px auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #4f5465;
}

.security-qr svg  {
  display: block;
  width: 202px;
  height: 202px;
  max-width: 100%;
}

.security-qr small, .security-qr p  {
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.security-manual  {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.security-manual summary  {
  min-height: 46px;
  padding: 12px 0;
  font-size: 12px;
  cursor: pointer;
}

.security-manual p  {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.security-secret-row  {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

.security-secret-row code, .security-secret  {
  min-width: 0;
  overflow-wrap: anywhere;
  user-select: all;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: .7px;
}

.security-secret-row code  {
  flex: 1;
}

.security-secret-row .btn  {
  flex-shrink: 0;
}

.security-verify-fields  {
  margin-top: 24px;
}

.security-verify-fields input[name=code]  {
  font-size: 22px;
  letter-spacing: 5px;
  font-variant-numeric: tabular-nums;
}

.security-recovery-grid  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.security-recovery-grid code  {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  font-size: 14px;
  text-align: center;
  user-select: all;
}

.security-recovery-actions  {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.security-recovery-actions .btn  {
  flex: 1;
}

.security-saved-check  {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}

.detail-grid  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.detail-grid > div  {
  min-width: 0;
}

.detail-grid small  {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}

.detail-grid strong  {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.platform-order-amount  {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.platform-order-amount .reporting-money > strong  {
  font-size: 28px;
}

.platform-notice  {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.platform-notice .icon  {
  flex-shrink: 0;
  margin-top: 2px;
}

.setting-row  {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  border-top: 1px solid var(--line);
}

.setting-row > div  {
  min-width: 0;
}

.setting-row strong  {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.setting-row small  {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.recovery-organization  {
  margin-bottom: 18px;
}

.recovery-organization > p  {
  margin: 16px 0;
  color: var(--muted);
}

.organization-options  {
  display: grid;
  gap: 10px;
}

.organization-option  {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--card);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.organization-option > span:nth-child(2)  {
  flex: 1;
  min-width: 0;
}

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

.organization-option small  {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.organization-option.selected  {
  border-color: var(--primary);
  background: var(--hover);
}

.context-row  {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}

.utility-links  {
  margin-top: 22px;
  gap: 18px;
  font-size: 12px;
}

/* Live visitors: one deliberately dark canvas, with native light/dark panels. */
.globe-layout  {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(290px, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.globe-card  {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #293248;
  border-radius: 14px;
  background: #080f20;
  color: #fff;
  isolation: isolate;
}

/* Keep the copy outside the WebGL surface. The canvas may be replaced on
   a live update; its independently sized host cannot cover these regions. */
.globe-card .globe-caption  {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: 22px 24px 20px;
  border-bottom: 1px solid #263149;
  background: #10192b;
}

.globe-card .globe-caption > div {
  min-width: 0;
}

.globe-card .globe-caption .live-status  {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-top: 3px;
  padding: 5px 9px;
  border: 1px solid #345549;
  border-radius: 6px;
  background: #11251f;
  color: #83e5bb;
  font-size: 10px;
  line-height: 1.4;
}

.globe-card .globe-caption h2  {
  margin: 0;
  color: #f5f7ff;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.45px;
}

.globe-card .globe-caption p  {
  margin: 7px 0 0;
  color: #bdc8df;
  font-size: 12px;
  line-height: 1.65;
}

.atlas-globe  {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 440px;
  overflow: hidden;
  touch-action: pan-y;
}

.atlas-globe canvas  {
  display: block;
  max-width: 100%;
}

.globe-footer {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 24px 20px;
  border-top: 1px solid #263149;
  background: #10192b;
}

.globe-key  {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  color: #e5eaf5;
  font-size: 12px;
  line-height: 1.5;
}

.globe-key span  {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.globe-key i  {
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.globe-notes {
  display: grid;
  gap: 5px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #263149;
}

.globe-card .globe-location-note  {
  position: static;
  display: block;
  margin: 0;
  color: #b0bdd5;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.globe-loading  {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 100%;
}

.globe-placeholder  {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #34465c, #122038 62%, #070b14);
  box-shadow: inset -25px -20px 40px #0007;
}

.globe-fallback  {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 16px;
  color: #c4cbdf;
}

.globe-fallback p  {
  text-align: center;
  color: #a3abc1;
  font-size: 11px;
}

.world-map  {
  display: block;
  width: 100%;
  height: 320px;
}

.continents  {
  fill: var(--soft);
  stroke: var(--line);
  stroke-width: .7;
}

.globe-fallback .world-map  {
  height: 350px;
  min-height: 0;
  padding: 15px;
}

.globe-fallback .continents  {
  fill: #202d43;
  stroke: #3b4962;
}

.map-dot  {
  cursor: pointer;
}

.map-dot.selected  {
  filter: drop-shadow(0 0 5px #9188ff);
}

.map-dot .pulse  {
  transform-box: fill-box;
  transform-origin: center;
}

.live-map-card  {
  position: relative;
}

.map-empty  {
  position: absolute;
  inset: 48% 16px auto;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.live-events  {
  min-width: 0;
  max-height: 530px;
  overflow: auto;
  scrollbar-width: thin;
}

.live-events .card-head  {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}

.live-event  {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 17px 19px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.live-event:last-child  {
  border-bottom: 0;
}

.live-event:hover  {
  background: var(--soft);
}

.live-event-icon  {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hover);
  color: var(--primary);
}

.live-event-icon.sale  {
  color: var(--green);
  background: var(--green-bg);
}

.live-event > span:nth-child(2)  {
  min-width: 0;
  flex: 1;
}

.live-event strong  {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.live-event small  {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.live-event b  {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.v09-live-pending  {
  padding: 11px 15px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
}

/* Gateway onboarding, sequential / weighted routing and settlements */
.wizard-steps  {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0 0 26px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.wizard-steps li  {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 9px;
  padding: 0 10px 16px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wizard-steps li span  {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}

.wizard-steps li.current  {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.wizard-steps li.current span  {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.wizard-steps li.done  {
  color: var(--green);
}

.wizard-steps li.done span  {
  background: var(--green-bg);
  border-color: transparent;
}

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

.routing-mode  {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.routing-mode > span  {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--muted);
}

.routing-mode strong  {
  display: block;
  font-size: 15px;
}

.routing-mode p  {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.routing-mode.selected  {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: var(--hover);
}

.routing-mode.selected > span  {
  background: var(--primary);
  color: #fff;
}

.routing-rule  {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 150px 85px auto;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.routing-rule:last-child  {
  border-bottom: 0;
}

.routing-rule.sequential, .routing-rule.weighted  {
  grid-template-columns: 30px minmax(0, 1fr) 170px 120px;
}

.routing-rule > div  {
  min-width: 0;
}

.routing-rule h3  {
  margin: 0 0 5px;
  font-size: 13px;
}

.routing-rule small  {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.routing-rule .field  {
  gap: 7px;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.routing-rule input[type=number]  {
  width: 100%;
  min-height: 39px;
  font-size: 13px;
}

.routing-rule .progress, .routing-rule .full  {
  grid-column: 2 / -1;
  margin-top: 0;
}

.routing-rule .full  {
  padding-left: 0 !important;
}

.routing-rule > .row  {
  align-self: end;
  align-items: center;
  min-height: 39px;
  flex-wrap: wrap;
  gap: 8px;
}

.routing-rule.weighted > .row  {
  justify-content: space-between;
}

.step-number  {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.current-rule  {
  background: color-mix(in srgb, var(--primary) 4%, var(--card));
}

.current-rule .step-number  {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.calendar-container  {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.calendar  {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 700px;
  border-top: 1px solid var(--line);
}

.calendar .weekday  {
  padding: 13px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.calendar .day  {
  min-width: 0;
  min-height: 125px;
  padding: 12px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.calendar .day.blank  {
  background: var(--soft);
}

.calendar .day.today  {
  box-shadow: inset 0 3px var(--primary);
  background: color-mix(in srgb, var(--primary) 3%, var(--card));
}

.calendar .weekday:nth-child(7n), .calendar .day:nth-child(7n)  {
  border-right: 0;
}

.payout-chip, .calendar .payout-chip  {
  display: block;
  width: 100%;
  padding: 9px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.payout-chip:hover  {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
}

.payout-chip small  {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
}

.payout-chip .reporting-money > strong  {
  font-size: 12px;
}

.payout-chip .reporting-money > small  {
  font-size: 10px;
}

.payout-chip .gateway-dot  {
  width: 6px;
  height: 6px;
}

.shipping-row  {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.shipping-row input  {
  min-width: 0;
  font-size: 13px;
}

.shop-checkboxes  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.shop-checkboxes legend  {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.shop-checkboxes .check  {
  grid-column: auto;
}

.offer-preview  {
  width: 100%;
  max-width: 370px;
  margin: auto;
  padding: 22px 10px;
  text-align: center;
}

.offer-preview img  {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  margin-bottom: 20px;
}

.offer-preview h2  {
  margin: 17px 0 10px;
  font-size: 25px;
  letter-spacing: -.6px;
}

.offer-preview p  {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.offer-preview > strong  {
  display: block;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.preview-cta  {
  display: block;
  padding: 13px;
  margin-top: 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Administrative checkout editor. All storefront styles stay in its iframe. */
.editor-layout  {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.editor-settings  {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--card);
  scrollbar-width: thin;
}

.editor-settings .form-grid  {
  grid-template-columns: 1fr;
  gap: 17px;
}

.editor-settings .field  {
  min-width: 0;
  font-size: 12px;
}

.editor-settings .field :is(input, select, textarea)  {
  width: 100%;
  min-width: 0;
}

.editor-settings input[type=color]  {
  max-width: 85px;
}

.editor-settings .notice, .editor-settings details p  {
  font-size: 12px;
  line-height: 1.75;
}

.editor-canvas  {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: var(--soft);
  overscroll-behavior: contain;
}

.editor-canvas > .row  {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.editor-canvas iframe, .checkout-editor07 #editor-frame  {
  display: block;
  flex-shrink: 0;
  position: static;
  width: 390px;
  max-width: 100%;
  height: calc(100dvh - 250px) !important;
  min-height: 380px;
  margin: 0 auto;
  border: 5px solid var(--card);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 35px -20px #11182755, 0 0 0 1px var(--line);
}

.checkout-editor07 .editor-canvas.desktop-preview  {
  overflow: auto;
}

.checkout-editor07 .editor-canvas.desktop-preview #editor-frame  {
  width: 1080px !important;
  max-width: none !important;
  border-radius: 10px;
}

.editor-accordion  {
  padding-top: 17px;
  margin-top: 7px;
  border-top: 1px solid var(--line);
}

.editor-accordion > summary  {
  min-height: 44px;
  padding: 10px 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.editor-accordion > p  {
  color: var(--muted);
  font-size: 12px;
}

.no-controls-setting  {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.no-controls-setting small  {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.block-palette  {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.block-palette .btn  {
  flex: 1 1 42%;
  font-size: 12px;
}

.custom-block  {
  min-width: 0;
  padding: 16px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.custom-block > .row  {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
}

.custom-block > .row strong  {
  font-size: 13px;
}

.custom-block > .row > .row  {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.custom-block .btn  {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 11px;
}

.custom-block .icon-btn  {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

.custom-block textarea  {
  min-height: 140px;
  font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.custom-block .form-grid  {
  gap: 13px;
}

.review-edit, .trust-item-editor  {
  min-width: 0;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.review-note  {
  color: var(--muted);
  font-size: 12px;
}

.v09-editor-tabs  {
  display: none;
}

.editor-history, .editor-scenarios, .template-tools  {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-history .btn, .editor-scenarios .btn  {
  font-size: 11px;
}

#draft-state  {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.editor-visibility  {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  font-size: 12px;
}

.editor-block-hidden  {
  border-style: dashed;
  background: var(--soft);
}

.editor-item-toolbar  {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}

.media-field-tools  {
  display: grid;
  gap: 7px;
  margin: 9px 0;
}

.media-field-tools > .row  {
  flex-wrap: wrap;
  gap: 7px;
}

.media-field-tools label.btn  {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.media-field-tools small  {
  color: var(--muted);
  font-size: 11px;
}

.media-field-tools input[hidden]  {
  display: none !important;
}

.checkout-editor-dialog  {
  width: min(880px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--elevated);
}

.checkout-editor-dialog::backdrop  {
  background: #0c0d1270;
  backdrop-filter: blur(4px);
}

.checkout-editor-dialog .dialog-head  {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--card);
}

.checkout-editor-dialog .dialog-body  {
  max-height: calc(100dvh - 155px);
  overflow: auto;
}

.checkout-editor-dialog label  {
  display: grid;
  gap: 8px;
  margin: 13px 0;
}

.checkout-editor-dialog :is(input, select)  {
  min-width: 0;
  max-width: 100%;
}

.checkout-editor-dialog .row  {
  flex-wrap: wrap;
}

.checkout-editor-dialog .dialog-body > p  {
  margin: 0 0 16px;
  color: var(--muted);
}

.checkout-editor-dialog [data-editor=confirm]  {
  border-color: var(--red);
  color: var(--red);
}

.media-library-grid  {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.media-library-grid article  {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.media-library-grid img, .media-image-fallback  {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--soft);
}

.media-image-fallback  {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.media-library-grid strong  {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.media-library-grid small  {
  color: var(--muted);
  font-size: 11px;
}

.media-crop-canvas  {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: repeating-conic-gradient(#e5e5e5 0 25%, #fff 0 50%) 0 / 18px 18px;
}

.design-categories  {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.design-categories label  {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  font-size: 12px;
}

.design-categories label:has(:checked)  {
  border-color: var(--primary);
  background: var(--hover);
}

.design-comparison  {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.design-diff details  {
  padding: 13px;
  margin: 9px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.design-diff summary  {
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.design-diff pre  {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.7;
  background: var(--soft);
  padding: 12px;
  border-radius: 7px;
}

/* Older saved email drafts still use this editor layout. */
.email-designer, .email-visual-editor  {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  height: 100%;
  min-height: 0;
}

.email-designer > div:first-child  {
  min-width: 0;
  overflow: auto;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.email-designer .form-grid  {
  grid-template-columns: 1fr;
}

.email-designer :is(input, select, textarea)  {
  min-width: 0;
  width: 100%;
}

.email-designer details  {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}

.email-designer details > summary  {
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.email-designer details p  {
  color: var(--muted);
  font-size: 12px;
}

.email-designer textarea  {
  min-height: 150px;
}

.email-canvas, .template-preview-container  {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: var(--soft);
}

.email-canvas > .row  {
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.email-canvas iframe, .template-preview-container iframe  {
  display: block;
  width: 100%;
  min-height: 550px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.email-frame, .email-preview  {
  width: 100%;
  min-height: 450px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.text-preview  {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}

/* Contextual help remains a local, searchable workspace. */
.help-grid  {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.help-card  {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.help-card:hover  {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  box-shadow: var(--shadow);
}

.help-icon  {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: var(--hover);
  color: var(--primary);
}

.help-card h2  {
  font-size: 15px;
  margin-bottom: 9px;
}

.help-card p  {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.help-card > strong  {
  margin-top: auto;
  color: var(--primary);
  font-size: 12px;
}

.help-search-card  {
  margin-bottom: 22px;
}

.help-search-card .field  {
  margin: 0;
}

.help-search-card input  {
  width: 100%;
}

.help-search-card a  {
  font-size: 12px;
}

.help-card[hidden], #help-task-empty[hidden]  {
  display: none !important;
}

.help-advanced  {
  margin-top: 24px;
}

.help-advanced > summary  {
  min-height: 45px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.help-advanced .row  {
  gap: 9px;
  flex-wrap: wrap;
}

/* Compact desktop / tablet: retain usable panels before switching to tabs. */
@media (max-width: 1150px)  {
  .globe-layout  {
    grid-template-columns: 1fr;
  }

  .live-events  {
    max-height: 360px;
  }

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

  .gateway10-item  {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
  }

  .gateway10-item > .btn  {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .gateway10-item > div:nth-child(3)  {
    grid-column: 2;
    grid-row: 1;
  }

  .gateway10-item > div:nth-child(2)  {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .routing-rule.sequential, .routing-rule.weighted  {
    grid-template-columns: 28px minmax(0, 1fr) 130px 112px;
    gap: 13px;
  }

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

  .editor-settings  {
    padding: 20px;
  }

  .editor-canvas  {
    padding: 18px;
  }

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

}

@media (max-width: 1000px)  {
  .email10-editor  {
    grid-template-columns: 310px minmax(0, 1fr);
  }

  .email10-edit  {
    padding: 20px;
  }

  .email10-preview-tools  {
    padding: 16px;
  }

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

  .email10-filters > .field:first-child  {
    grid-column: 1 / -1;
  }

  .v10-order-grid  {
    gap: 20px;
  }

  .gateway10-header  {
    flex-wrap: wrap;
    gap: 16px;
  }

  .gateway10-header > div:last-child  {
    justify-content: flex-start;
  }

}

/* Phone layouts: no desktop-width form or data region may widen the page. */
@media (max-width: 760px)  {
  .gateway10  {
    font-size: 13px;
  }

  .gateway10 .btn, .gateway10-tabs > button  {
    min-height: 44px;
  }

  .gateway10-header  {
    display: block;
    padding-bottom: 20px;
  }

  .gateway10-header h2  {
    font-size: 21px;
  }

  .gateway10-header > div:last-child  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .gateway10-header .btn  {
    width: 100%;
    font-size: 12px;
  }

  .gateway10-header small  {
    font-size: 11px;
  }

  .gateway10-tabs  {
    margin-inline: -1px;
    gap: 4px;
    padding-bottom: 11px;
  }

  .gateway10-tabs > button  {
    padding-inline: 13px;
  }

  .gateway10-content  {
    padding-top: 20px;
  }

  .gateway10-metrics  {
    gap: 9px;
  }

  .gateway10-metric  {
    padding: 16px 13px;
    border-radius: 12px;
  }

  .gateway10-metric > strong  {
    font-size: 20px;
  }

  .gateway10-metric > span  {
    font-size: 11px;
    margin-bottom: 9px;
  }

  .gateway10-detail  {
    grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr);
    gap: 13px;
    font-size: 12px;
  }

  .gateway10-sync  {
    padding: 13px;
  }

  .gateway10-local, .gateway10-webhook  {
    padding: 16px;
    margin-block: 18px;
  }

  .gateway10-local .btn  {
    display: flex;
    width: 100%;
    margin: 8px 0;
    white-space: normal;
  }

  .gateway10-capabilities  {
    grid-template-columns: 1fr;
  }

  .gateway10-capabilities > button  {
    min-height: 74px;
    padding: 15px;
  }

  .gateway10-capabilities > button > span:first-child  {
    font-size: 13px;
  }

  .gateway10-requirements  {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .gateway10-requirements > strong  {
    font-size: 12px;
  }

  .gateway10-requirements ul  {
    font-size: 12px;
  }

  .gateway10-balance  {
    padding-block: 18px;
  }

  .gateway10-balance > strong  {
    font-size: 21px;
  }

  .gateway10-filter  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13px;
    gap: 11px;
  }

  .gateway10-filter > label  {
    min-width: 0;
    font-size: 11px;
  }

  .gateway10-filter input  {
    min-height: 44px;
    font-size: 16px;
  }

  .gateway10-filter > .btn  {
    width: 100%;
  }

  .gateway10-item  {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 11px;
    margin: 11px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
  }

  .gateway10-item > div:first-child  {
    grid-column: 1;
    grid-row: 1;
  }

  .gateway10-item > div:nth-child(2)  {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .gateway10-item > div:nth-child(3)  {
    grid-column: 2;
    grid-row: 1;
    max-width: 130px;
  }

  .gateway10-item > div:nth-child(3) > strong  {
    font-size: 14px;
  }

  .gateway10-item > .btn  {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    margin-top: 3px;
  }

  .gateway10-pagination  {
    padding-top: 16px;
  }

  .gateway10-pagination > .btn  {
    flex: 1;
  }

  .gateway10-pagination > small  {
    width: 100%;
    margin: 5px 0 0;
    font-size: 11px;
  }

  .gateway10-webhook .row > .btn  {
    width: 100%;
    white-space: normal;
  }

  .email10-library .page-head  {
    display: block;
  }

  .email10-library .page-head > .btn  {
    margin-top: 15px;
    width: 100%;
  }

  .email10-filters  {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-block: 20px;
  }

  .email10-grid  {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .email10-card  {
    padding: 18px;
  }

  .email10-card > p  {
    min-height: 0;
  }

  .email10-card-actions  {
    gap: 9px;
  }

  .email10-menu > summary  {
    width: 44px;
    height: 44px;
  }

  .email10-menu > div .btn  {
    min-height: 44px;
  }

  :is(dialog.email10-dialog, dialog.email-editor09, dialog.checkout-editor07)  {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  :is(.email10-dialog, .email-editor09, .checkout-editor07) > .dialog-head  {
    padding: 16px;
    min-height: 66px;
  }

  :is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-head h2  {
    font-size: 17px;
  }

  :is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-body  {
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  :is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-foot  {
    gap: 9px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  :is(.email10-dialog, .email-editor09, .checkout-editor07) .dialog-foot .btn  {
    flex: 1;
    min-height: 44px;
    min-width: 0;
    white-space: normal;
  }

  .email10-editor  {
    display: block;
    height: auto;
    min-height: 100%;
    background: var(--card);
  }

  .email10-mobile-tabs, .v09-editor-tabs  {
    position: sticky;
    top: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-shrink: 0;
    gap: 5px;
    padding: 8px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
  }

  .email10-mobile-tabs .btn, .v09-editor-tabs button  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
  }

  .email10-editor[data-panel=edit] .email10-mobile-tabs button[data-id=edit], .email10-editor[data-panel=preview] .email10-mobile-tabs button[data-id=preview], .v09-editor-tabs button[aria-selected=true]  {
    color: var(--primary);
    background: var(--hover);
  }

  .v09-editor-tabs .icon  {
    width: 16px;
    height: 16px;
  }

  .email10-edit  {
    height: auto;
    overflow: visible;
    border: 0;
    padding: 22px 18px;
  }

  .email10-edit .field  {
    margin-bottom: 21px;
  }

  .email10-edit :is(input, select)  {
    min-height: 44px;
    font-size: 16px;
  }

  .email10-edit input[type=checkbox]  {
    min-height: 0;
  }

  .email10-edit textarea  {
    font-size: 16px;
    min-height: 150px;
  }

  .email10-edit textarea[name=body], .email10-edit textarea[name=bodyEn]  {
    font-size: 13px;
    min-height: 260px;
  }

  .email10-token  {
    min-height: 65px;
    font-size: 13px;
  }

  .email10-preview  {
    height: auto;
    min-height: 100%;
  }

  .email10-preview-tools  {
    padding: 17px;
  }

  .email10-preview-tools .field select  {
    font-size: 16px;
    min-height: 44px;
  }

  .email10-preview-tools .row  {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email10-preview-tools .row > .btn:last-child  {
    grid-column: 1 / -1;
  }

  .email10-frame-canvas  {
    min-height: 520px;
    padding: 17px 12px;
  }

  .email10-frame-canvas iframe  {
    min-height: 600px;
  }

  .email10-editor[data-panel=edit] .email10-preview, .email10-editor[data-panel=preview] .email10-edit  {
    display: none;
  }

  .email10-standalone > .row  {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .email10-standalone > .row .field  {
    min-width: 0;
    margin: 0;
  }

  .email10-device-tools  {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .email10-device-tools > span  {
    display: none;
  }

  .email10-device-tools .btn  {
    padding-inline: 7px;
    min-height: 44px;
    font-size: 11px;
  }

  .email10-message-canvas  {
    height: min(620px, 62dvh);
  }

  .email10-fit-status  {
    font-size: 11px;
    line-height: 1.65;
  }

  .email-connection-bar  {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .email-connection-bar > div  {
    flex-wrap: wrap;
    gap: 9px;
  }

  .email-connection-bar .btn  {
    flex: 1;
    min-height: 44px;
  }

  .email-connection-bar span:not(.badge)  {
    width: 100%;
  }

  .v10-check-grid  {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v10-check-grid .check  {
    min-height: 47px;
    padding: 11px 12px;
    font-size: 13px;
  }

  .setup-steps li, .install-steps li  {
    font-size: 13px;
  }

  .tg-monitor-secret input  {
    min-height: 46px;
    font-size: 16px;
  }

  .automation-step  {
    grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 44px;
    grid-template-areas: "number template template remove" "delay delay unit unit";
    gap: 11px;
    padding: 14px;
  }

  .automation-step > .icon-btn  {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .automation-step > .step-number  {
    margin-bottom: 8px;
  }

  .v10-order-summary  {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .v10-order-grid  {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 22px;
  }

  .v10-tabs  {
    gap: 23px;
    margin-bottom: 20px;
  }

  .v10-tabs :is(button, a)  {
    min-height: 48px;
  }

  .v10-detail-nav .btn  {
    flex: 1;
  }

  .v10-detail-nav > small  {
    width: 100%;
    margin: 4px 0;
    text-align: center;
  }

  [data-v10-order] > section  {
    padding-block: 22px;
  }

  [data-v10-order] .product-row  {
    gap: 10px;
  }

  [data-v10-order] .product-row img  {
    width: 45px;
    height: 45px;
  }

  [data-v10-order] .product-row strong  {
    font-size: 12px;
  }

  .v10-timeline > li, .v10-timeline > div  {
    padding-left: 21px;
  }

  .v10-email-preview  {
    min-height: 500px;
  }

  .payment-failure09  {
    padding: 16px;
  }

  .payment-failure09 dl  {
    grid-template-columns: 1fr;
  }

  .security-overview  {
    gap: 13px;
  }

  .security-icon  {
    width: 39px;
    height: 39px;
  }

  .security-overview h3  {
    font-size: 15px;
  }

  .security-overview p  {
    font-size: 12px;
  }

  .security-settings-row  {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 17px;
  }

  .security-settings-row .btn  {
    min-height: 44px;
  }

  .security-setup-steps  {
    gap: 5px;
    justify-content: space-between;
    font-size: 10px;
  }

  .security-setup-steps span  {
    padding: 7px;
  }

  .security-secret-row  {
    flex-wrap: wrap;
  }

  .security-secret-row code  {
    flex: 1 1 100%;
    font-size: 12px;
  }

  .security-secret-row .btn  {
    min-height: 44px;
  }

  .security-recovery-grid  {
    gap: 8px;
  }

  .security-recovery-grid code  {
    font-size: 12px;
    padding: 14px 5px;
  }

  .security-recovery-actions .btn  {
    min-height: 44px;
    font-size: 12px;
  }

  .detail-grid  {
    gap: 18px 15px;
  }

  .detail-grid strong  {
    font-size: 12px;
  }

  .setting-row  {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .setting-row .btn  {
    min-height: 44px;
  }

  .organization-option  {
    padding: 15px;
  }

  .globe-layout  {
    gap: 16px;
  }

  .atlas-globe  {
    height: 340px;
  }

  .globe-card .globe-caption  {
    padding: 19px 18px 17px;
    gap: 12px;
  }

  .globe-card .globe-caption h2  {
    font-size: 18px;
  }

  .globe-card .globe-caption p  {
    font-size: 12px;
  }

  .globe-card .globe-caption .live-status {
    padding: 4px 7px;
    font-size: 9px;
  }

  .globe-footer {
    padding: 16px 18px 18px;
  }

  .globe-key  {
    gap: 10px 16px;
    font-size: 11px;
  }

  .globe-card .globe-location-note  {
    font-size: 11px;
  }

  .globe-fallback .world-map  {
    height: 265px;
    padding: 10px;
  }

  .globe-placeholder  {
    width: 185px;
    height: 185px;
  }

  .world-map  {
    height: 245px;
  }

  .live-events  {
    max-height: 380px;
  }

  .live-event  {
    gap: 10px;
    padding: 16px;
    min-height: 72px;
  }

  .live-event strong  {
    font-size: 12px;
  }

  .live-event b  {
    max-width: 85px;
    overflow-wrap: anywhere;
  }

  .v09-live-pending  {
    padding: 12px;
  }

  .wizard-steps  {
    gap: 4px;
  }

  .wizard-steps li  {
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    padding: 0 2px 13px;
    text-align: center;
    font-size: 10px;
  }

  .routing-modes  {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .routing-mode  {
    padding: 19px;
  }

  .routing-mode > span  {
    margin-bottom: 12px;
  }

  .routing-mode strong  {
    font-size: 14px;
  }

  .routing-mode p  {
    font-size: 12px;
  }

  .routing-rule, .routing-rule.sequential, .routing-rule.weighted  {
    grid-template-columns: 28px minmax(0, 1fr) 128px;
    gap: 15px 11px;
    padding: 20px 16px;
  }

  .routing-rule > div:nth-child(2)  {
    grid-column: 2 / -1;
  }

  .routing-rule > label  {
    grid-column: 2;
    grid-row: 2;
  }

  .routing-rule > .row  {
    grid-column: 3;
    grid-row: 2;
    min-height: 44px;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
  }

  .routing-rule > .row .icon-btn  {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .routing-rule input[type=number]  {
    min-height: 44px;
    font-size: 16px;
  }

  .routing-rule h3  {
    font-size: 13px;
  }

  .routing-rule small  {
    font-size: 11px;
  }

  .routing-rule .progress, .routing-rule .full  {
    grid-column: 2 / -1;
  }

  .calendar  {
    min-width: 735px;
  }

  .calendar .day  {
    min-height: 135px;
  }

  .calendar .payout-chip  {
    min-height: 44px;
  }

  .shipping-row  {
    grid-template-columns: minmax(0, 1fr) 86px 44px;
    gap: 9px;
  }

  .shipping-row .shipping-description  {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shipping-row > .icon-btn  {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .shipping-row input  {
    min-height: 44px;
    font-size: 16px;
  }

  .shop-checkboxes  {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .shop-checkboxes .check  {
    min-height: 44px;
  }

  .editor-layout  {
    display: block;
    flex: 1;
    height: auto;
    min-height: min-content;
    background: var(--soft);
  }

  .editor-settings  {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 22px 18px;
    border: 0;
    gap: 20px;
  }

  .editor-settings .form-grid  {
    gap: 20px;
  }

  .editor-settings .field  {
    font-size: 13px;
  }

  .editor-settings :is(input, select, textarea)  {
    min-height: 44px;
    font-size: 16px;
  }

  .editor-settings input[type=checkbox]  {
    min-height: 0;
  }

  .editor-settings input[type=color]  {
    width: 85px;
  }

  .editor-canvas  {
    height: auto;
    min-height: 100%;
    overflow: auto;
    padding: 17px 12px 25px;
  }

  .editor-canvas > .row  {
    position: static;
    padding: 9px;
    gap: 7px;
  }

  .editor-canvas > .row .btn  {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .editor-canvas iframe, .checkout-editor07 #editor-frame  {
    height: calc(100dvh - 290px) !important;
    min-height: 390px;
    max-width: 100%;
    border-width: 3px;
    border-radius: 16px;
  }

  .checkout-editor07[data-editor-tab=edit] .editor-canvas  {
    display: none;
  }

  .checkout-editor07[data-editor-tab=preview] .editor-settings  {
    display: none;
  }

  .custom-block  {
    padding: 15px;
    margin: 15px 0;
  }

  .custom-block > .row  {
    align-items: flex-start;
  }

  .custom-block > .row > .row  {
    width: 100%;
    gap: 7px;
  }

  .custom-block .btn  {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 11px;
    flex: 1;
  }

  .custom-block .icon-btn  {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .custom-block textarea  {
    font-size: 13px;
    min-height: 160px;
  }

  .block-palette .btn  {
    min-height: 44px;
  }

  .review-edit, .trust-item-editor  {
    padding: 13px;
  }

  .editor-item-toolbar  {
    gap: 8px;
  }

  .editor-visibility  {
    min-height: 44px;
    font-size: 12px;
    line-height: 1.6;
  }

  .editor-history .btn, .editor-scenarios .btn, .media-field-tools .btn  {
    min-height: 44px;
  }

  .checkout-editor07 #draft-state  {
    width: 100%;
    font-size: 11px;
  }

  .checkout-editor-dialog  {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .checkout-editor-dialog .dialog-body  {
    max-height: calc(100dvh - 115px);
    padding: 17px;
  }

  .checkout-editor-dialog :is(.btn, .icon-btn, summary)  {
    min-height: 44px;
  }

  .media-library-grid  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .media-library-grid article  {
    padding: 10px;
  }

  .media-library-grid img, .media-image-fallback  {
    height: 100px;
  }

  .design-categories  {
    gap: 8px;
  }

  .design-categories label  {
    min-height: 44px;
    padding: 10px;
  }

  .design-comparison  {
    grid-template-columns: 1fr;
  }

  .design-diff details  {
    padding: 12px;
  }

  .email-designer, .email-visual-editor  {
    display: block;
    height: auto;
  }

  .email-designer > div:first-child  {
    padding: 22px 18px;
    border: 0;
    overflow: visible;
  }

  .email-designer :is(input, select, textarea)  {
    font-size: 16px;
    min-height: 44px;
  }

  .email-designer input[type=checkbox]  {
    min-height: 0;
    width: auto;
  }

  .email-editor09[data-email-tab=edit] .email-canvas  {
    display: none;
  }

  .email-editor09[data-email-tab=preview] .email-designer > div:first-child  {
    display: none;
  }

  .email-canvas, .template-preview-container  {
    padding: 16px 12px;
  }

  .email-canvas iframe, .template-preview-container iframe  {
    min-height: 550px;
  }

  .help-grid  {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .help-card  {
    padding: 20px;
  }

  .help-card p  {
    margin-bottom: 16px;
    font-size: 13px;
  }

}

@media (max-width: 390px)  {
  .gateway10-detail  {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .gateway10-detail > strong  {
    text-align: left;
  }

  .gateway10-metric > strong  {
    font-size: 18px;
  }

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

  .gateway10-item > div:nth-child(3)  {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    text-align: left;
  }

  .gateway10-item > div:nth-child(2)  {
    grid-row: 3;
  }

  .gateway10-item > .btn  {
    grid-row: 4;
  }

  .gateway10-capabilities > button  {
    grid-template-columns: minmax(0, 1fr);
  }

  .gateway10-capabilities .gateway10-badge  {
    justify-self: start;
  }

  .security-setup-steps  {
    font-size: 9px;
  }

  .security-setup-steps span  {
    padding-inline: 5px;
  }

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

  .editor-settings  {
    padding-inline: 15px;
  }

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

  .media-library-grid article .row  {
    flex-direction: column;
    align-items: stretch;
  }

  .routing-rule, .routing-rule.sequential, .routing-rule.weighted  {
    grid-template-columns: 28px minmax(0, 1fr) 128px;
    padding-inline: 13px;
    gap: 13px 9px;
  }

}

/* Subtle feedback, without making financial activity harder to read. */
@media (prefers-reduced-motion: no-preference)  {
  .gateway10-tabs > button, .gateway10-capabilities > button, .email10-card, .routing-mode, .help-card, .payout-chip  {
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  }

  .gateway10-content  {
    animation: atlas-module-enter .2s ease-out both;
  }

  .checkout-editor-dialog[open]  {
    animation: atlas-module-enter .18s ease-out;
  }

  .map-dot .pulse  {
    animation: atlas-map-pulse 2.2s ease-out infinite;
  }

  @keyframes atlas-module-enter  {
    from  {
      opacity: 0;
      transform: translateY(5px);
    }

    to  {
      opacity: 1;
      transform: translateY(0);
    }

  }

  @keyframes atlas-map-pulse  {
    from  {
      opacity: .55;
      transform: scale(.7);
    }

    to  {
      opacity: 0;
      transform: scale(2.5);
    }

  }

}

@media (prefers-reduced-motion: reduce)  {
  .gateway10-content, .checkout-editor-dialog, .map-dot .pulse  {
    animation: none;
  }

  .editor-canvas iframe, .email10-message-stage iframe  {
    transition: none;
  }

}

/* Owner operations: compact status at desktop, single-column on mobile. */
.ops12-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.ops12-metrics h2{font-size:25px;letter-spacing:-.04em;margin:10px 0 8px}
.ops12-metrics .muted{font-size:13px;line-height:1.5}
@media(max-width:700px){.ops12-metrics{grid-template-columns:1fr;gap:10px;margin:18px 0}.ops12-metrics .card{padding:18px}}
