:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --ink: #24324a;
  --muted: #6d7b92;
  --line: #e1e7f0;
  --strong-line: #d6dce6;
  --blue: #276df1;
  --blue-2: #315df4;
  --blue-soft: #e8f0ff;
  --green: #16813b;
  --green-soft: #edf9f1;
  --amber: #b77913;
  --amber-soft: #fff7e6;
  --shadow: 0 8px 22px rgba(30, 55, 90, 0.05);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }
.hidden { display: none !important; }

html,
body { height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
select { font: inherit; }

button { cursor: pointer; }

.online-app {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  background: var(--bg);
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(105deg, #315df4, #6688ff);
  box-shadow: 0 2px 10px rgba(32, 75, 205, 0.25);
  z-index: 30;
}

.brand {
  min-width: 180px;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.community-menu{position:relative;margin-right:12px}.community-menu summary{min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:4px 10px 4px 4px;border:1px solid #d7deeb;border-radius:7px;background:#fff;color:#2f5fbf;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;list-style:none}.community-menu summary>img{width:28px;height:28px;display:block;border-radius:4px}.community-menu summary::-webkit-details-marker{display:none}.community-menu[open] summary{border-color:#9fb8eb;background:#f4f7ff}.community-popover{position:absolute;z-index:80;top:47px;right:0;width:252px;padding:15px;border:1px solid #dfe5ef;border-radius:10px;background:#fff;text-align:center;box-shadow:0 16px 40px rgba(24,42,76,.18)}.community-popover img{width:220px;height:220px;display:block;border-radius:8px;background:#fff}.community-popover strong,.community-popover small{display:block}.community-popover strong{margin-top:10px;color:#24324a;font-size:14px}.community-popover small{margin-top:4px;color:#758197;font-size:12px}

.top-spacer { flex: 1; }

.shell {
  min-height: 0;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
}

.side {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 12px;
  border-right: 1px solid #dfe5ef;
  background: #fff;
  z-index: 20;
}

.side-main,
.side-bottom { display: grid; gap: 6px; }

.nav {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #46546a;
  padding: 0 15px;
  text-align: left;
  line-height: 1;
}

.nav:hover { background: #f0f5ff; }

.nav.active {
  color: #2459df;
  background: var(--blue-soft);
  font-weight: 700;
}

.nav-icon {
  position: relative;
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #2874e8;
}

.nav-icon img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
  transform: translateY(-50%);
  opacity: 0.82;
}

.nav-active-icon,
.nav.active .nav-normal-icon { display: none; }

.nav.active .nav-active-icon { display: block; }

.nav-symbol {
  width: 28px;
  color: #2874e8;
  font-weight: 700;
}

.main {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 22px 24px 30px;
}

body[data-page="bundle"] .main,
body[data-page="profiles"] .main {
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-bottom: 24px;
}

body[data-page="bundle"] .crumb,
body[data-page="profiles"] .crumb { display: none; }

.crumb {
  width: 100%;
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.page { display: block; }
.page.bundle-page-root {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.account-logo {
  height: 34px;
  max-width: 252px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #fff;
}

.account-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2468e5;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.account-current-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.account-chevron {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.account-menu-wrap { position: relative; }

.account-logo:hover,
.account-logo[aria-expanded="true"] {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.account-logo[aria-expanded="true"] .account-chevron { transform: rotate(225deg) translate(-2px, -2px); }

.account-login-spinner {
  display: none;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.account-login-spinner.show { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.account-popover {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  width: 250px;
  max-height: min(620px, calc(100vh - 72px));
  overflow: auto;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
  color: #20252d;
  box-shadow: 0 12px 30px rgba(18, 35, 65, 0.2);
  z-index: 60;
}

.account-popover::before {
  content: "";
  position: absolute;
  right: 18px;
  top: -7px;
  width: 13px;
  height: 13px;
  border-left: 1px solid #dde2ea;
  border-top: 1px solid #dde2ea;
  background: #fff;
  transform: rotate(45deg);
}

.account-popover.show { display: block; }
.account-popover.detail { width: min(410px, calc(100vw - 28px)); }

.account-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px 10px 0 0;
  background: #fff;
}

.account-summary .account-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: #eaf3ff;
}

.account-summary-copy { min-width: 0; }
.account-summary-copy strong,
.account-summary-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary-copy strong { font-size: 13px; }
.account-summary-copy small { margin-top: 3px; color: #748096; font-size: 11px; }

.account-validity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f1f6ff;
  font-size: 12px;
}

.account-validity span { color: #627086; }
.account-validity strong { color: #176fd1; }

.account-menu {
  overflow: hidden;
  padding: 0;
  border-top: 1px solid #e5eaf0;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.account-menu-item {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  color: #20252d;
  padding: 0 15px;
  text-align: left;
  font-size: 14px;
}

.account-menu-item:last-child { border-bottom: 0; }
.account-menu-item:hover { background: #f2f7fd; }
.account-menu-item.switch { color: #0878df; }
.account-menu-icon { width: 19px; text-align: center; font-size: 18px; }
.account-detail-view { display: none; }
.account-popover.detail .account-summary,
.account-popover.detail .account-validity,
.account-popover.detail .account-menu { display: none; }
.account-popover.detail .account-detail-view { display: block; }

.account-detail-back {
  width: 100%;
  height: 42px;
  border: 0;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
  color: #1677d2;
  padding: 0 17px;
  text-align: left;
}

.account-popover-head { padding: 16px 18px; border-bottom: 1px solid #e6ebf3; background: #f5f8ff; }
.account-name-row { display: flex; align-items: center; gap: 12px; }
.account-name-row strong { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.account-popover-head > span { display: block; margin-top: 5px; color: #68758a; font-size: 13px; }
.account-popover-body { padding: 14px 18px; }
.account-info-title { margin: 4px 0 11px; font-weight: 750; }
.account-info-loading { padding: 30px; text-align: center; color: #8290a4; }
.account-info-grid { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 9px 10px; font-size: 13px; line-height: 1.5; }
.account-info-grid dt { color: #758197; }
.account-info-grid dd { margin: 0; color: #29374d; overflow-wrap: anywhere; }
.switch-team-button { height: 28px; border: 1px solid #9eb6ee; border-radius: 6px; background: #fff; color: #315df4; padding: 0 10px; font-size: 12px; font-weight: 650; white-space: nowrap; }

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 2px;
  background: #fff;
}

.home-page,
.module-page { width: 100%; max-width: none; margin: 0; }

.home-head,
.list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-head h1,
.list-heading h1 {
  margin: 0 0 6px;
  color: #1f2d42;
  font-size: 22px;
  line-height: 1.2;
}

.home-head p,
.list-heading p {
  margin: 0;
  color: #758197;
  font-size: 13px;
  line-height: 1.6;
}

.primary,
.secondary {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 17px;
  font-weight: 650;
  white-space: nowrap;
}

.primary {
  border: 0;
  color: #fff;
  background: #278bf2;
}

.primary:hover { background: #167be0; }

.secondary {
  border: 1px solid #b9c9ef;
  color: #2468e5;
  background: #fff;
}

.secondary:hover { background: #f5f8ff; }
.danger-outline {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ff6b6b;
  border-radius: 7px;
  padding: 0 14px;
  color: #ff3b30;
  background: #fff;
  font-weight: 650;
}
.danger-outline:hover { background: #fff5f5; }

.home-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.home-card,
.home-membership-panel,
.home-bank-section,
.home-tax-section,
.home-protocol-panel,
.module {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.home-license-card { padding: 18px 20px; }

.home-license-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.home-label,
.home-license-top span { color: var(--muted); font-size: 12px; }

.home-license-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}

.home-license-title h2 {
  margin: 0;
  color: #1f2d42;
  font-size: 20px;
  line-height: 1.2;
}

.home-renew-button {
  height: 28px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  color: #fff;
  background: #2864d9;
  font-size: 12px;
  font-weight: 700;
}

.home-days {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--blue);
  white-space: nowrap;
}

.home-days strong { font-size: 32px; line-height: 1; }

.home-progress-meta,
.home-license-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.home-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  margin: 8px 0 13px;
  background: #e7edf7;
}

.home-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315df4, #20a6ff);
}

.home-license-foot strong { color: #24324a; }

.home-account-card {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.home-account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.home-account-line strong,
.home-entity-line strong {
  display: block;
  margin-bottom: 3px;
  color: #24324a;
  font-size: 15px;
}

.home-entity-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #edf1f6;
}

.home-entity-line span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.home-status {
  min-width: 54px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
}

.home-status.ok { color: var(--green); background: var(--green-soft); }
.home-status.warn { color: var(--amber); background: var(--amber-soft); }
.home-status.muted { color: #64748b; background: #eef2f7; }

.home-membership-panel,
.home-bank-section,
.home-tax-section { margin-bottom: 16px; padding: 0 22px 18px; }

.home-membership-head,
.section-title-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-membership-head h2,
.section-title-row h2 {
  margin: 0;
  color: #111;
  font-size: 24px;
  line-height: 1.2;
}

.round-add {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #0068b5;
  color: #fff;
  font: 600 20px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.section-more {
  margin-left: auto;
  border: 0;
  color: #0071e3;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.home-membership-grid {
  display: grid;
  grid-template-columns: 150px minmax(180px, 1fr) 150px minmax(180px, 1fr);
  gap: 0 22px;
  margin: 0;
  border-top: 1px solid var(--strong-line);
}

.home-membership-grid dt,
.home-membership-grid dd {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.home-membership-grid dt { color: #6d7b92; }
.home-membership-grid dd { margin: 0; color: #24324a; }
.home-membership-grid .wide { grid-column: span 1; }
.home-membership-grid dd.wide { grid-column: span 3; }

.simple-table { overflow: auto; border-top: 1px solid var(--strong-line); border-bottom: 1px solid var(--strong-line); }

.home-bank-head,
.home-bank-row,
.home-tax-head,
.home-tax-row,
.home-protocol-head,
.home-protocol-row {
  display: grid;
  align-items: center;
  gap: 18px;
  min-width: 790px;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.home-bank-head,
.home-tax-head,
.home-protocol-head {
  min-height: 36px;
  color: #555;
  font-size: 12px;
}

.home-bank-row,
.home-tax-row,
.home-protocol-row { min-height: 50px; color: #333; }
.home-bank-row:last-child,
.home-tax-row:last-child,
.home-protocol-row:last-child { border-bottom: 0; }

.home-bank-head,
.home-bank-row { grid-template-columns: minmax(190px, 1.3fr) minmax(100px, 0.8fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) minmax(100px, 0.8fr) 56px; }
.home-tax-head,
.home-tax-row { grid-template-columns: minmax(300px, 1.7fr) minmax(100px, 0.7fr) minmax(140px, 0.9fr) minmax(165px, 1fr) 56px; }
.home-protocol-head,
.home-protocol-row { grid-template-columns: minmax(240px, 1.5fr) minmax(190px, 1fr) 140px 84px 108px; }

.home-app-head,
.home-app-row,
.home-bundle-head,
.home-bundle-row {
  min-width: 790px;
  display: grid;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}

.home-app-head,
.home-bundle-head {
  min-height: 36px;
  color: #555;
  font-size: 12px;
}

.home-app-row,
.home-bundle-row { min-height: 50px; color: #333; }
.home-app-row:last-child,
.home-bundle-row:last-child { border-bottom: 0; }
.home-app-head,
.home-app-row { grid-template-columns: minmax(180px, 1.2fr) minmax(100px, 0.75fr) minmax(170px, 1fr) minmax(80px, 0.55fr) minmax(82px, 0.55fr) 70px; }
.home-bundle-head,
.home-bundle-row { grid-template-columns: minmax(250px, 1.5fr) minmax(180px, 1fr) minmax(90px, 0.55fr) minmax(150px, 0.9fr) 56px; }
.home-app-row > *,
.home-bundle-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-table-empty,
.home-membership-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.home-membership-empty p { margin: 0; }
.live-notice { width: 100%; max-width: none; margin: 0 0 14px; }

.link-button,
.row-menu {
  border: 0;
  color: #0071e3;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
}

.row-menu { width: 42px; text-align: center; font-weight: 700; letter-spacing: 1px; }
.home-tax-warning { color: #f0b400; }
.home-protocol-panel { overflow: auto; margin-bottom: 22px; }
.home-protocol-head,
.home-protocol-row { padding: 0 18px; }
.home-protocol-name strong { display: block; color: #24324a; font-size: 14px; }
.home-protocol-meta { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.module { overflow: hidden; }

.bundle-page {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  margin: 0;
}

.bundle-module {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.module-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid #e8edf4;
}

.module-title { color: #1f2d42; font-size: 17px; font-weight: 750; }
.table-meta { color: var(--muted); font-size: 12px; }
.module-actions { margin-left: auto; display: flex; gap: 10px; }
.icon-button {
  width: 44px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.data-table-wrap { overflow: auto; }

.bundle-list-scroll {
  min-height: 0;
  overflow: hidden;
  display: flex;
}

.bundle-list-scroll > .data-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.profile-list-scroll > .data-table-wrap { overscroll-behavior: contain; }

.bundle-list-scroll > .empty,
.bundle-list-scroll > .loading-state {
  flex: 1 1 auto;
  min-height: 0;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: #667085;
  background: #f7f9fd;
  font-size: 12px;
  font-weight: 650;
}

.data-table tr:last-child td { border-bottom: 0; }

.app-actions { display: inline-flex; align-items: center; gap: 8px; }
.app-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f0f4fa;
  color: #617087;
  font-size: 12px;
  font-weight: 700;
}
.app-status.ok { background: var(--green-soft); color: var(--green); }
.app-status.warn { background: var(--amber-soft); color: var(--amber); }
.app-status.bad { background: #fff0f0; color: #c82828; }

.app-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
  padding: 18px;
}

.apps-list-page { width: 100%; min-height: calc(100vh - 110px); display: flex; }
.apps-module { width: 100%; min-height: calc(100vh - 110px); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.apps-list-body { min-height: 0; overflow: auto; }

.app-card {
  position: relative;
  min-width: 0;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.app-card:hover,
.app-card:focus-within { border-color: #b5c7f2; box-shadow: 0 9px 22px rgba(35, 73, 146, .1); transform: translateY(-1px); }

.app-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 25px; }
.app-card-icon-wrap { width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; border: 1px solid #d7dfeb; border-radius: 8px; background: #f4f7fb; }
.app-card-icon,
.app-card-icon-fallback { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; }
.app-card-icon-fallback { color: #3267e9; background: #eaf1ff; font-size: 22px; font-weight: 750; }
.app-card-title { min-width: 0; display: grid; gap: 4px; }
.app-card-title strong { overflow: hidden; color: #24324a; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.app-card-title span { overflow: hidden; color: #77849a; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.app-more-button { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 6px; color: #75839a; background: transparent; font-size: 20px; line-height: 20px; letter-spacing: 1px; }
.app-more-button:hover,
.app-more-button:focus-visible { color: #2459df; background: #edf3ff; outline: 0; }
.app-card-meta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(74px, .8fr); gap: 12px; margin: 18px 0 17px; padding-top: 14px; border-top: 1px solid #edf1f6; }
.app-card-meta div { min-width: 0; }
.app-card-meta dt { margin-bottom: 3px; color: #8793a6; font-size: 11px; }
.app-card-meta dd { overflow: hidden; margin: 0; color: #34445c; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; margin-top: auto; }
.app-card-foot .app-actions { margin-left: auto; }
.app-grid-empty { padding: 58px 20px; color: #77849a; text-align: center; }

.app-download-mask { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 22px; background: rgba(20, 31, 51, .42); }
.app-download-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 44px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgba(15, 31, 60, .3); }
.app-region-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(660px, calc(100vh - 44px)); }
.app-download-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e8edf4; }
.app-download-head > div { display: grid; gap: 4px; min-width: 0; }
.app-download-head strong { color: #17233a; font-size: 17px; }
.app-download-head span { overflow: hidden; color: #758197; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.app-download-body { min-height: 0; overflow: auto; padding: 18px 20px; }
.app-download-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 13px 20px; border-top: 1px solid #e8edf4; }
.app-dialog-loading,
.app-dialog-empty,
.app-dialog-error { padding: 56px 12px; color: #758197; text-align: center; }
.app-dialog-error { color: #c82828; }
.app-region-summary { margin-bottom: 12px; color: #758197; font-size: 12px; }
.app-region-search { width: 100%; height: 38px; margin-bottom: 10px; border: 1px solid #cfd9e8; border-radius: 6px; padding: 0 11px; color: #24324a; outline: 0; }
.app-region-search:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53, 141, 240, .12); }
.app-region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.app-region-option { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 10px 12px; border: 1px solid #dce4ef; border-radius: 7px; color: #2f4059; background: #fff; text-align: left; }
.app-region-option:hover { border-color: #9fb8f1; background: #f7faff; }
.app-region-option > span { min-width: 0; display: grid; gap: 3px; }
.app-region-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.app-region-option small { overflow: hidden; color: #8490a2; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.app-region-option b { color: #2864e8; font-size: 18px; font-weight: 400; }
.app-region-option.disabled { cursor: not-allowed; color: #a2acba; background: #f7f9fc; }
.app-region-option.disabled small { color: #a2acba; }
.app-region-option[hidden] { display: none; }
.app-region-empty { padding: 48px 12px; color: #758197; text-align: center; }
.app-qr-dialog { width: min(440px, calc(100vw - 32px)); }
.app-qr-body { display: grid; place-items: center; padding: 28px 20px 22px; }
.app-qr-image { width: 246px; height: 246px; display: block; image-rendering: pixelated; border: 1px solid #e6ebf3; }
.app-qr-hint { margin: 12px 0 0; color: #758197; font-size: 12px; }
.app-qr-actions { flex-wrap: wrap; }

.app-store-page { min-height: calc(100vh - 110px); margin: -4px -2px 0; background: #fff; border: 1px solid #d9e1ed; border-radius: 8px; overflow: hidden; }
.app-store-appbar { min-height: 82px; display: flex; align-items: center; gap: 28px; padding: 12px 18px; border-bottom: 1px solid #dfe5ee; }
.app-store-identity { display: flex; align-items: center; gap: 12px; min-width: 230px; }
.app-store-icon { width: 48px; height: 48px; flex: 0 0 48px; overflow: hidden; border-radius: 11px; border: 1px solid #d7dfeb; background: #f4f7fb; }
.app-store-icon .app-card-icon,
.app-store-icon .app-card-icon-fallback { width: 100%; height: 100%; }
.app-store-identity strong { display: block; color: #171717; font-size: 17px; }
.app-store-identity span { display: block; margin-top: 3px; color: #777; font-size: 11px; }
.app-store-tabs { display: flex; align-self: stretch; align-items: center; gap: 26px; color: #0071e3; font-size: 15px; white-space: nowrap; }
.app-store-tabs span { height: 100%; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; }
.app-store-tabs span.active { border-bottom-color: #0071e3; }
.app-store-toolbar { display: flex; gap: 8px; margin-left: auto; }
.app-store-workspace { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 192px); }
.app-store-sidebar { padding: 23px 14px 30px; border-right: 1px solid #dfe5ee; background: #fff; }
.app-store-sidebar h2 { margin: 0 6px 12px; color: #333; font-size: 14px; }
.app-version-list { display: grid; gap: 3px; }
.app-version-item { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 7px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 4px; color: #333; background: transparent; text-align: left; }
.app-version-item:hover { background: #f4f7fb; }
.app-version-item.active { background: #eef0f3; }
.app-version-item i { width: 9px; height: 9px; border-radius: 50%; background: #8490a2; }
.app-version-item i.bad { background: #d71935; }
.app-version-item i.ok { background: #0b8f3c; }
.app-version-item i.warn { background: #e19a00; }
.app-version-item i.muted { background: #7d8794; }
.app-version-item span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.app-version-item small { color: #777; font-size: 10px; white-space: nowrap; }
.app-add-platform { margin: 14px 6px 18px; padding: 0; border: 0; color: #0071e3; background: transparent; font-size: 12px; }
.app-sidebar-divider { height: 1px; margin: 0 6px 18px; background: #dfe5ee; }
.app-store-sidebar h3 { margin: 0 6px 8px; color: #444; font-size: 12px; }
.app-side-link { width: 100%; display: block; padding: 7px 10px; border: 0; border-radius: 4px; color: #4e5968; background: transparent; font-size: 12px; text-align: left; }
.app-side-link.active { color: #30343a; background: #f3f3f3; }
.app-detail-main { min-width: 0; padding: 28px 24px 50px; overflow: hidden; }
.app-detail-titlebar { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #dfe5ee; }
.app-detail-titlebar h1 { margin: 0 0 10px; color: #161616; font-size: 24px; line-height: 1.2; }
.app-detail-state { display: inline-flex; align-items: center; gap: 7px; color: #555; font-size: 12px; }
.app-detail-state i { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: #7e8791; }
.app-detail-state.bad { color: #c51e37; }
.app-detail-state.bad i { background: #d71935; }
.app-detail-state.ok { color: #13853e; }
.app-detail-state.ok i { background: #0b8f3c; }
.app-detail-state.warn i { background: #e19a00; }
.app-detail-title-actions { display: flex; gap: 8px; }
.app-detail-title-actions button[disabled] { color: #b8b8b8; background: #fff; border-color: #d6d6d6; cursor: not-allowed; }
.app-review-warning { display: flex; gap: 13px; margin: 20px 0 18px; padding: 17px 18px; border: 1px solid #f2b8bf; border-radius: 4px; background: #fff0f1; }
.app-review-warning-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border: 2px solid #df1734; border-radius: 50%; color: #df1734; font-size: 15px; font-weight: 750; }
.app-review-warning-copy { min-width: 0; color: #333; font-size: 13px; }
.app-review-warning-copy strong { display: block; margin-bottom: 7px; color: #111; font-size: 15px; }
.app-review-warning-copy p { margin: 0 0 7px; }
.app-review-warning-copy ul { margin: 0 0 8px; padding-left: 19px; }
.app-review-link { padding: 0; border: 0; color: #0071e3; background: transparent; font-size: 13px; }
.app-review-attachments { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 20px; padding: 0 3px; color: #444; font-size: 12px; }
.app-review-attachment-list { display: grid; gap: 5px; }
.app-review-attachment { display: flex; align-items: center; gap: 6px; }
.app-review-attachment a { color: #0071e3; text-decoration: none; }
.app-review-attachment a:hover { text-decoration: underline; }
.app-review-download { margin-left: 4px; }
.app-review-file-icon { width: 12px; height: 14px; display: inline-block; border: 1px solid #aab4c2; border-radius: 2px; background: linear-gradient(135deg, transparent 0 66%, #e5eaf1 67%); }
.app-detail-section { margin-top: 22px; }
.app-detail-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-detail-section-head h2 { margin: 0; color: #333; font-size: 16px; }
.app-detail-section-head span { color: #0071e3; font-size: 11px; }
.app-screenshot-tabs { display: flex; gap: 18px; margin-bottom: 9px; color: #0071e3; font-size: 11px; }
.app-screenshot-tabs button { padding: 0 0 5px; border: 0; border-bottom: 2px solid transparent; color: #0071e3; background: transparent; font-size: 11px; }
.app-screenshot-tabs button.active { border-bottom-color: #0071e3; }
.app-screenshot-stage { position: relative; min-height: 230px; padding: 15px 15px 31px; border: 1px solid #cbd4df; border-radius: 3px; background: #fff; }
.app-screenshot-device { display: flex; align-items: center; gap: 10px; color: #222; font-size: 11px; }
.app-screenshot-device span { width: 13px; height: 27px; display: inline-block; border: 1px solid #222; border-radius: 3px; }
.app-screenshot-list { display: flex; align-items: flex-start; gap: 10px; margin-top: 13px; overflow: hidden; }
.app-screenshot-list img { width: 96px; height: 170px; flex: 0 0 auto; object-fit: cover; border-radius: 4px; background: #f2f3f5; }
.app-screenshot-count { position: absolute; bottom: 10px; left: 15px; color: #555; font-size: 11px; }
.app-promotional-field { min-height: 68px; padding: 12px; border: 1px solid #cbd4df; border-radius: 3px; color: #555; font-size: 12px; white-space: pre-wrap; }
.app-detail-loading,.app-detail-error { display: grid; place-items: center; gap: 12px; min-height: 280px; color: #6b7280; text-align: center; }
.app-detail-loading span { width: 22px; height: 22px; border: 2px solid #d8e3f5; border-top-color: #0071e3; border-radius: 50%; animation: app-detail-spin .8s linear infinite; }
@keyframes app-detail-spin { to { transform: rotate(360deg); } }
.app-detail-error p { margin: 0; }
.app-review-submission-mask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(22, 31, 45, .42); }
.app-review-submission-dialog { width: min(820px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(25, 37, 56, .28); }
.app-review-submission-dialog > header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid #e2e7ef; }
.app-review-submission-dialog > header h2 { margin: 0 0 4px; color: #171717; font-size: 18px; }
.app-review-submission-dialog > header span { color: #758197; font-size: 12px; }
.app-review-submission-body { min-height: 0; overflow: auto; padding: 20px 22px; color: #333; }
.app-review-dialog-reasons { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #f2b8bf; border-radius: 4px; background: #fff6f6; }
.app-review-dialog-reasons h3 { margin: 0 0 9px; font-size: 14px; }
.app-review-dialog-reasons ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.app-review-dialog-reasons li { line-height: 1.5; }
.app-review-dialog-reasons li strong { margin-right: 6px; }
.app-review-message { padding: 15px 0; border-top: 1px solid #e4e9ef; }
.app-review-message-meta { margin-bottom: 9px; color: #758197; font-size: 11px; }
.app-review-message-body { color: #333; font-size: 13px; line-height: 1.65; }
.app-review-message-body h2 { margin: 18px 0 8px; font-size: 16px; }
.app-review-message-body h3 { margin: 14px 0 6px; font-size: 14px; }
.app-review-message-body p { margin: 0 0 9px; }
.app-review-message-body a { color: #0071e3; }
.app-review-dialog-empty { padding: 40px 0; color: #758197; text-align: center; }
.app-review-submission-dialog > footer { display: flex; justify-content: flex-end; padding: 13px 22px; border-top: 1px solid #e2e7ef; }

.certificate-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bundle-actions { display: flex; align-items: center; gap: 8px; }
.bundle-id-table .bundle-name,
.bundle-id-table .bundle-id { color: #344054; font-weight: 650; }
.bundle-id-table thead th,
.profile-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.profile-table { width: 100%; min-width: 0; table-layout: fixed; }
.profile-table th,
.profile-table td { padding: 0 clamp(4px, 1vw, 12px); overflow: hidden; text-overflow: ellipsis; }
.profile-table th:nth-child(1), .profile-table td:nth-child(1) { width: 23%; }
.profile-table th:nth-child(2), .profile-table td:nth-child(2) { width: 18%; }
.profile-table th:nth-child(3), .profile-table td:nth-child(3) { width: 14%; }
.profile-table th:nth-child(4), .profile-table td:nth-child(4) { width: 7%; }
.profile-table th:nth-child(5), .profile-table td:nth-child(5) { width: 14%; }
.profile-table th:nth-child(6), .profile-table td:nth-child(6) { width: 8%; }
.profile-table th:nth-child(7), .profile-table td:nth-child(7) { width: 16%; }
.profile-table .bundle-name { color: #344054; font-weight: 650; }
.profile-actions { width: 100%; display: flex; align-items: center; gap: 6px; }
.profile-actions button { min-width: 0; height: 28px; padding: 0 7px; font-size: 12px; }
.profile-bundle-id { color: #31506f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.profile-bundle-id.loading { color: #7a8797; font-style: italic; }
.profile-bundle-id.error { color: #b45309; }
.profile-status { color: #24324a; font-weight: 700; }
.certificate-p12-label { color: var(--muted); font-size: 12px; }
.certificate-p12-label strong { margin-left: 4px; color: #24324a; }
.danger { border: 0; color: #fff; background: #c65a00; }
.danger:hover { background: #af4e00; }

.certificate-table-wrap { min-height: 0; flex: 1; overflow: auto; }
.certificate-table { min-width: 960px; table-layout: fixed; }
.certificate-table th,
.certificate-table td { height: 46px; padding: 0 11px; font-size: 11px; }
.certificate-table th { background: #f4f7fb; font-size: 10px; }
.certificate-table th:nth-child(1), .certificate-table td:nth-child(1) { width: 18%; }
.certificate-table th:nth-child(2), .certificate-table td:nth-child(2) { width: 21%; }
.certificate-table th:nth-child(3), .certificate-table td:nth-child(3) { width: 7%; }
.certificate-table th:nth-child(4), .certificate-table td:nth-child(4) { width: 13%; }
.certificate-table th:nth-child(5), .certificate-table td:nth-child(5) { width: 7%; }
.certificate-table th:nth-child(6), .certificate-table td:nth-child(6) { width: 34%; }
.certificate-table td:not(:last-child) { overflow: hidden; text-overflow: ellipsis; }
.certificate-name { color: #344054; font-weight: 700; }
.certificate-table .certificate-actions { justify-content: flex-start; gap: 6px; }
.certificate-table .certificate-actions button { height: 26px; border-radius: 5px; padding: 0 10px; font-size: 11px; }
.certificate-table .certificate-p12-label { font-size: 11px; white-space: nowrap; }
.certificate-table .certificate-p12-label strong { margin-left: 3px; }
.certificate-table .danger-outline { border-color: #ff4d4f; color: #f5222d; font-weight: 500; }
.certificate-create-mask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(20, 33, 55, .32); }
.certificate-create-dialog { width: min(720px, calc(100vw - 48px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 20px 60px rgba(25, 45, 80, .24); }
.certificate-dialog-head { height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e8edf4; color: #1f2d42; }
.certificate-dialog-head strong { font-size: 15px; }
.certificate-dialog-body { min-height: 0; overflow: auto; padding: 16px 18px 0; }
.certificate-type-groups { display: grid; gap: 16px; }
.certificate-type-group h4 { margin: 0 0 8px; color: #1f2b3f; font-size: 13px; }
.certificate-type-options { display: grid; gap: 7px; }
.certificate-type-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; padding: 10px 11px; border: 1px solid #dce4ef; border-radius: 7px; cursor: pointer; }
.certificate-type-option:has(input:checked) { border-color: #3478f6; background: #f1f6ff; }
.certificate-type-option.disabled { background: #f7f8fa; color: #9aa3b2; cursor: not-allowed; }
.certificate-type-option input { margin-top: 3px; }
.certificate-type-option strong, .certificate-type-option small { display: block; }
.certificate-type-option strong { font-size: 12px; }
.certificate-type-option small { margin-top: 3px; color: #7a8799; font-size: 11px; line-height: 1.45; }
.certificate-type-option .certificate-type-reason { color: #dc2626; }
.certificate-app-field { display: grid; gap: 6px; margin-top: 16px; color: #536176; font-size: 12px; }
.certificate-app-field select { height: 34px; padding: 0 9px; border: 1px solid #cfd8e6; border-radius: 6px; background: #fff; color: #27364c; }
.certificate-password-dialog { width: min(500px, calc(100vw - 48px)); }
.certificate-password-dialog .certificate-dialog-body { padding-bottom: 2px; }
.certificate-password-intro strong { color: #24324a; font-size: 14px; }
.certificate-password-intro p { margin: 6px 0 0; color: #718096; font-size: 12px; line-height: 1.65; }
.certificate-password-fields { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.certificate-password-field { min-width: 0; display: grid; gap: 6px; color: #536176; font-size: 12px; }
.certificate-password-field input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid #cfd8e6; border-radius: 6px; outline: 0; color: #27364c; background: #fff; }
.certificate-password-field input:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53, 141, 240, .12); }
.certificate-dialog-body .form-error { min-height: 22px; margin: 10px 0 0; color: #dc2626; font-size: 12px; }
.certificate-dialog-foot { flex: none; display: flex; justify-content: flex-end; gap: 9px; padding: 13px 18px 16px; border-top: 1px solid #e8edf4; }
.certificate-dialog-foot button { height: 32px; min-width: 74px; border-radius: 6px; font-size: 12px; }
.empty,
.loading-state {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a96a8;
  text-align: center;
}

.empty-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf4ff;
  color: #3378e8;
  font-size: 27px;
}

.empty strong { color: #536176; font-size: 16px; }
.empty p { max-width: 430px; margin: 0; line-height: 1.7; }

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

.placeholder-card {
  min-height: 168px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.placeholder-card h2 { margin: 0 0 10px; font-size: 18px; }
.placeholder-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.review-guidance-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 25;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #2f6cf4, #4a83ff);
  box-shadow: 0 14px 30px rgba(47, 108, 244, 0.32);
  font-weight: 750;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.review-guidance-float.dragging { cursor: grabbing; opacity: 0.92; }

.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 31, 51, 0.42);
}

.dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(15, 31, 60, 0.3);
}

.dialog-head {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-bottom: 1px solid #e8edf4;
}

.dialog-head strong { color: #17233a; font-size: 16px; }

.dialog-close {
  margin-left: auto;
  border: 0;
  color: #96a0ad;
  background: transparent;
  font-size: 22px;
}

.dialog-body { padding: 18px 20px 12px; }

.account-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.account-picker-head p { margin: 0; color: #56657a; font-size: 13px; }

.account-card-list { display: grid; gap: 10px; }

.account-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
  text-align: left;
}

.account-card:hover,
.account-card.active { border-color: #8fb3ff; background: #f7faff; }

.account-card strong { display: block; margin-bottom: 7px; color: #17233a; font-size: 15px; }
.account-card small { display: block; color: #748096; font-size: 12px; }
.web-badge { display: inline-flex; min-height: 22px; align-items: center; margin-right: 6px; padding: 0 8px; border-radius: 5px; color: #176fd1; background: #eaf3ff; font-weight: 650; }
.account-card .secondary { height: 32px; }
.empty.compact { min-height: 150px; }
.loading-state.compact { min-height: 180px; }
.empty.compact p { margin: 0; }

.login-back {
  border: 0;
  background: transparent;
  color: #2468e5;
  padding: 0;
  margin-bottom: 10px;
}

.section-title { margin-bottom: 10px; color: #17233a; font-weight: 750; }

.account-grid,
.proxy-free-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field { margin-bottom: 11px; }
.field label { display: block; margin-bottom: 5px; color: #4b5870; font-size: 13px; }
.field input,
.field select {
  width: 100%;
  height: 38px;
  border: 1px solid #d4dce8;
  border-radius: 6px;
  padding: 0 11px;
  outline: 0;
}

.field input:focus,
.field select:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53, 141, 240, 0.12); }

.form-error {
  min-height: 20px;
  color: #c02f24;
  font-size: 13px;
  line-height: 1.5;
}

.field[hidden] { display: none !important; }

.remember-row {
  min-height: 28px;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: -2px 0 10px;
  color: #4b5870;
  font-size: 13px;
}

.remember-row input { margin: 3px 0 0; }
.remember-row strong { display: block; color: #24324a; font-weight: 700; }
.remember-row small { display: block; margin-top: 2px; color: #748096; line-height: 1.45; }

.network-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f7faff;
}

.network-summary strong { display: block; color: #24324a; font-size: 13px; }
.network-summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.notice-box {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #b8d9fb;
  border-radius: 7px;
  background: #eef7ff;
  color: #315d82;
  font-size: 13px;
}

.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.login-required {
  display: grid;
  justify-items: center;
  padding: 10px 18px 14px;
  text-align: center;
}

.login-required-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 50%;
  color: #fff;
  background: #3478ee;
  font-size: 30px;
  font-weight: 750;
}

.login-required > strong { color: #17233a; font-size: 17px; }
.login-required > p { max-width: 390px; margin: 9px 0 8px; color: #6d7a8e; font-size: 13px; line-height: 1.7; }
.login-required-actions { width: 100%; justify-content: center; margin-top: 14px; }

.twofa-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
}

.method-card {
  display: block;
  padding: 12px;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
}

.method-card + .method-card { margin-top: 10px; }
.method-card strong { display: block; color: #17233a; }
.method-card small { color: var(--muted); font-size: 12px; }
.twofa-panel { padding: 14px; border: 1px solid #d8e0eb; border-radius: 9px; background: #fbfcff; }
.twofa-copy { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  min-height: 40px;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  box-shadow: 0 16px 40px rgba(23, 34, 51, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.home-status.bad { color: #cf2b22; background: #fff1f0; }

.home-legal-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #f1b44a;
  border-left: 4px solid #f59f00;
  border-radius: 8px;
  background: #fff7e8;
  box-shadow: var(--shadow);
}

.home-alert-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0cf;
  color: #d97706;
  font-size: 16px;
  font-weight: 800;
}

.home-alert-copy { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.home-alert-copy strong { color: #24324a; font-size: 14px; white-space: nowrap; }
.home-alert-copy span { color: #24324a; font-size: 13px; line-height: 1.45; }
.home-alert-copy small { height: 20px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 999px; background: #fff1d4; color: #9a5b00; font-size: 12px; font-weight: 650; }
.home-alert-action { height: 32px; border: 0; border-radius: 7px; background: #f59f00; color: #111827; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 750; }

.home-paid-agreement-notice,
.home-business-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #b8d9fb;
  border-radius: 6px;
  background: #eef7ff;
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.home-business-notices { display: grid; gap: 10px; margin-bottom: 16px; }
.home-business-notice.warning { border-color: #f3d98b; background: #fff9e8; }
.home-paid-agreement-icon,
.home-business-notice-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 2px solid #0875d1; border-radius: 50%; color: #0875d1; font-size: 13px; font-weight: 800; line-height: 1; }
.home-business-notice.warning .home-business-notice-icon { border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; background: #ffc400; color: #fff; padding-top: 6px; }
.home-business-notice-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.home-business-notice-links { display: flex; gap: 8px; flex-wrap: wrap; }
.home-inline-link,
.home-business-link { border: 0; background: transparent; color: #0875d1; padding: 0; font: inherit; font-weight: 650; cursor: pointer; }
.home-inline-link:hover,
.home-business-link:hover { text-decoration: underline; }

.home-bank-section,
.home-tax-section,
.home-compliance-panel { margin-bottom: 22px; padding: 0 28px 18px; color: #1d1d1f; }
.home-bank-title-row,
.home-tax-title-row { min-height: 64px; display: flex; align-items: center; gap: 10px; background: #fff; }
.home-bank-title-row h2,
.home-tax-title-row h2 { margin: 0; color: #111; font-size: 24px; line-height: 1.2; font-weight: 700; }
.home-bank-empty { height: 200px; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.home-bank-empty-add { height: 28px; border: 1px solid #0071e3; border-radius: 3px; background: #0071e3; color: #fff; padding: 0 12px; font: 600 13px/26px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.home-bank-add,
.home-tax-add { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #0068b5; color: #fff; font: 600 20px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: inline-flex; align-items: center; justify-content: center; }
.home-bank-more { margin-left: auto; border: 0; background: transparent; color: #0066cc; font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.home-bank-table,
.home-tax-table { border-top: 1px solid #d6d6d6; border-bottom: 1px solid #d6d6d6; overflow: auto; }
.home-bank-head,
.home-bank-row { grid-template-columns: minmax(210px, 1.25fr) minmax(160px, 1fr) minmax(120px, .75fr) minmax(120px, .75fr) minmax(120px, .7fr) 42px; min-width: 850px; gap: 18px; }
.home-bank-head { height: 34px; border-bottom: 1px solid #d6d6d6; }
.home-bank-row { min-height: 50px; border-bottom: 1px solid #d6d6d6; }
.home-bank-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-bank-account-link,
.home-bank-menu,
.home-tax-name,
.home-tax-menu { border: 0; background: transparent; color: #0066cc; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.home-bank-menu,
.home-tax-menu { width: 42px; text-align: center; font-weight: 700; letter-spacing: 1px; }
.home-bank-status.ok { color: #333; }
.home-bank-status.warn { color: #9a6700; }
.home-bank-status.bad { color: #c62828; }

.home-tax-head,
.home-tax-row { grid-template-columns: minmax(300px, 1.7fr) minmax(100px, .7fr) minmax(120px, .8fr) minmax(165px, 1fr) 72px; min-width: 790px; gap: 18px; border-bottom: 1px solid #d6d6d6; }
.home-tax-head { height: 36px; }
.home-tax-row { min-height: 50px; }
.home-tax-head span:first-child,
.home-tax-row .home-tax-name { padding-left: 14px; }
.home-tax-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tax-warning { color: #ffc400; font-size: 13px; }
.home-tax-success { color: #34a853; font-size: 13px; }
.home-tax-empty { padding: 24px 0; color: #6e6e73; font-size: 13px; }

.home-protocol-head,
.home-protocol-row {
  grid-template-columns: minmax(260px, 1.45fr) minmax(220px, 1.1fr) minmax(170px, .85fr) minmax(150px, .78fr) 92px 120px;
  min-width: 1010px;
  gap: 16px;
  padding: 0 20px;
}

.home-protocol-row { min-height: 58px; }
.home-protocol-operation { display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.home-protocol-view { width: 108px; height: 32px; border: 1px solid #b9c9ef; border-radius: 6px; background: #fff; color: #276df1; padding: 0 8px; font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; }
.home-country-cell { display: flex; align-items: center; gap: 5px; min-width: 0; color: #52627a; font-size: 12px; white-space: nowrap; }
.home-country-cell span { overflow: hidden; text-overflow: ellipsis; }
.home-country-link { border: 0; background: transparent; color: #0875d1; padding: 0; font: inherit; font-weight: 650; }

.home-compliance-panel { margin-top: 22px; overflow: auto; padding: 16px 26px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.home-compliance-title { padding: 0 0 14px; font-size: 16px; font-weight: 700; }
.home-compliance-head,
.home-compliance-row { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(190px, 1.05fr) minmax(150px, .85fr) minmax(95px, .55fr) 90px; gap: 16px; align-items: center; min-width: 780px; border-bottom: 1px solid #d5d5d5; }
.home-compliance-head { min-height: 34px; color: #555; font-size: 11px; }
.home-compliance-row { min-height: 44px; font-size: 12px; }
.home-compliance-name { color: #0875d1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-compliance-action { border: 0; background: transparent; color: #0875d1; padding: 0; font: inherit; font-size: 13px; white-space: nowrap; }
.home-compliance-empty { padding: 22px 0; border-bottom: 1px solid #d5d5d5; color: #6e6e73; font-size: 13px; }
.home-compliance-panel .home-status { height: 18px; min-width: 70px; padding: 0 12px; color: #687385; background: #edf1f6; font-size: 10px; letter-spacing: .25px; }

.home-tax-detail-page { max-width: 1180px; margin: 0 auto; color: #1d1d1f; }
.home-tax-back { border: 0; background: transparent; color: #0066cc; padding: 0; margin: 0 0 16px; font: inherit; font-size: 14px; }
.home-tax-detail-notice { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #b8d9fb; border-radius: 7px; background: #eef7ff; color: #315d82; }
.home-tax-info-icon { width: 20px; height: 20px; display: inline-grid; place-items: center; flex: 0 0 20px; border-radius: 50%; border: 2px solid #0875d1; color: #0875d1; font-weight: 800; }
.home-tax-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.home-tax-detail-head h1 { margin: 0 0 6px; color: #111; font-size: 26px; line-height: 1.2; }
.home-tax-detail-head p { margin: 0; color: #6e6e73; line-height: 1.6; }
.home-tax-downloads { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.home-tax-downloads button, .home-tax-link-button { border: 0; background: transparent; color: #0066cc; padding: 0; font: inherit; }
.home-tax-downloads i { width: 1px; height: 13px; background: #c8c8c8; }
.home-tax-meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; padding: 14px 18px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; }
.home-tax-meta-grid strong { display: block; margin-bottom: 5px; color: #555; font-size: 12px; }
.home-tax-meta-grid input { width: 100%; height: 34px; border: 1px solid #d4dce8; border-radius: 6px; padding: 0 10px; }
.home-tax-form-section { margin-bottom: 18px; padding: 18px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; }
.home-tax-form-section h2 { margin: 0 0 14px; font-size: 18px; }
.home-tax-form-grid { display: grid; gap: 16px; }
.home-tax-form-grid.two-col, .home-tax-certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-tax-form-grid label, .home-tax-wide-field { display: grid; gap: 6px; color: #1d1d1f; }
.home-tax-form-grid span, .home-tax-wide-field span, .home-tax-address span { color: #555; font-size: 12px; }
.home-tax-form-grid input, .home-tax-form-grid select, .home-tax-form-grid textarea, .home-tax-wide-field textarea, .home-tax-wide-field input { width: 100%; min-height: 36px; border: 1px solid #d4dce8; border-radius: 6px; padding: 8px 10px; font: inherit; }
.home-tax-form-grid small { color: #777; }
.home-tax-address { min-height: 84px; padding: 10px; border: 1px solid #edf1f6; border-radius: 6px; background: #fafafa; }
.home-tax-address p { margin: 6px 0 0; line-height: 1.55; }
.home-tax-radio-row { display: flex; gap: 16px; margin-top: 8px; }
.home-tax-check-line { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; line-height: 1.6; }
.home-tax-check-line input { margin-top: 4px; }
.home-tax-treaty-copy p { line-height: 1.8; }
.home-tax-treaty-copy input { width: 120px; min-height: 30px; margin: 0 4px; border: 1px solid #d4dce8; border-radius: 5px; padding: 0 8px; }
.home-tax-survey-copy { display: grid; gap: 12px; line-height: 1.65; }
.home-tax-survey-copy p { margin: 8px 0 0; color: #333; }
.home-tax-add-mask { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 24px; background: rgba(20,31,51,.42); }
.home-tax-add-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 22px 70px rgba(15,31,60,.3); }
.home-tax-dialog-body { padding: 22px 24px; }
.home-tax-dialog-body h2 { margin: 0 0 10px; font-size: 24px; }
.home-tax-dialog-question { margin: 0 0 16px; color: #6e6e73; }
.home-tax-add-head, .home-tax-add-row { display: grid; grid-template-columns: minmax(210px, .95fr) minmax(0, 1.05fr); gap: 16px; align-items: center; width: 100%; border: 0; border-bottom: 1px solid #d6d6d6; background: #fff; padding: 12px 0; text-align: left; }
.home-tax-add-head { color: #666; font-size: 12px; font-weight: 650; }
.home-tax-add-row span { color: #0066cc; font-weight: 650; }
.home-tax-add-row small { color: #6e6e73; line-height: 1.45; }
.home-tax-add-row:hover { background: #f7faff; }
.home-tax-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid #e8edf4; }

.profile-create-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20,31,51,.48);
  overflow: hidden;
}
body.profile-dialog-open { overflow: hidden; }
.profile-create-dialog {
  width: min(860px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 46px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15,31,60,.34);
}
.profile-create-head {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid #e8edf4;
}
.profile-create-head h2 { margin: 0; color: #17233a; font-size: 18px; font-weight: 750; }
.profile-create-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 18px 22px 12px;
}
.profile-create-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid #e8edf4;
  background: #fff;
}
.profile-create-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.profile-create-progress span { height: 5px; flex: 1; border-radius: 5px; background: #e2e8f0; }
.profile-create-progress span.done { background: #3478f6; }
.profile-create-step { min-height: 0; overflow: hidden; }
.profile-options { display: grid; gap: 9px; max-height: 430px; overflow: auto; }
.profile-option { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 11px; padding: 10px 4px; border-radius: 7px; cursor: pointer; }
.profile-option:hover { background: #f7f9fc; }
.profile-option input { width: 15px; height: 15px; margin-top: 3px; }
.profile-option strong { display: block; color: #172033; font-size: 14px; }
.profile-option small { display: block; margin-top: 3px; color: #536176; line-height: 1.45; }
.profile-type-group { display: grid; gap: 3px; }
.profile-type-group + .profile-type-group { margin-top: 24px; }
.profile-type-group h3 { margin: 0 0 3px; padding: 0 0 8px; border-bottom: 1px solid #e5e7eb; color: #172033; font-size: 18px; }
.profile-bundle-step { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.section-title-row.compact { margin-bottom: 10px; align-items: end; }
.section-title-row.compact .section-title { margin: 0 0 4px; }
.section-title-row.compact p { margin: 0; color: #6d7b92; font-size: 12px; line-height: 1.5; }
.profile-bundle-count { color: #667085; font-size: 12px; white-space: nowrap; }
.profile-bundle-search { width: 100%; height: 36px; margin: 0 0 10px; border: 1px solid #cad5e3; border-radius: 7px; padding: 0 11px; outline: none; }
.profile-bundle-search:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53,141,240,.12); }
.profile-bundle-list { min-height: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid #dfe5ed; border-radius: 9px; background: #fff; }
.profile-bundle-head,
.profile-bundle-row { width: 100%; display: grid; grid-template-columns: 34px minmax(112px,.9fr) minmax(0,1.35fr) 68px; gap: 8px; align-items: center; padding: 0 12px; border-bottom: 1px solid #e7ebf0; font-size: 13px; }
.profile-bundle-head { position: sticky; top: 0; z-index: 1; min-height: 38px; color: #667085; background: #f7f9fc; font-weight: 700; }
.profile-bundle-row { min-height: 58px; cursor: pointer; }
.profile-bundle-row:hover { background: #f7faff; }
.profile-bundle-row.selected { background: #f1f6ff; box-shadow: inset 3px 0 0 #3478f6; }
.profile-bundle-row:last-child { border-bottom: 0; }
.profile-bundle-row input { width: 16px; height: 16px; }
.profile-bundle-name,
.profile-bundle-identifier { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-bundle-name { color: #24324a; font-weight: 750; }
.profile-bundle-identifier { color: #31506f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.profile-bundle-platform { width: 56px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 8px; color: #2468e5; background: #eaf3ff; font-size: 12px; font-weight: 700; }
.profile-certificate-step { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.profile-certificate-count { color: #667085; font-size: 12px; white-space: nowrap; }
.profile-certificate-search { width: 100%; height: 36px; margin: 0 0 10px; border: 1px solid #cad5e3; border-radius: 7px; padding: 0 11px; outline: none; }
.profile-certificate-search:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53,141,240,.12); }
.profile-certificate-list { min-height: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid #dfe5ed; border-radius: 9px; background: #fff; }
.profile-certificate-head,
.profile-certificate-row { width: 100%; display: grid; grid-template-columns: 34px minmax(118px,.82fr) minmax(132px,.9fr) minmax(126px,.82fr) 66px; gap: 8px; align-items: center; padding: 0 12px; border-bottom: 1px solid #e7ebf0; font-size: 13px; }
.profile-certificate-head { position: sticky; top: 0; z-index: 1; min-height: 38px; color: #667085; background: #f7f9fc; font-weight: 700; }
.profile-certificate-row { min-height: 58px; cursor: pointer; }
.profile-certificate-row:hover { background: #f7faff; }
.profile-certificate-row.selected { background: #f1f6ff; box-shadow: inset 3px 0 0 #3478f6; }
.profile-certificate-row:last-child { border-bottom: 0; }
.profile-certificate-row input { width: 16px; height: 16px; }
.profile-certificate-name,
.profile-certificate-type,
.profile-certificate-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-certificate-name { color: #24324a; font-weight: 750; }
.profile-certificate-type { color: #31506f; }
.profile-certificate-date { color: #536176; font-variant-numeric: tabular-nums; }
.profile-certificate-status { width: 58px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.profile-certificate-status.ok { color: #16723a; background: #eaf8ef; }
.profile-certificate-status.warn { color: #9a5b00; background: #fff3d7; }
.profile-certificate-status.bad { color: #9b1c1c; background: #fdecec; }
.profile-create-selected-summary { min-width: 0; flex: 1 1 auto; color: #667085; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-create-selected-summary strong { color: #24324a; }
.profile-create-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.profile-summary { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 10px 16px; margin: 0 0 14px; padding: 15px; border: 1px solid #e1e7f0; border-radius: 10px; background: #f7f9fc; font-size: 13px; }
.profile-summary dt { color: #758197; }
.profile-summary dd { margin: 0; color: #26364d; font-weight: 650; overflow-wrap: anywhere; }
.profile-empty-option { padding: 22px; border: 1px dashed #cad5e3; border-radius: 9px; color: #8b96a7; text-align: center; }
.profile-offline { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0; color: #536176; font-size: 13px; }
.profile-offline input { margin-top: 3px; }
.field-note { margin-top: 5px; color: #758197; font-size: 12px; line-height: 1.5; }
.profile-device-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.profile-device-select-all { display: flex; align-items: center; gap: 8px; color: #344054; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.profile-device-select-all input { width: 15px; height: 15px; }
.profile-device-count { color: #667085; font-size: 12px; white-space: nowrap; }
.profile-device-search { width: 250px; height: 36px; margin-left: auto; border: 1px solid #cad5e3; border-radius: 7px; padding: 0 11px; outline: none; }
.profile-device-search:focus { border-color: #358df0; box-shadow: 0 0 0 3px rgba(53,141,240,.12); }
.profile-device-list { max-height: 330px; overflow: auto; border: 1px solid #dfe5ed; border-radius: 9px; }
.profile-device-head,
.profile-device-row { min-height: 45px; display: grid; grid-template-columns: 42px minmax(180px,1fr) 140px minmax(260px,1.4fr); align-items: center; padding: 0 12px; border-bottom: 1px solid #e7ebf0; font-size: 13px; }
.profile-device-head { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #667085; font-weight: 700; }
.profile-device-row:last-child { border-bottom: 0; }
.profile-device-row:hover { background: #f5f8ff; }
.profile-device-row input { width: 15px; height: 15px; }
.profile-device-name { color: #27354b; font-weight: 700; }
.profile-device-type { color: #59677b; }
.profile-device-udid { color: #667085; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.profile-device-no-result,
.profile-no-device-needed { padding: 30px; border: 1px dashed #cad5e3; border-radius: 9px; background: #f9fafb; color: #667085; text-align: center; }

.bundle-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20,31,51,.48);
  overflow: hidden;
}

body.bundle-dialog-open { overflow: hidden; }

.bundle-dialog {
  width: min(1040px, calc(100vw - 40px));
  height: min(780px, calc(100vh - 46px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15,31,60,.34);
}
.bundle-dialog-head {
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #e8edf4;
}
.bundle-dialog-head h2 { margin: 0; color: #17233a; font-size: 20px; }
.bundle-dialog-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  padding: 14px 22px 12px;
}
.bundle-dialog-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bundle-dialog-fields .field { margin: 0; }
.bundle-dialog .field label { margin-bottom: 6px; }
.bundle-dialog .field input { height: 38px; }
.bundle-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid #e8edf4;
  background: #fff;
}
.bundle-dialog .field input[readonly] { color: #5c6678; background: #f8fafc; }
.bundle-capability-title { margin: 2px 0 0; color: #17233a; font-size: 16px; font-weight: 800; }
.bundle-capability-wrap {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.capability-toolbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e4eaf3;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #fff;
  color: #667085;
}
.capability-toolbar input,
.capability-toolbar select {
  height: 36px;
  border: 1px solid #d4dce8;
  border-radius: 7px;
  padding: 0 12px;
  outline: 0;
}
.capability-language { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bundle-capability-table {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #e4eaf3;
  border-radius: 0 0 9px 9px;
}
.bundle-capability-head,
.bundle-capability-row {
  display: grid;
  grid-template-columns: 90px minmax(360px, 1.35fr) minmax(260px, .9fr);
  align-items: start;
  gap: 16px;
  min-width: 840px;
}
.bundle-capability-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  color: #667085;
  background: #f7f9fd;
  border-bottom: 1px solid #e4eaf3;
  font-size: 12px;
  font-weight: 750;
}
.bundle-capability-row {
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f6;
}
.bundle-capability-row:last-child { border-bottom: 0; }
.bundle-capability-row.hidden { display: none; }
.bundle-capability-row.disabled { color: #98a2b3; background: #fbfcfe; }
.bundle-capability-enable { padding-top: 10px; }
.bundle-capability-toggle,
.bundle-capability-setting { width: 16px; height: 16px; }
.bundle-capability-name { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: start; }
.bundle-capability-name strong { display: block; margin-bottom: 3px; color: #24324a; font-size: 14px; }
.bundle-capability-name small { display: block; color: #718096; line-height: 1.5; }
.bundle-capability-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #1f2d42;
  background: #f4f7fb;
  font-weight: 800;
}
.bundle-capability-icon img { width: 28px; height: 28px; object-fit: contain; }
.capability-config-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 0 56px; color: #667085; }
.capability-config-row.hidden { display: none; }
.capability-count { color: #718096; font-size: 13px; }
.capability-settings { display: grid; gap: 6px; margin: 10px 0 0 56px; }
.capability-suboption { display: inline-flex; align-items: center; gap: 8px; color: #667085; font-size: 13px; }
.bundle-capability-notes { color: #667085; line-height: 1.55; }
.capability-empty { padding: 18px; border: 1px dashed #d4dce8; border-radius: 9px; color: #758197; background: #fbfcfe; }
.bundle-duplicate-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 28px;
}
.bundle-existing-link {
  border: 0;
  background: transparent;
  color: #1677d2;
  padding: 0;
  font: inherit;
  font-weight: 700;
}
.bundle-existing-link:hover { text-decoration: underline; }
.bundle-id-table tr.duplicate-highlight { animation: duplicatePulse 2.2s ease; }
@keyframes duplicatePulse {
  0%, 100% { background: transparent; }
  15%, 75% { background: #fff7d6; }
}
.home-compliance-panel .home-status.ok { color: #16813b; background: #edf9f1; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    inset: 58px auto 0 0;
    width: min(300px, calc(100% - 48px));
    transform: translateX(-102%);
    transition: transform 0.2s ease;
  }
  .side.is-open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 58px 0 0; z-index: 15; background: rgba(18, 27, 42, 0.38); }
  .menu-button { display: block; }
  .brand { min-width: 0; }
}

@media (max-width: 780px) {
  .topbar { padding: 0 14px; }
  .brand { font-size: 15px; white-space: nowrap; }
  .community-menu{margin-right:0}.community-menu summary{width:38px;padding:4px}.community-menu summary span{display:none}
  .account-current-id { display: none; }
  .main { padding: 18px 14px 82px; }
  .home-overview,
  .placeholder-grid,
  .account-grid,
  .proxy-free-grid,
  .twofa-layout { grid-template-columns: 1fr; }
  .home-head,
  .list-heading,
  .home-license-top,
  .home-progress-meta,
  .home-license-foot,
  .account-picker-head { align-items: flex-start; flex-direction: column; }
  .home-membership-grid { grid-template-columns: 110px minmax(0, 1fr); }
  .home-membership-grid dt,
  .home-membership-grid dd,
  .home-membership-grid dd.wide { grid-column: span 1; }
  .module-actions { margin-left: 0; flex-wrap: wrap; }
  .module-bar { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
  .app-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .app-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-store-appbar { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .app-store-tabs { order: 3; width: 100%; min-height: 36px; gap: 18px; overflow-x: auto; }
  .app-store-toolbar { margin-left: auto; }
  .app-store-workspace { grid-template-columns: 1fr; }
  .app-store-sidebar { border-right: 0; border-bottom: 1px solid #dfe5ee; padding: 14px; }
  .app-version-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-sidebar-divider,.app-store-sidebar h3,.app-side-link,.app-add-platform { display: none; }
  .app-detail-main { padding: 22px 16px 40px; }
}

@media (max-width: 520px) {
  .app-card-grid,
  .app-region-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 176px; }
  .app-download-mask { padding: 12px; }
  .app-download-dialog { width: min(100%, 440px); max-height: calc(100vh - 24px); }
  .app-qr-actions { justify-content: stretch; }
  .app-qr-actions button { flex: 1 1 calc(50% - 9px); }
  .app-store-page { margin: -4px -8px 0; border-right: 0; border-left: 0; border-radius: 0; }
  .app-store-identity { min-width: 0; }
  .app-store-toolbar { width: 100%; margin-left: 0; }
  .app-store-toolbar button { flex: 1; }
  .app-version-list { grid-template-columns: 1fr; }
  .app-detail-titlebar { flex-direction: column; }
  .app-detail-title-actions { width: 100%; }
  .app-detail-title-actions button { flex: 1; }
  .app-review-warning { padding: 14px; }
  .app-review-attachments { flex-direction: column; }
  .app-screenshot-list img { width: 82px; height: 145px; }
  .app-review-submission-mask { padding: 12px; }
}

@media (max-width: 600px) {
  .profile-table th,
  .profile-table td { height: 70px; }
  .profile-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .profile-actions button { width: 100%; height: 26px; padding: 0 3px; }
}

/* Original one-click workflow */
.automation-home-head{margin-bottom:20px}.automation-home-head h1{font-size:22px;margin:0 0 7px}.automation-home-head p{color:#748197;font-size:13px;margin:0}.automation-home-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:16px}.automation-home-card{min-height:190px;border:1px solid #dfe6f0;border-radius:12px;background:#fff;padding:22px;text-align:left;cursor:pointer;box-shadow:0 7px 20px rgba(30,55,90,.05);transition:.16s ease}.automation-home-card:hover{border-color:#79a5f6;transform:translateY(-1px);box-shadow:0 11px 26px rgba(30,82,180,.1)}.automation-home-icon{width:44px;height:44px;border-radius:11px;background:#edf4ff;color:#2869e8;display:grid;place-items:center;font-size:21px;margin-bottom:18px}.automation-home-card strong{display:block;font-size:16px;color:#27364d;margin-bottom:9px}.automation-home-card p{color:#7a8799;font-size:13px;line-height:1.7;margin:0}.automation-back{border:0;background:transparent;color:#2869e8;padding:0;height:30px;margin-bottom:12px;cursor:pointer}.automation-form{background:#fff;border:1px solid #e1e7f0;border-radius:12px;padding:22px 24px;box-shadow:0 8px 22px rgba(30,55,90,.05)}.automation-form h2{font-size:19px;margin:0 0 7px}.automation-intro{font-size:13px;color:#748197;line-height:1.65;margin:0 0 20px}.automation-mode{display:flex;gap:18px;margin-bottom:14px;font-size:13px}.automation-mode label{display:flex;align-items:center;gap:6px}.automation-new-bundle{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.automation-devices{border:1px solid #e0e6ef;border-radius:9px;max-height:190px;overflow:auto;margin-top:8px}.automation-device{display:grid;grid-template-columns:22px minmax(140px,1fr) minmax(180px,1.2fr);gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid #edf0f4;font-size:12px}.automation-device:last-child{border-bottom:0}.automation-device small{color:#7a8798;overflow-wrap:anywhere}.automation-warning{padding:12px 14px;border:1px solid #f3cf79;background:#fff8e7;color:#825d0b;border-radius:8px;font-size:12px;line-height:1.6;margin:16px 0}.automation-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px}.automation-progress{display:none;margin-top:18px;border-top:1px solid #e8edf4;padding-top:16px}.automation-progress.show{display:block}.automation-log{display:grid;gap:8px;font-size:13px;color:#526176}.automation-log div{padding:9px 11px;border-radius:7px;background:#f6f8fb}.automation-log .done{background:#effaf3;color:#16743a}.automation-log .error{background:#fff1f2;color:#b42318;margin:0}.automation-download{display:none;margin-top:15px}.automation-download.show{display:flex;align-items:center;gap:10px}.automation-device-tools{display:flex;align-items:center;gap:10px;margin-top:14px}.automation-device-tools .section-title{margin:0;flex:1}.automation-select-all{display:flex;align-items:center;gap:6px;font-size:12px;color:#2869e8;cursor:pointer}.automation-push-option{margin:12px 0 2px;color:#344054;font-weight:600}.automation-form .hidden{display:none!important}
@media (max-width: 860px){.automation-home-grid{grid-template-columns:1fr}.automation-new-bundle{grid-template-columns:1fr}.automation-device{grid-template-columns:22px minmax(100px,1fr)}.automation-device small{grid-column:2}.automation-form{padding:18px 16px}}

/* Device management */
.device-list-page{width:100%}.device-module{min-width:0}.device-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px 26px 18px;border-bottom:1px solid var(--line)}.device-list-heading h1,.device-add-title h1,.device-confirm-panel h1{margin:0;color:#17233a;font-size:24px;line-height:1.2}.device-list-heading p,.device-add-title p,.device-confirm-panel>p{margin:7px 0 0;color:var(--muted)}.device-list-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.device-search-wrap{width:min(270px,100%);height:36px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--strong-line);border-radius:7px;background:#fff;color:#8290a5}.device-search-wrap input{width:100%;min-width:0;border:0;outline:0;color:var(--ink);background:transparent}.device-table-meta{padding:14px 26px 8px;color:var(--muted);font-size:12px}.device-table-wrap{overflow-x:auto;padding:0 26px 26px}.device-table{width:100%;min-width:900px;border-collapse:collapse;table-layout:fixed}.device-table th{padding:11px 12px;border-bottom:1px solid var(--strong-line);color:#6d7b92;font-size:12px;font-weight:650;text-align:left;white-space:nowrap}.device-table td{padding:15px 12px;border-bottom:1px solid #edf0f5;color:#3b4960;vertical-align:middle}.device-table th:nth-child(1){width:18%}.device-table th:nth-child(2){width:27%}.device-table th:nth-child(3){width:13%}.device-table th:nth-child(4){width:13%}.device-table th:nth-child(5){width:12%}.device-table th:nth-child(6){width:17%}.device-table td strong{display:block;color:#24324a;font-weight:650}.device-table td small{display:block;margin-top:4px;color:#98a3b5;font-size:11px}.device-table code,.device-confirm-panel code,.temporary-udid-item code{display:block;overflow:hidden;color:#52647e;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;text-overflow:ellipsis;white-space:nowrap}.device-row-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.link-button{padding:0;border:0;background:transparent;color:#276df1;font-size:13px}.link-button:hover{text-decoration:underline}.link-button.danger{color:#c13d3d}.link-button.success{color:#16813b}.device-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;white-space:nowrap}.device-state i{width:7px;height:7px;border-radius:50%;background:#98a3b5}.device-state.enabled{color:#16813b}.device-state.enabled i{background:#22a05a}.device-state.disabled{color:#8a5b2d}.device-state.disabled i{background:#d58b37}.device-back-link{margin-bottom:16px;padding:0;border:0;background:transparent;color:#276df1;font-size:13px}.device-add-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.device-add-main,.temporary-udid-panel,.device-confirm-panel{border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}.device-add-main{padding:24px}.device-add-title{margin-bottom:22px}.device-add-form{display:grid;gap:16px}.device-add-form .field{display:grid;gap:7px}.device-add-form .field>span,.device-action-dialog .field>span{color:#536176;font-size:13px;font-weight:650}.device-add-form select,.device-add-form input,.device-action-dialog input,.device-action-dialog textarea{width:100%;min-height:40px;padding:0 11px;border:1px solid var(--strong-line);border-radius:7px;outline:0;background:#fff;color:var(--ink)}.device-action-dialog textarea{padding-top:10px;resize:vertical}.device-add-form input:focus,.device-add-form select:focus,.device-action-dialog input:focus,.device-action-dialog textarea:focus{border-color:#6690ed;box-shadow:0 0 0 3px rgba(39,109,241,.1)}.device-enrollment{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:20px;align-items:center;padding:18px;border:1px solid #dbe6f5;border-radius:10px;background:#f7faff}.device-enrollment h3{margin:0 0 8px;color:#2459c4;font-size:15px}.device-enrollment ol{margin:0 0 10px 20px;padding:0;color:#536176;font-size:13px;line-height:1.8}.device-enrollment p{margin:0;color:#68758a;font-size:12px}.device-enrollment p.success{color:#16803c;font-weight:700}.device-enrollment-qr{min-height:170px;display:grid;place-items:center;color:#8190a5;font-size:12px;text-align:center}.device-enrollment-qr img{width:164px;height:164px;border-radius:6px;background:#fff}.device-enrollment-qr small{display:block;margin-top:5px}.temporary-udid-panel{min-width:0;padding:20px}.temporary-udid-head h3{margin:0;color:#24324a;font-size:16px}.temporary-udid-head p{margin:7px 0 16px;color:var(--muted);font-size:12px;line-height:1.6}.temporary-udid-list{display:grid;gap:10px}.temporary-udid-item{display:grid;gap:6px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fbfcfe}.temporary-udid-item strong{color:#34445c}.temporary-udid-item small{color:#7c899d}.temporary-udid-item code{padding:5px 0;font-size:10px}.temporary-udid-empty{padding:30px 6px;color:#8a96a8;font-size:12px;text-align:center}.device-add-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:4px}.device-confirm-panel{max-width:720px;padding:28px}.device-confirm-panel dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:13px 18px;margin:24px 0;padding:18px;border:1px solid #e4e9f1;border-radius:8px;background:#fbfcfe}.device-confirm-panel dt{color:#718096}.device-confirm-panel dd{margin:0;color:#34445c;font-weight:600}.device-action-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:rgba(20,33,55,.34)}.device-action-dialog{width:min(460px,100%);overflow:hidden;border:1px solid #dce3ec;border-radius:10px;background:#fff;box-shadow:0 18px 60px rgba(24,42,76,.22)}.device-action-dialog header,.device-action-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #edf0f5}.device-action-dialog footer{justify-content:flex-end;border-top:1px solid #edf0f5;border-bottom:0}.device-action-dialog h2{margin:0;color:#24324a;font-size:17px}.device-action-close{width:28px;height:28px;border:0;background:transparent;color:#78869b;font-size:22px;line-height:1}.device-action-body{display:grid;gap:13px;padding:20px}.device-bulk-hint{margin:0;color:#69778d;font-size:12px;line-height:1.6}.device-bulk-hint code{color:#52647e}.device-file-label{display:inline-flex;align-items:center;gap:8px;color:#276df1;font-size:12px;cursor:pointer}.device-file-label input{width:auto;min-height:0;padding:0;border:0}.device-bulk-summary{color:#65748b;font-size:12px}
@media (max-width:900px){.device-list-heading{align-items:flex-start;flex-direction:column}.device-list-tools{width:100%;justify-content:flex-start}.device-search-wrap{flex:1 1 220px}.device-add-layout{grid-template-columns:1fr}}
@media (max-width:620px){.device-list-heading,.device-table-wrap{padding-left:16px;padding-right:16px}.device-list-heading h1,.device-add-title h1,.device-confirm-panel h1{font-size:21px}.device-list-tools .secondary,.device-list-tools .primary{flex:1 1 auto}.device-add-main,.temporary-udid-panel,.device-confirm-panel{padding:18px}.device-enrollment{grid-template-columns:1fr}.device-enrollment-qr{order:-1}.device-confirm-panel dl{grid-template-columns:1fr;gap:5px}.device-confirm-panel dd{margin-bottom:9px}}

/* Keep the device shell fixed while the rows scroll inside it. */
body[data-page="devices"] .main{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
body[data-page="devices"] .crumb{display:none}
body[data-page="devices"] .main{padding-bottom:16px}
body[data-page="devices"] .page{display:flex;flex:1 1 auto;min-height:0}
body[data-page="devices"] .device-list-page{display:flex;flex:1 1 auto;min-height:0}
body[data-page="devices"] .device-module{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}
body[data-page="devices"] .device-list-tools{width:470px}
body[data-page="devices"] .device-table-wrap{flex:1 1 auto;min-height:0;overflow:auto;padding-bottom:0}
body[data-page="devices"] .device-table thead{position:sticky;top:0;z-index:2;background:#fff}
body[data-page="devices"] .device-table th{background:#fff}
@media (max-width:900px){body[data-page="devices"] .device-list-tools{width:100%}}
@media (max-width:780px){body[data-page="devices"] .main{padding-bottom:16px}}
@media (max-width:620px){body[data-page="devices"] .main{overflow:auto;padding-bottom:18px}body[data-page="devices"] .device-list-tools{width:100%}}

/* Match the compact Apple Developer device table proportions. */
body[data-page="devices"] .device-list-page{display:flex;flex-direction:column}
body[data-page="devices"] .device-list-heading{align-items:center;padding:0 0 14px;border:0}
body[data-page="devices"] .device-list-heading h1{font-size:18px;font-weight:750}
body[data-page="devices"] .device-list-heading p{margin-top:4px;font-size:11px}
body[data-page="devices"] .device-list-tools{width:auto;flex-wrap:nowrap;gap:5px}
body[data-page="devices"] .device-search-wrap{width:182px;height:25px;padding:0 8px;border-radius:4px;font-size:11px}
body[data-page="devices"] .device-toolbar-button{height:25px;display:inline-flex;align-items:center;justify-content:center;gap:3px;padding:0 9px;border:1px solid #c8d2e2;border-radius:4px;background:#fff;color:#24324a;font-size:11px;white-space:nowrap}
body[data-page="devices"] .device-toolbar-button:hover{background:#f5f8ff}
body[data-page="devices"] .device-register-button{border-color:#1976d2;background:#1976d2;color:#fff}
body[data-page="devices"] .device-register-button:hover{background:#1466b8}
body[data-page="devices"] .device-module{border-radius:0;box-shadow:none}
body[data-page="devices"] .device-table-wrap{padding:0;border:1px solid #dce3ed;background:#fff}
body[data-page="devices"] .device-table{min-width:0;table-layout:fixed}
body[data-page="devices"] .device-table th{height:34px;padding:0 9px;background:#fff;font-size:11px;font-weight:650;color:#536176}
body[data-page="devices"] .device-table td{height:40px;padding:0 9px;font-size:11px;color:#26364d}
body[data-page="devices"] .device-table th:nth-child(1){width:25%}
body[data-page="devices"] .device-table th:nth-child(2){width:33%}
body[data-page="devices"] .device-table th:nth-child(3){width:8%}
body[data-page="devices"] .device-table th:nth-child(4){width:14%}
body[data-page="devices"] .device-table th:nth-child(5){width:9%}
body[data-page="devices"] .device-table th:nth-child(6){width:11%}
body[data-page="devices"] .device-table td strong{font-size:11px}
body[data-page="devices"] .device-table code{font-size:10px}
body[data-page="devices"] .device-state{min-height:17px;padding:1px 5px;border:1px solid #b9dfc2;border-radius:4px;background:#effaf1;color:#258345;font-size:10px;font-weight:500}
body[data-page="devices"] .device-state.disabled{border-color:#f0cfaa;background:#fff7ed;color:#b45c12}
body[data-page="devices"] .device-row-actions{gap:5px}
body[data-page="devices"] .device-inline-button{height:20px;padding:0 7px;border:1px solid #c8d2e2;border-radius:4px;background:#fff;color:#3e4f66;font-size:10px;white-space:nowrap}
body[data-page="devices"] .device-inline-button:hover{background:#f5f8ff}
body[data-page="devices"] .device-inline-button.device-disable{border-color:#bd5c09;background:#bd5c09;color:#fff}
body[data-page="devices"] .device-inline-button.device-enable{border-color:#27864a;background:#fff;color:#27864a}
body[data-page="devices"] .device-table tbody tr:hover{background:#fbfdff}
body[data-page="devices"] .brand img{display:none}
body[data-page="devices"] .topbar{padding-left:14px}
body[data-page="devices"] .nav-normal-icon{filter:grayscale(1);opacity:.58}
body[data-page="devices"] .nav.active .nav-active-icon{filter:none;opacity:1}
body[data-page="devices"] .nav:focus{outline:none}

/* Global contact announcement and floating support card. */
.top-contact-notice{height:38px;display:flex;align-items:center;gap:9px;margin-right:10px;padding:0 12px;border:1px solid #cdd9ef;border-radius:8px;background:#f6f9ff;color:#49617f;font-size:12px;white-space:nowrap}.top-contact-notice strong{color:#2459c4}.top-contact-notice i{width:1px;height:15px;background:#cfd9e9}.top-contact-notice button{border:0;border-bottom:1px dashed #7c9ac7;background:transparent;color:#2459c4;padding:0;font:inherit;font-weight:750;cursor:pointer}.top-contact-notice button:hover{border-bottom-style:solid;color:#0d4ebd}
.floating-contact{position:fixed;z-index:65;right:18px;top:50%;transform:translateY(-50%)}.floating-contact-trigger{width:58px;height:126px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:0;border-radius:29px;background:linear-gradient(155deg,#1677ff,#315df4);color:#fff;box-shadow:0 12px 30px rgba(36,93,226,.38);cursor:pointer}.floating-contact-trigger:hover,.floating-contact-trigger[aria-expanded="true"]{transform:translateX(-2px);box-shadow:0 15px 36px rgba(36,93,226,.46)}.floating-contact-trigger>span{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);font-size:18px}.floating-contact-trigger>b{width:16px;font-size:14px;line-height:1.2}
.floating-contact-panel{position:absolute;right:72px;top:50%;width:318px;max-height:calc(100vh - 72px);overflow:auto;transform:translateY(-50%);border:1px solid #dfe6f1;border-radius:16px;background:#fff;color:#25324a;box-shadow:0 22px 65px rgba(24,42,76,.26)}.floating-contact-panel[hidden]{display:none}.floating-contact-panel>header{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 14px;border-bottom:1px solid #edf1f6}.floating-contact-panel>header>div{min-width:0;flex:1}.floating-contact-panel>header strong,.floating-contact-panel>header small{display:block}.floating-contact-panel>header strong{font-size:18px;color:#17243a}.floating-contact-panel>header small{margin-top:5px;color:#77849a;font-size:12px}.floating-contact-panel>header>button{width:30px;height:30px;flex:none;border:0;border-radius:50%;background:#f1f4f8;color:#718096;font-size:21px;cursor:pointer}.floating-contact-qr{padding:14px 18px 10px;text-align:center;background:#fbfcfe}.floating-contact-qr img{width:190px;height:190px;display:block;margin:0 auto;border:1px solid #e6ebf2;border-radius:10px;background:#fff}.floating-contact-qr span{display:block;margin-top:9px;color:#65748b;font-size:12px}.floating-contact-info{display:grid;gap:9px;padding:14px 18px 18px}.floating-contact-info>div{min-height:46px;display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 11px;border:1px solid #e4e9f1;border-radius:9px;background:#fff;font-size:13px}.floating-contact-info span{color:#758197}.floating-contact-info strong{color:#1f2d42;font-size:14px}.floating-contact-info button{height:28px;border:1px solid #bfd2f5;border-radius:6px;background:#f2f7ff;color:#2668d8;padding:0 9px;font-size:12px}.floating-contact-info button.copied{border-color:#91d0a4;background:#effaf2;color:#258044}
@media(max-width:1100px){.top-contact-notice>strong{display:none}}@media(max-width:900px){.top-contact-qq,.top-contact-notice i{display:none}}@media(max-width:720px){.top-contact-notice{display:none}.floating-contact{right:12px}.floating-contact-trigger{width:50px;height:50px;border-radius:50%}.floating-contact-trigger>b{display:none}.floating-contact-trigger>span{width:auto;height:auto;background:transparent}.floating-contact-panel{right:60px;width:min(306px,calc(100vw - 84px))}.floating-contact-qr img{width:174px;height:174px}}
@media (max-width:900px){body[data-page="devices"] .device-list-heading{align-items:flex-start;flex-direction:column}body[data-page="devices"] .device-list-tools{width:100%;flex-wrap:wrap}.device-search-wrap{flex:1 1 182px}}
