:root {
  --bg: #0f1419;
  --panel: #1a2332;
  --panel-2: #243044;
  --border: #2d3a4f;
  --text: #e7ecf3;
  --muted: #8b9bb4;
  --accent: #3b82f6;
  --accent-2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --row-hover: #1e2a3d;
  --heat-low: rgba(59, 130, 246, 0.08);
  --heat-mid: rgba(59, 130, 246, 0.28);
  --heat-high: rgba(59, 130, 246, 0.55);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #152033, #101822);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.brand .sub {
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 12px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: calc(100vh - 110px);
}

/* Author display:grid beats UA [hidden]; without this both top tabs stack reports */
.layout[hidden],
#cohortLayout[hidden],
#attrLayout[hidden],
#appLayout[hidden],
.attr-level[hidden] {
  display: none !important;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--panel);
  padding: 16px;
  overflow: auto;
}
.sidebar h2 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field select,
.field input {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}
.field select:focus,
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.field .hint {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.seg button {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  font-size: 12px;
  cursor: pointer;
}
.seg button.active {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.55);
}
.seg.three { grid-template-columns: 1fr 1fr; }
.seg.four { grid-template-columns: 1fr 1fr; }
.seg.gran { grid-template-columns: repeat(4, 1fr); }

.seg button:disabled,
.seg button.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.field.is-inactive label,
.field.is-inactive .hint {
  color: var(--muted);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
}
.range-row span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1;
}
.date-inputs input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.date-range-box {
  overflow: visible;
  position: relative;
  z-index: 2;
}
.date-range-box input[type="date"] {
  position: relative;
  z-index: 3;
}

.main {
  padding: 16px 18px 28px;
  overflow: auto;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.toolbar .meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}
.tabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.tabs button.active {
  background: var(--accent);
  color: white;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.panel-head h3 {
  margin: 0;
  font-size: 15px;
}
.panel-head .note {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 220px);
}
table.cohort {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}
table.cohort th,
table.cohort td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid rgba(45, 58, 79, 0.6);
  padding: 8px 10px;
  white-space: nowrap;
  text-align: right;
}
table.cohort th:first-child,
table.cohort td:first-child,
table.cohort th:nth-child(2),
table.cohort td:nth-child(2) {
  text-align: left;
  position: sticky;
  left: 0;
  background: #1a2332;
  z-index: 2;
}
table.cohort th:nth-child(2),
table.cohort td:nth-child(2) {
  left: 118px;
}
table.cohort thead th {
  position: sticky;
  top: 0;
  background: #1e2a3d;
  z-index: 3;
  color: var(--muted);
  font-weight: 600;
}
table.cohort thead th:first-child,
table.cohort thead th:nth-child(2) {
  z-index: 4;
}
table.cohort tbody tr:hover td {
  background: var(--row-hover);
}
table.cohort tbody tr:hover td:first-child,
table.cohort tbody tr:hover td:nth-child(2) {
  background: #223049;
}
.cell-heat-0 { background: transparent; }
.cell-heat-1 { background: var(--heat-low); }
.cell-heat-2 { background: var(--heat-mid); }
.cell-heat-3 { background: var(--heat-high); color: #eff6ff; }
.muted { color: var(--muted); }
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.footer-note code {
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}

/* —— 登记项目 —— */
.register-box {
  padding: 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.register-box > input + input {
  margin-top: 8px;
}
.register-box .btn-primary {
  margin-top: 8px;
  width: 100%;
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.register-box .btn-primary:hover:not(:disabled) {
  background: rgba(34, 197, 94, 0.35);
}
.register-box .btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
.reg-result {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.reg-result-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reg-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reg-id-row code {
  flex: 1;
  font-size: 13px;
  color: #86efac;
  word-break: break-all;
}
.btn-ghost {
  background: transparent;
  color: #93c5fd;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--accent);
}
.hint.error {
  color: #fca5a5;
}

/* —— 日期区间 / 生命周期 —— */
.date-range-box,
.life-box {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
}
.life-box {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.35);
}
.seg.presets {
  grid-template-columns: 1fr 1fr;
}
.date-inputs {
  margin-top: 8px;
}
.date-inputs input[type="date"] {
  color-scheme: dark;
}
.date-custom-hint {
  margin-top: 4px;
}
.cell-na {
  background: rgba(148, 163, 184, 0.08) !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.btn-download {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.55);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-download:hover {
  background: rgba(59, 130, 246, 0.35);
}

.badge.is-live {
  background: #0f3d2e;
  color: #7dffa8;
  border: 1px solid #1f6b4a;
}
.badge.is-mock {
  background: #3d2a0f;
  color: #ffd27d;
  border: 1px solid #6b4a1f;
}
code.api-key {
  font-size: 11px;
  word-break: break-all;
}

.seg-wrap {
  flex-wrap: wrap;
}
.seg-wrap button {
  flex: 1 1 auto;
}
#customEventBox input,
#customEventBox select {
  width: 100%;
}
#customEventBox #customEventSearch {
  margin-top: 0;
  margin-bottom: 6px;
}
#customEventBox #customEventManual {
  margin-top: 6px;
}

.field .sub-label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted, #9aa7b8);
  font-weight: 500;
}
.fx-row {
  margin-top: 6px;
  gap: 8px;
  align-items: center;
}
.fx-row input[type="number"] {
  flex: 1 1 auto;
  min-width: 0;
}
#fxDownloadRate {
  margin-top: 6px;
  width: 100%;
}

