.aa-sidebar-coach {
  display: grid;
  gap: 2px;
  padding: 14px 13px;
  border-bottom: 1px solid #3d3d3d;
}
.aa-sidebar-coach small { color: #aaa; }
.aa-sidebar-coach strong { color: #fff; }
.aa-workspace { display: flex; flex-direction: column; }
.aa-workspace .aa-view { flex: 1; width: 100%; min-height: 0; }
.aa-workspace .header-icon[aria-current="page"] { color: var(--red); }
.aa-site-footer { padding: 8px 20px; background: var(--ink); color: var(--white); }
.aa-site-footer .footer-nav { margin-inline: auto; max-width: 1620px; }
.aa-site-footer .footer-nav a { min-height: var(--control-height); }
.aa-site-footer .footer-nav a:not(.active):hover { background: #292929; color: var(--white); }

.aa-workspace [data-power-calendar] .date-week { touch-action: pan-y; }
.aa-points-link {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 13px;
  border-radius: 12px;
  text-align: left;
  background: var(--soft);
}
.aa-points-link:hover { background: #ebebeb; }
.aa-points-link small { display: block; color: var(--muted); font-size: var(--text-label); }
.aa-points-link strong { display: block; line-height: 1.3; }
.aa-points-link > svg { color: var(--red); }
.aa-tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
}
.aa-knowledge-video { display: block; width: 100%; max-height: 65vh; background: var(--ink); }
.aa-youtube { border: 0; aspect-ratio: 16 / 9; }
.aa-empty { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 0; color: var(--muted); }
.aa-live-save { color: var(--muted); margin-bottom: 10px; }
.aa-live-save:empty,.aa-live-recovery:not(:has(button:not([hidden]))) { display: none; }
.aa-live-recovery { margin-bottom: 12px; }
.aa-live-recovery [hidden],[data-aa-invite-result][hidden] { display: none; }
.aa-live-plan-group + .aa-live-plan-group { margin-top: var(--section-space); }
.aa-live-plan-group > h3 { margin-bottom: 10px; }
.aa-perform-tabs > .btn[aria-pressed=true],.aa-perform-tabs > .btn[aria-pressed=true]:hover { background: var(--red); border-color: transparent; }
.aa-coach-demo [data-aa-invite-error]:not(:empty) { color: var(--red-dark); }

.aa-profile-form { display: grid; gap: var(--card-space); }
.aa-profile-form > section { display: grid; gap: 12px; background: var(--soft); padding: var(--card-space); }
.aa-profile-form > section h3 { font-size: var(--section-title-size); font-weight: 900; }
.aa-profile-form > .btn, .aa-detail > .btn { justify-self: start; }
.aa-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aa-profile-assignments { display: grid; gap: 10px; margin: 0; }
.aa-profile-assignments div { display: grid; grid-template-columns: minmax(88px, .6fr) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.aa-profile-assignments dt, .aa-preview-foot, .aa-detail-meta, .aa-muted { color: var(--muted); }
.aa-profile-assignments dd { margin: 0; font-weight: 700; }
.aa-preview-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: var(--card-space); }
.aa-preview-foot a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.aa-detail { display: grid; gap: 13px; margin-top: 12px; }
.aa-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aa-delivery-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.aa-delivery-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #eaeaea; padding: 7px 0; }
.aa-message-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.aa-messages { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.aa-message { justify-self: start; width: fit-content; max-width: min(480px, 93%); padding: 9px 12px; background: var(--soft); overflow-wrap: anywhere; }
.aa-message.is-mine { justify-self: end; background: var(--ink); color: var(--white); }
.aa-message small { font-weight: 700; }
.aa-coach-demo { display: grid; gap: var(--card-space); margin-block: 18px; }
.aa-coach-preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: var(--card-space); background: var(--soft); }
.aa-coach-preview-head p { color: var(--muted); }
.aa-coach-chat { border: 1px solid #eaeaea; padding: 12px; }
.aa-coach-chat[open] > summary { margin-bottom: 12px; }
.aa-coach-chat .aa-messages { margin-bottom: 8px; }
.aa-coach-orders { margin-bottom: 18px; }
.aa-custom-offers > summary, .aa-coach-chat > summary { cursor: pointer; font-weight: 700; }
.aa-custom-offers[open] > summary { margin-bottom: 8px; }
.aa-release-form { display: grid; align-items: end; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; padding-top: 8px; }
.aa-order-notice { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--soft); margin-bottom: 10px; font-weight: 700; }

@media (max-width: 760px) {
  .aa-workspace .topbar-actions { gap: 0; }
  .aa-workspace .topbar .topbar-actions .header-icon { flex-basis: 35px; min-width: 35px; width: 35px; }
  .aa-workspace .topbar .topbar-actions .header-icon > svg { width: 21px; height: 21px; }
  .aa-site-footer { position: fixed; inset: auto 0 0; z-index: 30; padding: 6px 4px max(7px, env(safe-area-inset-bottom)); }
  .aa-site-footer .footer-nav { gap: 3px; }
  .aa-site-footer .footer-nav a { flex-direction: column; gap: 4px; padding: 7px 2px; font-size: clamp(11px, 3.45vw, 14px); }
  .aa-release-form { grid-template-columns: minmax(0, 1fr); }
  .aa-release-form > .btn { justify-self: start; }
}
@media (max-width: 390px) {
  .aa-profile-fields { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .aa-site-footer { display: none; }
}
