/* WEB3SERVES foundation. Native Bootstrap theme copy 30; no behavior overrides. */
:root {
  --w3-workspace: #f3f6fa;
  --w3-surface: #ffffff;
  --w3-subtle: #f8fafc;
  --w3-text: #202631;
  --w3-muted: #626d7e;
  --w3-border: #d7dde7;
  --w3-primary: #4f67e8;
  --w3-primary-hover: #3e55d2;
  --w3-link: #4059cf;
  --w3-chrome: #0e1117;
  --w3-nav: #191e27;
  --w3-radius: 8px;
}

body {
  background: var(--w3-workspace);
  color: var(--w3-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: var(--w3-link); }
a:hover, a:focus { color: var(--w3-primary-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--w3-text); font-family: inherit; line-height: 1.35; }
button, input, select, textarea { font-family: inherit; letter-spacing: 0; }
label { font-weight: 600; }
.text-muted, .help-block { color: var(--w3-muted); }

.well, .panel, .modal-content {
  background: var(--w3-surface);
  border-color: var(--w3-border);
  border-radius: var(--w3-radius);
  box-shadow: none;
}
.well { padding: 24px; }
.panel-default > .panel-heading {
  color: var(--w3-text);
  background: var(--w3-subtle);
  border-color: var(--w3-border);
  border-radius: var(--w3-radius) var(--w3-radius) 0 0;
}
.form-control {
  min-height: 42px;
  color: var(--w3-text);
  background: var(--w3-surface);
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  box-shadow: none;
}
.form-control[readonly], .form-control[disabled] { background: var(--w3-subtle); }
.form-control:focus { border-color: var(--w3-primary); box-shadow: 0 0 0 3px rgba(79, 103, 232, .15); }
textarea.form-control { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--w3-primary); }
.btn { border-radius: 6px; font-weight: 600; line-height: 1.5; }
.btn-primary { background: var(--w3-primary); border-color: var(--w3-primary); color: #ffffff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.open > .dropdown-toggle.btn-primary { background: var(--w3-primary-hover); border-color: var(--w3-primary-hover); color: #ffffff; }
.btn-default { background: var(--w3-surface); border-color: var(--w3-border); color: var(--w3-text); }
.btn-default:hover, .btn-default:focus { background: var(--w3-subtle); border-color: #bac4d2; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--w3-primary);
  outline-offset: 3px;
}

.navbar-default { background: var(--w3-nav); border-color: #2c3441; }
.navbar-default .navbar-brand { color: #ffffff; font-weight: 700; }
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #ffffff; }
.navbar-brand > img { max-height: 36px; max-width: 190px; object-fit: contain; }
.navbar-default .navbar-nav > li > a { color: #bcc3ce; font-size: 13px; font-weight: 600; }
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: #ffffff; background: #242c39; }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a { color: #ffffff; background: var(--w3-chrome); box-shadow: inset 0 -3px var(--w3-primary); }
.navbar-default .navbar-toggle { border-color: #626d7e; }
.navbar-default .navbar-toggle .icon-bar { background: #ffffff; }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background: #242c39; }
.navbar-default .badge { background: #283241; border-radius: var(--w3-radius); color: #ffffff; font-variant-numeric: tabular-nums; }
html[lang^="en"] .navbar-nav > li > a { text-transform: uppercase; }

.dropdown-menu {
  padding: 6px;
  background: var(--w3-surface);
  border: 1px solid var(--w3-border);
  border-radius: var(--w3-radius);
  box-shadow: 0 10px 24px rgba(32, 38, 49, .12);
}
.dropdown-menu > li > a { padding: 9px 12px; color: var(--w3-text); border-radius: 5px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: #eef2f7; }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus { background: #e2e8f4; color: var(--w3-link); font-weight: 600; }
.nav-pills > li > a { border-radius: 6px; font-weight: 600; }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus { background: var(--w3-primary); color: #ffffff; }
.table > thead > tr > th { color: var(--w3-muted); border-bottom: 1px solid var(--w3-border); }
.table > tbody > tr > td { border-color: var(--w3-border); vertical-align: middle; }
.table > thead > tr > th, .table > tbody > tr > td { padding: 12px; }
.table .nowrap, .table [nowrap], .badge { font-variant-numeric: tabular-nums; }
.table-hover > tbody > tr:hover { background: var(--w3-subtle); }
.pagination > li > a, .pagination > li > span { color: var(--w3-link); border-color: var(--w3-border); }
.pagination > .active > a, .pagination > .active > span { background: var(--w3-primary); border-color: var(--w3-primary); color: #ffffff; }

@media (max-width: 767px) {
  .well { padding: 18px; }
  .navbar-brand > img { max-width: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .form-control, .collapsing { transition: none; }
}

/* Public shell only. Keep the inherited authenticated theme above unchanged. */
.w3-public-header.navbar {
  min-height: 65px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #29313d;
  background: #101318;
}
.w3-public-header .w3-public-container {
  width: calc(100% - 32px);
  max-width: 1120px;
  padding: 0;
  margin: 0 auto;
}
.w3-public-header .navbar-header { margin: 0; }
.w3-public-header .w3-public-brand {
  display: inline-flex;
  height: 64px;
  align-items: center;
  gap: 9px;
  padding: 0;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
  line-height: 20px;
  white-space: nowrap;
}
.w3-public-brand svg { flex: none; }
.w3-public-header .w3-public-brand img {
  max-width: 190px;
  max-height: 36px;
  margin: 0;
  object-fit: contain;
}
.w3-public-header .navbar-nav > li > a {
  min-height: 44px;
  padding: 22px 12px;
  color: #d0d0ce;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.w3-public-header .navbar-nav > li > a:hover,
.w3-public-header .navbar-nav > li > a:focus {
  color: #ffffff;
  background: #202630;
}
.w3-public-header .navbar-nav > .active > a,
.w3-public-header .navbar-nav > .active > a:hover,
.w3-public-header .navbar-nav > .active > a:focus {
  color: #ffffff;
  background: #293242;
  box-shadow: inset 0 -3px var(--w3-primary);
}
.w3-public-header .w3-public-language.navbar-nav a { text-transform: none; }
.w3-public-header .navbar-toggle {
  width: 44px;
  height: 44px;
  margin: 10px 0;
  padding: 10px;
}
.w3-public-header .dropdown-menu { max-width: 100%; }
.w3-public-header .dropdown-menu > li > a {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.w3-public-header a:focus-visible,
.w3-public-header button:focus-visible { outline: 2px solid #a9b7ff; outline-offset: -3px; }

.w3-signin {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 0 24px;
  overflow-wrap: anywhere;
}
.w3-signin h1 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.w3-signin-card {
  padding: 24px 30px;
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  background: var(--w3-surface);
  box-shadow: 0 2px 4px rgba(32, 38, 49, .02), 0 12px 32px rgba(32, 38, 49, .03);
}
.w3-signin .form-group { margin-bottom: 18px; }
.w3-signin .control-label { margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.w3-signin .form-control { height: 44px; min-height: 44px; border-radius: 4px; }
.w3-signin-password-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w3-signin .w3-signin-password-label .forgot-password {
  position: static;
  float: none;
  margin: 0 0 6px;
  font-size: 12px;
  text-align: end;
}
.w3-signin-submit.btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
.w3-signin-google {
  display: flex;
  min-width: 0;
  min-height: 61px;
  justify-content: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--w3-border);
}
.w3-signin-google .g_id_signin { min-width: 240px; max-width: 100%; }
.w3-signin-captcha { max-width: 100%; margin-bottom: 18px; }
.w3-signin-captcha iframe { display: block; }
.w3-signin-register { margin: 18px 0 0; color: var(--w3-muted); text-align: center; }
.w3-signin-register a { display: inline-block; padding: 6px 0; margin-inline-start: 4px; }
.w3-signin-auth-text { padding-top: 24px; }
.w3-signin-auth-text img { max-width: 100%; height: auto; }
.w3-signin .alert { overflow-wrap: anywhere; }

.w3-public-footer { padding: 8px 16px 28px; color: var(--w3-muted); text-align: center; }
.w3-public-footer-inner { max-width: 440px; padding-top: 16px; margin: 0 auto; border-top: 1px solid var(--w3-border); }
.w3-public-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.w3-public-footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--w3-text); font-size: 13px; }
.w3-public-footer-links a:hover { color: var(--w3-link); }
.w3-public-footer p { margin: 12px 0 0; font-size: 12px; overflow-wrap: anywhere; }

@media (min-width: 1024px) {
  .w3-public-header .w3-public-container { display: flex; align-items: center; gap: 14px; }
  .w3-public-header .w3-public-container::before,
  .w3-public-header .w3-public-container::after { display: none; }
  .w3-public-header .navbar-header { flex: none; }
  .w3-public-header .navbar-collapse { display: flex !important; flex: 1; min-width: 0; padding: 0; margin: 0; }
  .w3-public-header .navbar-nav { float: none !important; margin: 0; }
  .w3-public-header .w3-public-menu { display: flex; margin-left: auto; }
  .w3-public-header .navbar-toggle { display: none; }
}
@media (max-width: 1023px) {
  .w3-public-header .navbar-header { float: none; }
  .w3-public-header .navbar-toggle { display: block; }
  .w3-public-header .navbar-collapse { width: 100%; padding: 0; margin: 0; border-top: 1px solid #29313d; box-shadow: none; }
  .w3-public-header .navbar-collapse.collapse:not(.in) { display: none !important; }
  .w3-public-header .navbar-collapse.in { display: block !important; }
  .w3-public-header .navbar-nav { float: none !important; width: 100%; margin: 0; }
  .w3-public-header .navbar-nav > li { float: none; }
  .w3-public-header .navbar-nav > li > a { padding: 12px; }
  .w3-public-header .navbar-nav .open .dropdown-menu { position: static; float: none; width: 100%; margin: 0; background: #ffffff; }
  .w3-public-header .navbar-nav .open .dropdown-menu > li > a { color: var(--w3-text); padding: 12px; }
  .w3-public-header .navbar-nav .open .dropdown-menu > .active > a { background: #e2e8f4; color: var(--w3-link); }
}
@media (max-width: 479px) {
  .w3-signin { padding-top: 32px; }
  .w3-signin-card { padding: 20px 18px; }
  .w3-signin .form-control { font-size: 16px; }
}
@media (max-width: 359px) {
  /* Fit the standard fixed-width challenge without changing provider markup. */
  .w3-signin-captcha .g-recaptcha { zoom: .8; }
}

/* Authenticated header only. Keep the phase-2 public stylesheet above intact. */
.w3-auth-page { padding-top: 64px; }
.w3-auth-header.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  height: 64px;
  min-height: 64px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #0b0e13;
  border-radius: 0;
  background: #191e27;
  color: #d0d0ce;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
.w3-auth-header .w3-auth-container {
  display: grid;
  grid-template-columns: max(208px, calc((100% - 1120px) / 2)) minmax(0, 1fr) auto;
  align-items: stretch;
  height: 64px;
  padding: 0;
  margin: 0;
}
.w3-auth-header .w3-auth-container::before,
.w3-auth-header .w3-auth-container::after,
.w3-auth-header .navbar-header::before,
.w3-auth-header .navbar-header::after,
.w3-auth-header .navbar-collapse::before,
.w3-auth-header .navbar-collapse::after { display: none; }
.w3-auth-header .navbar-header {
  display: flex;
  width: 208px;
  min-width: 0;
  align-items: center;
  padding: 0 18px;
  margin: 0;
  border-right: 1px solid #293242;
  background: #0e1117;
  float: none;
}
.w3-auth-header .navbar-brand {
  display: flex;
  min-width: 0;
  height: 64px;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  float: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.w3-auth-header .w3-auth-container .navbar-brand { margin: 0; }
.w3-auth-header .navbar-brand svg { flex: none; width: 32px; height: 32px; }
.w3-auth-header .navbar-brand > span { white-space: nowrap; }
.w3-auth-header .navbar-brand img { max-width: 100%; max-height: 36px; width: auto; height: auto; margin: 0; object-fit: contain; }
.w3-auth-header .navbar-brand:hover,
.w3-auth-header .navbar-brand:focus { color: #fff; }
.w3-auth-header .navbar-collapse {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
}
.w3-auth-header .navbar-nav { float: none !important; margin: 0; }
.w3-auth-header .w3-auth-menu { display: flex; width: max-content; min-width: 100%; align-items: center; }
.w3-auth-header .w3-auth-menu > li { flex: none; float: none; width: auto; }
.w3-auth-header .w3-auth-menu > li > a {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  color: #d0d0ce;
  font-size: 11px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
}
.w3-auth-header:lang(zh) .w3-auth-menu > li > a { font-size: 12px; }
.w3-auth-header:lang(en) .w3-auth-menu > li > a,
.w3-auth-header:lang(en) .w3-auth-tool-link,
.w3-auth-header:lang(en) .w3-auth-more .dropdown-menu > li > a { text-transform: uppercase; }
.w3-auth-header .w3-auth-menu > li > a:hover,
.w3-auth-header .w3-auth-menu > li > a:focus { background: #111722; color: #fff; }
.w3-auth-header .w3-auth-menu > .active > a,
.w3-auth-header .w3-auth-menu > .active > a:hover,
.w3-auth-header .w3-auth-menu > .active > a:focus { background: #111722; color: #fff; box-shadow: inset 0 -2px #4f67e8; }
.w3-auth-header .w3-auth-tools {
  display: flex;
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-left: 1px solid #0b0e13;
  background: #0e1117;
}
.w3-auth-header .w3-auth-tools > li { flex: none; float: none; width: auto; min-width: 0; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { display: flex; min-height: 48px; min-width: 36px; align-items: center; justify-content: center; padding: 0 10px; color: #d0d0ce; font-size: 11px; font-weight: 500; white-space: nowrap; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link:hover,
.w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link:focus { background: #111722; color: #fff; }
.w3-auth-header .w3-auth-tools > .active > .w3-auth-tool-link,
.w3-auth-header .w3-auth-tools > .active > .w3-auth-tool-link:hover,
.w3-auth-header .w3-auth-tools > .active > .w3-auth-tool-link:focus { background: #111722; color: #fff; box-shadow: inset 0 -2px #4f67e8; }
.w3-auth-header .w3-auth-tools > li > .dropdown-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
}
.w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-height: 34px; background: #222938; font-variant-numeric: tabular-nums; }
.w3-auth-header .w3-auth-balance .badge { padding: 0; background: transparent; font: inherit; font-weight: 600; }
.w3-auth-header .w3-auth-balance-static > a { padding: 8px 10px; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.w3-auth-header .w3-auth-tools > .open > .dropdown-toggle,
.w3-auth-header .w3-auth-tools > li > .dropdown-toggle:hover { border-color: #303a4a; background: #293242; }
.w3-auth-header .dropdown-menu {
  top: calc(100% + 6px);
  right: auto;
  left: auto;
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 160px;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgb(14 17 23 / 8%);
}
.w3-auth-header .dropdown-menu > li > a { min-height: 36px; padding: 8px 10px; color: #202631; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.w3-auth-header .dropdown-menu > li > a:hover,
.w3-auth-header .dropdown-menu > li > a:focus { background: #f3f6fa; color: #202631; }
.w3-auth-header .dropdown-menu > .active > a,
.w3-auth-header .dropdown-menu > .active > a:hover,
.w3-auth-header .dropdown-menu > .active > a:focus { background: #edf2f8; color: #4059cf; }
.w3-auth-header a:focus-visible,
.w3-auth-header button:focus-visible { outline: 2px solid #8798ff; outline-offset: -2px; }
.w3-auth-header .navbar-toggle { display: none; }
@media (min-width: 768px) {
  .w3-auth-header .navbar-collapse { display: flex !important; height: 64px !important; align-items: center; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none; }
  .w3-auth-header .navbar-collapse::-webkit-scrollbar { display: none; }
}
@media (max-width: 767px) {
  .w3-auth-header .w3-auth-container { grid-template-columns: minmax(0, 1fr) auto; }
  .w3-auth-header .navbar-header { width: auto; gap: 8px; padding: 0 10px; }
  .w3-auth-header .navbar-brand { font-size: 13px; }
  .w3-auth-header .navbar-toggle { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; margin: 0; border: 0; color: #fff; font-size: 16px; }
  .w3-auth-header .navbar-toggle:hover,
  .w3-auth-header .navbar-toggle:focus { background: #293242; }
  .w3-auth-header .navbar-collapse,
  .w3-auth-header .collapsing { position: absolute; top: 64px; left: 0; width: min(280px, 100%); max-height: calc(100vh - 64px); padding: 0; margin: 0; border: 0; background: #191e27; box-shadow: 0 12px 30px rgb(15 23 42 / 18%); }
  .w3-auth-header .navbar-collapse.collapse:not(.in) { display: none !important; }
  .w3-auth-header .navbar-collapse.in { display: block !important; overflow-y: auto; }
  .w3-auth-header .w3-auth-menu { display: block; width: 100%; }
  .w3-auth-header .w3-auth-menu > li > a { min-height: 46px; padding: 10px 15px; white-space: normal; overflow-wrap: anywhere; }
  .w3-auth-header .w3-auth-tools { padding: 0 8px; gap: 2px; }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { min-height: 44px; padding: 0 6px; }
  .w3-auth-header .w3-auth-tools > li > .dropdown-toggle { min-height: 44px; padding: 0 8px; }
  .w3-auth-header .w3-auth-tools .open .dropdown-menu { position: absolute; top: calc(100% + 6px); right: auto; left: auto; inset-inline-start: auto; inset-inline-end: 0; width: max-content; margin: 0; background: #fff; }
  .w3-auth-header .w3-auth-tools .dropdown-menu > li > a { min-height: 44px; padding: 12px 10px; color: #202631; }
  .w3-auth-header.navbar-default .w3-auth-tools .open .dropdown-menu > .active > a,
  .w3-auth-header.navbar-default .w3-auth-tools .open .dropdown-menu > .active > a:hover,
  .w3-auth-header.navbar-default .w3-auth-tools .open .dropdown-menu > .active > a:focus { color: #4059cf; background: #edf2f8; }
}
@media (max-width: 560px) {
  .w3-auth-header .navbar-brand > span { display: none; }
  .w3-auth-header .navbar-brand svg { width: 24px; height: 24px; }
  .w3-auth-header .navbar-header { gap: 4px; padding: 0 4px; }
  .w3-auth-header .navbar-toggle { width: 36px; }
  .w3-auth-header .w3-auth-tools { gap: 0; padding: 0 4px; }
  .w3-auth-header .w3-auth-balance > .glyphicon { display: none; }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { min-width: 32px; padding: 0 5px; }
}
@media (max-width: 359px) {
  .w3-auth-header .w3-auth-balance > .glyphicon { display: none; }
  .w3-auth-header .navbar-header { gap: 4px; padding: 0 4px; }
}

/* Native catalog/order controls retain their platform IDs and runtime ownership. */
.w3-services.container,
.w3-services-content.container { width: 100%; max-width: 1150px; padding: 0 15px; margin: 20px auto 40px; }
.w3-neworder.container,
.w3-neworder-content.container { width: 100%; max-width: 790px; padding: 0 15px; margin: 20px auto 32px; }
.w3-services, .w3-neworder { color: #242a35; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.w3-services .row, .w3-neworder .row,
.w3-services-content .row, .w3-neworder-content .row { margin: 0; }
.w3-services .col-lg-12, .w3-neworder .col-md-12,
.w3-neworder-content .col-md-12 { padding: 0; }
.w3-services .well, .w3-neworder .well { background: #fff; border: 1px solid #d7dfeb; border-radius: 8px; box-shadow: none; }
.w3-services .w3-services-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.w3-services .w3-services-tools::before, .w3-services .w3-services-tools::after { display: none; }
.w3-services .w3-services-tools > li { float: none; margin: 0; min-width: 0; }
.w3-services .w3-services-tools > .search { margin-inline-start: auto; width: 300px; }
.w3-services .w3-services-tools > .w3-services-currency { margin-inline-start: auto; }
.w3-services .w3-services-currency + .search { margin-inline-start: 0; }
.w3-services .btn, .w3-neworder .btn { border-radius: 6px; font-weight: 600; }
.w3-services .w3-services-tools .btn, .w3-services .form-control { min-height: 40px; }
.w3-services .w3-category-filter { display: flex; align-items: center; gap: 10px; width: 220px; max-width: 100%; color: #242a35; background: white; border-color: #d7dfeb; text-align: start; }
.w3-services [data-filter-active-category] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.w3-services .w3-category-filter .caret { margin-inline-start: auto; flex: 0 0 auto; }
.w3-services .dropdown-menu { border: 1px solid #d7dfeb; border-radius: 8px; padding: 4px; max-width: min(400px, calc(100vw - 30px)); max-height: 360px; overflow-y: auto; }
.w3-services .dropdown-menu > li > a { padding: 9px 12px; white-space: normal; overflow-wrap: anywhere; border-radius: 4px; }
.w3-services .dropdown-menu > .active > a { background: #e2e8f4; color: #3f50d5; }
.w3-services .w3-services-scroll { width: 100%; overflow-x: auto; padding: 12px 14px; margin: 0; }
.w3-services #service-table { min-width: 880px; margin: 0; width: 100%; }
.w3-services #service-table th { font-size: 12px; font-weight: 600; color: #6a7587; border-bottom: 1px solid #d7dfeb; padding: 10px 8px; vertical-align: middle; }
.w3-services #service-table td { padding: 8px; border-top: 1px solid #e1e6ef; vertical-align: middle; }
.w3-services #service-table .width-service-name { width: 42%; }
.w3-services #service-table .service-name { min-width: 240px; overflow-wrap: anywhere; }
.w3-services #service-table td:not(.service-name) { font-variant-numeric: tabular-nums; }
.w3-services #service-table td[colspan] { background: #f6f8fa; padding: 8px; }
.w3-services #service-table .btn-xs { padding: 6px 10px; color: #4354d9; border-color: transparent; background: #edf1f8; white-space: nowrap; }
.w3-services .w3-service-favorite { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #728098; }
.w3-services .w3-service-favorite.favorite-active { color: #4354d9; }
.w3-services .w3-service-favorite:hover { background: #edf1f8; }
.w3-services .form-control, .w3-neworder .form-control { border-color: #d7dfeb; border-radius: 6px; box-shadow: none; color: #242a35; }
.w3-services .input-group .form-control { border-start-end-radius: 0; border-end-end-radius: 0; }
.w3-services .input-group-btn > .btn { border-start-start-radius: 0; border-end-start-radius: 0; }
.w3-services .btn-primary, .w3-neworder .btn-primary { background: #4f5feb; border-color: #4f5feb; color: white; }
.w3-services .btn-primary:hover, .w3-neworder .btn-primary:hover { background: #4050d6; border-color: #4050d6; }
.w3-services :focus-visible,
.w3-neworder :focus-visible { outline: 2px solid #5368df; outline-offset: 2px; }
.w3-neworder .w3-order-form { padding: 24px; margin: 0; }
.w3-neworder .form-group { margin-bottom: 20px; }
.w3-neworder .control-label { font-weight: 600; margin-bottom: 7px; }
.w3-neworder input.form-control, .w3-neworder select.form-control { min-height: 42px; height: auto; }
.w3-neworder textarea.form-control { min-height: 120px; resize: vertical; }
.w3-neworder .w3-order-tools { display: flex; align-items: flex-start; gap: 10px; }
.w3-neworder .w3-order-tools > .form-group { flex: 1; min-width: 0; }
.w3-neworder .w3-order-favorites { min-height: 42px; margin-bottom: 20px; border-color: #d7dfeb; background: #fff; color: #566278; white-space: normal; }
.w3-neworder .w3-order-favorites[aria-pressed="true"] { background: #e2e8f4; border-color: #c9d3ec; color: #4052d7; }
.w3-neworder #template-input { padding-inline-start: 36px; }
.w3-neworder #service_description > .panel-body { border: 0; border-inline-start: 2px solid #6474ed; border-radius: 0; background: #f6f8fa; padding: 14px 16px; overflow-wrap: anywhere; }
.w3-neworder #service_description p:last-child { margin-bottom: 0; }
.w3-neworder #charge { background: #f6f8fa; font-variant-numeric: tabular-nums; font-weight: 600; }
.w3-neworder #order-form > .btn-primary { min-height: 42px; min-width: 140px; padding: 10px 20px; }
.w3-neworder .terms { font-weight: 400; line-height: 1.7; }
.w3-neworder .terms input { width: 16px; height: 16px; vertical-align: middle; margin: 0 6px 0 0; accent-color: #4f5feb; }
.w3-neworder .help-block { color: #6a7587; font-size: 12px; }
.w3-neworder .alert { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .w3-services.container, .w3-neworder.container { margin-top: 16px; }
  .w3-services .w3-services-tools > .search { width: 100%; margin-inline-start: 0; }
  .w3-services .w3-category-filter { width: 190px; }
  .w3-services .w3-services-tools .btn, .w3-services .form-control { min-height: 44px; }
  .w3-services .w3-services-scroll { padding: 8px; }
  .w3-services .w3-service-favorite { width: 40px; height: 40px; }
  .w3-neworder .w3-order-form { padding: 18px; }
  .w3-neworder .w3-order-tools { flex-wrap: wrap; }
  .w3-neworder .w3-order-tools > .form-group { flex-basis: 160px; }
  .w3-neworder #order-form > .btn-primary { width: 100%; }
}

/* Native history presentation. Server values, row order and actions are unchanged. */
.w3-history.container-fluid {
  width: 100%;
  max-width: 1470px;
  margin: 20px auto 40px;
  padding: 0 15px;
  color: var(--w3-text);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}
.w3-history.w3-refunds { max-width: 1150px; }
.w3-history > .row { margin: 0; }
.w3-history > .row > .col-lg-12 { padding: 0; min-width: 0; }
.w3-history .w3-history-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
}
.w3-history .nav-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.w3-history .nav-pills::before,
.w3-history .nav-pills::after { display: none; }
.w3-history .nav-pills > li { float: none; margin: 0; min-width: 0; }
.w3-history .nav-pills > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--w3-muted);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.w3-history .nav-pills > li > a:hover,
.w3-history .nav-pills > li > a:focus { background: #e9edf5; color: var(--w3-text); }
.w3-history .nav-pills > li.active > a,
.w3-history .nav-pills > li.active > a:hover,
.w3-history .nav-pills > li.active > a:focus { background: var(--w3-primary); color: #fff; }
.w3-history .w3-history-search { width: 280px; max-width: 100%; margin-inline-start: auto; }
.w3-history #history-search { margin: 0; }
.w3-history .input-group { display: flex; width: 100%; }
.w3-history .input-group .form-control {
  float: none;
  flex: 1;
  width: 0;
  min-width: 0;
  height: 40px;
  border-radius: 6px 0 0 6px;
  font-size: 13px;
  box-shadow: none;
}
.w3-history .input-group-btn { display: flex; width: auto; }
.w3-history .input-group-btn > .btn {
  width: 44px;
  min-height: 40px;
  margin: 0 0 0 -1px;
  padding: 0;
  border-radius: 0 6px 6px 0;
  color: var(--w3-muted);
}
.w3-history[dir="rtl"] .input-group .form-control { border-radius: 0 6px 6px 0; }
.w3-history[dir="rtl"] .input-group-btn > .btn { margin: 0 -1px 0 0; border-radius: 6px 0 0 6px; }
.w3-history .w3-history-scroll {
  float: none;
  width: 100%;
  max-width: 100%;
  padding: 8px 14px 4px;
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  background: var(--w3-surface);
  box-shadow: none;
  scrollbar-width: thin;
}
.w3-history .table { width: 100%; min-width: 1360px; table-layout: fixed; margin: 0; }
.w3-history .table > thead > tr > th {
  height: 40px;
  padding: 8px;
  color: var(--w3-muted);
  background: var(--w3-surface);
  border-bottom: 1px solid var(--w3-border);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.w3-history .table > tbody > tr > td {
  padding: 10px 8px;
  border-top: 1px solid #e1e6ef;
  font-size: 12px;
  line-height: 1.65;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.w3-history .table > tbody > tr:first-child > td { border-top: 0; }
.w3-history .table > tbody > tr:hover { background: var(--w3-subtle); }
.w3-history .table .w3-history-id { width: 92px; font-variant-numeric: tabular-nums; }
.w3-history .table .w3-history-date { width: 190px; }
.w3-history .w3-record-date { display: inline-block; max-width: 100%; direction: ltr; unicode-bidi: isolate; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.w3-history .table .w3-history-link {
  width: 160px;
  max-width: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.w3-history .table .w3-history-service { white-space: normal; overflow-wrap: anywhere; }
.w3-history .table .w3-history-number { width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.w3-history .table .w3-history-amount { width: 128px; }
.w3-history .table .w3-history-status { width: 130px; white-space: normal; }
.w3-history .table .w3-history-actions { width: 134px; }
.w3-history .table .w3-history-runs { width: 90px; }
.w3-history .table .w3-history-total { width: 104px; }
.w3-history .order-actions { width: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.w3-history td.order-actions { display: table-cell; }
.w3-history .order-actions .btn {
  min-height: 32px;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  background: var(--w3-surface);
  color: var(--w3-link);
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.w3-history .order-actions .btn:hover { background: #edf1f8; border-color: var(--w3-primary); }
.w3-history .order-actions .btn.disabled { pointer-events: auto; cursor: not-allowed; opacity: .7; }
.w3-history .w3-history-link > [data-toggle="modal"] { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.w3-history [data-toggle="tooltip"] { cursor: help; }
.w3-history .modal { white-space: normal; overflow-wrap: anywhere; }
.w3-history .modal-dialog { max-width: calc(100% - 20px); }
.w3-history .modal-title { padding-inline-end: 24px; font-size: 18px; }
.w3-history .modal .form-control { font-size: 14px; }
.w3-history .modal textarea.form-control { resize: vertical; }
.w3-history .modal[aria-labelledby] .close { position: relative; z-index: 1; }
.w3-history .pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 14px 0 0; padding: 0; }
.w3-history .pagination > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 6px;
  border-radius: 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.w3-history.w3-refunds .table { min-width: 680px; }
.w3-history.w3-refunds .table .w3-history-id { width: 26%; }
.w3-history.w3-refunds .table .w3-history-number { width: 24%; }
.w3-history.w3-refunds .table .w3-history-status { width: 22%; }
.w3-history.w3-refunds .table .w3-history-date { width: 28%; }
.w3-history.w3-refunds .table > tbody > tr > td { height: 48px; font-size: 13px; }
.w3-history.w3-refunds td.w3-history-number { color: #137a56; }
.w3-history.w3-refunds .alert-info {
  position: relative;
  min-height: 52px;
  margin-bottom: 20px;
  padding: 14px 16px;
  padding-inline-end: 56px;
  border: 1px solid var(--w3-primary);
  border-radius: 8px;
  color: #fff;
  background: var(--w3-primary);
  overflow-wrap: anywhere;
}
.w3-history.w3-refunds .alert-info a { color: inherit; text-decoration: underline; }
.w3-history.w3-refunds .alert-info .close {
  position: absolute;
  right: auto;
  left: auto;
  inset-inline-end: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  float: none;
  color: #fff;
  opacity: 1;
  text-shadow: none;
}
.w3-history :focus-visible { outline: 2px solid var(--w3-primary); outline-offset: 2px; }
.w3-history .alert-info .close:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (max-width: 767px) {
  .w3-history.container-fluid { margin-top: 16px; }
  .w3-history .w3-history-search { width: 100%; margin-inline-start: 0; }
  .w3-history .nav-pills > li > a { min-height: 44px; }
  .w3-history .input-group .form-control,
  .w3-history .input-group-btn > .btn { height: 44px; }
  .w3-history .w3-history-scroll { padding: 8px; }
  .w3-history .order-actions .btn { min-height: 44px; }
  .w3-history .w3-history-link > [data-toggle="modal"] { width: 44px; height: 44px; }
  .w3-history .pagination > li > a { min-width: 44px; min-height: 44px; }
}


/* Native funding and mass-order forms: presentation only. */
.w3-addfunds.container,
.w3-massorder.container {
  width: 100%;
  max-width: 890px;
  padding-inline: 15px;
  margin: 20px auto 24px;
  color: #252b37;
}
.w3-addfunds .well,
.w3-massorder .well {
  min-width: 0;
  margin-bottom: 0;
  padding: 24px;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.w3-addfunds .form-group,
.w3-massorder .form-group { margin-bottom: 24px; }
.w3-addfunds .control-label,
.w3-massorder .control-label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.w3-addfunds :where(.form-control),
.w3-massorder :where(.form-control) {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #d7dfeb;
  border-radius: 6px;
  background: #fff;
  color: #252b37;
  font-size: 14px;
  box-shadow: none;
}
.w3-addfunds :where(.form-control):focus,
.w3-massorder :where(.form-control):focus {
  border-color: #5263db;
  box-shadow: 0 0 0 3px rgba(82, 99, 219, .12);
}
.w3-addfunds :where(.help-block) { color: #626e81; line-height: 1.7; }
.w3-addfunds #amount-fields .checkbox {
  padding: 14px 16px;
  border: 1px solid #d3ddea;
  border-radius: 6px;
  background: #edf2f8;
}
.w3-addfunds #amount-fields .checkbox label { font-weight: 600; line-height: 1.6; }
.w3-addfunds #amount-fields input[type="checkbox"] { accent-color: #4f5fea; }
.w3-addfunds .w3-form-submit,
.w3-massorder .w3-form-submit {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #d7dfeb;
}
.w3-addfunds .w3-form-submit .btn,
.w3-massorder .w3-form-submit .btn {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
}
.w3-addfunds .btn-primary,
.w3-massorder .btn-primary { border-color: #4f5fea; background: #4f5fea; }
.w3-addfunds .btn-primary:hover,
.w3-massorder .btn-primary:hover { border-color: #3e4fcd; background: #3e4fcd; }
.w3-addfunds .alert,
.w3-massorder .alert { overflow-wrap: anywhere; }
.w3-massorder #links {
  min-height: 320px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}
.w3-addfunds .w3-payment-frame { padding: 0; overflow: hidden; }
.w3-addfunds .w3-payment-scroll { max-width: 100%; overflow-x: auto; }
.w3-addfunds .w3-payment-scroll:focus-visible { outline: 2px solid #5263db; outline-offset: -2px; }
.w3-addfunds .w3-payment-scroll .table { width: 100%; min-width: 800px; margin-bottom: 0; table-layout: fixed; }
.w3-addfunds .w3-payment-scroll .table > thead > tr > th {
  padding: 14px 16px;
  border-bottom: 1px solid #d7dfeb;
  background: #f7f9fb;
  color: #626e81;
  font-size: 13px;
  font-weight: 600;
}
.w3-addfunds .w3-payment-scroll .table > tbody > tr > td {
  padding: 16px;
  border-top: 1px solid #e2e7ef;
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.w3-addfunds .w3-payment-scroll .table th:nth-child(1) { width: 90px; }
.w3-addfunds .w3-payment-scroll .table th:nth-child(2) { width: 195px; }
.w3-addfunds .w3-payment-scroll .table th:nth-child(4) { width: 180px; }
.w3-addfunds .w3-payment-scroll .table th:nth-child(5) { width: 80px; }
.w3-addfunds .w3-payment-scroll .table td:nth-child(4),
.w3-addfunds .w3-payment-scroll .table th:nth-child(4) { text-align: end; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
.w3-addfunds .w3-record-date { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.w3-addfunds .pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 20px 0 0; }
.w3-addfunds .pagination > li > a { margin: 0; border: 1px solid #d7dfeb; border-radius: 6px; color: #4f5fea; }
.w3-addfunds .pagination > .active > a { border-color: #4f5fea; background: #4f5fea; color: #fff; }
.w3-addfunds-content .well { overflow-wrap: anywhere; }
.w3-addfunds-content img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
  .w3-addfunds .well,
  .w3-massorder .well { padding: 18px; }
  .w3-addfunds .w3-payment-frame { padding: 0; }
  .w3-addfunds .w3-form-submit .btn,
  .w3-massorder .w3-form-submit .btn { width: 100%; }
}

/* Task 1 staged presentation. Native account/security behavior stays platform-owned. */
.w3-account.container,
.w3-notifications.container {
  width: 100%;
  max-width: 890px;
  padding: 0 15px;
  margin: 20px auto 40px;
  color: var(--w3-text);
  overflow-wrap: anywhere;
}
.w3-account > .row,
.w3-notifications > .row { margin: 0; }
.w3-account > .row > .col-md-8,
.w3-notifications > .row > .col-md-8 {
  float: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}
:is(.w3-account, .w3-notifications) .w3-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--w3-border);
}
:is(.w3-account, .w3-notifications) .w3-settings-tabs::before,
:is(.w3-account, .w3-notifications) .w3-settings-tabs::after { display: none; }
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li {
  float: none;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--w3-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: normal;
}
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li.active > a,
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li.active > a:hover,
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li.active > a:focus {
  border-bottom-color: var(--w3-primary);
  background: transparent;
  color: var(--w3-link);
}
:is(.w3-account, .w3-notifications) .w3-settings-tabs > li > a:hover { background: var(--w3-subtle); }
:is(.w3-account, .w3-notifications) .well {
  min-width: 0;
  padding: 24px;
  margin: 0 0 20px;
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  background: var(--w3-surface);
  box-shadow: none;
}
:is(.w3-account, .w3-notifications) .well:last-child { margin-bottom: 0; }
:is(.w3-account, .w3-notifications, .w3-account-modal) form { min-width: 0; }
:is(.w3-account, .w3-notifications, .w3-account-modal) .form-group { margin-bottom: 20px; }
:is(.w3-account, .w3-notifications, .w3-account-modal) label {
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--w3-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
:is(.w3-account, .w3-notifications, .w3-account-modal) .form-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.w3-account textarea.form-control { height: auto; resize: vertical; }
:is(.w3-account, .w3-notifications, .w3-account-modal) .btn {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}
.w3-notifications .btn-block { width: auto; }
:is(.w3-account, .w3-notifications, .w3-account-modal) :focus-visible {
  outline: 2px solid var(--w3-primary);
  outline-offset: 2px;
}
:is(.w3-account, .w3-account-modal) .form-control:focus {
  border-color: var(--w3-primary);
  box-shadow: 0 0 0 3px rgba(79, 103, 232, .15);
}
:is(.w3-account, .w3-account-modal) .has-error .form-control,
:is(.w3-account, .w3-account-modal) .form-control[aria-invalid="true"] { border-color: #b42318; }
:is(.w3-account, .w3-account-modal) .has-error .form-control:focus,
:is(.w3-account, .w3-account-modal) .form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
:is(.w3-account, .w3-notifications, .w3-account-modal) .alert {
  position: relative;
  padding: 14px 16px;
  padding-inline-end: 44px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
:is(.w3-account, .w3-notifications, .w3-account-modal) .alert .close {
  position: absolute;
  top: 0;
  right: auto;
  left: auto;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  padding: 0;
}
.w3-account .help-block { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.w3-account p,
.w3-notifications p { margin-bottom: 20px; font-size: 13px; line-height: 1.7; }
.w3-notifications h5 { margin: 0 0 16px; font-size: 14px; font-weight: 600; }
.w3-account #api_key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.w3-account .w3-record-date {
  display: inline-block;
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.w3-notifications .w3-notifications-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  overscroll-behavior-x: contain;
}
.w3-notifications .w3-notifications-scroll:focus-visible { outline-offset: -2px; }
.w3-notifications .table { width: 100%; min-width: 600px; margin: 0; table-layout: fixed; }
.w3-notifications .table > thead > tr > th,
.w3-notifications .table > tbody > tr > th,
.w3-notifications .table > tbody > tr > td {
  padding: 12px;
  border-color: var(--w3-border);
  vertical-align: middle;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}
.w3-notifications .table > thead > tr > th { color: var(--w3-muted); font-weight: 500; }
.w3-notifications .table > tbody > tr > th { font-weight: 400; }
.w3-notifications .table tr > :first-child { width: 40%; text-align: start; }
.w3-notifications .w3-notification-choice {
  display: inline-flex;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.w3-notifications .w3-notification-choice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}
.w3-notifications .w3-notification-choice[data-toggle="tooltip"] { cursor: help; }
.w3-notifications .w3-notification-choice input:disabled { cursor: not-allowed; }
.w3-notifications > .tooltip { max-width: calc(100vw - 30px); }
.w3-notifications > .tooltip .tooltip-inner {
  max-width: min(260px, calc(100vw - 30px));
  padding: 8px 12px;
  direction: inherit;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.w3-account-modal { overflow-wrap: anywhere; }
.w3-account-modal .modal-dialog { width: 560px; max-width: calc(100% - 30px); margin: 30px auto; }
.w3-account-modal .modal-content { border-radius: 8px; }
.w3-account-modal .modal-header,
.w3-account-modal .modal-body,
.w3-account-modal .modal-footer { padding: 20px 24px; }
.w3-account-modal .modal-header { position: relative; }
.w3-account-modal .modal-title { padding-inline-end: 28px; font-size: 18px; font-weight: 600; }
.w3-account-modal .modal-header .close {
  position: absolute;
  top: 10px;
  right: auto;
  left: auto;
  inset-inline-end: 10px;
  width: 44px;
  height: 44px;
  margin: 0;
}
.w3-account-modal #current-email { height: auto; background: var(--w3-subtle); }
.w3-account-modal .modal-body .form-group:last-of-type { margin-bottom: 0; }
.w3-account-modal .modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.w3-account-modal .modal-footer::before,
.w3-account-modal .modal-footer::after { display: none; }
.w3-account-modal .modal-footer .btn { min-width: 0; margin: 0; }

@media (max-width: 600px) {
  :is(.w3-account, .w3-notifications) .well { padding: 20px 16px; }
  :is(.w3-account, .w3-notifications) .btn { width: 100%; }
  .w3-account-modal .modal-header,
  .w3-account-modal .modal-body,
  .w3-account-modal .modal-footer { padding: 20px 16px; }
  .w3-account-modal .modal-footer .btn { flex: 1 1 100px; }
}


/* Phase 5: native affiliate and child-panel presentation. */
.w3-affiliates.container,
.w3-child-panels.container,
.w3-child-order.container {
  width: 100%; max-width: 1150px; margin: 24px auto 48px; padding: 0 15px;
}
.w3-child-order.container { max-width: 890px; }
.w3-child-order-with-content.container { max-width: 1150px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: start; }
.w3-child-order.container::before,
.w3-child-order.container::after { display: none; }
.w3-affiliate-content,
.w3-child-content { min-width: 0; overflow-wrap: anywhere; overflow-x: auto; line-height: 1.7; }
.w3-affiliate-content { margin-bottom: 24px; }
.w3-affiliate-content img,
.w3-child-content img { max-width: 100%; height: auto; }
.w3-affiliate-content h2,
.w3-child-content h2 { font-size: 18px; margin: 0 0 16px; line-height: 1.5; }
.w3-affiliate-content h3,
.w3-child-content h3 { font-size: 16px; }
.w3-affiliate-overview { background: #fff; padding: 28px; border: 1px solid #d7dfea; border-radius: 8px; }
.w3-affiliate-overview dl { display: grid; margin: 0; gap: 24px; }
.w3-affiliate-overview dt { color: #667286; font-weight: 500; font-size: 14px; margin-bottom: 10px; }
.w3-affiliate-overview dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 600; line-height: 1.5; }
.w3-affiliate-overview dl > div { min-width: 0; }
.w3-affiliate-facts { grid-template-columns: minmax(0, 3fr) repeat(2, minmax(0, 1fr)); }
.w3-affiliate-facts .w3-affiliate-referral dd { font-size: 14px; font-weight: 400; padding: 12px; border: 1px solid #d7dfea; border-radius: 6px; background: #f7f9fb; text-align: start; user-select: all; }
.w3-affiliate-overview .w3-affiliate-earnings { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0; margin-top: 24px; border-block: 1px solid #d7dfea; }
.w3-affiliate-earnings dd { font-size: 28px; }
.w3-affiliate-available { padding-inline-start: 24px; border-inline-start: 1px solid #d7dfea; }
.w3-affiliate-available dd { color: #4354dc; }
.w3-affiliate-overview .w3-affiliate-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 24px; }
.w3-affiliate-action { display: flex; justify-content: flex-end; padding-top: 24px; }
.w3-affiliate-table-scroll,
.w3-child-table-scroll { background: #fff; border: 1px solid #d7dfea; border-radius: 8px; overflow-x: auto; }
.w3-affiliate-payments { margin-top: 24px; }
.w3-affiliate-table-scroll .table,
.w3-child-table-scroll .table { width: 100%; table-layout: fixed; margin: 0; }
.w3-affiliate-table-scroll .table { min-width: 620px; }
.w3-child-table-scroll .table { min-width: 920px; }
.w3-affiliate-table-scroll .table > thead > tr > th,
.w3-child-table-scroll .table > thead > tr > th { background: #f7f9fb; color: #667286; font-weight: 600; border-bottom: 1px solid #d7dfea; padding: 16px; }
.w3-affiliate-table-scroll .table > tbody > tr > td,
.w3-child-table-scroll .table > tbody > tr > td { border-top: 1px solid #e2e7ef; padding: 16px; vertical-align: middle; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.w3-child-table-scroll th:first-child { width: 27%; }
.w3-child-table-scroll th:nth-child(2) { width: 17%; }
.w3-child-table-scroll th:nth-child(3),
.w3-child-table-scroll th:nth-child(4) { width: 22%; }
.w3-child-table-scroll th:last-child { width: 12%; }
.w3-affiliate-table-scroll .w3-record-date,
.w3-child-table-scroll .w3-record-date { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; line-height: 1.6; }
.w3-child-notice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; overflow-wrap: anywhere; }
.w3-child-panels .alert-dismissible,
.w3-child-order .alert-dismissible { position: relative; min-height: 52px; padding-inline-end: 52px; }
.w3-child-panels .alert-dismissible .close,
.w3-child-order .alert-dismissible .close { position: absolute; top: 0; right: auto; left: auto; inset-inline-end: 0; width: 44px; height: 44px; padding: 0; }
.w3-child-order-form { min-width: 0; background: #fff; padding: 24px; border: 1px solid #d7dfea; border-radius: 8px; }
.w3-child-order-form .form-group { margin-bottom: 22px; }
.w3-child-order-form .control-label { display: block; margin-bottom: 8px; line-height: 1.5; }
.w3-child-order-form .form-control { min-height: 44px; border-radius: 6px; font-size: 14px; }
.w3-child-order-form .form-control:not(:focus):not([readonly]):not(:disabled):not(.has-error .form-control) { border-color: #d7dfea; }
.w3-child-order-form .form-control:focus { box-shadow: 0 0 0 3px rgba(79, 95, 230, .12); }
.w3-child-nameservers { background: #f7f9fb; color: #667286; border: 0; border-inline-start: 3px solid #d7dfea; border-radius: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.w3-child-nameservers ul { padding-inline-start: 20px; margin: 8px 0 0; }
.w3-child-passwords { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.w3-child-price { padding-top: 20px; border-top: 1px solid #d7dfea; }
.w3-affiliates .btn,
.w3-child-panels .btn,
.w3-child-order .btn { min-height: 44px; padding: 11px 18px; border-radius: 6px; white-space: normal; }
.w3-child-table-scroll .btn { padding-inline: 10px; }
@media (max-width: 991px) {
  .w3-child-order-with-content.container { max-width: 890px; grid-template-columns: minmax(0, 1fr); }
  .w3-affiliate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-affiliate-referral { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .w3-affiliate-overview, .w3-child-order-form { padding: 20px; }
  .w3-affiliate-overview .w3-affiliate-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-affiliate-overview .w3-affiliate-earnings,
  .w3-child-passwords { grid-template-columns: minmax(0, 1fr); }
  .w3-affiliate-available { padding-inline-start: 0; border-inline-start: 0; }
  .w3-affiliate-action .btn { width: 100%; }
  .w3-child-passwords { gap: 0; }
}

/* Task 2 staged CSS. Native fields, submissions and file lifecycle remain platform-owned. */
.w3-tickets.container,
.w3-ticket-detail.container {
  width: 100%;
  max-width: 890px;
  padding: 0 15px;
  margin: 20px auto 40px;
  color: var(--w3-text);
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
:is(.w3-tickets, .w3-ticket-detail) .well {
  min-width: 0;
  padding: 24px;
  margin: 0 0 24px;
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  background: var(--w3-surface);
  box-shadow: none;
}
:is(.w3-tickets, .w3-ticket-detail) form { min-width: 0; }
:is(.w3-tickets, .w3-ticket-detail) .form-group { margin-bottom: 20px; }
:is(.w3-tickets, .w3-ticket-detail) label {
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--w3-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
:is(.w3-tickets, .w3-ticket-detail) .form-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
:is(.w3-tickets, .w3-ticket-detail) textarea.form-control { height: auto; resize: vertical; }
:is(.w3-tickets, .w3-ticket-detail) .btn {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
:is(.w3-tickets, .w3-ticket-detail) :focus-visible { outline: 2px solid var(--w3-primary); outline-offset: 2px; }
:is(.w3-tickets, .w3-ticket-detail) .form-control:focus {
  border-color: var(--w3-primary);
  box-shadow: 0 0 0 3px rgba(79, 103, 232, .15);
}
:is(.w3-tickets, .w3-ticket-detail) .has-error .form-control,
:is(.w3-tickets, .w3-ticket-detail) .form-control[aria-invalid="true"] { border-color: #b42318; }
:is(.w3-tickets, .w3-ticket-detail) .alert {
  position: relative;
  margin-bottom: 20px;
  padding: 14px 16px;
  padding-inline-end: 44px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
:is(.w3-tickets, .w3-ticket-detail) .alert .close {
  position: absolute;
  top: 0;
  right: auto;
  left: auto;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  padding: 0;
}
:is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
:is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .form-group { flex: 1 1 180px; min-width: 0; margin: 0; }
:is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .btn { flex: 0 1 auto; }
:is(.w3-tickets, .w3-ticket-detail) .tickets-uploader { min-width: 0; max-width: 100%; }
:is(.w3-tickets, .w3-ticket-detail) .files-wrapper { min-width: 0; max-width: 100%; }
:is(.w3-tickets, .w3-ticket-detail) #uploader-button {
  min-height: 44px;
  max-width: 100%;
  color: var(--w3-link);
  font-size: 13px;
  line-height: 1.6;
  text-align: start;
  white-space: normal;
}
:is(.w3-tickets, .w3-ticket-detail) .files-label { min-width: 0; overflow-wrap: anywhere; }
:is(.w3-tickets, .w3-ticket-detail) .tickets-uploader .paperclip { flex: 0 0 24px; }
:is(.w3-tickets, .w3-ticket-detail) .files-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  font-size: 13px;
}
:is(.w3-tickets, .w3-ticket-detail) .files-item .file-link { min-width: 0; overflow-wrap: anywhere; }
:is(.w3-tickets, .w3-ticket-detail) .files-item .remove,
:is(.w3-tickets, .w3-ticket-detail) .files-loader .remove {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
/* The platform emits inline outline:none on removal and pending-upload cancellation. */
:is(.w3-tickets, .w3-ticket-detail) .files-item .remove:focus-visible,
:is(.w3-tickets, .w3-ticket-detail) .files-loader .remove:focus-visible { outline: 2px solid var(--w3-primary) !important; outline-offset: 2px; }
:is(.w3-tickets, .w3-ticket-detail) .w3-record-date {
  display: inline-block;
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.w3-tickets .w3-ticket-search { width: 100%; max-width: 360px; margin: 0 0 20px auto; }
.w3-tickets[dir="rtl"] .w3-ticket-search { margin-right: auto; margin-left: 0; }
.w3-tickets #history-search .input-group { display: flex; width: 100%; }
.w3-tickets #history-search .form-control { float: none; flex: 1 1 0; width: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.w3-tickets #history-search .input-group-btn { flex: 0 0 44px; width: 44px; }
.w3-tickets #history-search .btn { width: 44px; padding: 10px; margin: 0; border-start-start-radius: 0; border-end-start-radius: 0; }
.w3-tickets .w3-tickets-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.w3-tickets .w3-tickets-scroll:focus-visible { outline-offset: -2px; }
.w3-tickets .table { width: 100%; min-width: 660px; margin: 0; table-layout: fixed; }
.w3-tickets .table > thead > tr > th,
.w3-tickets .table > tbody > tr > td {
  padding: 14px 12px;
  border-color: var(--w3-border);
  vertical-align: top;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}
.w3-tickets .table > thead > tr > th { color: var(--w3-muted); font-weight: 500; background: var(--w3-subtle); }
.w3-tickets .table tr > :first-child { width: 10%; }
.w3-tickets .table tr > :nth-child(2) { width: 40%; }
.w3-tickets .table tr > :nth-child(3) { width: 23%; }
.w3-tickets .table tr > :last-child { width: 27%; }
.w3-tickets .table tbody tr:hover { background: var(--w3-subtle); }
.w3-tickets .table a { color: var(--w3-link); }
.w3-tickets .pagination { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 20px 0 0; }
.w3-tickets .pagination > li { display: block; }
.w3-tickets .pagination > li > a { display: flex; align-items: center; justify-content: center; float: none; min-width: 44px; min-height: 44px; margin: 0; border-radius: 6px; }
.w3-tickets .w3-ticket-content { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--w3-border); }
.w3-tickets .w3-ticket-content,
.w3-ticket-detail .message { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; font-size: 14px; line-height: 1.7; }
.w3-tickets .w3-ticket-content img,
.w3-ticket-detail .message img { max-width: 100%; height: auto; }
.w3-tickets .w3-ticket-content pre,
.w3-ticket-detail .message pre { max-width: 100%; overflow: auto; }
.w3-tickets .w3-ticket-content > :last-child,
.w3-ticket-detail .message > :last-child { margin-bottom: 0; }

.w3-ticket-detail .titcket-title { margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--w3-border); font-size: 18px; font-weight: 600; line-height: 1.6; }
.w3-ticket-detail .ticket-message-block { display: flex; direction: ltr; margin: 0 0 20px; }
.w3-ticket-detail .ticket-message-right { justify-content: flex-end; }
.w3-ticket-detail .ticket-message-left { justify-content: flex-start; }
.w3-ticket-detail .w3-ticket-message-body { width: min(88%, 640px); min-width: 0; }
.w3-ticket-detail[dir="rtl"] .w3-ticket-message-body { direction: rtl; }
.w3-ticket-detail .ticket-message { min-width: 0; padding: 14px 16px; border: 1px solid var(--w3-border); border-radius: 8px; background: var(--w3-surface); word-break: normal; }
.w3-ticket-detail .ticket-message-right .ticket-message { background: #eef2ff; }
.w3-ticket-detail .w3-ticket-attachments { margin-top: 16px; font-size: 13px; line-height: 1.7; }
.w3-ticket-detail .w3-ticket-attachments a { overflow-wrap: anywhere; color: var(--w3-link); }
.w3-ticket-detail .info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; color: var(--w3-muted); font-size: 12px; line-height: 1.6; }
.w3-ticket-detail .info strong { color: var(--w3-text); font-weight: 500; }
.w3-ticket-detail .info small { font-size: 12px; }
.w3-ticket-detail .ticket-message-right .info { justify-content: flex-end; }
.w3-ticket-detail .w3-ticket-reply { margin-top: 24px; margin-bottom: 0; }
.w3-ticket-detail .panel-border-top { padding-top: 0; border-top: 0; }

@media (max-width: 600px) {
  :is(.w3-tickets, .w3-ticket-detail) .well { padding: 20px 16px; }
  :is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .btn { flex-basis: 100%; width: 100%; }
  .w3-ticket-detail .w3-ticket-message-body { width: 94%; }
  .w3-ticket-detail .ticket-message { padding: 12px; }
}

/* Task A extends the shared history presentation without hiding native columns. */
.w3-history.w3-subscriptions .table { min-width: 1780px; }
.w3-history.w3-subscriptions .table .w3-history-service { width: 220px; }
.w3-history.w3-subscriptions .table .w3-history-status { width: 150px; }
.w3-history.w3-subscriptions .table .w3-subscriptions-quantity { width: 134px; }
.w3-history.w3-subscriptions .table .w3-subscriptions-posts { width: 120px; }
.w3-history.w3-subscriptions .table .w3-subscriptions-delay { width: 80px; }
.w3-history.w3-subscriptions [data-toggle="tooltip"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  color: var(--w3-muted);
  vertical-align: middle;
}
.w3-history.w3-refill .table { min-width: 1080px; }
.w3-history.w3-refill .table .w3-refill-order { width: 130px; }
.w3-history.w3-refill .table .w3-history-link { width: 240px; }
.w3-history.w3-updates .table { min-width: 860px; }
.w3-history.w3-updates .table .w3-history-service { width: 320px; }
.w3-history.w3-updates .w3-updates-body { white-space: normal; overflow-wrap: anywhere; }
.w3-history.w3-updates .w3-updates-body pre { max-width: 100%; overflow-x: auto; }
.w3-history.w3-updates .w3-updates-body img { max-width: 100%; height: auto; }
.w3-history.w3-updates .w3-history-tools > .nav-pills { max-width: 100%; }
.w3-history.w3-updates .dropdown { max-width: 360px; }
.w3-history.w3-updates .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  white-space: normal;
  text-align: start;
  border-radius: 6px;
  font-size: 13px;
}
.w3-history.w3-updates .dropdown-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.w3-history.w3-updates .dropdown-toggle .caret { flex: 0 0 auto; }
.w3-history.w3-updates .dropdown-menu {
  inset-inline-start: 0;
  inset-inline-end: auto;
  max-width: min(360px, calc(100vw - 30px));
  max-height: 360px;
  overflow-y: auto;
  border-radius: 8px;
  border-color: var(--w3-border);
  background: var(--w3-surface);
}
.w3-history.w3-updates .dropdown-menu > li > a {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
.w3-history.w3-updates .dropdown-menu > li { float: none; }
@media (max-width: 767px) {
  .w3-history.w3-subscriptions [data-toggle="tooltip"] { min-width: 44px; min-height: 44px; }
  .w3-history.w3-updates .table { min-width: 690px; }
  .w3-history.w3-updates .table .w3-history-service { width: 250px; }
  .w3-history.w3-updates .dropdown-toggle,
  .w3-history.w3-updates .dropdown-menu > li > a { min-height: 44px; }
}


/* Native API documentation; all methods and parameters remain server-owned. */
.w3-api.container { width: 100%; max-width: 1150px; padding: 0 15px; margin: 28px auto 48px; }
.w3-api .w3-api-table { max-width: 100%; overflow-x: auto; border: 1px solid #d7dde7; border-radius: 8px; background: #fff; }
.w3-api .table { width: 100%; margin: 0; table-layout: fixed; }
.w3-api .table > thead > tr > th,
.w3-api .table > tbody > tr > td { padding: 14px 16px; border-color: #d7dde7; overflow-wrap: anywhere; vertical-align: top; line-height: 1.6; }
.w3-api .table > thead > tr > th { background: #f7f9fb; border-bottom-width: 1px; font-size: 14px; color: #667286; }
.w3-api .table > tbody > tr:first-child > td { border-top: 0; }
.w3-api > .w3-api-table td:first-child { width: 25%; font-weight: 600; }
.w3-api .w3-api-method { margin-top: 32px; padding-top: 24px; border-top: 1px solid #d7dde7; }
.w3-api .w3-api-method > h2 { font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 18px; overflow-wrap: anywhere; }
.w3-api .w3-api-method-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.w3-api .w3-api-parameters,
.w3-api .w3-api-response { min-width: 0; }
.w3-api .form-inline { margin: 0 0 16px; }
.w3-api .form-group { width: 100%; }
.w3-api .form-control { width: 100%; min-height: 44px; border-radius: 6px; }
.w3-api .w3-api-response h3 { font-size: 14px; font-weight: 600; margin: 0 0 12px; line-height: 1.5; }
.w3-api pre { margin: 0; padding: 16px; max-width: 100%; overflow: auto; white-space: pre; word-break: normal; overflow-wrap: normal; background: #f7f9fb; border: 1px solid #d7dde7; border-radius: 8px; font-size: 13px; line-height: 1.7; direction: ltr; text-align: left; }
.w3-api > .btn { margin-top: 28px; min-height: 44px; padding: 11px 18px; white-space: normal; }
.w3-api :focus-visible { outline: 2px solid #4f67e8; outline-offset: 2px; }
@media (max-width: 767px) {
  .w3-api.container { margin-top: 20px; }
  .w3-api .w3-api-method-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .w3-api .table > thead > tr > th,
  .w3-api .table > tbody > tr > td { padding: 12px; }
  .w3-api > .w3-api-table td:first-child { width: 38%; }
}

/* Next shared-style batch: native affiliate pagination targets only. */
.w3-affiliates > .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}
.w3-affiliates > .pagination > li { display: block; }
.w3-affiliates > .pagination > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 6px;
}

/* Task C only. The controller appends this after the frozen shared stylesheet. */
.w3-auth-forms {
  width: calc(100% - 32px);
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 0 24px;
  overflow-wrap: anywhere;
}
.w3-auth-forms h1 {
  margin: 0 0 22px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
.w3-auth-forms .w3-auth-card {
  margin: 0;
  padding: 24px 30px;
  border: 1px solid var(--w3-border);
  border-radius: 8px;
  background: var(--w3-surface);
  box-shadow: 0 2px 4px rgba(32, 38, 49, .02), 0 12px 32px rgba(32, 38, 49, .03);
}
.w3-auth-forms .form-group,
.w3-auth-modal .form-group { margin-bottom: 18px; }
.w3-auth-forms .control-label,
.w3-auth-modal label { max-width: 100%; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.w3-auth-forms .form-control,
.w3-auth-modal .form-control { width: 100%; height: 44px; min-height: 44px; border-radius: 8px; }
.w3-auth-forms .btn,
.w3-auth-modal .btn {
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}
.w3-auth-forms .w3-auth-submit { width: 100%; }
.w3-auth-forms .w3-auth-description { margin: 0 0 18px; color: var(--w3-muted); }
.w3-auth-forms .w3-auth-signin { margin: 18px 0 0; color: var(--w3-muted); text-align: center; }
.w3-auth-forms .w3-auth-signin a { display: inline-block; min-height: 44px; padding: 10px 0; margin-inline-start: 4px; }
.w3-auth-forms .checkbox { margin: 0; }
.w3-auth-forms .checkbox label {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 11px 0;
  padding-inline-start: 30px;
  font-weight: 400;
}
.w3-auth-forms .checkbox input[type="checkbox"] {
  position: absolute;
  top: 13px;
  left: auto;
  right: auto;
  inset-inline-start: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}
.w3-auth-forms .w3-auth-google {
  display: flex;
  min-width: 0;
  min-height: 61px;
  justify-content: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--w3-border);
}
.w3-auth-forms .g_id_signin { min-width: 240px; max-width: 100%; }
.w3-auth-forms .w3-auth-captcha { max-width: 100%; margin-bottom: 18px; }
.w3-auth-forms .w3-auth-captcha iframe { display: block; }
.w3-auth-forms .confirm-email__description { margin-bottom: 24px; }
.w3-auth-forms .confirm-email__action { display: grid; gap: 8px; }
.w3-auth-forms .alert,
.w3-auth-modal .alert { position: relative; min-height: 44px; overflow-wrap: anywhere; }
.w3-auth-forms .alert-dismissible { padding-inline-end: 52px; }
.w3-auth-forms .close,
.w3-auth-modal .close {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 8px;
}
.w3-auth-forms .alert .close,
.w3-auth-modal .modal-header .close {
  position: absolute;
  float: none;
  top: 0;
  left: auto;
  right: auto;
  inset-inline-end: 0;
}
.w3-auth-forms .has-error .form-control,
.w3-auth-forms .form-control[aria-invalid="true"],
.w3-auth-modal .has-error .form-control,
.w3-auth-modal .form-control[aria-invalid="true"] { border-color: #b42318; }
.w3-auth-modal { overflow-wrap: anywhere; }
.w3-auth-modal .modal-dialog { width: calc(100% - 32px); max-width: 440px; margin: 32px auto; }
.w3-auth-modal .modal-content { min-width: 0; border-radius: 8px; }
.w3-auth-modal .modal-header { position: relative; padding: 18px 24px; padding-inline-end: 52px; }
.w3-auth-modal .modal-title { font-size: 18px; line-height: 1.4; }
.w3-auth-modal .modal-body { padding: 24px; }
.w3-auth-modal .modal-body > .form-group:last-of-type { margin-bottom: 0; }
.w3-auth-modal span.form-control { height: auto; white-space: normal; overflow-wrap: anywhere; }
.w3-auth-modal .modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 16px 24px; }
.w3-auth-modal .modal-footer::before,
.w3-auth-modal .modal-footer::after { display: none; }
.w3-auth-modal .modal-footer .btn { margin: 0; }
@media (max-width: 479px) {
  .w3-auth-forms { padding-top: 32px; }
  .w3-auth-forms .w3-auth-card { padding: 20px 18px; }
  .w3-auth-forms .form-control,
  .w3-auth-modal .form-control { font-size: 16px; }
  .w3-auth-modal .modal-body { padding: 20px 18px; }
  .w3-auth-modal .modal-header { padding-inline-start: 18px; }
  .w3-auth-modal .modal-footer { flex-direction: column; padding: 16px 18px; }
  .w3-auth-modal .modal-footer .btn { width: 100%; }
}
@media (max-width: 373px) {
  /* The 304px native challenge needs 70px of mobile card gutters and padding. */
  .w3-auth-forms .w3-auth-captcha .g-recaptcha { zoom: .8; }
}

/* Native configured public content; no article or policy substitutions. */
.w3-content-page.container {
  width: calc(100% - 32px);
  max-width: 860px;
  padding: 0;
  margin: 40px auto 48px;
  overflow-wrap: anywhere;
}
.w3-content-page h1 { margin: 0 0 24px; font-size: 28px; line-height: 1.4; }
.w3-content-page h2 { margin: 0 0 20px; font-size: 22px; line-height: 1.45; }
.w3-content-page h3, .w3-content-page h4 { font-size: 18px; line-height: 1.5; }
.w3-content-page .w3-content-body { max-width: 100%; overflow: auto; line-height: 1.8; }
.w3-content-page .w3-content-body:focus-visible { outline: 2px solid var(--w3-primary); outline-offset: 4px; }
.w3-content-page .w3-content-body > :first-child { margin-top: 0; }
.w3-content-page .w3-content-body p { margin-bottom: 16px; }
.w3-content-page img, .w3-content-page video, .w3-content-page iframe { max-width: 100%; }
.w3-content-page img, .w3-content-page video { height: auto; }
.w3-content-page .w3-content-cover { margin: 0 0 24px; }
.w3-content-page .w3-content-cover img { display: block; margin: 0 auto; border-radius: var(--w3-radius); }
/* Preserve intrinsic cell tokens; genuinely wide tables scroll within the body. */
.w3-content-page table { max-width: 100%; border-collapse: collapse; overflow-wrap: break-word; }
.w3-content-page td, .w3-content-page th { padding: 10px 12px; border-bottom: 1px solid var(--w3-border); }
.w3-content-page pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left; unicode-bidi: isolate; }
.w3-content-page .w3-content-post { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--w3-border); }
.w3-content-page .w3-content-post .btn { margin-top: 20px; }
.w3-content-page .w3-content-back { padding-top: 24px; margin-top: 32px; border-top: 1px solid var(--w3-border); }
.w3-content-page .btn { min-height: 44px; padding: 10px 16px; white-space: normal; }
.w3-content-page .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.w3-content-page .pagination > li > a { min-width: 44px; min-height: 44px; display: grid; place-items: center; margin: 0; border-radius: 6px; }
@media (max-width: 767px) {
  .w3-content-page.container { margin-top: 28px; }
  .w3-content-page h1 { font-size: 24px; }
  .w3-content-page h2 { font-size: 20px; }
}

/* Frozen local baseline: presentation only; native fields and precision remain unchanged. */
body.w3-auth-page, body.w3-public-page {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--w3-text);
}
body.w3-auth-page .container { font-size: 13px; line-height: 1.5; }
body.w3-auth-page label.control-label { font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 6px; }
body.w3-auth-page .form-control {
  height: 38px; min-height: 38px; padding: 8px 11px; font-size: 13px; line-height: 1.4;
  color: var(--w3-text); border-color: var(--w3-border); border-radius: 6px;
  background-color: var(--w3-surface); box-shadow: none;
}
body.w3-auth-page textarea.form-control { height: auto; min-height: 120px; line-height: 1.6; }
body.w3-auth-page .form-control[readonly], body.w3-auth-page .form-control:disabled { background: var(--w3-subtle); color: var(--w3-muted); opacity: 1; }
body.w3-auth-page .form-control:focus { border-color: var(--w3-primary); box-shadow: 0 0 0 3px rgb(79 103 232 / 24%); }
body.w3-auth-page .has-error .form-control { border-color: #c53b45; }
body.w3-auth-page .has-success .form-control { border-color: #178454; }
body.w3-auth-page .btn { min-height: 38px; padding: 8px 16px; font-size: 13px; line-height: 20px; font-weight: 500; border-radius: 6px; box-shadow: none; background-image: none; text-shadow: none; }
body.w3-auth-page .btn-primary { background: var(--w3-primary); border-color: var(--w3-primary); color: #fff; }
body.w3-auth-page .btn-primary:hover, body.w3-auth-page .btn-primary:focus { background: var(--w3-primary-hover); border-color: var(--w3-primary-hover); }
body.w3-auth-page .btn-default { background: var(--w3-surface); border-color: var(--w3-border); color: var(--w3-text); }
body.w3-auth-page .btn-default:hover { background: var(--w3-subtle); }
body.w3-auth-page .form-group { margin-bottom: 18px; }
body.w3-auth-page .help-block { margin-top: 6px; margin-bottom: 0; font-size: 12px; line-height: 1.6; }
body.w3-auth-page .well, body.w3-auth-page .panel, body.w3-auth-page .modal-content { border-radius: 8px; border-color: var(--w3-border); box-shadow: none; }
body.w3-auth-page .well { padding: 20px; }
body.w3-auth-page .table { font-size: 13px; }
body.w3-auth-page .table > thead > tr > th { color: var(--w3-muted); font-weight: 600; font-size: 12px; line-height: 1.5; }
body.w3-auth-page .table > tbody > tr > td { line-height: 1.5; border-color: var(--w3-border); }
body.w3-auth-page .nav-pills > li > a { min-height: 38px; padding: 9px 14px; border-radius: 6px; color: var(--w3-muted); font-size: 13px; font-weight: 500; }
body.w3-auth-page .nav-pills > li.active > a { background: var(--w3-primary); color: #fff; }
body.w3-auth-page .w3-record-date { font-size: 12px; font-variant-numeric: tabular-nums; }

.w3-auth-header .w3-auth-tools { gap: 0; padding: 0 14px 0 15px; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { padding: 0 15px; }
.w3-auth-header:lang(zh) .w3-auth-tool-link { font-size: 12px; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-width: 144px; margin-right: 4px; justify-content: flex-start; }
.w3-auth-header .w3-auth-balance .badge { margin-right: auto; }
.w3-auth-header .dropdown-currencies .dropdown-menu { min-width: 144px; width: calc(100% - 4px); border-radius: 8px; }
.w3-auth-header #currencies-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 8px; align-items: center; min-height: 32px; padding: 6px 10px; }
.w3-auth-header #currencies-list .w3-currency-symbol { color: var(--w3-muted); }
.w3-auth-header #currencies-list .w3-currency-check { visibility: hidden; }
.w3-auth-header #currencies-list a > * { pointer-events: none; }
.w3-auth-header #currencies-list .active .w3-currency-check { visibility: visible; }
.w3-auth-header #currencies-list .active a { background: #e2e8f4; color: var(--w3-link); }
.w3-auth-header .navbar-brand { font-size: 14px; font-weight: 650; }
.w3-auth-header .w3-auth-balance .w3-wallet-icon,
.w3-auth-header .w3-auth-tool-link .fa-sign-out-alt { font-size: 16px; }
.w3-auth-header .navbar-toggle .fa-bars { font-size: 18px; }

body.w3-auth-page .w3-neworder .w3-order-form { padding: 20px; }
body.w3-auth-page .w3-massorder.container { max-width: 790px; }
body.w3-auth-page .w3-neworder #order-form > .btn-primary { min-height: 38px; padding: 8px 16px; }
body.w3-auth-page .w3-neworder .w3-order-tools { padding-bottom: 20px; border-bottom: 1px solid var(--w3-border); margin-bottom: 18px; }
body.w3-auth-page .w3-neworder .w3-order-tools .form-group { margin-bottom: 0; }
body.w3-auth-page .w3-neworder #service_description { padding: 12px 14px; border-left: 2px solid var(--w3-primary); background: var(--w3-subtle); }
body.w3-auth-page .w3-neworder #service_description .panel-body { padding: 0; border: 0; background: transparent; line-height: 1.65; }
body.w3-auth-page .w3-neworder #service_description label { margin-bottom: 6px; font-weight: 600; }
body.w3-auth-page .w3-neworder .select2-container .select2-selection--single { min-height: 38px; height: auto; border-color: var(--w3-border); border-radius: 6px; }
body.w3-auth-page .w3-neworder .select2-container .select2-selection__rendered { font-size: 13px; padding: 8px 30px 8px 11px; line-height: 20px; }
body.w3-auth-page .w3-neworder .select2-container .select2-selection__arrow { height: 36px; }
body.w3-auth-page .w3-neworder .select2-selection .badge { padding: 0; background: transparent; color: inherit; border-radius: 0; font: inherit; }
body.w3-auth-page .w3-neworder #order_average_time { padding: 12px 0; border-block: 1px solid var(--w3-border); }
body.w3-auth-page .w3-neworder #order_average_time .form-control { height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--w3-text); font-weight: 600; }
body.w3-auth-page .w3-neworder #order_average_time label { color: var(--w3-muted); font-size: 12px; }
body.w3-auth-page .w3-services .w3-category-filter { font-weight: 600; color: var(--w3-text); }
body.w3-auth-page .w3-services #service-table th { font-size: 12px; padding: 12px 8px; }
body.w3-auth-page .w3-services #service-table .btn-xs { min-height: 30px; padding: 4px 9px; font-size: 12px; border: 0; background: #edf2f8; color: var(--w3-link); }
body.w3-auth-page .w3-services #service-table td { padding: 8px; }
.w3-services .w3-services-tools > li > .w3-catalog-favorites { display: grid; width: 38px; height: 38px; min-height: 38px; padding: 0; place-items: center; border: 1px solid var(--w3-border); background: #fff; color: var(--w3-muted); font-size: 16px; }

body.w3-public-page .w3-public-header .navbar-nav > li > a { font-size: 11px; padding: 22px 15px; }
body.w3-public-page:lang(zh) .w3-public-header .navbar-nav > li > a { font-size: 12px; }
body.w3-public-page .w3-public-header { background: var(--w3-chrome); }
body.w3-public-page .w3-signin { width: calc(100% - 40px); max-width: 440px; padding-top: 40px; margin-bottom: 0; }
body.w3-public-page .w3-signin h1 { font-size: 20px; font-weight: 500; line-height: 1.4; margin-bottom: 22px; }
body.w3-public-page .w3-signin-card { padding: 24px 30px; border-color: var(--w3-border); border-radius: 8px; box-shadow: 0 2px 4px rgb(32 38 49 / 2%), 0 12px 32px rgb(32 38 49 / 3%); }
body.w3-public-page .w3-signin .form-group { margin-bottom: 18px; }
body.w3-public-page .w3-signin label { font-size: 13px; font-weight: 500; }
body.w3-public-page .w3-signin .form-control { height: 44px; min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 20px; background: var(--w3-subtle); border-color: var(--w3-border); }
body.w3-public-page .w3-signin .forgot-password { font-size: 12px; }
body.w3-public-page .w3-signin .w3-signin-submit { min-height: 44px; background: var(--w3-primary); border-color: var(--w3-primary); font-size: 14px; font-weight: 500; display: flex; justify-content: center; align-items: center; gap: 14px; }
.w3-password-control { position: relative; }
.w3-password-control .form-control { padding-right: 42px !important; }
.w3-password-toggle { position: absolute; right: 1px; top: 1px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--w3-muted); }
.w3-auth-divider { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--w3-muted); font-size: 12px; }
.w3-auth-divider::before, .w3-auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--w3-border); }
.w3-signin .w3-signin-google { padding: 0; border: 0; margin: 0; }
.w3-public-footer { margin-top: 36px; padding: 0 20px 28px; border: 0; background: var(--w3-workspace); }
.w3-public-footer .w3-public-footer-inner { width: min(100%, 760px); max-width: 760px; display: grid; justify-items: center; gap: 16px; padding: 0; border: 0; margin: 0 auto; text-align: center; }
.w3-public-footer .w3-public-support { width: min(100%, 440px); padding: 22px 0 28px; border-block: 1px solid var(--w3-border); }
.w3-public-support p { color: var(--w3-muted); margin: 0 0 12px; font-size: 12px; }
.w3-public-support a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; color: var(--w3-text); font-size: 13px; }
.w3-public-support i { font-size: 16px; }
.w3-footer-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; max-width: 100%; }
.w3-public-footer .w3-footer-meta p { margin: 0; color: var(--w3-muted); font-size: 13px; line-height: 1.7; }
.w3-footer-meta strong { font-weight: 600; color: var(--w3-text); }
.w3-public-footer .w3-public-footer-links { margin: 0; padding-left: 20px; border-left: 1px solid var(--w3-border); }
.w3-public-footer .w3-public-footer-links a { min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; color: var(--w3-text); }
.w3-footer-payments { display: grid; grid-template-columns: repeat(9, 64px); gap: 8px; max-width: 100%; justify-content: center; }
.w3-footer-payments > span { display: grid; width: 64px; height: 36px; place-items: center; border: 1px solid var(--w3-border); border-radius: 4px; background: #fff; }
.w3-footer-payments img { display: block; width: 52px; height: 24px; object-fit: contain; }
@media (max-width: 700px) {
  .w3-footer-payments { grid-template-columns: repeat(5, 56px); gap: 6px; }
  .w3-footer-payments > span { width: 56px; }
  .w3-footer-payments img { width: 46px; }
  .w3-footer-meta { flex-direction: column; gap: 4px; }
  .w3-public-footer .w3-public-footer-links { padding-left: 0; border-left: 0; }
}
@media (max-width: 359px) {
  .w3-footer-payments { grid-template-columns: repeat(3, 64px); gap: 8px; }
  .w3-footer-payments > span { width: 64px; }
}
@media (max-width: 767px) {
  body.w3-auth-page .form-control, body.w3-auth-page .btn { min-height: 44px; }
  body.w3-auth-page .w3-neworder .w3-order-form { padding: 16px; }
  body.w3-auth-page .w3-neworder #order-form > .btn-primary { min-height: 44px; }
  body.w3-public-page .w3-signin-card { padding: 22px; }
  .w3-auth-header .w3-auth-tools { padding: 0 4px; }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { padding: 0 5px; }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-width: 0; margin-right: 0; }
}
@media (max-width: 359px) {
  body.w3-public-page .w3-signin-card { padding: 22px 18px; }
}

body.w3-auth-page .w3-neworder .select2-container .select2-selection--single.form-control {
  height: 38px; min-height: 38px; padding: 0;
}
body.w3-auth-page .w3-neworder .select2-container .select2-selection__rendered {
  padding: 8px 30px 8px 11px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 767px) {
  body.w3-auth-page .w3-neworder .select2-container .select2-selection--single.form-control { height: 44px; min-height: 44px; }
  body.w3-auth-page .w3-neworder .select2-container .select2-selection__rendered { padding-top: 11px; padding-bottom: 11px; }
}
@media (max-width: 560px) {
  .w3-auth-header .w3-auth-balance .w3-wallet-icon { display: none; }
  .w3-auth-header .w3-auth-tool-link .fa-sign-out-alt { font-size: 13px; }
}

/* Append after style.css. Only the four account/support presentation scopes. */
:is(.w3-account, .w3-account-modal, .w3-affiliates, .w3-tickets, .w3-ticket-detail) {
  --w3-primary: #4f67e8;
  --w3-link: #4059cf;
  --w3-text: #202631;
  --w3-muted: #626d7e;
  --w3-border: #d7dde7;
  --w3-subtle: #f8fafc;
  --w3-surface: #ffffff;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

:is(.w3-account, .w3-tickets, .w3-ticket-detail).container {
  max-width: 790px;
}
.w3-affiliates.container { max-width: 990px; }

:is(.w3-account, .w3-account-modal, .w3-affiliates, .w3-tickets, .w3-ticket-detail) :is(.form-control, .btn) {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  font-size: 13px;
  line-height: 1.5;
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) .form-control {
  height: 38px;
  border-color: var(--w3-border);
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) label {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
:is(.w3-account, .w3-account-modal, .w3-affiliates, .w3-tickets, .w3-ticket-detail) .btn-primary {
  border-color: var(--w3-primary);
  background-color: var(--w3-primary);
  color: #ffffff;
}
:is(.w3-account, .w3-account-modal, .w3-affiliates, .w3-tickets, .w3-ticket-detail) .btn-primary:hover {
  border-color: #3e55d2;
  background-color: #3e55d2;
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) .form-control:focus {
  border-color: var(--w3-primary);
  box-shadow: 0 0 0 3px rgb(79 103 232 / 24%);
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) :is(.has-error .form-control, .form-control[aria-invalid="true"]) {
  border-color: #c53b45;
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) :is(.has-error .form-control, .form-control[aria-invalid="true"]):focus {
  border-color: #c53b45;
  box-shadow: 0 0 0 3px rgb(197 59 69 / 24%);
}
:is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) textarea.form-control {
  height: auto;
  resize: vertical;
}

.w3-account .w3-settings-tabs { margin-bottom: 14px; }
.w3-account .w3-settings-tabs.nav-pills > li > a { min-height: 38px; padding: 8px 12px; border-radius: 0; font-weight: 500; }
.w3-account .w3-settings-tabs.nav-pills > li.active > a,
.w3-account .w3-settings-tabs.nav-pills > li.active > a:hover,
.w3-account .w3-settings-tabs.nav-pills > li.active > a:focus { background: transparent; color: var(--w3-link); border-bottom: 2px solid var(--w3-primary); }
.w3-account .well.w3-account-panel { padding: 0; margin-bottom: 12px; }
.w3-account .w3-account-panel__header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--w3-border);
  border-radius: 7px 7px 0 0;
  background: var(--w3-subtle);
}
.w3-account .w3-account-panel__header h2 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.w3-account .w3-settings-state { color: var(--w3-muted); font-size: 12px; }
.w3-account .w3-account-panel__body { min-width: 0; padding: 18px 20px; }
.w3-account .w3-account-panel__body .form-group { margin-bottom: 18px; }
.w3-account .w3-account-panel__body p { margin: 0 0 14px; color: var(--w3-muted); line-height: 1.5; }
.w3-account .w3-account-panel textarea { min-height: 90px; }
.w3-account .w3-account-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.w3-account .w3-account-preferences > form:only-child { grid-column: 1 / -1; }
.w3-account .w3-account-panel .help-block { font-size: 12px; }

.w3-affiliates .w3-affiliate-overview { padding: 24px 28px; border-color: var(--w3-border); }
.w3-affiliates .w3-affiliate-overview > section,
.w3-affiliates .w3-affiliate-content {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--w3-border);
}
.w3-affiliates .w3-affiliate-overview > .w3-affiliate-income { margin-top: 30px; }
.w3-affiliates .w3-affiliate-overview h2 { margin: 0 0 16px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.w3-affiliates .w3-affiliate-overview dl { gap: 24px; }
.w3-affiliates .w3-affiliate-facts { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.w3-affiliates .w3-affiliate-overview dt { margin-bottom: 6px; color: var(--w3-muted); font-size: 12px; font-weight: 400; }
.w3-affiliates .w3-affiliate-facts dt { font-size: 13px; }
.w3-affiliates .w3-affiliate-overview dd { line-height: 1.3; }
.w3-affiliates .w3-affiliate-facts dd { display: flex; align-items: center; min-height: 38px; font-size: 15px; }
.w3-affiliates .w3-affiliate-facts .w3-affiliate-referral dd {
  display: block;
  padding: 8px 12px;
  border-color: var(--w3-border);
  background: var(--w3-surface);
  font-size: 13px;
  line-height: 1.5;
}
.w3-affiliates .w3-affiliate-overview .w3-affiliate-earnings,
.w3-affiliates .w3-affiliate-overview .w3-affiliate-metrics { padding: 0; margin: 0; border: 0; }
.w3-affiliates .w3-affiliate-earnings dd { margin-top: 8px; font-size: 24px; }
.w3-affiliates .w3-affiliate-available { padding: 0; border: 0; }
.w3-affiliates .w3-affiliate-available dd { color: #3e55d2; }
.w3-affiliates .w3-affiliate-metrics dd { margin-top: 6px; font-size: 18px; }
.w3-affiliates .w3-affiliate-action { justify-content: flex-start; padding: 0; }
.w3-affiliates .w3-affiliate-content { max-width: 100%; margin-bottom: 0; overflow-x: auto; }
.w3-affiliates .w3-affiliate-content > :last-child { margin-bottom: 0; }
.w3-affiliates .w3-affiliate-table-scroll .table > thead > tr > th,
.w3-affiliates .w3-affiliate-table-scroll .table > tbody > tr > td { padding: 11px 14px; font-size: 13px; border-color: var(--w3-border); }

.w3-tickets .well.w3-ticket-compose { padding: 0; }
.w3-tickets .w3-ticket-panel__header { padding: 12px 20px; border-bottom: 1px solid var(--w3-border); }
.w3-tickets .w3-ticket-panel__header h2,
.w3-tickets .w3-ticket-records__heading h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.w3-tickets #ticketsend { padding: 20px; }
:is(.w3-tickets, .w3-ticket-detail) .form-group { margin-bottom: 18px; }
:is(.w3-tickets, .w3-ticket-detail) textarea.form-control { min-height: 120px; }
:is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer { padding-top: 16px; border-top: 1px solid var(--w3-border); gap: 16px; }
:is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .btn { min-width: 108px; }
:is(.w3-tickets, .w3-ticket-detail) #uploader-button { min-height: 38px; font-size: 12px; }
.w3-tickets .w3-ticket-records__heading { display: flex; min-height: 42px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 8px 0; }
.w3-tickets .w3-ticket-record-count { color: var(--w3-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.w3-tickets .w3-ticket-search { max-width: 260px; margin-bottom: 12px; }
.w3-tickets #history-search .input-group-btn { flex-basis: 38px; width: 38px; }
.w3-tickets #history-search .btn { min-width: 38px; width: 38px; padding: 8px; }
.w3-tickets .w3-tickets-scroll { border: 1px solid var(--w3-border); border-radius: 8px; background: var(--w3-surface); }
.w3-tickets .table > thead > tr > th,
.w3-tickets .table > tbody > tr > td { padding: 11px 14px; border-color: var(--w3-border); font-size: 13px; line-height: 1.5; vertical-align: middle; }
.w3-tickets .table > thead > tr > th { font-size: 12px; }
.w3-tickets .table > tbody > tr > td:first-child { color: var(--w3-muted); font-size: 12px; }
.w3-tickets .table > tbody > tr > td:nth-child(2) a { color: var(--w3-text); font-weight: 500; }
.w3-tickets .table > tbody > tr > td:nth-child(2) a:hover { color: var(--w3-link); }
.w3-tickets .w3-ticket-status { display: inline-flex; align-items: baseline; gap: 6px; color: var(--w3-muted); font-size: 12px; font-weight: 500; }
.w3-tickets .w3-ticket-status::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.w3-tickets .pagination { justify-content: flex-end; gap: 8px; margin-top: 10px; }
.w3-tickets .pagination > li > a { min-width: 38px; min-height: 38px; font-size: 12px; }
.w3-tickets .w3-ticket-content,
.w3-ticket-detail .message { font-size: 13px; line-height: 1.5; }

.w3-ticket-detail .w3-ticket-context { padding-bottom: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--w3-border); }
.w3-ticket-detail .w3-ticket-back { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; color: #3e55d2; font-size: 12px; font-weight: 600; }
.w3-ticket-detail[dir="rtl"] .w3-ticket-back > span { transform: scaleX(-1); }
.w3-ticket-detail .titcket-title { padding: 0; margin: 0; border: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
.w3-ticket-detail .ticket-message-block { margin-bottom: 18px; }
.w3-ticket-detail .ticket-message-right .ticket-message { background: #edf2f8; }
.w3-ticket-detail .ticket-message > .info { justify-content: space-between; gap: 3px 12px; margin: 0 0 6px; text-align: start; line-height: 1.5; }
.w3-ticket-detail .ticket-message > .info strong { font-size: 12px; font-weight: 600; }
.w3-ticket-detail .ticket-message > .info small { color: var(--w3-muted); }
.w3-ticket-detail .w3-ticket-attachments { margin-top: 8px; font-size: 12px; }
.w3-ticket-detail .well.w3-ticket-reply { padding: 20px; }

@media (min-width: 721px) {
  /* Keep the native dynamic-field mount intact; only its generated boxes join the grid. */
  .w3-tickets #ticketsend:has(#ticket-subcategory) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .w3-tickets #ticketsend:has(#ticket-subcategory) > *,
  .w3-tickets #ticket-fields > * { grid-column: 1 / -1; min-width: 0; }
  .w3-tickets #ticketsend:has(#ticket-subcategory) > .form-group:has(#ticket-category-field) { grid-column: 1; }
  .w3-tickets #ticketsend:has(#ticket-subcategory) #ticket-fields { display: contents; }
  .w3-tickets #ticket-fields > .form-group:has(#ticket-subcategory) { grid-column: 2; }
}

@media (max-width: 720px) {
  :is(.w3-account, .w3-account-modal, .w3-affiliates, .w3-tickets, .w3-ticket-detail) :is(.form-control, .btn) { min-height: 44px; }
  :is(.w3-account, .w3-account-modal, .w3-tickets, .w3-ticket-detail) :is(input.form-control, select.form-control) { height: 44px; }
  .w3-account .w3-account-preferences { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .w3-account .w3-account-panel .btn { width: 100%; }
  .w3-affiliates .w3-affiliate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w3-affiliates .w3-affiliate-referral { grid-column: 1 / -1; }
  .w3-tickets .w3-ticket-search { max-width: none; }
  .w3-tickets #history-search .input-group-btn { flex-basis: 44px; width: 44px; }
  .w3-tickets #history-search .btn { width: 44px; }
  .w3-tickets .pagination > li > a { min-width: 44px; min-height: 44px; }
  :is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer { align-items: stretch; flex-direction: column; gap: 12px; }
  :is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .form-group { flex: auto; }
  :is(.w3-tickets, .w3-ticket-detail) .w3-ticket-footer > .btn { width: 100%; flex: auto; }
  :is(.w3-tickets, .w3-ticket-detail) #uploader-button { min-height: 44px; }
  .w3-ticket-detail .w3-ticket-message-body { width: 96%; }
  .w3-ticket-detail .ticket-message > .info { flex-direction: column; }
}

@media (max-width: 560px) {
  .w3-account .w3-account-panel__header { padding: 10px 16px; flex-wrap: wrap; }
  .w3-account .w3-account-panel__body { padding: 16px; }
  .w3-affiliates .w3-affiliate-overview { padding: 20px 16px; }
  .w3-affiliates .w3-affiliate-overview > section,
  .w3-affiliates .w3-affiliate-content { padding-top: 20px; margin-top: 20px; }
  .w3-affiliates .w3-affiliate-overview .w3-affiliate-earnings { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .w3-affiliates .w3-affiliate-earnings > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .w3-affiliates .w3-affiliate-earnings dt { flex: 1; }
  .w3-affiliates .w3-affiliate-earnings dd { max-width: 65%; margin: 0; text-align: end; }
  .w3-affiliates .w3-affiliate-overview .w3-affiliate-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .w3-tickets .w3-ticket-panel__header,
  .w3-tickets #ticketsend,
  .w3-ticket-detail .well.w3-ticket-reply { padding: 16px; }
}

/* Referral clipboard control; native values and payout actions remain unchanged. */
.w3-affiliates .w3-affiliate-referral { --w3-referral-control-size: 38px; }
.w3-affiliates .w3-affiliate-referral label { margin: 0; color: var(--w3-text); font-size: 13px; font-weight: 600; }
.w3-affiliates .w3-affiliate-facts .w3-affiliate-referral dd { padding: 0; border: 0; background: transparent; user-select: auto; }
.w3-affiliates .w3-referral-copy { display: grid; grid-template-columns: minmax(0, 1fr) var(--w3-referral-control-size); gap: 8px; }
.w3-affiliates .w3-referral-copy .form-control {
  width: 100%;
  min-width: 0;
  height: var(--w3-referral-control-size);
  min-height: var(--w3-referral-control-size);
  border-color: var(--w3-border);
  background: var(--w3-surface);
  color: var(--w3-text);
  font-weight: 400;
  text-align: left;
}
.w3-affiliates .w3-referral-copy-button {
  display: grid;
  width: var(--w3-referral-control-size);
  height: var(--w3-referral-control-size);
  min-height: var(--w3-referral-control-size);
  padding: 0;
  place-items: center;
}
.w3-affiliates .w3-referral-copy-button i { font-size: 16px; }
.w3-affiliates .w3-referral-copy .form-control:focus { border-color: var(--w3-primary); box-shadow: 0 0 0 3px rgb(79 103 232 / 24%); }
.w3-affiliates .w3-referral-copy-button:focus-visible { outline: 2px solid var(--w3-primary); outline-offset: 2px; }
.w3-affiliates .w3-referral-status { display: block; min-height: 22px; padding-top: 4px; color: var(--w3-muted); font-size: 12px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.w3-affiliates .w3-affiliate-overview > .w3-affiliate-income { margin-top: 8px; }
@media (max-width: 720px) {
  .w3-affiliates .w3-affiliate-referral { --w3-referral-control-size: 44px; }
}

/* Append after the shared native parity baseline. Widths include 30px Bootstrap gutters. */
.w3-addfunds.container,
.w3-child-order.container { width: 100%; max-width: 790px; margin-block: 20px 24px; color: var(--w3-text); }
.w3-child-order-with-content.container { max-width: 990px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; }
.w3-addfunds .well.w3-funding-form,
.w3-addfunds .well.w3-payment-frame,
.w3-child-order .w3-child-order-form { padding: 0; border-color: var(--w3-border); }
.w3-addfunds .w3-funding-form > form,
.w3-child-order .w3-child-order-form > form { margin: 0; }
:is(.w3-addfunds, .w3-child-order) .w3-finance-header {
  display: flex; align-items: center; min-height: 42px; padding: 12px 20px;
  border-bottom: 1px solid var(--w3-border); border-radius: 7px 7px 0 0; background: var(--w3-surface);
}
:is(.w3-addfunds, .w3-child-order) .w3-finance-header h2,
.w3-addfunds .w3-funding-history-heading h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
:is(.w3-addfunds, .w3-child-order) .w3-finance-body { display: grid; min-width: 0; gap: 18px; padding: 20px; }
:is(.w3-addfunds, .w3-child-order) .w3-finance-body > .alert { margin: 0; }
:is(.w3-addfunds, .w3-child-order) .w3-finance-body .control-label { margin-bottom: 5px; }
.w3-addfunds .w3-finance-body > .form-group { min-width: 0; margin: 0 0 6px; }
.w3-addfunds #instruction_instruction > .panel-body {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  text-align: start; color: var(--w3-muted); font-size: 13px; line-height: 1.65;
}
.w3-addfunds .w3-form-submit,
.w3-child-order .w3-child-checkout { padding-top: 16px; border-top: 1px solid var(--w3-border); }
.w3-addfunds .w3-form-submit .btn,
.w3-child-order .w3-child-checkout .btn { min-width: 108px; min-height: 38px; padding: 6px 16px; font-size: 13px; font-weight: 500; }
body.w3-auth-page :is(.w3-addfunds, .w3-child-order) .w3-finance-body :is(input, select).form-control:not(#price) { height: 38px; min-height: 38px; }
.w3-addfunds .w3-funding-history-heading { display: flex; align-items: center; min-height: 42px; padding-block: 8px; }
.w3-addfunds .w3-payment-scroll .table { min-width: 660px; }
.w3-addfunds .w3-payment-scroll .table > thead > tr > th {
  padding: 11px 14px; background: var(--w3-surface); color: var(--w3-muted); font-size: 12px; font-weight: 500;
}
.w3-addfunds .w3-payment-scroll .table > tbody > tr > td { padding: 11px 14px; font-size: 13px; line-height: 1.5; border-color: var(--w3-border); }
.w3-addfunds .w3-payment-scroll .table th:nth-child(1) { width: 72px; }
.w3-addfunds .w3-payment-scroll .table th:nth-child(2) { width: 180px; }
.w3-addfunds .w3-payment-scroll .table th:nth-child(4) { width: 180px; }
.w3-addfunds .w3-payment-scroll .table :is(td:first-child, td:nth-child(2)) { color: var(--w3-muted); font-size: 12px; }
.w3-addfunds .pagination { margin-top: 10px; }
.w3-child-order .w3-child-content { padding: 20px; border: 1px solid var(--w3-border); border-radius: 8px; background: var(--w3-surface); }
.w3-child-order .w3-child-content h2 { font-size: 15px; font-weight: 600; }
.w3-child-order .w3-child-fieldset { display: grid; min-width: 0; gap: 14px; padding: 0; margin: 0; border: 0; }
.w3-child-order .w3-child-fieldset + .w3-child-fieldset { padding-top: 4px; }
.w3-child-order .w3-child-fieldset legend { padding: 0 0 10px; margin-bottom: 14px; border-bottom: 1px solid var(--w3-border); color: var(--w3-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.w3-child-order .w3-child-fieldset .form-group { min-width: 0; margin: 0; }
/* Keep the native .first hook and field order; only the informational DNS block moves visually. */
.w3-child-order .w3-child-site .first { display: contents; }
.w3-child-order .w3-child-nameservers { order: 1; margin: 0; padding: 12px; border: 0; background: var(--w3-subtle); color: var(--w3-muted); font-size: 12px; }
.w3-child-order .w3-child-nameservers > div { color: var(--w3-text); font-size: 13px; font-weight: 600; }
.w3-child-order .w3-child-nameservers ul { margin-top: 6px; }
.w3-child-order .w3-child-passwords { gap: 12px; }
.w3-child-order .w3-child-checkout { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w3-child-order .form-group.w3-child-price { flex: 1; min-width: 0; padding: 0; margin: 0; border: 0; }
.w3-child-order .w3-child-price .control-label { color: var(--w3-muted); font-size: 12px; font-weight: 400; margin-bottom: 2px; }
.w3-child-order .w3-child-price #price { height: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--w3-text); font-size: 24px; font-weight: 600; line-height: 1.25; box-shadow: none; font-variant-numeric: tabular-nums; }
.w3-child-order .w3-child-checkout .btn { flex-shrink: 0; max-width: 48%; }
@media (max-width: 860px) {
  .w3-child-order-with-content.container { max-width: 790px; grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .w3-child-order .w3-child-passwords { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .w3-addfunds .w3-form-submit .btn { width: 100%; }
}
@media (max-width: 460px) {
  :is(.w3-addfunds, .w3-child-order) :is(.w3-finance-header, .w3-finance-body) { padding-inline: 12px; }
}
@media (max-width: 360px) {
  .w3-child-order .w3-child-checkout .btn { width: 108px; }
}

/* 1240px visible frame plus the native 30px container gutters. */
:is(.w3-orders, .w3-drip-feed).container-fluid { max-width: 1270px; font-size: 13px; line-height: 1.5; }
.w3-updates.container-fluid { max-width: 1270px; }
:is(.w3-orders, .w3-drip-feed) .well.w3-history-scroll { padding: 4px 12px; }
.w3-orders .w3-history-scroll .table { min-width: 1200px; }
.w3-drip-feed .w3-history-scroll .table { min-width: 1120px; }
:is(.w3-orders, .w3-drip-feed) .w3-history-scroll .table > thead > tr > th { height: 42px; padding: 10px 8px; font-weight: 500; }
:is(.w3-orders, .w3-drip-feed) .table > tbody > tr > td { font-size: 13px; }
:is(.w3-orders, .w3-drip-feed) .table .w3-history-date { width: 174px; }
:is(.w3-orders, .w3-drip-feed) .w3-record-date { white-space: normal; overflow-wrap: anywhere; }
.w3-orders .table .w3-history-id { width: 118px; }
.w3-orders .table .w3-history-number { width: 70px; }
.w3-orders .table .w3-history-start { width: 104px; }
.w3-orders .table .w3-history-link { width: 152px; }
.w3-orders .table .w3-history-status { width: 100px; }
.w3-orders .table .w3-history-actions { width: 110px; }
.w3-drip-feed .table .w3-history-id { width: 86px; }
.w3-drip-feed .table .w3-history-number { width: 72px; }
.w3-drip-feed .table .w3-history-link { width: 140px; }
.w3-drip-feed .table .w3-history-total { width: 104px; }
.w3-drip-feed .table .w3-history-status { width: 84px; }
.w3-drip-feed .table .w3-history-actions { width: 74px; }
:is(.w3-orders, .w3-drip-feed) .table .w3-history-amount { width: 144px; }
:is(.w3-orders, .w3-drip-feed) .w3-history-target {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--w3-link); font-weight: 400;
}
:is(.w3-orders, .w3-drip-feed) .w3-history-target:focus {
  overflow: visible; white-space: normal; overflow-wrap: anywhere;
  outline: 2px solid var(--w3-primary); outline-offset: 3px;
}


/* Match the approved public shell without inheriting Bootstrap brand offsets. */
body.w3-public-page .w3-public-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: 64px;
  min-height: 64px;
}
.w3-public-header .w3-public-container {
  display: flex;
  height: 63px;
  align-items: center;
  gap: 16px;
}
.w3-public-header .w3-public-container::before,
.w3-public-header .w3-public-container::after,
.w3-public-header .w3-public-identity::before,
.w3-public-header .w3-public-identity::after,
.w3-public-header .navbar-collapse::before,
.w3-public-header .navbar-collapse::after { display: none; }
.w3-public-header .w3-public-identity {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
}
.w3-public-header .w3-public-container .navbar-brand {
  float: none;
  height: 32px;
  margin: 0;
}
.w3-public-header .navbar-collapse {
  display: flex !important;
  flex: 1;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.w3-public-header .navbar-nav { float: none !important; margin: 0; }
.w3-public-header .w3-public-menu { display: flex; margin-left: auto; }
body.w3-public-page .w3-public-header .w3-public-menu > li > a {
  display: flex;
  height: 63px;
  align-items: center;
  padding: 0 15px;
  line-height: 22px;
  white-space: nowrap;
}
body.w3-public-page .w3-public-header .w3-public-language > li > a {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.w3-public-header .w3-public-language .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 144px;
  min-width: 144px;
  max-width: 144px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
}
.w3-public-header .w3-public-language .dropdown-menu > li > a {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--w3-text);
}
.w3-public-header .w3-public-tools { display: flex; flex: none; align-items: center; }
.w3-public-header .navbar-toggle { display: none; }
@media (max-width: 880px) {
  .w3-public-header .w3-public-tools { margin-left: auto; }
  .w3-public-header .navbar-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 0;
    color: #fff;
  }
  .w3-public-header .navbar-collapse {
    position: fixed;
    top: 64px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - 80px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #293242;
    border-radius: 8px;
    background: #101318;
  }
  .w3-public-header .navbar-collapse.collapse:not(.in) { display: none !important; }
  .w3-public-header .navbar-collapse.in { display: block !important; }
  .w3-public-header .w3-public-menu { display: block; width: 100%; margin: 0; }
  .w3-public-header .w3-public-menu > li { float: none; }
  body.w3-public-page .w3-public-header .w3-public-menu > li > a { height: 44px; padding: 0 12px; }
  .w3-public-header .w3-public-language { width: auto; }
  .w3-public-header .w3-public-language .open .dropdown-menu { position: absolute; width: 144px; margin: 0; }
}
@media (max-width: 700px) {
  body.w3-public-page .w3-public-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.w3-public-page .floating-container .help-text { display: none; }
}

/* Frozen LOCAL page geometry. Append after shared/history parity fragments. */
:is(.w3-neworder, .w3-services, .w3-orders, .w3-drip-feed, .w3-refunds, .w3-updates, .w3-api) {
  --w3-page-gutter: 24px;
  --w3-page-width: 1120px;
}
:is(.w3-neworder, .w3-services, .w3-api).container,
:is(.w3-orders, .w3-drip-feed, .w3-refunds, .w3-updates).container-fluid {
  max-width: calc(var(--w3-page-width) + 2 * var(--w3-page-gutter));
  padding-inline: var(--w3-page-gutter);
  font-size: 13px;
  margin-top: 20px;
}
.w3-neworder { --w3-page-width: 760px; }
:is(.w3-orders, .w3-drip-feed) { --w3-page-width: 1240px; }
.w3-api { --w3-page-width: 960px; }

/* Flatten layout boxes, not the DOM: native code owns #fields and charge.parent(). */
.w3-neworder #order-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.w3-neworder #order-form > *,
.w3-neworder #fields > * { grid-column: 1 / -1; min-width: 0; }
.w3-neworder #fields { display: contents; }
.w3-neworder #fields > * { order: 2; }
/* The native drip-feed wrapper remains present when its capability field is hidden. */
.w3-neworder #fields > #dripfeed:not(.hidden):not([style*="display: none"]) { display: contents; }
.w3-neworder #fields > #dripfeed > * { grid-column: 1 / -1; min-width: 0; order: 2; }
.w3-neworder #fields > #order_average_time { order: 1; }
.w3-neworder #fields ~ * { order: 3; }
.w3-neworder #order-form .form-group,
.w3-neworder #order-form .w3-order-favorites { margin-bottom: 0; }
body.w3-auth-page .w3-neworder .w3-order-tools { padding-bottom: 20px; margin-bottom: 0; }
.w3-neworder #order-form > .btn-primary { justify-self: start; }
.w3-neworder #order-form .control-label { margin-bottom: 6px; }
.w3-neworder #order-form > .form-group:has(#charge) { align-self: start; }
@media (min-width: 561px) {
  body.w3-auth-page .w3-neworder .w3-order-form { padding: 20px; }
}

/* Pair only the standard field shape. Additional native service fields keep full rows. */
@media (min-width: 521px) {
  .w3-neworder #order-form:not(:has(#fields .fields:not(#order_link, #order_quantity, #order_average_time):not(.hidden):not([style*="display: none"]))) #order_quantity:not(.hidden):not([style*="display: none"]),
  .w3-neworder #order-form:has(#order_quantity:not(.hidden):not([style*="display: none"])):not(:has(#fields .fields:not(#order_link, #order_quantity, #order_average_time):not(.hidden):not([style*="display: none"]))) > .form-group:has(#charge) {
    grid-column: auto;
    order: 2;
  }
  body.w3-auth-page .w3-neworder #order-form > .btn-primary { width: auto; }
}

body.w3-auth-page .w3-services .well.w3-services-scroll { padding: 8px 14px 4px; }
.w3-services #service-table { min-width: 900px; table-layout: fixed; }
body.w3-auth-page .w3-services #service-table th { height: 38px; padding: 6px 8px; line-height: 20px; }
body.w3-auth-page .w3-services #service-table td { padding: 6px 8px; line-height: 20px; font-size: 13px; overflow-wrap: anywhere; }
.w3-services #service-table .width-service-name { width: auto; }
.w3-services #service-table .service-name { min-width: 0; }
.w3-services #service-table th:has(+ .width-service-name) { width: 56px; }
.w3-services #service-table th:first-child:empty { width: 38px !important; }
.w3-services #service-table .width-service-name + th { width: 146px; }
.w3-services #service-table .width-service-name + th + th { width: 92px; }
.w3-services #service-table .width-service-name + th + th + th { width: 100px; }
.w3-services #service-table .width-service-name + th + th + th + th:not(:last-child) { width: 106px; }
.w3-services #service-table th:last-child { width: 64px; }
.w3-services #service-table td.service-name ~ td { text-align: end; white-space: normal; }
.w3-services #service-table :is(th, td):last-child:not([colspan]) { position: sticky; inset-inline-end: 0; background: #fff; }
.w3-services #service-table td[colspan] { height: 34px; }
.w3-services .w3-category-filter { width: 210px; }
.w3-services .w3-services-tools > .search { width: 280px; }
body.w3-auth-page .w3-services .w3-services-tools .btn { min-height: 38px; }

.w3-history.w3-refunds .table { min-width: 640px; }
.w3-history.w3-updates .table { min-width: 0; }
.w3-history.w3-updates .table .w3-history-service { width: auto; }
.w3-history.w3-updates .table .w3-history-date { width: 140px; }
.w3-history.w3-updates .table .w3-updates-body { width: 34%; }

.w3-api .w3-api-method-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.w3-api .w3-api-method { margin-top: 16px; padding-top: 12px; }
.w3-api .w3-api-method > h2 { font-size: 14px; margin-bottom: 16px; }
.w3-api .w3-api-response h3 { font-size: 13px; margin-bottom: 10px; }
.w3-api .table > thead > tr > th,
.w3-api .table > tbody > tr > td { padding: 9px 12px; font-size: 13px; }
.w3-api .table > thead > tr > th { font-weight: 500; }
.w3-api .form-inline { max-width: 320px; }
.w3-api pre { max-height: 360px; white-space: pre-wrap; overflow-wrap: anywhere; padding: 13px 14px; line-height: 1.6; }
.w3-api > .w3-api-table { border: 0; border-bottom: 1px solid var(--w3-border); border-radius: 0; background: transparent; padding-bottom: 16px; }
.w3-api > .w3-api-table tbody { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.w3-api > .w3-api-table tr { display: grid; min-width: 0; gap: 4px; }
.w3-api > .w3-api-table tr:nth-child(2) { flex: 1 1 260px; }
.w3-api > .w3-api-table tr:nth-child(3) { flex: 1 1 136px; }
.w3-api > .w3-api-table .table td { display: block; width: auto; padding: 0; border: 0; background: transparent; font-weight: 500; }
.w3-api > .w3-api-table .table td:first-child { font-weight: 400; color: var(--w3-muted); }

@media (max-width: 860px) {
  body.w3-auth-page .w3-services .w3-services-tools .btn { min-height: 44px; }
  body.w3-auth-page :is(.w3-neworder, .w3-services, .w3-api) :is(input.form-control, select.form-control, .btn, .select2-selection--single) { min-height: 44px; }
  body.w3-auth-page .w3-services .well.w3-services-scroll { padding: 8px; }
  .w3-services #service-table th:first-child:empty { width: 54px !important; }
  .w3-services .w3-service-favorite { width: 44px; height: 44px; }
  .w3-services .w3-services-tools > li > .w3-catalog-favorites { width: 44px; height: 44px; min-height: 44px; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-tools { display: grid; gap: 12px; margin-bottom: 16px; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-search { grid-row: 1; width: 100%; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .well.w3-history-scroll { padding: 0; border: 0; background: transparent; overflow: visible; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll .table { display: block; min-width: 0; width: 100%; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll thead { display: none; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll tbody { display: grid; gap: 10px; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 10px 14px; border: 1px solid var(--w3-border); border-radius: 8px; background: #fff; }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll .table tbody td {
    display: block; min-width: 0; width: auto; padding: 8px 0; border-top: 0; border-bottom: 1px solid var(--w3-border); text-align: start;
  }
  :is(.w3-orders, .w3-drip-feed, .w3-updates) .w3-history-scroll td::before {
    display: block; content: attr(data-mobile-label); margin-bottom: 4px; color: var(--w3-muted); font-size: 11px; text-transform: uppercase;
  }
  :is(.w3-orders, .w3-drip-feed) .w3-history-scroll :is(td.w3-history-service, td.w3-history-link),
  .w3-updates .w3-history-scroll :is(td.w3-history-service, td.w3-updates-body) { grid-column: 1 / -1; }
  .w3-history.w3-updates .w3-history-scroll .table tbody td { width: auto; }
  :is(.w3-orders, .w3-drip-feed) .w3-history-scroll .w3-history-target { white-space: normal; overflow-wrap: anywhere; }
  :is(.w3-orders, .w3-drip-feed) .w3-history-scroll .w3-history-actions { align-self: end; border-bottom: 0; }
  :is(.w3-orders, .w3-drip-feed) .w3-history-scroll .w3-history-actions::before { content: none; }
  .w3-history.w3-refunds .w3-history-scroll { padding: 8px; }
}
@media (max-width: 720px) {
  .w3-services .w3-services-tools > li:first-child { flex: 1; }
  .w3-services .w3-category-filter { width: 100%; }
  .w3-services .w3-services-tools > .search { width: 100%; }
}
@media (max-width: 560px) {
  :is(.w3-neworder, .w3-services, .w3-orders, .w3-drip-feed, .w3-refunds, .w3-updates, .w3-api) { --w3-page-gutter: 12px; }
  :is(.w3-neworder, .w3-services, .w3-api).container,
  :is(.w3-orders, .w3-drip-feed, .w3-refunds, .w3-updates).container-fluid { margin-top: 18px; }
  .w3-api .table > thead > tr > th,
  .w3-api .table > tbody > tr > td { padding: 9px 8px; }
}

/* Stage last, after shared/account-support/finance-child CSS. The shell stays frozen. */
:is(.w3-account, .w3-addfunds, .w3-affiliates, .w3-tickets, .w3-ticket-detail, .w3-child-order).container {
  width: calc(100% - 18px);
  margin-top: 20px;
}
.w3-addfunds > .row { margin-inline: 0; }
.w3-addfunds > .row > .col-md-12 { padding-inline: 0; }

/* The native vendor selector `.api h4, h5, h6, form` leaks a 10px form margin. */
.w3-account .w3-account-panel__body > form,
.w3-tickets #ticketsend,
.w3-ticket-detail .w3-ticket-reply > form { margin: 0; }
.w3-account .w3-account-panel__body > .form-group:last-of-type,
.w3-account .w3-account-panel__body > form > .form-group:last-of-type { margin-bottom: 16px; }
body.w3-auth-page .w3-account textarea.form-control { min-height: 90px; line-height: 1.4; }

.w3-account .w3-account-panel__header h2,
.w3-tickets .w3-ticket-panel__header h2,
.w3-tickets .w3-ticket-records__heading h2,
.w3-ticket-detail .titcket-title,
.w3-affiliates .w3-affiliate-overview h2 { line-height: 1.25; }

.w3-tickets .w3-ticket-panel__header {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 12px 20px;
}
.w3-tickets #ticketsend,
.w3-ticket-detail .well.w3-ticket-reply { padding: 20px; }
body.w3-auth-page :is(.w3-tickets, .w3-ticket-detail) label.control-label { margin-bottom: 5px; }
body.w3-auth-page :is(.w3-tickets, .w3-ticket-detail) textarea.form-control { line-height: 1.4; }
.w3-ticket-detail .ticket-message { padding: 14px 16px; }

/* LOCAL uses two equal groups, with a 400px cap on the facts below the link. */
.w3-affiliates .w3-affiliate-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.w3-affiliates .w3-affiliate-facts > .w3-affiliate-referral { display: block; grid-column: auto; }
.w3-affiliates .w3-affiliate-program-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w3-affiliates .w3-affiliate-overview dt { line-height: 1.5; }
.w3-affiliates .w3-affiliate-earnings dd { margin-top: 6px; }
.w3-affiliates .w3-affiliate-referral label { display: block; line-height: 1.5; }
.w3-affiliates .w3-affiliate-referral { --w3-referral-control-size: 38px; }
body.w3-auth-page .w3-affiliates .w3-referral-copy-button { min-height: 38px; padding: 0; }

@media (max-width: 860px) {
  .w3-affiliates .w3-affiliate-facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .w3-affiliates .w3-affiliate-program-facts { width: 100%; max-width: 400px; }
  /* LOCAL history search retains 44px touch targets, unlike the 38px ticket form. */
  body.w3-auth-page .w3-tickets #history-search :is(input.form-control, .btn) { height: 44px; min-height: 44px; }
  .w3-tickets #history-search .input-group-btn { flex-basis: 44px; width: 44px; }
  .w3-tickets #history-search .btn { width: 44px; }
}
@media (max-width: 720px) {
  .w3-account .w3-account-panel__body .form-group { margin-bottom: 16px; }
  body.w3-auth-page .w3-account textarea.form-control { min-height: 44px; }
  body.w3-auth-page :is(.w3-tickets, .w3-ticket-detail) :is(input, select).form-control { height: 38px; min-height: 38px; }
  body.w3-auth-page :is(.w3-tickets, .w3-ticket-detail) .btn { min-height: 38px; }
  .w3-tickets #ticketsend:has(#ticket-subcategory) > .form-group:has(#ticket-category-field) { margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .w3-affiliates .w3-affiliate-earnings dd { margin-top: 0; }
  :is(.w3-account, .w3-addfunds, .w3-affiliates, .w3-tickets, .w3-ticket-detail, .w3-child-order).container {
    width: 100%;
    padding-inline: 12px;
    margin-top: 18px;
  }
}
@media (max-width: 460px) {
  .w3-tickets .w3-ticket-panel__header,
  .w3-tickets #ticketsend,
  .w3-ticket-detail .well.w3-ticket-reply { padding-inline: 12px; }
}
@media (max-width: 390px) {
  /* LOCAL's header is 62px here; the frozen native header remains 64px. */
  :is(.w3-account, .w3-addfunds, .w3-affiliates, .w3-tickets, .w3-ticket-detail, .w3-child-order).container { margin-top: 16px; }
}

/* The same catalog keeps the same density before and after sign-in. */
body.w3-public-page .w3-services .btn { min-height: 38px; padding: 8px 16px; font-size: 13px; line-height: 20px; font-weight: 500; border-radius: 6px; box-shadow: none; }
body.w3-public-page .w3-services .form-control { height: 38px; min-height: 38px; padding: 8px 11px; font-size: 13px; line-height: 1.4; border-radius: 6px; border-color: var(--w3-border); box-shadow: none; }
body.w3-public-page .w3-services .w3-category-filter { font-weight: 600; }
body.w3-public-page .w3-services .well.w3-services-scroll { padding: 8px 14px 4px; border-radius: 8px; border-color: var(--w3-border); box-shadow: none; }
body.w3-public-page .w3-services #service-table th { height: 38px; padding: 6px 8px; line-height: 20px; }
body.w3-public-page .w3-services #service-table td { padding: 6px 8px; font-size: 13px; line-height: 20px; border-color: var(--w3-border); overflow-wrap: anywhere; }
body.w3-public-page .w3-services #service-table .btn-xs { min-height: 30px; padding: 4px 9px; font-size: 12px; border: 0; background: #edf2f8; color: var(--w3-link); }
body.w3-public-page .w3-services .w3-services-tools > li > .w3-catalog-favorites { padding: 0; font-size: 16px; }
@media (max-width: 860px) {
  body.w3-public-page .w3-services :is(input.form-control, select.form-control, .btn) { min-height: 44px; }
  body.w3-public-page .w3-services .well.w3-services-scroll { padding: 8px; }
}

/* Frozen LOCAL auth geometry; Bootstrap owns collapse/dropdown state. */
body.w3-auth-page { --w3-auth-height: 64px; }
.w3-auth-header.navbar { height: var(--w3-auth-height); min-height: var(--w3-auth-height); }
.w3-auth-header .w3-auth-container { height: calc(var(--w3-auth-height) - 1px); grid-template-columns: max(208px, calc((100% - 1120px) / 2)) minmax(0, 1fr) auto auto; }
.w3-auth-header .navbar-header { grid-column: 1; grid-row: 1; width: 208px; padding: 0 18px; gap: 0; }
.w3-auth-header .navbar-brand { height: auto; gap: 9px; font-size: 14px; line-height: 1.5; }
.w3-auth-header .navbar-brand svg { width: 32px; height: 32px; }
.w3-auth-header .navbar-brand > span { display: inline; }
.w3-auth-header .navbar-collapse { display: contents !important; }
.w3-auth-header .w3-auth-menu { grid-column: 2; grid-row: 1; width: auto; min-width: 0; padding: 0 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.w3-auth-header .w3-auth-menu::-webkit-scrollbar { display: none; }
.w3-auth-header .w3-auth-currency { grid-column: 3; grid-row: 1; padding: 0 0 0 15px; }
.w3-auth-header .w3-auth-account-tools { grid-column: 4; grid-row: 1; padding: 0 14px 0 0; border: 0; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-tool-link { min-height: 48px; padding: 0 15px; line-height: 22px; }
.w3-auth-header:lang(zh) .w3-auth-account-tools > li > .w3-auth-tool-link { font-size: 12px; }
.w3-auth-header .w3-auth-tool-link .fa-sign-out-alt { width: 16px; font-size: 16px; }
.w3-auth-header .w3-auth-logout-label { display: none; }
.w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-width: 144px; min-height: 34px; height: 34px; margin-right: 4px; padding: 0 10px; font-size: 13px; }
.w3-auth-header .w3-auth-balance .w3-wallet-icon { display: inline-block; width: 16px; }

@media (min-width: 1024px) and (max-width: 1799px) {
  .w3-auth-header .w3-auth-currency { padding-left: 8px; }
  .w3-auth-header .w3-auth-account-tools { padding-right: 8px; }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-balance { gap: 5px; padding: 0 8px; }
}

@media (max-width: 1023px) {
  .w3-auth-header .w3-auth-container { grid-template-columns: 208px 48px minmax(0, 1fr); }
  .w3-auth-header .navbar-toggle { display: inline-grid; grid-column: 2; grid-row: 1; align-self: center; place-items: center; width: 40px; height: 40px; margin: 0 2px; padding: 0; border: 0; border-radius: 6px; color: #fff; }
  .w3-auth-header .navbar-toggle:hover, .w3-auth-header .navbar-toggle:focus { background: #293242; }
  .w3-auth-header .w3-auth-currency { justify-self: end; max-width: 100%; padding: 0 14px 0 15px; }
  .w3-auth-header .w3-auth-currency > li { max-width: 100%; }
  .w3-auth-header .w3-auth-balance-static > a { max-height: 48px; overflow: auto; overflow-wrap: anywhere; }
  .w3-auth-header .navbar-collapse, .w3-auth-header .collapsing { position: fixed; top: var(--w3-auth-height); left: 0; width: 280px; max-height: calc(100vh - var(--w3-auth-height)); height: auto !important; margin: 0; padding: 0; border: 0; background: #191e27; box-shadow: 0 12px 30px rgb(15 23 42 / 18%); }
  .w3-auth-header .navbar-collapse.collapse:not(.in) { display: none !important; }
  .w3-auth-header .navbar-collapse.in { display: block !important; overflow-x: hidden !important; overflow-y: auto !important; }
  .w3-auth-header .collapsing { display: block !important; overflow: hidden !important; height: 0; }
  .w3-auth-header .w3-auth-menu { display: block; width: 100%; padding: 0; overflow: visible; }
  .w3-auth-header .w3-auth-menu > li > a { display: flex; align-items: center; min-height: 46px; padding: 0 15px; white-space: normal; overflow-wrap: anywhere; }
  .w3-auth-header .w3-auth-account-tools { display: block; width: 100%; padding: 10px 0; margin-top: 6px; border-top: 1px solid #303847; background: transparent; }
  .w3-auth-header .w3-auth-account-tools > li > .w3-auth-tool-link { min-height: 44px; padding: 0 15px; justify-content: flex-start; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
  .w3-auth-header .w3-auth-account-tools > .active > .w3-auth-tool-link { background: transparent; box-shadow: none; }
  .w3-auth-header .w3-auth-tool-link .fa-sign-out-alt { display: none; }
  .w3-auth-header .w3-auth-logout-label { display: inline; }
  .w3-auth-header .w3-auth-more > .dropdown-toggle { width: 100%; justify-content: flex-start; padding: 0 15px; }
  .w3-auth-header .w3-auth-more.open .dropdown-menu { position: static; width: 100%; max-width: none; margin: 0; }
}

@media (max-width: 1100px) {
  .w3-auth-header .w3-auth-currency { padding: 0 10px; }
}
@media (max-width: 860px) {
  .w3-auth-header .navbar-toggle { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .w3-auth-header .navbar-header { padding: 0 12px; }
}
/* Approved containment exception: LOCAL's fixed brand track obscures the toggle at 391-424px. */
@media (max-width: 424px) {
  .w3-auth-header .w3-auth-container { grid-template-columns: minmax(0, 1fr) 48px auto; }
  .w3-auth-header .navbar-header { width: auto; min-width: 0; }
  .w3-auth-header .navbar-brand { max-width: 100%; overflow: hidden; }
  .w3-auth-header .w3-auth-currency { max-width: calc(100vw - 108px); }
}
@media (max-width: 390px) {
  body.w3-auth-page { --w3-auth-height: 62px; }
  .w3-auth-header .navbar-brand { gap: 7px; font-size: 13px; }
  .w3-auth-header .w3-auth-currency { padding: 0 8px 0 2px; max-width: calc(100vw - 108px); }
  .w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-height: 32px; height: 32px; }
}
@media (max-width: 360px) {
  .w3-auth-header .navbar-brand > span, .w3-auth-header .w3-auth-balance .w3-wallet-icon { display: none; }
}

/* Owner order/catalog corrections. Assemble after the existing final stylesheet. */
body :is(.w3-services, .w3-refunds, .w3-updates).container,
body :is(.w3-refunds, .w3-updates).container-fluid {
  max-width: 1168px;
}
body .w3-services .well.w3-services-scroll,
body .w3-refunds .well.w3-history-scroll { padding: 8px 14px 4px; }

/* Native amounts and average-time strings can exceed the prototype's column budget. */
body .w3-services #service-table { table-layout: auto; }
body .w3-services #service-table .width-service-name ~ th { text-align: end; }
body .w3-services #service-table :is(th, td).w3-service-id { width: 64px; font-size: 12px; color: var(--w3-muted); }
body:is(.w3-auth-page, .w3-public-page) .w3-services #service-table :is(.w3-service-id, .w3-service-rate, .w3-service-limit, .w3-service-average) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-variant-numeric: tabular-nums;
}
body .w3-services #service-table .service-name { min-width: 200px; white-space: normal; overflow-wrap: anywhere; }
body .w3-services #service-table th.nowrap { white-space: nowrap; }
body .w3-services .w3-services-currency { width: 104px; flex: 0 0 104px; }
body .w3-services .w3-services-currency .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: var(--w3-surface);
  border-color: var(--w3-border);
  color: var(--w3-text);
  font-weight: 500;
  white-space: nowrap;
}
body .w3-services .w3-services-currency .dropdown-toggle > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body .w3-services .w3-services-tools > .search { flex: 0 1 280px; }
/* Use the shared shell geometry on first paint, before the optional measured adjustment. */
@media (min-width: 1024px) {
  body.w3-auth-page .w3-services.container:is([data-owner-catalog-aligned], :not([data-owner-catalog-observed])) {
    width: auto;
    max-width: none;
    margin-inline-start: var(--w3-catalog-start, calc(var(--w3-auth-brand-track) + var(--w3-auth-menu-inset)));
    margin-inline-end: var(--w3-catalog-start, calc(var(--w3-auth-brand-track) + var(--w3-auth-menu-inset)));
    padding-inline: 0;
  }
}

body .w3-neworder .w3-order-service-control { display: flex; align-items: center; gap: 10px; min-width: 0; }
body .w3-neworder .w3-order-service-control > :is(select, .select2-container) { flex: 1; min-width: 0; width: 0 !important; }
body .w3-neworder .w3-order-service-favorite {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--w3-border);
  border-radius: 6px;
  background: var(--w3-surface);
  color: var(--w3-muted);
}
body .w3-neworder .w3-order-service-favorite[data-favorite-button="1"] { color: var(--w3-primary); background: var(--w3-subtle); }
body .w3-neworder .w3-order-service-favorite:disabled { cursor: not-allowed; opacity: .6; }
body .w3-neworder .w3-order-favorites { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
body .w3-neworder .w3-order-favorites[aria-pressed="true"] { background: var(--w3-primary); border-color: var(--w3-primary); color: #fff; }
body .w3-neworder #order-form > .w3-order-summary { order: 1; grid-column: 1 / -1; padding: 14px 0; border-block: 1px solid var(--w3-border); }
body .w3-neworder .w3-order-summary[hidden] { display: none; }
body .w3-neworder .w3-order-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 4px 0; margin: 0; }
body .w3-neworder .w3-order-summary dl > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; padding: 1px 14px; border-inline-end: 1px solid var(--w3-border); }
body .w3-neworder .w3-order-summary dl > div:first-child { padding-inline-start: 0; }
body .w3-neworder .w3-order-summary dl > div:last-child { padding-inline-end: 0; border-inline-end: 0; }
body .w3-neworder .w3-order-summary dt { margin: 0; color: var(--w3-muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; }
body .w3-neworder .w3-order-summary dd { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Keep the native readonly field in place; its value is reflected in the three-column summary. */
body .w3-neworder #order-form:has(> .w3-order-summary:not([hidden])) #order_average_time { display: none !important; }
@media (max-width: 360px) {
  body .w3-neworder .w3-order-summary dl > div { padding-inline: 8px; }
  body .w3-neworder .w3-order-summary dl > div:first-child { padding-inline-start: 0; }
  body .w3-neworder .w3-order-summary dl > div:last-child { padding-inline-end: 0; }
  body .w3-neworder .w3-order-summary dd { font-size: 12px; line-height: 18px; }
}
@media (max-width: 600px) {
  body .w3-neworder .w3-order-tools > .form-group { flex-basis: 100%; }
}

body.w3-auth-page .w3-massorder.container { max-width: 808px; padding-inline: 24px; }
body .w3-massorder > .row { margin: 0; }
body .w3-massorder > .row > .col-md-12 { padding: 0; }
body .w3-massorder .well { padding: 20px; }
body .w3-massorder .w3-massorder-entry { margin: 0 0 14px; }
body .w3-massorder .w3-massorder-format { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
body .w3-massorder .w3-massorder-format .control-label { margin: 0; }
body .w3-massorder .w3-massorder-format code { padding: 0; color: var(--w3-muted); background: transparent; font-size: 12px; }
body .w3-massorder #links { height: 300px; min-height: 220px; padding: 10px 12px; }
body .w3-massorder .w3-form-submit { justify-content: space-between; align-items: flex-start; gap: 16px; padding-top: 0; border-top: 0; }
body .w3-massorder .w3-form-submit .btn { min-height: 38px; padding: 8px 16px; }
body .w3-massorder .w3-massorder-help { min-width: 0; padding-top: 6px; font-size: 12px; color: var(--w3-muted); }
body .w3-massorder .w3-massorder-help summary { width: fit-content; padding: 4px 0; color: var(--w3-link); cursor: pointer; }
body .w3-massorder .w3-massorder-help pre { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--w3-subtle); border-color: var(--w3-border); }

body .w3-refunds .table :is(th, td).w3-history-number { text-align: start; }
body .w3-refunds .table > thead > tr > th { height: 38px; padding: 6px 8px; }
body .w3-refunds .table > tbody > tr > td { padding: 6px 8px; line-height: 20px; }
body .w3-history.w3-refunds .alert-info { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 16px; min-height: 52px; }
body .w3-history.w3-refunds .alert-info .close { position: static; flex: 0 0 44px; order: 2; }
body .w3-refunds .w3-refund-notice { flex: 1; min-width: 0; line-height: 1.6; font-weight: 500; }
body .w3-refunds .w3-refund-notice p { margin: 0; }
body :is(.w3-orders, .w3-drip-feed, .w3-refunds, .w3-updates) [data-owner-order-date] { white-space: normal; overflow-wrap: normal; }

/* Balance ordinary records while allowing full-precision native amounts to grow. */
@media (min-width: 861px) {
  body .w3-orders .w3-history-scroll .table { table-layout: auto; }
  body .w3-orders .w3-history-scroll .table > :is(thead, tbody) > tr > :is(th, td) { padding-inline: 12px; }
  body .w3-orders .table .w3-history-id { width: 80px; }
  body .w3-orders .table .w3-history-date { width: 156px; min-width: 156px; }
  body .w3-orders .table .w3-history-service { min-width: 240px; }
  body .w3-orders .table .w3-history-link { width: 176px; }
  body .w3-orders .w3-history-target { width: 152px; }
  body .w3-orders .table .w3-history-number { width: 96px; white-space: nowrap; }
  body .w3-orders .table .w3-history-amount { width: 112px; }
  body .w3-orders .table .w3-history-status { width: 144px; min-width: 144px; text-align: center; }
}

body .w3-updates .w3-history-tools { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; margin-bottom: 16px; }
body .w3-updates .w3-history-tools .nav-pills { min-width: 0; gap: 2px; }
body .w3-updates .w3-history-tools .nav-pills > li { max-width: 100%; }
body .w3-updates .w3-history-tools .nav-pills > li > a { padding: 9px 12px; font-size: 12px; line-height: 20px; }
body .w3-updates .w3-history-search { width: 100%; }
body .w3-updates .well.w3-history-scroll { padding: 4px 12px; }
body .w3-updates .w3-update-service-id { display: block; color: var(--w3-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
body .w3-updates .w3-update-content { min-width: 0; color: var(--w3-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
body .w3-updates .w3-update-content > :last-child { margin-bottom: 0; }
body .w3-updates .w3-update-content :is(pre, table) { max-width: 100%; overflow: auto; }

body .w3-api .w3-api-parameters .w3-api-parameter-name { width: 22%; }
body .w3-api .w3-api-parameters .w3-api-table { border-radius: 0; }
body .w3-api > .w3-api-table :is(table, tbody) { width: 100%; }
body .w3-api > .w3-api-table table { display: block; }
body .w3-api > .w3-api-table tr { align-content: start; }
body .w3-api .w3-api-parameters .table :is(th, td) { text-align: start; }
@media (max-width: 860px) {
  body .w3-services .well.w3-services-scroll,
  body .w3-refunds .well.w3-history-scroll { padding: 8px; }
  body .w3-refunds .table > tbody > tr > td { height: 56px; }
  body .w3-neworder .w3-order-service-favorite { width: 44px; height: 44px; flex-basis: 44px; }
  body .w3-updates .w3-history-tools { grid-template-columns: minmax(0, 1fr); }
  body .w3-updates .well.w3-history-scroll { padding: 0; }
}
@media (max-width: 720px) {
  body .w3-services .w3-services-tools > .w3-services-currency { margin-inline-start: 0; }
  body .w3-services .w3-services-tools > .search { flex: 1; width: 0; }
  body .w3-services .w3-services-tools > li:first-child { flex-basis: calc(100% - 54px); }
  body .w3-services .w3-services-tools:not(:has(.w3-catalog-favorites)) > li:first-child { flex-basis: 100%; }
  body .w3-services .w3-services-tools:not(:has(.w3-services-currency)) > .search { flex-basis: 100%; width: 100%; }
}
@media (max-width: 560px) {
  body.w3-auth-page .w3-massorder.container { padding-inline: 12px; margin-top: 18px; }
  body .w3-massorder .well { padding: 16px; }
  body .w3-api .w3-api-parameters .w3-api-parameter-name { width: 92px; }
}
@media (max-width: 520px) {
  body .w3-massorder .w3-form-submit { flex-direction: column; }
}

/* Stage after the existing parity cascade. No shared shell or native vendor overrides. */
.w3-addfunds .w3-form-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w3-addfunds .w3-funding-acknowledgement {
  display: flex; flex: 1; min-width: 0; min-height: 44px; align-items: center; gap: 8px;
  padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--w3-text); font-size: 13px; font-weight: 500;
  line-height: 1.5; cursor: pointer; overflow-wrap: anywhere;
}
.w3-addfunds .w3-funding-acknowledgement input { position: static; flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--w3-primary); }
.w3-addfunds .w3-funding-acknowledgement:has(input:checked),
.w3-addfunds .w3-funding-acknowledgement:focus-within { border: 0; background: transparent; box-shadow: none; }
.w3-addfunds .w3-funding-acknowledgement input:focus-visible { outline: 2px solid var(--w3-primary); outline-offset: 3px; }
.w3-addfunds .w3-form-submit > .btn { flex: none; }
/* Only the known gateway explanation wrapper is restyled; its money/network content is untouched. */
.w3-addfunds #instruction_instruction > .panel-body { color: var(--w3-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.w3-addfunds #instruction_instruction > .panel-body p { margin-block: 0 4px; font-size: inherit; line-height: inherit; }
.w3-addfunds #instruction_instruction .panel-body p[data-owner-finance-decoration] { display: none; }
.w3-addfunds #amount-fields { min-width: 0; }
.w3-addfunds #amount-fields :is(input, select, textarea) { max-width: 100%; }
.w3-addfunds #amount-fields label { overflow-wrap: anywhere; }
.w3-addfunds .w3-payment-scroll .table td:nth-child(3) { overflow-wrap: anywhere; }
.w3-addfunds .w3-payment-scroll { position: relative; }
.w3-addfunds .w3-payment-scroll .table td:nth-child(4) { white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.w3-funding-history.w3-addfunds { margin-top: 24px; }
:is(.w3-tickets, .w3-addfunds) .w3-finance-empty { padding: 28px 16px; text-align: center; white-space: normal; }
:is(.w3-tickets, .w3-addfunds) .w3-finance-empty h3 { margin: 0 0 8px; color: var(--w3-text); font-size: 15px; font-weight: 600; line-height: 1.5; }
:is(.w3-tickets, .w3-addfunds) .w3-finance-empty p { margin: 0; color: var(--w3-muted); font-size: 13px; line-height: 1.5; }
:is(.w3-tickets, .w3-addfunds) .w3-finance-empty .btn { margin-top: 16px; }
:is(.w3-tickets, .w3-addfunds) .table > tbody > :is(.w3-ticket-empty, .w3-funding-empty) > td { padding: 0; }
.w3-addfunds .w3-payment-scroll:has(.w3-funding-empty) .table { min-width: 0; }
.w3-tickets .w3-tickets-scroll:has(.w3-ticket-empty) .table { min-width: 0; table-layout: fixed; }
.w3-tickets .w3-tickets-scroll:has(.w3-ticket-empty) .table th { width: auto; white-space: normal; overflow-wrap: normal; word-break: normal; }
.w3-tickets .w3-ticket-search { margin-left: auto; }
.w3-tickets .w3-ticket-records { margin-top: 24px; }
.w3-tickets .table td:nth-child(2) { overflow-wrap: anywhere; }

.w3-affiliates .w3-affiliate-terms-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.w3-affiliates .w3-affiliate-terms-columns h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 24px; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.w3-affiliates .w3-affiliate-terms-columns p,
.w3-affiliates .w3-affiliate-action p { margin: 0; color: var(--w3-muted); font-size: 13px; line-height: 1.5; }
.w3-affiliates .w3-affiliate-settlement .w3-affiliate-action { display: flex; align-items: center; gap: 12px 16px; margin-top: 16px; }
.w3-affiliates .w3-affiliate-action .btn { flex: none; }
.w3-affiliates .w3-affiliate-terms ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding: 0; margin: 0; }
.w3-affiliates .w3-affiliate-terms li { margin-inline-start: 16px; color: var(--w3-muted); font-size: 12px; line-height: 1.7; }
.w3-affiliates :is(.w3-affiliate-settlement, .w3-affiliate-terms) { min-width: 0; overflow-wrap: anywhere; }

.w3-child-order.container { max-width: 990px; }
.w3-child-order.w3-child-order-with-content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 28px; }
.w3-child-order .w3-child-faq { min-width: 0; border: 1px solid var(--w3-border); border-radius: 8px; background: var(--w3-surface); }
.w3-child-order .w3-child-faq .w3-finance-header { border-bottom: 0; }
.w3-child-order .w3-child-faq :is(.w3-finance-header, summary)[hidden] { display: none; }
.w3-child-order .w3-child-faq-disclosure > summary { justify-content: space-between; gap: 12px; cursor: pointer; }
.w3-child-order .w3-faq-list { padding: 4px 12px 8px; }
.w3-child-order .w3-faq-item { min-width: 0; padding-block: 2px; border-bottom: 1px solid #edf0f5; }
.w3-child-order .w3-faq-item:last-child { border-bottom: 0; }
.w3-child-order .w3-faq-item > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 8px; border-radius: 6px; color: var(--w3-text); font-size: 13px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.w3-child-order .w3-child-faq summary { list-style: none; }
.w3-child-order .w3-child-faq summary::-webkit-details-marker { display: none; }
.w3-child-order .w3-child-faq summary i { flex: none; font-size: 16px; color: var(--w3-muted); transition: transform 160ms ease; }
.w3-child-order .w3-child-faq details[open] > summary i { transform: rotate(180deg); }
.w3-child-order .w3-child-faq summary:hover,
.w3-child-order .w3-faq-item[open] > summary { background: var(--w3-subtle); }
.w3-child-order .w3-child-faq summary:focus-visible { outline: 2px solid var(--w3-primary); outline-offset: -2px; }
.w3-child-order .w3-faq-answer { padding: 0 32px 14px 8px; border-radius: 0 0 6px 6px; background: var(--w3-subtle); }
.w3-child-order .w3-faq-answer p { margin: 0; color: var(--w3-muted); font-size: 12px; line-height: 1.75; }
.w3-child-order .w3-faq-answer p + p { margin-top: 8px; }
.w3-child-order :is(.w3-faq-item, .w3-faq-answer, .w3-child-nameservers) { overflow-wrap: anywhere; }
.w3-child-order .w3-child-configured { grid-column: 1 / -1; }

/* Both native settings routes use the same wrapper and header rhythm. */
body.w3-auth-page .w3-owner-settings.container { width: calc(100% - 18px); max-width: 790px; margin-top: 20px; }
.w3-owner-settings > .row { margin-inline: 0; }
.w3-owner-settings > .row > .col-md-8 { width: 100%; padding-inline: 0; margin-inline: 0; float: none; }
.w3-owner-settings .w3-settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--w3-border); margin: 0 0 14px; }
.w3-owner-settings .w3-settings-tabs::before,
.w3-owner-settings .w3-settings-tabs::after { display: none; }
.w3-owner-settings .w3-settings-tabs > li { float: none; margin: 0; }
.w3-owner-settings .w3-settings-tabs.nav-pills > li > a { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border-bottom: 2px solid transparent; font-size: 13px; line-height: 1.5; }
.w3-owner-settings .w3-settings-tabs.nav-pills > li.active > a { border-color: var(--w3-primary); }
.w3-notifications .w3-account-panel__body > form { margin: 0; }
.w3-notifications .w3-account-panel__body .btn-block { width: auto; max-width: 100%; }
.w3-notifications .w3-account-panel__header h2 { margin: 0; overflow-wrap: anywhere; }
.w3-notifications .w3-account-panel__body .w3-notifications-scroll { margin-bottom: 16px; }

@media (max-width: 860px) {
  .w3-child-order.container { max-width: 790px; }
  .w3-child-order.w3-child-order-with-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .w3-addfunds .w3-form-submit { flex-direction: column; align-items: stretch; gap: 12px; }
  .w3-affiliates .w3-affiliate-terms-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .w3-affiliates .w3-affiliate-settlement .w3-affiliate-action { align-items: stretch; flex-direction: column; }
  .w3-notifications .w3-account-panel__body .btn-block { width: 100%; }
}
@media (max-width: 560px) {
  body.w3-auth-page .w3-owner-settings.container { width: 100%; padding-inline: 12px; margin-top: 18px; }
  .w3-affiliates .w3-affiliate-terms ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .w3-tickets .w3-tickets-scroll:has(.w3-ticket-empty) .table th { padding-inline: 8px; }
  .w3-addfunds .w3-payment-scroll:has(.w3-funding-empty) .table th { width: auto; padding-inline: 6px; white-space: normal; }
}
@media (max-width: 390px) {
  body.w3-auth-page .w3-owner-settings.container { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .w3-child-order .w3-child-faq summary i { transition: none; }
}

/* Paste owner-affiliate-public.html into native public custom page /affiliate. */
body.w3-public-page:has(.w3-owner-affiliate-public) { background: #2c2c2c; }
.w3-content-page.container:has(.w3-owner-affiliate-public) { width: 100%; max-width: none; padding: 0; margin: 0 auto; }
.w3-content-page .w3-content-body:has(> .w3-owner-affiliate-public) { overflow: visible; }
.w3-owner-affiliate-public { width: 100%; min-width: 0; letter-spacing: 0; }
.w3-owner-affiliate-public > .w3-affiliate-public-zh { display: none; }
html:lang(zh) .w3-owner-affiliate-public > .w3-affiliate-public-en { display: none; }
html:lang(zh) .w3-owner-affiliate-public > .w3-affiliate-public-zh { display: block; }
.w3-owner-affiliate-public .affiliate-public { width: 1170px; max-width: 100%; padding: 20px 15px 0; margin: 0 auto; }
.w3-owner-affiliate-public .affiliate-frame { padding: 30px; margin: 20px 0 40px; border: 2px solid #fff; border-radius: 8px; background: #fff; box-shadow: 0 4px 20px rgb(0 0 0 / 5%); color: #3e3f3a; font-family: "Affiliate Roboto", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857143; }
.w3-owner-affiliate-public :is(.affiliate-process, .affiliate-benefits) { display: flow-root; }
.w3-owner-affiliate-public .affiliate-frame p { margin: 0 0 10px; color: inherit; font-size: 14px; line-height: 20px; }
.w3-owner-affiliate-public strong { font-weight: 700; }
.w3-owner-affiliate-public :is(.affiliate-process > h1, .affiliate-benefits > h2) { padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; margin: 30px 0 20px; color: #0f172a; font-size: 20px; font-weight: 700; line-height: 1.1; }
.w3-owner-affiliate-public .affiliate-process > h1 { margin-top: 0; }
.w3-owner-affiliate-public :is(.affiliate-steps, .affiliate-benefit-grid) { display: grid; align-items: start; column-gap: 30px; row-gap: 20px; padding: 0; margin: 0 0 20px; }
.w3-owner-affiliate-public .affiliate-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.w3-owner-affiliate-public .affiliate-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w3-owner-affiliate-public :is(.affiliate-step, .affiliate-benefit) { min-width: 0; min-height: 140px; padding: 20px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.w3-owner-affiliate-public .affiliate-benefit { min-height: 240px; }
.w3-owner-affiliate-public h3 { margin: 0 0 10px; color: #0f172a; font-size: 16px; font-weight: 700; line-height: 1.1; }
.w3-owner-affiliate-public :is(h1, h2, h3, p, li) { overflow-wrap: anywhere; letter-spacing: 0; }
.w3-owner-affiliate-public .affiliate-step-number { display: block; margin-bottom: 10px; color: #4f67e8; font-size: 24px; font-weight: 700; line-height: 1.42857143; }
.w3-owner-affiliate-public .affiliate-payout-note { margin-top: 15px; padding: 15px; border-left: 4px solid #16a34a; border-radius: 0 6px 6px 0; background: #f0fdf4; }
.w3-owner-affiliate-public .affiliate-payout-note ul { padding: 0; margin: 10px 0 0; list-style: none; }
.w3-owner-affiliate-public .affiliate-payout-note li { position: relative; padding-left: 15px; margin-bottom: 8px; }
.w3-owner-affiliate-public .affiliate-payout-note li::before { position: absolute; top: -2px; left: 0; color: #16a34a; content: "\2022"; font-size: 16px; font-weight: 700; }
.w3-owner-affiliate-public .affiliate-join { width: calc((100% + 30px) * 2 / 3 - 30px); padding: 19px; margin: 30px auto 20px; border: 1px solid transparent; border-radius: 8px; background: #fafafa; text-align: center; }
.w3-owner-affiliate-public .affiliate-join .button { display: inline-block; max-width: 100%; padding: 12px 30px; margin-top: 15px; border: 0; border-radius: 6px; background: #4f67e8; box-shadow: 0 2px 6px rgb(79 103 232 / 18%); color: #fff; font-size: 16px; font-weight: 700; line-height: 22px; text-transform: uppercase; text-decoration: none; white-space: normal; }
.w3-owner-affiliate-public .affiliate-join .button:hover { background: #3e55d2; }
.w3-owner-affiliate-public .affiliate-join .button:focus-visible { outline: 2px solid #4059cf; outline-offset: 3px; }
@media (max-width: 1199px) { .w3-owner-affiliate-public .affiliate-public { width: 970px; } }
@media (max-width: 991px) {
  .w3-owner-affiliate-public .affiliate-public { width: 750px; }
  .w3-owner-affiliate-public :is(.affiliate-steps, .affiliate-benefit-grid) { grid-template-columns: minmax(0, 1fr); }
  .w3-owner-affiliate-public .affiliate-join { width: 100%; }
}
@media (max-width: 767px) { .w3-owner-affiliate-public .affiliate-public { width: 100%; } }

/* Owner's final correction: desktop navigation stays available on laptop widths. */
@media (min-width:1024px) {
  body.w3-auth-page { --w3-auth-brand-track:208px; --w3-auth-menu-inset:12px; }
  .w3-auth-header .navbar-toggle { display:none !important; }
  .w3-auth-header .w3-auth-container { display:grid; grid-template-columns:var(--w3-auth-brand-track) minmax(0,1fr) auto auto; }
  .w3-auth-header .navbar-collapse { display:contents !important; position:static; }
  .w3-auth-header .w3-auth-menu { display:flex; flex-flow:row nowrap; width:auto; height:63px; margin:0; padding:0 var(--w3-auth-menu-inset); overflow-x:auto; align-items:center; }
  .w3-auth-header .w3-auth-menu > li { flex:none; }
  .w3-auth-header .w3-auth-menu > li > a { display:flex; align-items:center; min-height:48px; padding:0 13px; white-space:nowrap; font-size:12px; }
  .w3-auth-header .w3-auth-currency { grid-column:3; justify-self:stretch; padding:0 8px; }
  .w3-auth-header .w3-auth-account-tools { display:flex; flex-flow:row nowrap; align-items:center; width:auto; margin:0; padding:0 8px 0 0; border:0; }
  .w3-auth-header .w3-auth-account-tools > li > .w3-auth-tool-link { padding:0 12px; justify-content:center; min-height:48px; }
  .w3-auth-header .w3-auth-tool-link .fa-sign-out-alt { display:inline-block; }
  .w3-auth-header .w3-auth-logout-label { display:none; }
}
@media (min-width:1800px) {
  body.w3-auth-page { --w3-auth-brand-track:max(208px,calc((100% - 1120px)/2)); }
}
.w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-width:126px; gap:8px; }
@media (max-width:1023px) {
  .w3-auth-header .w3-auth-tools > li > .w3-auth-balance { min-width:144px; }
}
.w3-auth-balance .badge { font-variant-numeric:tabular-nums; white-space:nowrap; }
.w3-signin-google, .w3-auth-google { display:flex !important; justify-content:center; align-items:center; width:100%; min-width:0; }
.w3-signin-google .g_id_signin, .w3-auth-google .g_id_signin { display:flex; justify-content:center; width:100%; min-width:0; }
.w3-signin-google .g_id_signin > div, .w3-auth-google .g_id_signin > div { margin:0 auto !important; }
html[lang^="en"] .w3-auth-header .navbar-nav > li > a { text-transform:none; }
html[lang^="en"] .w3-auth-header .w3-auth-menu > li > a,
html[lang^="en"] .w3-auth-header .w3-auth-account-tools > li > a,
html[lang^="en"] .w3-auth-header .w3-auth-more .dropdown-menu > li > a { text-transform:lowercase; }
html[lang^="en"] .w3-public-header .w3-public-menu > li > a { text-transform:uppercase; }
.w3-public-footer .w3-footer-meta { flex-flow:row nowrap; gap:20px; text-align:center; }
.w3-public-footer .w3-public-footer-links { display:flex; flex-wrap:nowrap; padding:0 0 0 20px; border:0; border-left:1px solid var(--w3-border); justify-content:center; gap:16px; }
.w3-public-footer .w3-public-footer-links a { white-space:nowrap; }
.w3-public-footer .w3-footer-meta p { order:0; white-space:nowrap; }
.w3-public-footer .w3-footer-payments { grid-template-columns:repeat(8,64px); }
.w3-public-footer .w3-public-support { padding:20px 0 28px; }
.w3-public-support p { margin-bottom:8px; }
.w3-support-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
.w3-support-channels > a { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; min-width:0; border-radius:4px; }
.w3-support-channels > a + a::before { content:""; position:absolute; left:0; height:16px; width:1px; background:var(--w3-border); }
.w3-support-channels > a i { width:18px; font-size:18px; flex:none; text-align:center; }
.w3-support-channels > a span { overflow-wrap:anywhere; }
.w3-public-footer a[aria-disabled="true"] { cursor:default; text-decoration:none; }
.w3-owner-drip-empty .w3-finance-empty { padding:36px 16px; text-align:center; }
.w3-owner-drip-empty .w3-finance-empty h2 { margin:0 0 8px; font-size:16px; line-height:1.5; }
.w3-owner-drip-empty .w3-finance-empty p { margin:0 0 20px; color:var(--w3-muted); font-size:13px; }
.w3-owner-drip-empty .table { min-width:850px; }
@media (max-width:880px) {
  body.w3-public-page .w3-public-footer { padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px)); }
  .w3-public-footer .w3-footer-payments { grid-template-columns:repeat(4,64px); }
}
@media (max-width:700px) {
  .w3-public-footer .w3-footer-payments { width:min(248px,calc(100% - 72px)); grid-template-columns:repeat(auto-fit,56px); gap:8px; margin-right:72px; }
  .w3-public-footer .w3-footer-payments > span { width:56px; }
}
@media (max-width:680px) {
  .w3-public-footer .w3-footer-meta { flex-direction:column-reverse; gap:8px; }
  .w3-public-footer .w3-footer-meta p { white-space:normal; }
  .w3-public-footer .w3-public-footer-links { padding:0; border:0; }
}

/* Suppress native pointer outlines only; preserve keyboard rings and active-menu shadows. */
body:is(.w3-public-page, .w3-auth-page)
  :is(a, button, .btn, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):focus:not(:focus-visible) {
  outline: none;
}