/* —— 筛选预设 —— */
.presets-box {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.06);
}
.preset-save-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.preset-save-row input {
  flex: 1;
  min-width: 0;
}
.presets-box .btn-primary {
  background: rgba(167, 139, 250, 0.25);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}
.presets-box .btn-primary:hover:not(:disabled) {
  background: rgba(167, 139, 250, 0.4);
}
.presets-box .btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
}
#presetList {
  width: 100%;
  margin-top: 8px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  font-size: 12px;
  min-height: 88px;
}
.preset-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* continuous heat cells keep sticky cols readable */
table.cohort td.cell-heat {
  transition: background 0.12s ease;
}

/* —— toast —— */
.toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  animation: toast-in 0.22s ease;
}
.toast-ok {
  background: rgba(34, 197, 94, 0.92);
  color: #052e16;
  border: 1px solid rgba(134, 239, 172, 0.8);
}
.toast-error {
  background: rgba(239, 68, 68, 0.92);
  color: #fff1f2;
  border: 1px solid rgba(252, 165, 165, 0.7);
}
.toast-out {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}
.edit-tags-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edit-tags-box .btn-ghost {
  align-self: flex-start;
}
.tag-pill {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  margin-left: 4px;
}
.tag-pill.is-test {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

/* —— console auth gate —— */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logout {
  font-size: 12px;
  padding: 6px 10px;
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(6px);
}
.auth-gate[hidden] { display: none !important; }
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.auth-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.auth-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth-card input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
}
.auth-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.auth-actions .btn-primary {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
.auth-actions .btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
}
.auth-actions .btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-hint {
  margin-top: 14px;
}


/* Belt: body class from setAppView also isolates modules */
body.app-view-attribution #cohortLayout {
  display: none !important;
}
body.app-view-cohort #attrLayout {
  display: none !important;
}

/* Top-level module tabs: 同类群 / 归因链接 */
.app-view-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.app-view-nav .tabs {
  margin-bottom: 0;
}
.app-view-nav .tabs button {
  min-width: 88px;
  font-weight: 600;
}

