/* Partner panel: presentation only; live data and transaction flows stay in app.js. */
.panel-ui .m-logo > .partner-brand-symbol,
.panel-ui .login-wrap .partner-brand-symbol,
.panel-ui .desktop-nav-brand > .partner-brand-symbol {
  background: #07111f url("/assets/topaf-icon-192.png") no-repeat center 14% / 180% auto;
  box-shadow: 0 6px 16px rgba(31, 131, 255, .23);
}
.panel-ui .desktop-nav-brand > .partner-brand-symbol {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  margin: 0;
  border-radius: 13px;
}
.panel-ui .login-showcase-brand > .partner-brand-symbol {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 15px;
}
.panel-ui .pwa-install-controls .pwa-install-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 8px 0 0;
}
.panel-ui .pwa-install-controls .pwa-install-button[hidden] { display: none; }
.panel-ui .pwa-install-controls details { color: var(--muted); text-align: left; font-size: .88rem; }
.panel-ui .pwa-install-controls summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.panel-ui .pwa-install-controls p { margin: 0 0 8px; line-height: 1.5; }
.panel-ui .pwa-install-controls :is(button, summary):focus-visible {
  outline: 2px solid var(--polish-blue);
  outline-offset: 2px;
}
.panel-ui .android-apk-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "copy download dismiss";
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--bg-card);
}
.panel-ui .android-apk-copy { grid-area: copy; min-width: 0; text-align: left; }
.panel-ui .android-apk-copy strong { display: block; font-size: .93rem; line-height: 1.3; }
.panel-ui .android-apk-copy p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.panel-ui .android-apk-offer .android-apk-link {
  grid-area: download;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
}
.panel-ui .android-apk-link .ico { display: inline-flex; width: 16px; height: 16px; }
.panel-ui .android-apk-offer .android-apk-dismiss {
  grid-area: dismiss;
  display: grid;
  place-items: center;
  align-self: start;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}
.panel-ui .android-apk-offer :is(a, button):focus-visible { outline: 2px solid var(--polish-blue); outline-offset: 2px; }
@media (max-width: 540px) {
  .panel-ui .android-apk-offer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "copy dismiss" "download download";
    gap: 8px;
  }
}

.panel-ui .platform-directory-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 14px;
}
.panel-ui .platform-directory-heading h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.panel-ui .platform-directory-heading > span { color: var(--muted); font-size: .84rem; }
.panel-ui .platform-directory .platform-toolbar { margin: 0 0 8px; }
.panel-ui .platform-directory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 5px;
}
.panel-ui .platform-directory .platform-result-count { margin: 0; }
.panel-ui .platform-directory .platform-directory-meta .btn { margin: 0; min-height: 38px; padding: 6px 10px; }
.panel-ui .platform-directory .platform-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.panel-ui .platform-results > .platform-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  padding: 14px;
  box-shadow: none;
}
.panel-ui .platform-results > .platform-compact[hidden],
.panel-ui :is(.platform-directory, .casa-dialog) [hidden] { display: none !important; }
.panel-ui .platform-compact-header { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-ui .platform-compact-info { flex: 1; min-width: 0; }
.panel-ui .platform-compact-info h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.panel-ui .platform-compact-header .casa-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--polish-soft);
}
.panel-ui .platform-compact-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 5px; }
.panel-ui :is(.platform-connection, .platform-link-status) {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 7px;
  color: var(--muted);
  background: var(--polish-soft);
  font-size: .72rem;
  font-weight: 700;
}
.panel-ui .platform-connection.is-connected { color: var(--visual-positive); background: var(--visual-positive-bg); }
.panel-ui .platform-connection.is-waiting { color: var(--visual-warning, var(--polish-blue)); }
.panel-ui .platform-star.btn {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  margin: 0;
  padding: 4px;
  font-size: 1.2rem;
}
.panel-ui .platform-star[aria-pressed="true"] { color: var(--visual-warning, var(--polish-blue)); }
.panel-ui .platform-compact-actions { display: grid; gap: 7px; min-width: 0; }
.panel-ui .platform-compact-actions.has-link { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.panel-ui .platform-compact-actions .btn { min-width: 0; min-height: 44px; margin: 0; padding: 7px 8px; font-size: .82rem; white-space: normal; }
.panel-ui .platform-compact-actions .ico { width: 16px; height: 16px; flex: 0 0 16px; }
.panel-ui .platform-results > .platform-compact.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(115deg, var(--visual-positive-bg), var(--bg-card));
  border-color: var(--visual-positive);
}
.panel-ui .platform-feature-label { display: block; color: var(--visual-positive); font-size: .72rem; font-weight: 750; }
.panel-ui .platform-feature-rates > div { padding: 5px; font-size: .71rem; }
.panel-ui .platform-feature-rates > div strong { font-size: .92rem; }
.panel-ui .platform-directory .panel-details { margin: 12px 0; }
.panel-ui .platform-extra-content { padding: 0 14px 14px; }
.panel-ui .platform-load-error p { margin: 0 0 8px; }
.panel-ui #modal-casa .casa-dialog { position: relative; width: min(100%, 520px); animation: none; }
.panel-ui .casa-dialog h3 { margin: 0 44px 12px 0; }
.panel-ui .casa-dialog .field { margin: 0 0 10px; }
.panel-ui .casa-dialog .casa-dialog-status { margin: 0 0 12px; }
.panel-ui .casa-dialog .muted { margin: 8px 0 12px; font-size: .84rem; line-height: 1.5; }
.panel-ui .casa-dialog .copy-row input { flex: 1 1 0; width: auto; min-width: 0; }
.panel-ui .casa-dialog .copy-row .btn { flex: 0 0 auto; width: auto; margin: 0; }
.panel-ui .casa-dialog :is(.btn, input) { min-height: 44px; }
.panel-ui .casa-dialog .casa-dialog-submit { display: flex; width: 100%; margin: 0; }
.panel-ui .casa-dialog-eye {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.panel-ui .casa-dialog-eye[aria-pressed="true"] { color: var(--polish-blue); }
.panel-ui .casa-dialog-site { display: inline-block; margin-top: 12px; color: var(--polish-blue); font-size: .84rem; }
.panel-ui .casa-dialog-details { padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.panel-ui .casa-dialog-details .kpi { margin-top: 8px; }
.panel-ui .platform-directory .platform-compact :is(button, a):focus-visible,
.panel-ui .casa-dialog :is(button, a, input, summary):focus-visible { outline: 2px solid var(--polish-blue); outline-offset: 2px; }
@media (min-width: 741px) {
  .panel-ui #modal-casa { place-items: center; padding: 18px; }
  .panel-ui #modal-casa .casa-dialog { max-height: calc(100dvh - 36px); border-radius: 20px; }
}
@media (max-width: 1020px) {
  .panel-ui .platform-directory .platform-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .panel-ui .platform-directory .platform-results { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .platform-results > .platform-compact.is-featured { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .platform-feature-rates { max-width: none; }
}

.panel-ui .rede-page .rede-actions-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  margin-bottom: 14px;
}
.panel-ui .rede-page .rede-actions-grid > .m-card { min-width: 0; margin: 0; }
.panel-ui .rede-page .rede-actions-grid > .rede-action-card { min-height: 0; align-self: start; }
.panel-ui .rede-page .rede-actions-grid h2 { margin: 0 0 12px; font-size: 1.07rem; }
.panel-ui .invite-card { padding: clamp(16px, 2vw, 22px); }
.panel-ui .invite-card > p { color: var(--muted); font-size: .87rem; }
.panel-ui .invite-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 8px;
  align-items: end;
}
.panel-ui .invite-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-size: .82rem;
  font-weight: 650;
}
.panel-ui .invite-controls :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--visual-field-border, var(--line));
  border-radius: 10px;
  background: var(--visual-field, var(--bg-elev));
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
}
.panel-ui .invite-controls input { text-overflow: ellipsis; }
.panel-ui .invite-controls input:focus { text-overflow: clip; }
.panel-ui :is(.invite-controls, .invite-share) .btn {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding-inline: 10px;
  white-space: nowrap;
}
.panel-ui .invite-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}
.panel-ui .invite-rules { margin-top: 13px; border-top: 1px solid var(--line); }
.panel-ui .invite-rules > summary { padding-block: 10px 0; }
.panel-ui .invite-card :is(input, select, summary):focus-visible { outline: 2px solid var(--polish-blue); outline-offset: 2px; }
@media (max-width: 900px) {
  .panel-ui .rede-page .rede-actions-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .rede-page .rede-actions-grid .rede-action-card { padding: 16px; }
  .panel-ui .rede-page .rede-actions-grid .rede-action-card .btn { min-height: 44px; }
}
@media (max-width: 600px) {
  .panel-ui .invite-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .panel-ui .invite-controls label:first-child { grid-column: 1 / -1; }
  .panel-ui .invite-controls :is(input, select) { font-size: 16px; }
  .panel-ui .invite-share .btn { flex: 1 1 auto; padding-inline: 8px; }
  .panel-ui .invite-rules > summary { min-height: 40px; }
}

