.unified-promoter-grid { display: grid; grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr); gap: 16px; align-items: stretch; }
.my-qr-panel, .rewards-panel { min-height: 560px; }
.my-qr-panel { display: block; padding-bottom: 20px; }
.my-qr-panel .panel-heading, .rewards-panel .panel-heading { margin-bottom: 0; }
.panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.panel-actions .secondary-button { text-decoration: none; }
.promoter-qr-stage { display: grid; min-height: 350px; place-items: center; padding: 24px; border-bottom: 1px solid #edf0f2; background: #fbfcfc; }
.promoter-qr-stage img { width: 270px; max-width: 100%; height: auto; aspect-ratio: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; image-rendering: pixelated; box-shadow: 0 8px 22px rgba(29, 48, 63, .06); }
.my-qr-panel .link-caption, .my-qr-panel .copy-field { margin-right: 20px; margin-left: 20px; }
.link-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 17px; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.link-caption span:first-child { color: #53616a; font-weight: 800; }
.unified-event-list { min-height: 488px; }
.unified-event { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 12px 20px; border-bottom: 1px solid #edf0f2; }
.unified-event:last-child { border-bottom: 0; }
.event-marker { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(86, 185, 141, .12); }
.event-marker.duplicate { background: var(--amber); box-shadow: 0 0 0 4px rgba(232, 169, 59, .14); }
.unified-event strong, .unified-event span { display: block; }
.unified-event span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.unified-event time { color: #8d979e; font-size: 10px; white-space: nowrap; }
.event-reward { display: inline-flex !important; min-height: 23px; align-items: center; margin-top: 6px !important; padding: 0 7px; border-radius: 5px; color: #d2574c !important; background: var(--coral-soft); font-weight: 750; }
.event-reward.no-reward { color: #8a651e !important; background: var(--amber-soft); }
.empty-state { display: grid; min-height: 488px; place-items: center; padding: 36px; color: var(--muted); text-align: center; }
.empty-state-inner { max-width: 280px; }
.empty-visual { position: relative; display: grid; width: 104px; height: 86px; margin: 0 auto 18px; place-items: center; color: #92a0a7; border-radius: 8px; background: #edf2f3; }
.empty-visual svg { width: 34px; height: 34px; }
.empty-visual::before, .empty-visual::after { position: absolute; width: 18px; height: 18px; border: 3px solid currentColor; content: ""; }
.empty-visual::before { top: -8px; left: -9px; color: var(--amber); border-right: 0; border-bottom: 0; }
.empty-visual::after { right: -9px; bottom: -8px; color: var(--coral); border-top: 0; border-left: 0; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; }
.empty-state span { display: block; font-size: 12px; line-height: 1.7; }
.subordinate-panel { margin-top: 16px; }
[data-promoter-panel="stats"] .subordinate-panel { margin-top: 0; }
.subordinate-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 420px; }
.subordinate-form { display: grid; align-content: start; gap: 9px; padding: 20px; border-right: 1px solid var(--border); }
.subordinate-form .primary-button { margin-top: 10px; }
.subordinate-form input:disabled { color: #929ba2; background: #f5f7f8; }
.team-gate { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid #edf0f2; }
.team-gate strong, .team-gate span { display: block; }
.team-gate div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.subordinate-table { min-width: 0; }
.subordinate-table table { min-width: 650px; }
.subordinate-level { display: block; margin-top: 3px; color: #8b969d; font-size: 10px; }
.commission-subvalue { color: #a86b09 !important; }
.amber-tag { color: #a86b09; background: var(--amber-soft); }
#uAnnouncementDialog { background: rgba(20, 31, 36, .56); backdrop-filter: blur(2px); }
.announcement-dialog { width: min(500px, 100%); padding: 26px; }
.announcement-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.announcement-header .dialog-icon { margin-bottom: 0; }
.announcement-header h2 { font-size: 23px; }
.announcement-rules { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.announcement-rule { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; min-height: 92px; padding: 16px 17px; }
.announcement-rule + .announcement-rule { border-top: 1px solid var(--border); }
.announcement-rule-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; }
.announcement-rule-icon svg { width: 20px; height: 20px; }
.announcement-rule strong, .announcement-rule p { display: block; }
.announcement-rule strong { color: #263440; font-size: 16px; }
.announcement-rule p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.announcement-rule.penalty { background: #fffafa; }
.announcement-rule.penalty strong { color: #bf463c; }
.announcement-dialog .primary-button { width: 100%; min-height: 48px; margin-top: 18px; }
#unifiedRefresh:disabled, .primary-button:disabled { cursor: wait; opacity: .68; transform: none; }

@media (max-width: 1080px) {
  .unified-promoter-grid { grid-template-columns: 1fr; }
  .my-qr-panel, .rewards-panel { min-height: auto; }
  .subordinate-layout { grid-template-columns: 1fr; }
  .subordinate-form { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 760px) {
  .my-qr-panel .panel-heading { align-items: stretch; flex-direction: column; }
  .my-qr-panel .panel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-qr-panel .panel-actions .secondary-button { width: 100%; padding-right: 10px; padding-left: 10px; }
  .promoter-qr-stage { min-height: 300px; padding: 18px; }
  .promoter-qr-stage img { width: 240px; }
  .my-qr-panel .link-caption, .my-qr-panel .copy-field { margin-right: 15px; margin-left: 15px; }
  .link-caption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .unified-event { grid-template-columns: 12px minmax(0, 1fr); }
  .unified-event time { grid-column: 2; }
  .subordinate-form { padding: 16px 15px; }
  .announcement-dialog { padding: 22px 20px; }
  .announcement-header { margin-bottom: 16px; }
  .announcement-rule { min-height: 88px; padding: 14px; }
}