.layout-attr {
  grid-template-columns: 280px 1fr;
}
.layout-attr .attr-sidebar {
  max-width: none;
}
.layout-attr .main {
  min-width: 0;
}
.attribution-panel {
  max-width: none;
  width: 100%;
}
.attribution-panel-body {
  padding: 16px 20px 24px;
  width: 100%;
  box-sizing: border-box;
}
.attribution-panel .attribution-box {
  margin-bottom: 0;
  max-width: none;
  width: 100%;
}
.attribution-panel .attribution-box > label:first-child {
  display: none; /* panel-head already titles the module */
}
.attr-level-list,
.attr-level-detail {
  max-width: none;
  width: 100%;
}
/* Ample editable fields on L2 (templates, URLs, gates) */
.layout-attr .attribution-box textarea,
.layout-attr #attrPanelPostback textarea,
.layout-attr #attrInstallTpl,
.layout-attr #attrRevenueTpl {
  width: 100%;
  min-height: 9.5rem;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}
.layout-attr .attribution-box input[type="text"],
.layout-attr .attribution-box input[type="number"],
.layout-attr .attribution-box input[type="search"],
.layout-attr .attribution-box select,
.layout-attr .attribution-box textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.layout-attr .attr-url {
  width: 100%;
  max-width: none;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
  background: var(--panel-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 2.6rem;
}
.layout-attr .reg-id-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  width: 100%;
}
.layout-attr #attrPanelPostback .hint,
.layout-attr #attrPanelGates .hint {
  max-width: 72rem;
}
.layout-attr .attr-tab-panel {
  width: 100%;
}
.layout-attr .attr-audit-list {
  width: 100%;
  min-height: 6rem;
  max-height: 18rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.attribution-box textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
  min-height: 8rem;
}
.attr-url {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 11px;
  word-break: break-all;
  white-space: pre-wrap;
}
.attr-actions {
  margin: 8px 0;
  flex-wrap: wrap;
}
.attr-audit-list {
  font-size: 11px;
  color: var(--muted);
  max-height: 140px;
  overflow: auto;
  margin: 6px 0 10px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.attr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 3px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.attr-tab {
  flex: 1 1 auto;
  min-width: 3.2em;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.attr-tab:hover {
  color: var(--text);
}
.attr-tab.active {
  background: var(--accent);
  color: #fff;
}
.attr-tab-panel {
  display: none;
}
.attr-tab-panel.active {
  display: block;
}
.attr-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.attr-level-list .attr-l1-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}
.attr-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.attr-link-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 8px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--panel-2);
}
.attr-link-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  padding: 10px 10px 8px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.attr-link-row:hover {
  border-color: var(--accent);
  background: var(--panel);
}
.attr-link-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.attr-link-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.attr-link-row-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}
.attr-link-row-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-all;
}
.attr-link-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.attr-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--panel);
}
.attr-badge.on {
  color: #0a7a3e;
  border-color: rgba(10, 122, 62, 0.35);
  background: rgba(10, 122, 62, 0.08);
}
.attr-badge.warn {
  color: #9a6b00;
  border-color: rgba(154, 107, 0, 0.35);
  background: rgba(154, 107, 0, 0.1);
}
.attr-badge.off {
  color: var(--muted);
}
.attr-link-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.attr-link-row-actions .btn-ghost,
.attr-link-row-actions .btn-primary {
  font-size: 12px;
  padding: 4px 10px;
}
.attr-l2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
}
.attr-l2-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  flex: 1 1 auto;
}
.attr-back {
  flex: 0 0 auto;
}
.attr-dirty {
  font-size: 11px;
  font-weight: 700;
  color: #9a6b00;
  background: rgba(154, 107, 0, 0.12);
  border: 1px solid rgba(154, 107, 0, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}
.attr-pack-summary {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  line-height: 1.45;
}

.attr-event-bind {
  margin: 14px 0 16px;
  padding: 12px 12px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
  max-width: none;
  width: 100%;
}
.attr-event-bind .sub-label {
  margin-top: 0;
  font-weight: 650;
  color: var(--text);
}
.attr-event-bind input,
.attr-event-bind select {
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
}
.attr-gate-lead {
  margin-bottom: 12px;
  max-width: 72rem;
}
.layout-attr #attrIapTpl {
  min-height: 9.5rem;
}