/* A transformed shell makes its fixed sidebar use the shell as its viewport. */
.panel-ui .shell.ativar-page { animation: none; transform: none; }
.panel-ui .activation-workflow .activation-heading,
.panel-ui .activation-workflow .activation-content { width: min(100%, 760px); margin-inline: auto; }
.panel-ui .activation-workflow .activation-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block: 20px 14px;
}
.panel-ui .activation-heading h1 { margin: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.panel-ui .activation-links { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-ui .activation-links .btn { width: auto; margin: 0; min-height: 40px; padding-inline: 12px; }
.panel-ui .activation-workflow .ativar-card { padding: clamp(16px, 3vw, 26px); }
.panel-ui .activation-workflow .ativar-role-wrap { margin: 0 0 18px; }
.panel-ui .activation-workflow .ativar-role-pick { margin-top: 8px; }
.panel-ui .activation-workflow .ativar-role-btn { min-height: 44px; }
.panel-ui .activation-workflow .field { margin: 0 0 14px; }
.panel-ui .activation-workflow .copy-row { gap: 8px; }
.panel-ui .activation-workflow .copy-row input {
  min-width: 0;
  min-height: 48px;
  font-size: 16px;
}
.panel-ui .activation-workflow .copy-row .btn { min-height: 48px; width: auto; padding-inline: 16px; }
.panel-ui .activation-workflow .ativar-badge.off { margin: 0 0 14px; white-space: normal; }
.panel-ui .activation-hint,
.panel-ui .activation-progress { display: block; margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.panel-ui .activation-submit { width: 100%; min-height: 48px; margin: 0; }
.panel-ui .activation-workflow [hidden] { display: none !important; }
.panel-ui .activation-workflow .ativar-result {
  margin: 12px 0 0;
  scroll-margin-bottom: 100px;
  overflow-wrap: anywhere;
}
.panel-ui .activation-workflow .ativar-result p { white-space: pre-line; }
.panel-ui .activation-workflow .ativar-result:focus { outline: 2px solid var(--polish-blue); outline-offset: 2px; }
.panel-ui .activation-workflow .ativar-reference { margin: 0 0 12px; border: 1px solid var(--line); }
.panel-ui .activation-workflow .ativar-reference > summary { min-height: 0; padding: 4px 0; color: var(--polish-blue); }
.panel-ui .activation-workflow .team-rules-body h2 { margin: 14px 0 6px; color: var(--text); font-size: .88rem; }
.panel-ui .activation-accounts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 12px; padding: 0; }
.panel-ui .activation-accounts li { padding: 4px 8px; background: var(--polish-soft); border: 1px solid var(--line); border-radius: 8px; }
.panel-ui .activation-accounts strong { color: var(--text); }
@media (max-width: 600px) {
  .panel-ui .activation-workflow .activation-heading { margin-top: 13px; }
  .panel-ui .activation-links .btn { min-height: 44px; padding-inline: 9px; }
}

.panel-ui .team-heading,
.panel-ui .team-group-head,
.panel-ui .team-member-head,
.panel-ui .team-member-name,
.panel-ui .team-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-ui .team-heading,
.panel-ui .team-group-head,
.panel-ui .team-member-head { justify-content: space-between; }
.panel-ui .team-heading { margin: 18px 0 14px; gap: 14px; }
.panel-ui .team-heading h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.panel-ui :is(.team-group-head, .team-form-card) h2 { margin: 0; font-size: 1rem; }
.panel-ui .team-group-head { padding: 2px 0 10px; }
.panel-ui .team-group-head h2 span {
  display: inline-block;
  min-width: 1.55em;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 12px;
  background: var(--polish-soft);
  color: var(--polish-blue);
  text-align: center;
  font-size: .76rem;
}
.panel-ui .team-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}
.panel-ui :is(.team-toolbar, .team-rules-body) label { display: grid; gap: 6px; font-size: .82rem; color: var(--text); font-weight: 650; }
.panel-ui .team-search-field { position: relative; display: block; }
.panel-ui .team-search-field > .ico {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.panel-ui .team-search-field > .ico svg { width: 100%; height: 100%; }
.panel-ui :is(.team-toolbar, .team-rules-body, .team-form-card, .team-group) :is(input[type="search"], select) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--visual-field-border, var(--line));
  border-radius: 10px;
  color: var(--text);
  background: var(--visual-field, var(--bg-elev));
  font: inherit;
  font-size: .88rem;
}
.panel-ui .team-search-field input[type="search"] { padding-left: 36px; }
.panel-ui .team-roles { display: flex; flex-wrap: wrap; gap: 5px; }
.panel-ui .team-roles button {
  min-height: 36px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.panel-ui .team-roles button[aria-pressed="true"] { background: var(--polish-soft); border-color: var(--polish-border); color: var(--polish-blue); }
.panel-ui .team-result { margin: 0; align-self: center; justify-self: end; color: var(--muted); font-size: .78rem; }
.panel-ui .team-member { border-top: 1px solid var(--line); padding: 12px 0; }
.panel-ui .team-member:last-child { padding-bottom: 3px; }
.panel-ui .team-member.is-hit { border-top-color: var(--polish-blue); }
.panel-ui .team-member h3 { margin: 0; font-size: .91rem; overflow-wrap: anywhere; }
.panel-ui .team-member-name { flex: 1 1 160px; min-width: 0; }
.panel-ui .team-status {
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--polish-soft);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}
.panel-ui .team-status.is-active { color: var(--visual-success, var(--polish-blue)); }
.panel-ui .team-status.is-pending { color: var(--visual-warning, var(--polish-blue)); }
.panel-ui .team-member-ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.panel-ui .team-id {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--polish-soft);
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.panel-ui .team-id strong { color: var(--text); }
.panel-ui .team-id svg { height: 13px; width: 13px; flex-shrink: 0; }
.panel-ui .team-id:hover { border-color: var(--polish-blue); }
.panel-ui .team-member-platform, .panel-ui .team-empty { margin-block: 7px 0; color: var(--muted); font-size: .86rem; }
.panel-ui .team-member-actions { margin-left: auto; max-width: 100%; }
.panel-ui :is(.team-member-actions, .team-rules) summary {
  cursor: pointer;
  color: var(--polish-blue);
  font-size: .85rem;
  font-weight: 700;
}
.panel-ui .team-member-actions summary { padding: 9px 0; width: max-content; margin-left: auto; }
.panel-ui :is(.team-actions, .team-group-head) .btn { width: auto; min-height: 38px; margin: 0; padding: 7px 11px; font-size: .8rem; white-space: normal; }
.panel-ui .team-actions .team-remove { color: var(--visual-danger, #e45d78); }
.panel-ui .team-rules > summary { padding-block: 4px; }
.panel-ui .team-rules-body { margin-top: 12px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.panel-ui .team-rules-body select { max-width: 270px; margin: 4px 0 10px; }
.panel-ui .team-rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 410px; }
.panel-ui .team-rate-grid > div { display: grid; gap: 2px; padding: 8px; background: var(--polish-soft); border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.panel-ui .team-rate-grid strong { color: var(--text); font-size: 1.05rem; }
.panel-ui :is(.team-rate-grid, .team-member-actions) + p { margin-top: 8px; }
.panel-ui .team-member-actions .team-actions { justify-content: flex-end; }
.panel-ui .team-member-actions[open] { flex-basis: 100%; }
.panel-ui :is(.team-toolbar, .team-member, .team-rules) :is(button, select, summary, input):focus-visible {
  outline: 2px solid var(--polish-blue);
  outline-offset: 2px;
}
.panel-ui .team-management [hidden] { display: none !important; }
@media (max-width: 600px) {
  .panel-ui .team-toolbar { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .panel-ui .team-result { justify-self: start; }
  .panel-ui .team-heading > .team-actions { width: 100%; }
  .panel-ui .team-heading > .team-actions .btn { flex: 1 1 130px; min-height: 44px; }
  .panel-ui :is(.team-toolbar, .team-rules-body, .team-form-card, .team-group) :is(input[type="search"], select) { font-size: 16px; }
  .panel-ui .team-roles button, .panel-ui .team-id { min-height: 40px; }
}
body.panel-ui {
  --polish-blue: #78a9ff;
  --polish-glow: rgba(71, 119, 247, .13);
  --polish-border: #344b6b;
  --polish-surface: #111f34;
  --polish-soft: #15263f;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: #080f1d;
  background-image: radial-gradient(ellipse at 84% 0, rgba(77, 75, 189, .13), transparent 42%), radial-gradient(ellipse at 20% 20%, rgba(20, 132, 159, .08), transparent 48%);
  background-repeat: no-repeat;
}
html[data-theme="light"] body.panel-ui {
  --polish-blue: #2455ac;
  --polish-glow: rgba(54, 102, 202, .09);
  --polish-border: #c5d4e9;
  --polish-surface: #fff;
  --polish-soft: #eff5ff;
  background-color: #f3f6fc;
  background-image: radial-gradient(ellipse at 84% 0, rgba(128, 106, 230, .09), transparent 42%), radial-gradient(ellipse at 20% 20%, rgba(17, 142, 158, .06), transparent 48%);
}
.panel-ui .m-sticky {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 7px 22px rgba(0, 5, 18, .07);
}
.panel-ui .bottom-nav {
  background: linear-gradient(160deg, var(--polish-surface), var(--bg-elev));
  box-shadow: 0 12px 40px rgba(0, 5, 18, .12);
}
.panel-ui .bottom-nav > button {
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.panel-ui .bottom-nav > button.active {
  background: linear-gradient(110deg, var(--visual-selected), var(--polish-soft));
  box-shadow: inset 3px 0 var(--polish-blue), 0 3px 12px var(--polish-glow);
}
.panel-ui .btn {
  border-radius: 12px;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.panel-ui .btn.btn-primary:not(:disabled) {
  background: linear-gradient(125deg, #3978ee, #354fce);
  color: #fff;
  border-color: #6090f1;
  box-shadow: 0 5px 15px rgba(34, 78, 190, .2), inset 0 1px rgba(255, 255, 255, .14);
}
.panel-ui .btn:focus-visible,
.panel-ui .home-quick-action:focus-visible,
.panel-ui .bottom-nav > button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.panel-ui .partner-home .home-welcome h1 {
  letter-spacing: -.045em;
  font-size: clamp(1.85rem, 2.7vw, 2.55rem);
  line-height: 1.14;
}
.panel-ui .partner-home .home-welcome > div > .m-kicker {
  color: var(--polish-blue);
  letter-spacing: .12em;
}
.panel-ui .partner-home .home-data-status {
  gap: 14px;
}
.panel-ui .partner-home .home-data-status [role="status"] {
  max-width: 270px;
  font-size: .79rem;
  line-height: 1.6;
  color: var(--muted);
}
.panel-ui .partner-home .home-data-status [role="status"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--visual-turquoise);
  margin-right: 7px;
  vertical-align: 1px;
}
.panel-ui .partner-home .home-data-status.has-error [role="status"]::before {
  background: var(--visual-warning);
}
.panel-ui .partner-home .home-hero-grid { gap: 18px; }
.panel-ui .partner-home .home-balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #547bb5;
  background: radial-gradient(ellipse at 100% 0%, rgba(123, 112, 243, .3), transparent 54%), linear-gradient(120deg, #173857, #162e51 65%, #222d60);
  box-shadow: 0 10px 35px rgba(9, 29, 73, .25), inset 0 1px rgba(200, 223, 255, .1);
  color: #fff;
}
.panel-ui .partner-home .home-balance-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -105px;
  border: 1px solid rgba(165, 197, 255, .19);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(165, 197, 255, .035), 0 0 0 64px rgba(165, 197, 255, .025);
  z-index: -1;
  pointer-events: none;
}
.panel-ui .partner-home .home-balance-heading .m-kicker {
  color: #c7dcff;
  font-size: .77rem;
  letter-spacing: .095em;
}
.panel-ui .partner-home .home-balance-value {
  font-size: clamp(2.5rem, 4vw, 3.65rem);
  letter-spacing: -.055em;
  color: #fff;
  text-shadow: 0 3px 18px rgba(87, 153, 255, .13);
  font-variant-numeric: tabular-nums;
}
.panel-ui .partner-home .home-balance-caption,
.panel-ui .partner-home .home-balance-card .m-hint { color: #c8d9ed; }
.panel-ui .partner-home .home-balance-card .btn-ghost {
  background: rgba(9, 25, 49, .28);
  color: #edf4ff;
  border-color: #7393bb;
}
.panel-ui .partner-home .home-balance-card .home-balance-actions .btn-primary:not(:disabled) {
  background: linear-gradient(115deg, #a7f2df, #8cddf0);
  color: #082b3c;
  border-color: #a7edec;
  box-shadow: 0 5px 16px rgba(74, 212, 213, .12);
}
.panel-ui .partner-home .home-balance-actions .btn { min-height: 46px; }
.panel-ui .partner-home .home-quick-card {
  border-radius: 22px;
  background: linear-gradient(150deg, var(--polish-surface), var(--bg-card));
  box-shadow: 0 8px 26px rgba(0, 5, 18, .1);
}
.panel-ui .partner-home .home-quick-heading h2 { font-size: 1.05rem; }
.panel-ui .partner-home .home-quick-heading > span {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--polish-blue);
  background: var(--polish-soft);
}
.panel-ui .partner-home .home-quick-action {
  border-radius: 12px;
  min-height: 60px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.panel-ui .partner-home .home-quick-action > .ico {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 7px;
  background: rgba(110, 164, 244, .07);
}
.panel-ui .partner-home .home-quick-action > span:last-child { opacity: .65; }
.panel-ui .partner-home .home-connection-row { border-radius: 12px; }
.panel-ui .partner-home .home-reward-next {
  border: 1px solid var(--polish-border);
  border-left: 3px solid var(--visual-violet);
  border-radius: 18px;
  background: linear-gradient(105deg, var(--polish-soft), var(--bg-card));
  box-shadow: 0 5px 22px var(--polish-glow);
}
.panel-ui .partner-home .home-reward-next h2 { font-size: 1.16rem; line-height: 1.4; }
.panel-ui .partner-home .home-section-heading h2 {
  font-size: 1.2rem;
  letter-spacing: -.025em;
  line-height: 1.4;
}
.panel-ui .partner-home .home-period-wrap .m-period {
  padding: 5px;
  border-radius: 13px;
  background: var(--bg-elev);
  border-color: var(--line);
}
.panel-ui .partner-home .home-period-wrap .m-period button {
  border-radius: 9px;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.panel-ui .partner-home .home-period-wrap .m-period button.on {
  background: linear-gradient(120deg, #3978ee, #354fce);
  color: #fff;
  border-color: #6090f1;
  box-shadow: 0 3px 10px rgba(34, 78, 190, .2);
}
.panel-ui .partner-home .home-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 5, 18, .1);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.panel-ui .partner-home .home-kpi-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -40px;
  width: 95px;
  height: 95px;
  border: 18px solid currentColor;
  border-radius: 50%;
  color: var(--visual-positive);
  opacity: .035;
  pointer-events: none;
}
.panel-ui .partner-home .home-kpi-card:nth-child(2)::after { color: var(--visual-turquoise); }
.panel-ui .partner-home .home-kpi-card:nth-child(3)::after { color: var(--visual-violet); }
.panel-ui .partner-home .home-kpi-value { font-size: clamp(1.85rem, 2.6vw, 2.35rem); }
.panel-ui .partner-home .home-kpi-comparison { font-weight: 600; }
.panel-ui .partner-home .home-team-grid {
  border-radius: 18px;
  background: linear-gradient(115deg, var(--polish-surface), var(--bg-card));
  box-shadow: 0 5px 20px rgba(0, 5, 18, .07);
}
.panel-ui .partner-home .home-team-stat strong { font-size: 1.95rem; letter-spacing: -.035em; }
.panel-ui .partner-home .home-launch-card {
  border-radius: 18px;
  border-color: #486da8;
  background: linear-gradient(110deg, #1d4078, #1e2d51 75%, #302c5e);
  box-shadow: 0 6px 22px rgba(0, 5, 18, .1);
}
/* The legacy watermark was hard-coded to a different platform. */
.panel-ui .partner-home .home-launch-card::after { display: none; }
.panel-ui .partner-home .home-launch-card .home-launch-title h2,
.panel-ui .partner-home .home-launch-card p,
.panel-ui .partner-home .home-launch-card summary { color: #eef4ff; }
.panel-ui .partner-home .home-launch-card .home-launch-title small { color: #c7dcff; }
.panel-ui .partner-home .m-card,
.panel-ui .partner-home .home-house-list {
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 5, 18, .08);
}
.panel-ui .partner-home .m-chart-track i {
  background: linear-gradient(180deg, #a8c9ff, #588bf1 55%, #5860d9);
  border-radius: 7px 7px 2px 2px;
}
.panel-ui .partner-home .m-chart-col { border-radius: 13px; }
.panel-ui .m-ledger-grid b,
.panel-ui .m-today-grid b,
.panel-ui .m-sec { color: var(--text); }
.panel-ui .m-ledger-grid > div:first-child b { color: var(--accent-2); }
.panel-ui .modal {
  border-radius: 20px;
  border-color: var(--polish-border);
  box-shadow: 0 20px 70px rgba(0, 5, 18, .3);
}
@media (hover: hover) and (pointer: fine) {
  .panel-ui .btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px var(--polish-glow);
  }
  .panel-ui .btn.btn-primary:not(:disabled):hover { filter: brightness(1.06); }
  .panel-ui .partner-home .home-quick-action:hover {
    transform: translateY(-2px);
    border-color: var(--polish-blue);
    box-shadow: 0 5px 16px var(--polish-glow);
  }
  .panel-ui .partner-home .home-kpi-card:hover {
    border-color: var(--polish-blue);
    box-shadow: 0 8px 26px var(--polish-glow);
  }
}
@media (max-width: 620px) {
  .panel-ui .partner-home .home-welcome h1 { font-size: 1.95rem; }
  .panel-ui .partner-home .home-balance-card,
  .panel-ui .partner-home .home-quick-card { border-radius: 18px; }
  .panel-ui .partner-home .home-balance-value { font-size: clamp(2.35rem, 10vw, 3rem); }
  .panel-ui .partner-home .home-data-status { align-items: center; gap: 10px; }
  .panel-ui .partner-home .home-data-status [role="status"] { font-size: .73rem; }
  .panel-ui .partner-home .home-data-status .btn { flex-shrink: 0; }
  .panel-ui .partner-home .home-kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .partner-home .home-kpi-card { padding: 17px 18px; }
  .panel-ui .partner-home .home-kpi-value { font-size: 2rem; }
  .panel-ui .partner-home .home-team-stat strong { font-size: 1.75rem; }
  .panel-ui .bottom-nav > button.active { box-shadow: inset 0 2px var(--polish-blue); }
  .panel-ui .bottom-nav { box-shadow: 0 -5px 24px rgba(0, 5, 18, .14); }
}
@media (prefers-reduced-motion: reduce) {
  .panel-ui .btn,
  .panel-ui .bottom-nav > button,
  .panel-ui .partner-home .home-quick-action,
  .panel-ui .partner-home .home-kpi-card,
  .panel-ui .partner-home .home-period-wrap .m-period button { transition: none; }
  .panel-ui .btn:not(:disabled):hover,
  .panel-ui .partner-home .home-quick-action:hover { transform: none; }
}

/* The supplied cover belongs to the entrance; dashboard space stays available for results. */
.panel-ui > .dn-site-cover { display: none; }
body.panel-ui:has(#app .login-wrap) {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 430px);
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px);
}
.panel-ui:has(#app .login-wrap) > .dn-site-cover {
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #284c78;
  border-radius: 28px;
  background: #06162c;
  box-shadow: 0 20px 70px rgba(0, 13, 40, .22), 0 0 35px rgba(37, 140, 246, .09);
}
.panel-ui > .dn-site-cover img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.panel-ui:has(#app .login-wrap) > #app { min-width: 0; min-height: 0; width: 100%; }
.panel-ui:has(.dn-site-cover) .login-wrap { width: 100%; min-height: 0; padding: 0; }
.panel-ui:has(.dn-site-cover) .login-layout {
  display: block;
  min-height: 0;
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(0, 5, 18, .18);
}
.panel-ui:has(.dn-site-cover) .login-showcase { display: none; }
.panel-ui:has(.dn-site-cover) .login-layout .login-card {
  padding: 66px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.panel-ui:has(.dn-site-cover) .login-mobile-brand {
  display: flex;
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  margin: 0;
}
.panel-ui:has(.dn-site-cover) .login-mobile-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}
.panel-ui:has(.dn-site-cover) .login-mobile-brand .brand-title { display: none; }
.panel-ui:has(.dn-site-cover) .login-card.onboard { border-radius: 24px; }
html[data-theme="light"] .panel-ui .login-layout .field label { color: var(--text); }
html[data-theme="light"] .panel-ui .login-layout .secure-note { color: var(--muted); }
html[data-theme="light"] .panel-ui .login-layout .login-kicker { color: var(--polish-blue); }
@media (max-width: 850px) {
  body.panel-ui:has(#app .login-wrap) {
    grid-template-columns: minmax(0, 440px);
    align-content: center;
    gap: 20px;
    padding: 20px 16px 28px;
  }
  .panel-ui:has(#app .login-wrap) > .dn-site-cover {
    width: min(220px, 100%);
    justify-self: center;
    border-radius: 20px;
  }
  .panel-ui:has(.dn-site-cover) .login-layout .login-card { padding: 60px 23px 26px; }
}

/* Featured CPA platforms */
.panel-ui .house-cpa-feature {
  --house-feature-ink: #f6fff8;
  --house-feature-soft: #c0decf;
  display: block;
  grid-column: 1 / -1;
  position: relative;
  min-width: 0;
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #cce45b;
  border-radius: 22px;
  color: var(--house-feature-ink);
  background: radial-gradient(ellipse at 100% 0, rgba(249, 224, 60, .16), transparent 60%), linear-gradient(125deg, #063f36, #082822 75%);
  box-shadow: 0 15px 36px rgba(0, 0, 0, .18), inset 0 1px rgba(255,255,255,.12);
  overflow: hidden;
}
.panel-ui .house-cpa-feature[hidden] { display: none; }
.panel-ui .platform-results > .house-cpa-feature { margin: 0 0 16px; }
.panel-ui .house-cpa-heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
.panel-ui .house-cpa-heading img { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 17px; object-fit: contain; background: #fff; box-shadow: 0 7px 19px rgba(0,0,0,.18); }
.panel-ui .house-cpa-heading > div { min-width: 0; }
.panel-ui .house-cpa-kicker { display: block; color: #e9f56b; font-size: .72rem; line-height: 1.5; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-ui .house-cpa-heading h2 { margin: 2px 0 3px; color: #fff; font-size: 2rem; line-height: 1.15; font-weight: 900; letter-spacing: -.04em; }
.panel-ui .house-cpa-heading p { margin: 0; color: var(--house-feature-soft); font-size: .8rem; line-height: 1.6; overflow-wrap: anywhere; }
.panel-ui .house-cpa-seal { margin-left: auto; color: #ffe866; font-size: 2rem; }
.panel-ui .house-cpa-intro { margin: 20px 0 13px; color: var(--house-feature-ink); font-size: 1rem; font-weight: 600; line-height: 1.6; }
.panel-ui .house-cpa-rates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.panel-ui .house-cpa-rates > div { display: grid; gap: 4px; min-width: 0; padding: 15px 10px; text-align: center; background: rgba(0,0,0,.21); border: 1px solid rgba(223, 239, 148, .25); border-radius: 13px; }
.panel-ui .house-cpa-rates span { color: #e1f0e8; font-size: .85rem; font-weight: 700; line-height: 1.5; }
.panel-ui .house-cpa-rates strong { color: #ffec64; font-size: 2rem; line-height: 1.2; font-weight: 900; white-space: nowrap; }
.panel-ui .house-cpa-rule { max-width: 760px; margin: 13px 0 20px; color: var(--house-feature-soft); font-size: .8rem; line-height: 1.7; }
.panel-ui .house-cpa-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 17px; border-top: 1px solid rgba(209,237,223,.22); }
.panel-ui .house-cpa-total { display: grid; gap: 4px; }
.panel-ui .house-cpa-total span { color: var(--house-feature-soft); font-size: .75rem; line-height: 1.5; }
.panel-ui .house-cpa-total strong { color: #fff; font-size: 1.35rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.panel-ui .house-cpa-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-ui .house-cpa-actions .btn { min-height: 44px; padding: 10px 15px; border-radius: 11px; font-size: .82rem; }
.panel-ui .house-cpa-actions .btn.btn-primary:not(:disabled) { color: #15341c; background: #e6f268; border-color: #e6f268; box-shadow: none; }
.panel-ui .house-cpa-actions .btn-ghost { color: #effbf2; background: rgba(255,255,255,.06); border-color: rgba(218,243,228,.32); }
.panel-ui .house-cpa-actions .btn:hover { filter: brightness(1.08); }
.panel-ui .house-cpa-actions .btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) {
  .panel-ui .house-cpa-feature { padding: 18px 15px; border-radius: 18px; }
  .panel-ui .house-cpa-heading { gap: 12px; }
  .panel-ui .house-cpa-heading img { width: 60px; height: 60px; border-radius: 13px; }
  .panel-ui .house-cpa-heading h2 { font-size: 1.65rem; }
  .panel-ui .house-cpa-kicker { font-size: .62rem; letter-spacing: .06em; }
  .panel-ui .house-cpa-heading p { font-size: .72rem; }
  .panel-ui .house-cpa-seal { display: none; }
  .panel-ui .house-cpa-rates { gap: 6px; }
  .panel-ui .house-cpa-rates > div { padding: 12px 3px; border-radius: 10px; }
  .panel-ui .house-cpa-rates strong { font-size: 1.5rem; }
  .panel-ui .house-cpa-rates span { font-size: .72rem; }
  .panel-ui .house-cpa-intro { font-size: .9rem; }
  .panel-ui .house-cpa-actions { width: 100%; }
  .panel-ui .house-cpa-actions .btn { flex: 1 1 auto; }
}

.panel-ui .commission-directory .history-heading { gap: 8px; margin: 16px 0 12px; }
.panel-ui .commission-directory .history-heading h1 { margin: 0; }
.panel-ui .commission-directory .history-refresh-error { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.panel-ui .commission-directory .history-heading > .btn,
.panel-ui .commission-directory .history-control-line > .btn { width: auto; min-height: 44px; margin: 0; }
.panel-ui .commission-directory .history-filters {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 12px;
  padding: 14px 14px 4px;
  margin-bottom: 12px;
}
.panel-ui .commission-directory .history-filters .history-query { grid-column: auto; }
.panel-ui .commission-directory .history-control-line {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.panel-ui .commission-directory [hidden] { display: none !important; }
.panel-ui .commission-directory .history-type-options { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-ui .commission-directory .history-type-options button {
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--bg-card-2);
  font: inherit;
  font-size: .825rem;
  font-weight: 650;
  cursor: pointer;
}
.panel-ui .commission-directory .history-type-options button[aria-pressed="true"] {
  border-color: var(--polish-border);
  color: var(--polish-blue);
  background: var(--polish-soft);
}
.panel-ui .commission-directory .history-advanced[open] { padding-bottom: 10px; }
.panel-ui .commission-directory .history-result-tools { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 8px; }
.panel-ui .commission-directory .history-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 14px;
  color: var(--muted);
  font-size: .8rem;
}
.panel-ui .commission-directory .history-overview strong { color: var(--text); font-variant-numeric: tabular-nums; }
.panel-ui .commission-directory .history-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.panel-ui .commission-directory .history-entry {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
}
.panel-ui .commission-directory .history-entry-summary {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.45fr) minmax(0, 1.65fr) auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
}
.panel-ui .commission-directory .history-entry-summary::-webkit-details-marker { display: none; }
.panel-ui .commission-directory .history-entry-summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }
.panel-ui .commission-directory .history-entry-heading,
.panel-ui .commission-directory .history-entry-identity,
.panel-ui .commission-directory .history-entry-amounts > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.panel-ui .commission-directory .history-entry-heading > strong { color: var(--text); font-size: .96rem; }
.panel-ui .commission-directory .history-kind { justify-self: start; color: var(--muted); font-size: .75rem; }
.panel-ui .commission-directory .history-kind.is-recharge { color: var(--polish-blue); }
.panel-ui .commission-directory .history-entry-identity { color: var(--muted); font-size: .8rem; }
.panel-ui .commission-directory .history-entry-identity bdi { color: var(--text); font-weight: 650; }
.panel-ui .commission-directory .history-entry-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.panel-ui .commission-directory .history-entry-amounts > span:only-child { grid-column: 2; }
.panel-ui .commission-directory .history-entry-amounts small { color: var(--muted); font-size: .72rem; }
.panel-ui .commission-directory .history-entry-amounts b { color: var(--text); font-size: .86rem; }
.panel-ui .commission-directory .history-entry-credit strong { color: var(--visual-positive); font-size: .98rem; }
.panel-ui .commission-directory .history-entry-credit.is-debit strong { color: var(--text); }
.panel-ui .commission-directory .history-entry-toggle { white-space: nowrap; color: var(--polish-blue); font-size: .8rem; font-weight: 650; }
.panel-ui .commission-directory .history-entry-toggle > span { display: inline-block; margin-left: 3px; }
.panel-ui .commission-directory details[open] .history-entry-toggle > span { transform: rotate(180deg); }
.panel-ui .commission-directory .history-entry-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 14px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  font-size: .8rem;
}
.panel-ui .commission-directory .history-entry-details dt { color: var(--muted); }
.panel-ui .commission-directory .history-entry-details dd { margin: 3px 0 0; color: var(--text); font-weight: 650; }

@media (max-width: 760px) {
  .panel-ui .commission-directory .history-filters { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 3px; }
  .panel-ui .commission-directory .history-filters :is(input, select) { font-size: 16px; }
  .panel-ui .commission-directory .history-entry-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    padding: 10px 12px;
  }
  .panel-ui .commission-directory .history-entry-heading { grid-row: 1; grid-column: 1; }
  .panel-ui .commission-directory .history-entry-amounts { grid-row: 1; grid-column: 2; }
  .panel-ui .commission-directory .history-entry-identity { grid-row: 2; grid-column: 1 / -1; }
  .panel-ui .commission-directory .history-entry-toggle { grid-row: 3; grid-column: 1 / -1; }
  .panel-ui .commission-directory .history-entry-details { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 12px; }
}

.panel-ui .home-directory .home-welcome { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; }
.panel-ui .home-directory .home-welcome h1 { margin: 0; }
.panel-ui .home-directory .home-data-status { width: auto; gap: 6px 10px; }
.panel-ui .home-directory .home-hero-grid { gap: 12px; margin: 0 0 18px; }
.panel-ui .home-directory :is(.home-balance-card, .home-quick-card) { min-width: 0; min-height: 0; padding: 16px; border-radius: 16px; }
.panel-ui .home-directory .home-balance-heading .balance-visibility { min-height: 44px; }
.panel-ui .home-directory .home-balance-value { margin: 6px 0 14px; font-size: clamp(2rem, 4vw, 3.05rem); overflow-wrap: anywhere; }
.panel-ui .home-directory .home-balance-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-ui .home-directory .home-balance-actions .btn { margin: 0; }
.panel-ui .home-directory .home-balance-actions .ico { width: 16px; height: 16px; }
.panel-ui .home-directory .home-balance-card .m-hint { margin: 8px 0 0; font-size: .75rem; }
.panel-ui .home-directory .home-last-withdraw {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content) auto;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 8px;
  margin: 10px 0 0;
  padding: 6px 10px;
  border: 1px solid #57759b;
  border-radius: 11px;
  background: #132946;
  color: #eef5ff;
  font: inherit;
  font-size: .81rem;
  text-align: left;
  cursor: pointer;
}
.panel-ui .home-directory .home-last-withdraw:hover { background: #1a375b; }
.panel-ui .home-directory .home-last-withdraw:focus-visible { outline: 2px solid #b5dbff; outline-offset: 2px; }
.panel-ui .home-directory .home-last-withdraw .withdraw-status { max-width: 180px; background: #30496a; color: #e5efff; }
.panel-ui .home-directory .home-last-withdraw .withdraw-status.is-waiting { background: #4c371c; color: #ffe4aa; }
.panel-ui .home-directory .home-last-withdraw .withdraw-status.is-paid { background: #183f38; color: #a5f4c9; }
.panel-ui .home-directory .home-last-withdraw > span:last-child { color: #b5d4fc; font-size: 1.2rem; line-height: 1; }
.panel-ui .home-directory .home-quick-card { display: flex; flex-direction: column; gap: 10px; }
.panel-ui .home-directory .home-quick-heading { margin: 0; }
.panel-ui .home-directory .home-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.panel-ui .home-directory .home-quick-action { grid-template-columns: 23px minmax(0, 1fr) auto; gap: 8px; min-height: 48px; padding: 8px 10px; }
.panel-ui .home-directory .home-quick-action > .ico { width: 23px; height: 23px; }
.panel-ui .home-directory .home-quick-action > span:last-child { display: block; }
.panel-ui .home-directory .home-invite-label { min-width: 0; display: grid; gap: 2px; }
.panel-ui .home-directory .home-invite-label small { color: var(--muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-ui .home-directory [data-home-invite-copy] { border-color: var(--polish-border); background: var(--polish-soft); }
.panel-ui .home-directory .home-period-section { margin: 0 0 16px; }
.panel-ui .home-directory .home-section-heading { align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.panel-ui .home-directory .home-kpi-grid { gap: 8px; }
.panel-ui .home-directory .home-kpi-card { padding: 12px 14px; border-radius: 13px; }
.panel-ui .home-directory .home-kpi-label { font-size: .8rem; }
.panel-ui .home-directory .home-kpi-value { margin: 4px 0; font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
.panel-ui .home-directory .home-kpi-card > small { margin-top: 2px; }
.panel-ui .home-directory :is(.home-period-info, .home-recent-commissions) p { margin: 0; color: var(--muted); font-size: .85rem; }
.panel-ui .home-directory .home-period-info { margin-top: 3px; }
.panel-ui .home-directory .home-period-info summary { min-height: 44px; width: fit-content; padding: 11px 2px; color: var(--polish-blue); cursor: pointer; font-size: .8rem; }
.panel-ui .home-directory .home-period-info p { padding-bottom: 8px; }
.panel-ui .home-directory .home-recent-commissions { margin: 0 0 16px; padding: 10px 14px 6px; border-radius: 14px; }
.panel-ui .home-directory .home-recent-commissions .btn { margin: 0; }
.panel-ui .home-directory .home-recent-commissions ul { margin: 0; padding: 0; list-style: none; }
.panel-ui .home-directory .home-recent-commissions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.panel-ui .home-directory .home-recent-commissions li > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.panel-ui .home-directory .home-recent-commissions li strong { font-size: .88rem; }
.panel-ui .home-directory .home-recent-commissions li small { color: var(--muted); font-size: .75rem; }
.panel-ui .home-directory .home-recent-commissions li > b { flex-shrink: 0; color: var(--visual-positive); font-size: .9rem; font-variant-numeric: tabular-nums; }
.panel-ui .home-directory .home-recent-commissions > p { padding: 2px 0 10px; }
.panel-ui .home-directory .house-cpa-feature { margin: 0 0 16px; padding: 16px; }
.panel-ui .home-directory .house-cpa-heading img { width: 50px; height: 50px; border-radius: 10px; }
.panel-ui .home-directory .house-cpa-heading h2 { font-size: 1.55rem; }
.panel-ui .home-directory .house-cpa-rates { margin-top: 12px; gap: 6px; }
.panel-ui .home-directory .house-cpa-rates > div { padding: 8px 3px; border-radius: 9px; }
.panel-ui .home-directory .house-cpa-rates strong { font-size: 1.45rem; }
.panel-ui .home-directory .house-cpa-rule { margin: 9px 0 12px; }
.panel-ui .home-directory .house-cpa-bottom { padding-top: 10px; gap: 8px; }
.panel-ui .home-directory .home-more { margin: 10px 0; padding: 0; border-radius: 13px; }
.panel-ui .home-directory .home-more > summary { min-height: 46px; padding: 13px 14px; cursor: pointer; font-size: .9rem; font-weight: 650; }
.panel-ui .home-directory .home-more-content { padding: 0 14px 14px; min-width: 0; }
.panel-ui .home-directory .home-more-content > h2 { margin: 10px 0; font-size: 1rem; }
.panel-ui .home-directory .home-more-content > .home-team-section { margin-top: 10px; }
.panel-ui .home-directory .home-more-content > .home-connections { margin: 10px 0; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
.panel-ui .home-directory :is(.home-more > summary, .home-period-info > summary):focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.panel-ui .rede-page [data-invite-card] { scroll-margin-top: 138px; }

@media (max-width: 620px) {
  .panel-ui .home-directory .home-welcome h1 { font-size: 1.55rem; }
  .panel-ui .home-directory .home-welcome .home-data-status { width: auto; max-width: 100%; padding: 0; }
  .panel-ui .home-directory .home-data-status > span { font-size: .72rem; }
  .panel-ui .home-directory .home-data-status .btn { margin: 0; min-height: 44px; padding: 7px 9px; font-size: .75rem; }
  .panel-ui .home-directory :is(.home-balance-card, .home-quick-card) { padding: 12px; }
  .panel-ui .home-directory .home-balance-actions .btn { gap: 6px; padding-inline: 7px; }
  .panel-ui .home-directory .home-balance-actions .ico { display: none; }
  .panel-ui .home-directory .home-quick-action { grid-template-columns: 23px minmax(0, 1fr); padding: 6px 7px; gap: 6px; }
  .panel-ui .home-directory .home-quick-action > span:last-child { display: none; }
  .panel-ui .home-directory .home-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-ui .home-directory .home-kpi-card:first-child { grid-column: 1 / -1; }
  .panel-ui .home-directory .home-kpi-card { padding: 10px 11px; }
  .panel-ui .home-directory .home-period-wrap .m-period button { min-height: 44px; }
  .panel-ui .home-directory .home-recent-commissions .home-section-heading { flex-wrap: nowrap; }
}

@media (max-width: 380px) {
  .panel-ui .home-directory .home-quick-action { grid-template-columns: minmax(0, 1fr); text-align: center; }
}

.panel-ui .withdraw-directory > h1 { margin: 14px 0 12px; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.04em; }
.panel-ui .withdraw-directory .withdraw-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel-ui .withdraw-directory .withdraw-overview > .m-card { min-width: 0; margin: 0; padding: 16px; border-radius: 15px; }
.panel-ui .withdraw-directory .withdraw-balance { border-color: var(--polish-border); background: linear-gradient(120deg, var(--polish-soft), var(--bg-card)); }
.panel-ui .withdraw-directory .withdraw-section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.panel-ui .withdraw-directory h2 { margin: 0; font-size: 1.05rem; }
.panel-ui .withdraw-directory .withdraw-section-head .btn { width: auto; min-height: 44px; margin: 0; padding: 7px 10px; font-size: .8rem; }
.panel-ui .withdraw-directory #saque-refresh[aria-disabled="true"] { opacity: .7; cursor: wait; }
.panel-ui .withdraw-directory .withdraw-balance-value {
  display: block;
  margin: 7px 0 12px;
  color: var(--text);
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.panel-ui .withdraw-directory #btn-open-pix { min-height: 46px; width: 100%; margin: 0; }
.panel-ui .withdraw-directory .withdraw-overview p { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }
.panel-ui .withdraw-directory #saque-latest { margin-top: 10px; }
.panel-ui .withdraw-directory .withdraw-latest-value { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.panel-ui .withdraw-directory .withdraw-latest-value > strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.panel-ui .withdraw-directory #saque-latest-title { scroll-margin-top: 90px; }
.panel-ui :is(.withdraw-directory, .home-directory) .withdraw-status {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--polish-soft);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.panel-ui .withdraw-directory .withdraw-status.is-waiting { color: var(--visual-warning); background: color-mix(in srgb, var(--visual-warning) 12%, var(--bg-card)); }
.panel-ui .withdraw-directory .withdraw-status.is-paid { color: var(--visual-positive); background: var(--visual-positive-bg); }
.panel-ui .withdraw-directory .withdraw-status.is-ended { color: var(--polish-blue); }
.panel-ui .withdraw-directory .withdraw-history { margin-top: 16px; }
.panel-ui .withdraw-directory #saque-hist { display: grid; gap: 8px; margin-top: 10px; }
.panel-ui .withdraw-directory .withdraw-history-note { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--bg-card); font-size: .88rem; }
.panel-ui .withdraw-directory .withdraw-row { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.panel-ui .withdraw-directory .withdraw-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
}
.panel-ui .withdraw-directory .withdraw-row summary::-webkit-details-marker { display: none; }
.panel-ui .withdraw-directory .withdraw-row summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }
.panel-ui .withdraw-directory .withdraw-row-value { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.panel-ui .withdraw-directory .withdraw-row-value strong { font-variant-numeric: tabular-nums; }
.panel-ui .withdraw-directory .withdraw-row-value small { color: var(--muted); font-size: .75rem; }
.panel-ui .withdraw-directory .withdraw-details-label { color: var(--polish-blue); white-space: nowrap; font-size: .79rem; font-weight: 650; }
.panel-ui .withdraw-directory .withdraw-details-label > span { display: inline-block; margin-left: 3px; }
.panel-ui .withdraw-directory details[open] .withdraw-details-label > span { transform: rotate(180deg); }
.panel-ui .withdraw-directory .withdraw-progress {
  margin: 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.panel-ui .withdraw-directory .withdraw-timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-ui .withdraw-directory .withdraw-timeline li {
  position: relative;
  display: grid;
  gap: 3px;
  padding-inline-start: 21px;
}
.panel-ui .withdraw-directory .withdraw-timeline li::before {
  content: '';
  position: absolute;
  inset-block-start: .35em;
  inset-inline-start: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--polish-blue);
}
.panel-ui .withdraw-directory .withdraw-timeline li[data-withdraw-tone="paid"]::before { color: var(--visual-positive, var(--polish-blue)); }
.panel-ui .withdraw-directory .withdraw-timeline li[data-withdraw-tone="ended"]::before { color: var(--visual-warning, var(--polish-blue)); }
.panel-ui .withdraw-directory .withdraw-timeline li[data-withdraw-tone="waiting"]::before { color: var(--muted); }
.panel-ui .withdraw-directory .withdraw-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-block: calc(.35em + 9px) -12px;
  inset-inline-start: 6px;
  border-inline-start: 1px solid var(--line);
}
.panel-ui .withdraw-directory .withdraw-timeline span { color: var(--muted); }
.panel-ui .withdraw-directory .withdraw-next-step {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-card-2);
}
.panel-ui .withdraw-directory .withdraw-next-step p { margin: 0; color: var(--muted); }
.panel-ui .withdraw-directory .withdraw-next-step strong { margin-inline-end: 3px; color: var(--text); }
.panel-ui .withdraw-directory .withdraw-row-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 14px;
  padding: 10px 0 13px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.panel-ui .withdraw-directory .withdraw-row-details dt { color: var(--muted); }
.panel-ui .withdraw-directory .withdraw-row-details dd { margin: 3px 0 0; color: var(--text); }
.panel-ui .withdraw-pix { max-height: 92dvh; }
.panel-ui .withdraw-pix h3 { padding-right: 42px; margin-bottom: 14px; }
.panel-ui .withdraw-pix .modal-x { width: 44px; height: 44px; top: 9px; right: 9px; }
.panel-ui .withdraw-pix .pix-steps { margin-bottom: 13px; }
.panel-ui .withdraw-pix .field { margin-bottom: 10px; }
.panel-ui .withdraw-pix fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.panel-ui .withdraw-pix :is(input, select) { min-height: 44px; min-width: 0; font-size: 16px; }
.panel-ui .withdraw-pix .btn-max { min-height: 44px; padding: 7px 10px; letter-spacing: 0; }
.panel-ui .withdraw-pix :is(.withdraw-pix-amounts, .withdraw-pix-total) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 10px; margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.panel-ui .withdraw-pix :is(.withdraw-pix-amounts, .withdraw-pix-total) :is(strong, b) { color: var(--text); font-variant-numeric: tabular-nums; }
.panel-ui .withdraw-pix .withdraw-pix-total { padding: 8px 10px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 9px; }
.panel-ui .withdraw-pix .withdraw-pix-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; }
.panel-ui .withdraw-pix .btn { min-height: 44px; margin: 0; }
.panel-ui .withdraw-pix #pix-next { width: 100%; }

@media (max-width: 760px) {
  .panel-ui .withdraw-directory .withdraw-overview { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .withdraw-directory .withdraw-overview > .m-card { padding: 12px; }
  .panel-ui .withdraw-directory .withdraw-row summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 12px; }
  .panel-ui .withdraw-directory .withdraw-row summary > .withdraw-status { justify-self: end; }
  .panel-ui .withdraw-directory .withdraw-row-details { grid-template-columns: minmax(0, 1fr); }
}

.panel-ui .m-head-actions .panel-shortcuts-trigger {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 7px 12px;
  border-color: var(--polish-border);
  background: var(--polish-soft);
  font-size: .8rem;
}
.panel-ui .panel-shortcuts-trigger > .ico { color: var(--polish-blue); }
.panel-ui .panel-shortcuts {
  width: min(440px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 16px;
  border: 1px solid var(--polish-border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--polish-surface), var(--bg-elev));
  color: var(--text);
  box-shadow: 0 22px 70px rgba(3, 12, 28, .42), 0 0 24px var(--polish-glow);
  overflow: auto;
}
.panel-ui .panel-shortcuts[open] { animation: panel-shortcuts-open .18s ease-out both; }
.panel-ui .panel-shortcuts::backdrop { background: rgba(4, 10, 21, .65); }
.panel-ui .panel-shortcuts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-ui .panel-shortcuts-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.panel-ui .panel-shortcuts-close { width: 44px; height: 44px; min-width: 44px; font-size: 1.35rem; line-height: 1; }
.panel-ui .panel-shortcuts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.panel-ui .panel-shortcuts-grid > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: .83rem;
  font-weight: 650;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.panel-ui .panel-shortcuts-grid .ico { width: 21px; height: 21px; color: var(--polish-blue); }
.panel-ui .panel-shortcut-arrow { color: var(--muted); font-size: 1rem; }
.panel-ui .bottom-nav > button.active > .ico { filter: drop-shadow(0 0 5px var(--polish-glow)); }
.panel-ui .bottom-nav > button.active:not(:focus-visible) { outline: 1px solid color-mix(in srgb, var(--polish-blue) 22%, transparent); outline-offset: -1px; }
.panel-ui :is(.panel-shortcuts button, .m-head-actions button, .platform-star):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.panel-ui .panel-route-enter { animation: panel-route-enter .2s ease-out both; }
.panel-ui [data-panel-page-focus]:focus { outline: none; }
.panel-ui .panel-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--polish-border);
  border-inline-start: 3px solid var(--visual-positive);
  background: var(--bg-elev);
  color: var(--text);
  animation: panel-toast-enter .19s ease-out both;
}
.panel-ui .panel-toast.err { border-inline-start-color: var(--visual-warning); }
.panel-ui .panel-toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--visual-positive-bg);
  color: var(--visual-positive);
}
.panel-ui .panel-toast.err .panel-toast-icon { color: var(--visual-warning); background: var(--polish-soft); }
.panel-ui .panel-toast-icon > .ico { width: 17px; height: 17px; }
.panel-ui .panel-toast-icon + span { min-width: 0; }

@keyframes panel-route-enter {
  from { opacity: .62; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-shortcuts-open {
  from { opacity: .78; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-toast-enter {
  from { opacity: .75; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .panel-ui .panel-shortcuts-grid > button:hover,
  .panel-ui .m-head-actions .panel-shortcuts-trigger:hover {
    border-color: var(--polish-blue);
    background: var(--polish-soft);
    box-shadow: 0 4px 16px var(--polish-glow);
  }
  .panel-ui .shell .btn.btn-primary:not(:disabled):hover,
  .panel-ui .panel-shortcuts-grid > button:hover { transform: translateY(-1px); }
  .panel-ui .shell .btn.btn-primary:not(:disabled):hover { box-shadow: 0 6px 20px var(--polish-glow), inset 0 1px rgba(255,255,255,.18); }
}
.panel-ui .shell .btn.btn-primary:not(:disabled):active,
.panel-ui .panel-shortcuts-grid > button:active { transform: translateY(1px); }

@media (max-width: 620px) {
  .panel-ui .panel-shortcuts { margin: auto auto max(10px, env(safe-area-inset-bottom, 0px)); padding: 13px; border-radius: 18px; }
  .panel-ui .panel-shortcuts-grid > button { gap: 7px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .panel-ui :is(.panel-route-enter, .panel-shortcuts[open], .panel-toast) { animation: none; }
  .panel-ui .panel-shortcuts-grid > button { transition: none; }
  .panel-ui .shell .btn.btn-primary:not(:disabled):is(:hover, :active),
  .panel-ui .panel-shortcuts-grid > button:is(:hover, :active) { transform: none; }
}

.panel-ui .shell.manager-compact { min-width: 0; }
.panel-ui .manager-compact .manager-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px 15px;
  margin: 14px 0;
}
.panel-ui .manager-compact .manager-intro h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.panel-ui .manager-compact :is(.manager-top-actions, .manager-account-actions) { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-ui .manager-compact :is(.manager-top-actions, .manager-account-actions, .manager-invite-heading) .btn {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 11px;
  font-size: .82rem;
}
.panel-ui .manager-compact :is(.manager-main-grid, .manager-settings-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.panel-ui .manager-compact .manager-main-grid > :only-child { grid-column: 1 / -1; }
.panel-ui .manager-compact :is(.manager-main-grid, .manager-settings-grid) > .m-card { min-width: 0; margin: 0; padding: 15px; border-radius: 15px; }
.panel-ui .manager-compact :is(.manager-affiliate-title, .manager-invite-heading, .manager-settings-heading) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 12px;
  margin: 0 0 10px;
}
.panel-ui .manager-compact :is(.manager-affiliate-title, .manager-invite-card, .manager-settings-heading) h2 { margin: 0; font-size: 1.075rem; }
.panel-ui .manager-compact .manager-settings-heading > span { color: var(--muted); font-size: .78rem; }
.panel-ui .manager-compact .manager-search-form { margin: 0; padding: 4px 6px 4px 9px; }
.panel-ui .manager-compact .manager-search-form .btn { margin: 0; }
.panel-ui .manager-compact .manager-invite-card .invite-controls { grid-template-columns: minmax(0, 1fr) auto; }
.panel-ui .manager-compact .manager-invite-card .invite-controls label:first-child { grid-column: 1 / -1; }
.panel-ui .manager-compact .invite-rules > summary { min-height: 44px; padding-block: 12px 8px; }
.panel-ui .manager-compact .manager-section-nav { gap: 7px; margin: 14px 0 12px; padding: 0; border: 0; background: transparent; }
.panel-ui .manager-compact .manager-section-nav .btn { min-height: 44px; }
.panel-ui .manager-compact .manager-period-toolbar { gap: 9px 12px; margin-bottom: 9px; }
.panel-ui .manager-compact .manager-result-card { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.panel-ui .manager-compact .manager-metrics { margin: 0; gap: 8px; }
.panel-ui .manager-compact .manager-metrics > div { min-height: 0; padding: 12px; border-radius: 12px; }
.panel-ui .manager-compact .manager-metrics b { margin: 5px 0 2px; }
.panel-ui .manager-compact .manager-disclosure { min-width: 0; border-top: 1px solid var(--line); margin-top: 9px; }
.panel-ui .manager-compact .manager-disclosure > summary { min-height: 44px; padding: 12px 0; color: var(--polish-blue); font-size: .85rem; font-weight: 650; cursor: pointer; }
.panel-ui .manager-compact .manager-disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.panel-ui .manager-compact .manager-charts { padding: 0 12px; margin: 10px 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.panel-ui .manager-compact .manager-charts .manager-performance-grid { margin: 0 0 10px; }
.panel-ui .manager-compact .manager-charts .manager-performance-grid > .m-card { min-width: 0; margin: 0; }
.panel-ui .manager-compact .manager-connection-list { margin: 0 0 8px; }
.panel-ui .manager-compact .manager-settings-card > [data-go="mais"] { width: auto; min-height: 44px; margin: 0; }
.panel-ui .manager-compact #manager-sync-form > p { margin-top: 4px; }
.panel-ui .manager-compact #manager-sync-form > .btn { min-height: 44px; margin: 0; }
.panel-ui .manager-compact .manager-sync-password > input { min-width: 0; flex: 1; }
.panel-ui .manager-compact .manager-sync-password > .icon-btn { flex: 0 0 44px; width: 44px; height: 44px; }
.panel-ui .manager-compact .manager-account-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0 0 12px; }
.panel-ui .manager-compact .manager-account-identity dt { color: var(--muted); font-size: .78rem; }
.panel-ui .manager-compact .manager-account-identity dd { margin: 4px 0 0; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.panel-ui .manager-compact .manager-logout { color: var(--visual-danger); }

@media (min-width: 1200px) {
  .panel-ui .shell.m-home.manager-compact {
    width: min(1600px, calc(100% - 280px));
    margin-left: calc(260px + max(0px, (100vw - 1880px) / 2));
  }
}
@media (max-width: 800px) {
  .panel-ui .manager-compact :is(.manager-main-grid, .manager-settings-grid) { grid-template-columns: minmax(0, 1fr); }
  .panel-ui .manager-compact .manager-top-actions > .btn { flex: 1 1 auto; }
  .panel-ui .manager-compact .manager-section-nav .btn { flex: 1 1 0; min-width: 0; padding-inline: 6px; }
  .panel-ui .manager-compact .manager-search-form { grid-template-columns: 18px minmax(0, 1fr) auto; }
  .panel-ui .manager-compact .manager-search-form > .btn { grid-column: auto; width: auto; padding-inline: 10px; }
  .panel-ui .manager-compact #sync-pass { font-size: 16px; }
}

.panel-ui .m-sticky {
  background:
    linear-gradient(90deg, transparent 3%, var(--polish-blue) 34%, var(--visual-turquoise) 67%, transparent 96%) bottom / 100% 1px no-repeat,
    radial-gradient(ellipse at 84% 0, color-mix(in srgb, var(--polish-blue) 15%, transparent), transparent 62%),
    var(--bg);
  box-shadow: 0 9px 24px var(--polish-glow);
}
.panel-ui .bottom-nav > button.active,
html[data-theme="light"] .panel-ui .bottom-nav > button.active {
  background: linear-gradient(120deg, var(--visual-selected), color-mix(in srgb, var(--polish-blue) 12%, var(--polish-soft)));
  box-shadow: inset 3px 0 var(--polish-blue), inset 0 0 0 1px color-mix(in srgb, var(--polish-blue) 31%, transparent), 0 4px 18px var(--polish-glow);
}
.panel-ui .bottom-nav > button.active > .ico {
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--polish-blue) 55%, transparent));
}
.panel-ui :is(.m-period button.on, .history-type-options button[aria-pressed="true"], #platform-favorites-only[aria-pressed="true"]) {
  border-color: var(--polish-blue);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--polish-blue) 25%, transparent), 0 2px 12px var(--polish-glow);
}
.panel-ui .partner-home .home-balance-card {
  background:
    radial-gradient(ellipse at 87% 0, rgba(110, 153, 255, .37), transparent 59%),
    radial-gradient(ellipse at 0 100%, rgba(73, 208, 204, .19), transparent 61%),
    linear-gradient(121deg, #133451, #172b50 62%, #222652);
  box-shadow: 0 11px 32px rgba(13, 33, 64, .28), inset 0 1px rgba(173, 214, 255, .26);
}
.panel-ui .partner-home .home-balance-value { text-shadow: 0 2px 20px rgba(120, 191, 255, .26); }
.panel-ui .partner-home .home-balance-card::after {
  box-shadow: 0 0 0 28px rgba(155, 198, 255, .085), 0 0 0 58px rgba(155, 198, 255, .047);
}

.panel-ui :is(.partner-home.home-directory .home-kpi-card, .manager-page.manager-compact .manager-metrics > div) {
  --metric-accent: var(--visual-positive);
  background:
    radial-gradient(ellipse at 95% 0, color-mix(in srgb, var(--metric-accent) 21%, transparent), transparent 72%),
    var(--bg-card);
  border-color: color-mix(in srgb, var(--metric-accent) 32%, var(--line));
  box-shadow: inset 0 2px var(--metric-accent), 0 6px 20px var(--polish-glow);
}
.panel-ui :is(.home-directory .home-kpi-card:nth-child(2), .manager-compact .manager-metrics > div:nth-child(3)) { --metric-accent: var(--visual-turquoise); }
.panel-ui :is(.home-directory .home-kpi-card:nth-child(3), .manager-compact .manager-metrics > div:nth-child(2)) { --metric-accent: var(--visual-violet); }
.panel-ui .manager-compact .manager-metrics > div:nth-child(4) { --metric-accent: var(--polish-blue); }
.panel-ui .home-directory .home-kpi-grid > .home-kpi-card .home-kpi-value,
.panel-ui .manager-compact .manager-metrics > div > b { color: var(--metric-accent); }

.panel-ui .house-cpa-feature {
  background:
    radial-gradient(ellipse at 89% 0, rgba(229, 248, 101, .24), transparent 63%),
    radial-gradient(ellipse at 18% 100%, rgba(53, 221, 159, .18), transparent 54%),
    linear-gradient(125deg, #073e35, #082923 75%);
  box-shadow: 0 6px 28px rgba(89, 216, 144, .16), inset 0 1px rgba(243, 255, 171, .36);
}
.panel-ui .house-cpa-seal { text-shadow: 0 0 16px rgba(255, 232, 102, .52); }
.panel-ui .house-cpa-rates strong { text-shadow: 0 0 10px rgba(229, 248, 101, .29); }
.panel-ui .house-11xxx-feature {
  --house-feature-soft: #e2e6cf;
  border-color: #efc864;
  background: radial-gradient(ellipse at 89% 0, rgba(250, 203, 90, .2), transparent 60%), linear-gradient(125deg, #1c412e, #142c26 76%);
  box-shadow: 0 6px 28px rgba(189, 146, 58, .17), inset 0 1px rgba(255, 230, 167, .36);
}
.panel-ui .house-11xxx-feature :is(.house-cpa-kicker, .house-cpa-rates strong) { color: #ffe08b; }
.panel-ui .house-11xxx-feature .house-cpa-actions .btn.btn-primary:not(:disabled) { background: #f6d980; border-color: #f6d980; }
.panel-ui .house-t2t2-feature {
  --house-feature-soft: #d7edff;
  border-color: #7cc7ff;
  background:
    radial-gradient(ellipse at 92% 0, rgba(46, 157, 245, .34), transparent 62%),
    linear-gradient(125deg, #103e65, #0b2241 76%);
  box-shadow: 0 6px 28px rgba(35, 128, 232, .22), inset 0 1px rgba(173, 223, 255, .38);
}
.panel-ui .house-t2t2-feature :is(.house-cpa-kicker, .house-cpa-rates strong) { color: #ffe08b; }
.panel-ui .house-t2t2-feature .house-cpa-rates > div { border-color: rgba(146, 208, 255, .34); }
.panel-ui .house-t2t2-feature .house-cpa-actions .btn.btn-primary:not(:disabled) { color: #152943; background: #ffe08b; border-color: #ffe08b; }
.panel-ui .house-t2t2-feature .house-cpa-heading img { background: #0b3760; }
.panel-ui .platform-results > .platform-compact.is-featured {
  background:
    radial-gradient(ellipse at 91% 0, color-mix(in srgb, var(--visual-positive) 17%, transparent), transparent 67%),
    linear-gradient(115deg, var(--visual-positive-bg), var(--bg-card));
  box-shadow: inset 0 2px color-mix(in srgb, var(--visual-positive) 68%, transparent), 0 5px 19px var(--polish-glow);
}

.panel-ui :is(.commission-directory .history-entry, .withdraw-directory .withdraw-row):has(> details[open]) {
  background: linear-gradient(110deg, var(--polish-soft), var(--bg-card));
  border-color: var(--polish-blue);
  box-shadow: inset 3px 0 var(--polish-blue), 0 5px 18px var(--polish-glow);
}
.panel-ui :is(.withdraw-status.is-paid, .withdraw-status.is-waiting)::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-inline-end: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px color-mix(in srgb, currentColor 65%, transparent);
}
.panel-ui :is(.platform-toolbar, .history-filters, .manager-invite-card):focus-within {
  border-color: var(--polish-blue);
  box-shadow: 0 0 0 2px var(--polish-glow);
}
.panel-ui .shell .btn.btn-primary:not(:disabled):active { filter: brightness(1.13); }

@media (max-width: 1199px) {
  .panel-ui .bottom-nav > button.active,
  html[data-theme="light"] .panel-ui .bottom-nav > button.active {
    box-shadow: inset 0 2px var(--polish-blue), inset 0 0 0 1px color-mix(in srgb, var(--polish-blue) 31%, transparent), 0 4px 15px var(--polish-glow);
  }
}
@media (hover: hover) and (pointer: fine) {
  .panel-ui .shell .btn.btn-primary:not(:disabled):hover {
    box-shadow: 0 6px 23px color-mix(in srgb, var(--polish-blue) 28%, transparent), inset 0 1px rgba(255, 255, 255, .25);
  }
  .panel-ui :is(.commission-directory .history-entry, .withdraw-directory .withdraw-row):hover { border-color: var(--polish-blue); }
}

@media (prefers-reduced-motion: no-preference) {
  .panel-ui :is(.commission-directory .history-entry, .withdraw-directory .withdraw-row) {
    transition: border-color .18s ease, box-shadow .18s ease;
  }
  .panel-ui .shell:has(.panel-route-enter) :is(
    .home-hero-grid > article,
    .home-kpi-card,
    .manager-main-grid > section,
    .withdraw-overview > section,
    .history-filters,
    .platform-toolbar
  ) { animation: ta-panel-surface-enter .32s ease-out both; }
  .panel-ui .shell:has(.panel-route-enter) :is(.home-kpi-card, .home-hero-grid > article, .manager-main-grid > section, .withdraw-overview > section):nth-child(2) { animation-delay: .04s; }
  .panel-ui .shell:has(.panel-route-enter) .home-kpi-card:nth-child(3) { animation-delay: .08s; }
  .panel-ui .panel-toast:not(.err) .panel-toast-icon path { stroke-dasharray: 22; animation: ta-panel-check .38s ease-out both; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .panel-ui .house-cpa-feature:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(116deg, transparent 35%, rgba(245, 255, 172, .16) 48%, transparent 61%) 100% / 260% 100%;
    pointer-events: none;
    animation: ta-platform-sheen .8s ease-out both;
  }
}

@keyframes ta-panel-surface-enter {
  from { opacity: .66; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ta-panel-check { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }
@keyframes ta-platform-sheen { to { background-position: 0; } }

.panel-ui .m-sticky::before {
  content: "";
  position: absolute;
  inset: 0 0 1px auto;
  width: min(48%, 400px);
  background: radial-gradient(circle, color-mix(in srgb, var(--polish-blue) 30%, transparent) 1px, transparent 1.5px) 0 0 / 13px 13px;
  mask-image: linear-gradient(to right, transparent, #000);
  pointer-events: none;
  opacity: .5;
}

.panel-ui .panel-shortcuts {
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--visual-violet) 19%, transparent), transparent 53%),
    radial-gradient(ellipse at 0 85%, color-mix(in srgb, var(--visual-turquoise) 13%, transparent), transparent 67%),
    linear-gradient(145deg, var(--polish-surface), var(--bg-elev));
  box-shadow: 0 22px 70px rgba(3, 12, 28, .38), 0 0 28px var(--polish-glow), inset 0 1px color-mix(in srgb, var(--polish-blue) 34%, transparent);
}
.panel-ui .panel-shortcuts-grid > button {
  --shortcut-accent: var(--polish-blue);
  background: linear-gradient(135deg, color-mix(in srgb, var(--shortcut-accent) 10%, var(--bg-card)), var(--bg-card) 72%);
  border-color: color-mix(in srgb, var(--shortcut-accent) 25%, var(--line));
}
.panel-ui .panel-shortcuts-grid > :is([data-shortcut-go="mais"], [data-shortcut-go="rede"]) { --shortcut-accent: var(--visual-turquoise); }
.panel-ui .panel-shortcuts-grid > :is([data-shortcut-go="gerencia"], [data-shortcut-go="meus-ids"]) { --shortcut-accent: var(--visual-violet); }
.panel-ui .panel-shortcuts-grid > button .ico { color: var(--shortcut-accent); }
.panel-ui .panel-shortcuts-grid > button:focus-visible { border-color: var(--shortcut-accent); }

.panel-ui .platform-results > .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) {
  position: relative;
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--visual-turquoise) 23%, transparent), transparent 57%),
    linear-gradient(115deg, var(--visual-positive-bg), var(--bg-card) 77%);
}
.panel-ui .platform-results > .platform-compact.is-featured[data-platform-id="11xxx"] {
  border-color: var(--visual-warning);
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--visual-warning) 19%, transparent), transparent 59%),
    linear-gradient(115deg, var(--visual-positive-bg), var(--bg-card) 77%);
  box-shadow: inset 0 2px color-mix(in srgb, var(--visual-warning) 62%, transparent), 0 5px 19px var(--polish-glow);
}
.panel-ui .platform-results > .platform-compact.is-featured[data-platform-id="t2t2"] {
  border-color: var(--polish-blue);
  background:
    radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--polish-blue) 25%, transparent), transparent 62%),
    linear-gradient(115deg, var(--polish-soft), var(--bg-card) 77%);
  box-shadow: inset 0 2px var(--polish-blue), 0 5px 19px var(--polish-glow);
}
.panel-ui .platform-compact.is-featured[data-platform-id="t2t2"] .platform-feature-label { color: var(--polish-blue); }
.panel-ui .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) .platform-feature-rates > div {
  --rate-accent: var(--visual-positive);
  background: linear-gradient(150deg, color-mix(in srgb, var(--rate-accent) 15%, var(--bg-card)), var(--bg-card));
  border-color: color-mix(in srgb, var(--rate-accent) 26%, var(--line));
  box-shadow: inset 0 2px color-mix(in srgb, var(--rate-accent) 71%, transparent);
}
.panel-ui .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) .platform-feature-rates > div:nth-child(2) { --rate-accent: var(--visual-turquoise); }
.panel-ui .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) .platform-feature-rates > div:nth-child(3) { --rate-accent: var(--visual-violet); }
.panel-ui .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) .platform-feature-rates > div:nth-child(4) { --rate-accent: var(--polish-blue); }
.panel-ui .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"]) .platform-feature-rates strong { color: var(--rate-accent); }

.panel-ui :is(.history-entry, .withdraw-row) > details[open] > summary {
  background: linear-gradient(106deg, color-mix(in srgb, var(--polish-blue) 13%, transparent), transparent 76%);
  border-radius: 11px 11px 0 0;
}
.panel-ui :is(.manager-disclosure, .home-more, .invite-rules)[open] > summary { color: var(--polish-blue); }
.panel-ui :is(.m-period button, .history-type-options button):active:not(:disabled) {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--polish-blue) 52%, transparent), 0 3px 15px var(--polish-glow);
}
.panel-ui .panel-toast::after {
  content: "";
  position: absolute;
  inset: auto 10px 0;
  height: 2px;
  background: linear-gradient(90deg, var(--visual-positive), var(--visual-turquoise), transparent);
  border-radius: 2px;
  pointer-events: none;
}
.panel-ui .panel-toast.err::after { background: linear-gradient(90deg, var(--visual-warning), transparent); }

@media (prefers-reduced-motion: no-preference) {
  .panel-ui .panel-shortcuts[open] .panel-shortcuts-grid > button { animation: ta-shortcut-reveal .24s ease-out backwards; }
  .panel-ui .panel-shortcuts[open] .panel-shortcuts-grid > button:nth-child(n+3) { animation-delay: .035s; }
  .panel-ui .panel-shortcuts[open] .panel-shortcuts-grid > button:nth-child(n+5) { animation-delay: .07s; }
  .panel-ui .panel-shortcuts[open] .panel-shortcuts-grid > button:nth-child(n+7) { animation-delay: .105s; }
  .panel-ui .shell:has(.panel-route-enter) .m-sticky::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--visual-turquoise), transparent) left center / 45% 100% no-repeat;
    pointer-events: none;
    animation: ta-header-trail .8s ease-out both;
  }
  .panel-ui .shell:has(.panel-route-enter) .bottom-nav > button.active > .ico { animation: ta-nav-mark .36s ease-out; }
  .panel-ui .platform-directory:has(.panel-route-enter) .platform-compact.is-featured:is([data-platform-id="11jjj"], [data-platform-id="11xxx"], [data-platform-id="t2t2"])::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(113deg, transparent 35%, color-mix(in srgb, var(--visual-positive) 28%, transparent) 50%, transparent 65%) 100% / 260% 100%;
    pointer-events: none;
    animation: ta-feature-sweep .9s ease-out both;
  }
  .panel-ui details[open] > :is(.history-entry-details, .withdraw-row-details, .home-more-content, .team-rules-body, .manager-performance-grid, .manager-connection-list, .platform-extra-content) {
    animation: ta-detail-open .23s ease-out;
  }
  .panel-ui .panel-toast::after { transform-origin: left; animation: ta-toast-line .5s ease-out both; }
  .panel-ui :is(.m-period button, .history-type-options button):active:not(:disabled) { transform: scale(.98); }
}

@keyframes ta-shortcut-reveal { from { opacity: .65; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes ta-header-trail {
  from { opacity: 0; background-position: left center; }
  30% { opacity: 1; }
  to { opacity: 0; background-position: right center; }
}
@keyframes ta-nav-mark { from { transform: scale(.91); } 55% { transform: scale(1.12); } to { transform: none; } }
@keyframes ta-feature-sweep { from { opacity: .5; } to { opacity: 0; background-position: 0; } }
@keyframes ta-detail-open { from { opacity: .64; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes ta-toast-line { from { transform: scaleX(.12); } to { transform: scaleX(1); } }

.panel-ui .panel-scroll-progress,
.panel-ui .panel-action-ripple { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .panel-ui button:has(> .panel-action-ripple) { position: relative; }
  .panel-ui button > .panel-action-ripple {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }
  .panel-ui button > .panel-action-ripple::before {
    --ripple-ink: color-mix(in srgb, var(--polish-blue) 46%, transparent);
    content: "";
    position: absolute;
    top: var(--panel-ripple-y);
    left: var(--panel-ripple-x);
    width: var(--panel-ripple-size);
    height: var(--panel-ripple-size);
    border-radius: 50%;
    background: radial-gradient(circle, var(--ripple-ink), color-mix(in srgb, var(--ripple-ink) 72%, transparent) 54%, transparent 70%);
    animation: ta-action-ripple .48s ease-out both;
  }
  .panel-ui :is(.btn-primary, .m-period button.on) > .panel-action-ripple::before { --ripple-ink: rgba(223, 248, 255, .52); }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .panel-ui .has-panel-pointer-light { position: relative; }
  .panel-ui .has-panel-pointer-light:hover:is(.home-balance-card, .home-kpi-card, .manager-metrics > div, .withdraw-latest)::before,
  .panel-ui .has-panel-pointer-light.platform-compact:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      180px circle at var(--panel-light-x, 50%) var(--panel-light-y, 50%),
      color-mix(in srgb, var(--metric-accent, var(--polish-blue)) 28%, transparent),
      transparent 74%
    );
    pointer-events: none;
  }
}

@supports (animation-timeline: scroll(root block)) {
  @media (prefers-reduced-motion: no-preference) {
    .panel-ui .m-sticky > .panel-scroll-progress {
      display: block;
      position: absolute;
      inset: auto 0 0;
      height: 2px;
      background: linear-gradient(90deg, var(--polish-blue), var(--visual-turquoise));
      box-shadow: 0 0 9px color-mix(in srgb, var(--polish-blue) 63%, transparent);
      transform-origin: left;
      pointer-events: none;
      animation: ta-scroll-progress auto linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes ta-action-ripple {
  from { opacity: .92; transform: translate(-50%, -50%) scale(.05); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ta-scroll-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.panel-ui .partner-boot {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 20px;
}

.panel-ui .partner-boot-card {
  width: min(100%, 410px);
  padding: clamp(20px, 6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-card);
  color: var(--text);
  text-align: center;
}

.panel-ui .partner-boot-card h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.panel-ui .partner-boot-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.panel-ui .partner-boot-card .btn {
  min-height: 44px;
  text-decoration: none;
}

body.panel-ui.notice-center-open { overflow: hidden; }

.panel-ui .notice-center-overlay {
  place-items: center;
  padding: 20px;
}

.panel-ui .notice-center {
  width: min(100%, 640px);
  max-height: min(740px, calc(100vh - 40px));
  max-height: min(740px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg-elev);
}

.panel-ui .notice-center-header {
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
}

.panel-ui .notice-center-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-ui .notice-center-heading h2 { margin: 0; font-size: clamp(1.14rem, 3vw, 1.35rem); }

.panel-ui .notice-center .notice-center-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.panel-ui .notice-center-filters {
  display: flex;
  gap: 7px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  padding: 3px;
}

.panel-ui .notice-center-filters[hidden] { display: none; }

.panel-ui .notice-center-filters button {
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.panel-ui .notice-center-filters button[aria-pressed="true"] {
  border-color: var(--polish-blue);
  background: var(--polish-surface);
  box-shadow: inset 0 0 0 1px var(--polish-blue);
}

.panel-ui .notice-center-read-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.panel-ui .notice-center-read-actions .btn {
  min-height: 44px;
  max-width: 100%;
  padding-inline: 12px;
  font-size: .8rem;
}

.panel-ui :is(.notice-center-read-status, .notice-center-limit) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}

.panel-ui .notice-center-limit { margin: 0 0 8px; }

.panel-ui .notice-center-item[data-notice-unread="true"] {
  border-inline-start-color: var(--notice-accent);
}

.panel-ui .notice-center-unread {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--polish-surface);
  color: var(--text);
}

.panel-ui .notice-center :is(button, .notice-center-scroll):focus-visible {
  outline: 2px solid var(--polish-blue);
  outline-offset: -2px;
}

.panel-ui .notice-center-scroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--polish-border) transparent;
  overscroll-behavior: contain;
  padding: 14px 20px max(18px, env(safe-area-inset-bottom));
}

.panel-ui .notice-center-items { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }

.panel-ui .notice-center-item {
  --notice-accent: var(--polish-blue);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  text-align: left;
}

.panel-ui .notice-center-item[data-notice-category="withdrawal"] { --notice-accent: var(--accent-2); }
.panel-ui .notice-center-item[data-notice-category="reward"] { --notice-accent: var(--visual-violet, var(--polish-blue)); }
.panel-ui .notice-center-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--notice-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--notice-accent) 13%, var(--bg-elev));
  color: var(--text);
}

.panel-ui .notice-center-icon .ico { width: 17px; height: 17px; }
.panel-ui .notice-center-copy { min-width: 0; overflow-wrap: anywhere; }
.panel-ui .notice-center-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.panel-ui .notice-center-meta span { font-weight: 750; }
.panel-ui .notice-center-meta time { font-variant-numeric: tabular-nums; }
.panel-ui .notice-center-copy h3 { color: var(--text); margin: 4px 0 0; font-size: .96rem; line-height: 1.35; }
.panel-ui .notice-center-copy p { margin: 3px 0 0; color: var(--text); font-size: .88rem; line-height: 1.45; }
.panel-ui .notice-center-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; }
.panel-ui .notice-center-empty { margin: 0; padding: 25px 0; text-align: center; color: var(--muted); }

@media (max-width: 620px) {
  .panel-ui .notice-center-overlay { place-items: end center; padding: max(8px, env(safe-area-inset-top)) 0 0; }
  .panel-ui .notice-center {
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-radius: 22px 22px 0 0;
  }
  .panel-ui .notice-center-header, .panel-ui .notice-center-scroll { padding-inline: 14px; }
  .panel-ui .notice-center-read-actions { justify-content: flex-start; }
  .panel-ui .notice-center-item { gap: 9px; padding: 10px; }
  .panel-ui .notice-center-icon { width: 31px; height: 31px; }
}
