.ap-page {
  min-height: calc(100vh - 64px);
  padding: 32px 16px 56px;
  color: #17304d;
  background: radial-gradient(circle at 12% 0%, rgba(58, 174, 242, .12), transparent 31rem), #f3faff;
}
.ap-shell { max-width: 1180px; }
.ap-page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 25px 28px;
  border: 1px solid #acd7f4;
  border-top: 3px solid #0789df;
  border-radius: 16px;
  background: linear-gradient(110deg, #fff 0%, #f7fcff 68%, #e3f4ff 100%);
  box-shadow: 0 12px 30px rgba(31, 76, 110, .08);
}
.ap-page-hero h1 {
  margin: 0 0 8px;
  color: #162c47;
  font-family: Philosopher, Georgia, serif;
  font-size: clamp(38px, 5vw, 54px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}
.ap-page-hero p:last-child { margin: 0; color: #526a85; }
.ap-eyebrow,
.ap-card__eyebrow {
  margin: 0 0 4px;
  color: #0476bd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ap-account-layout { align-items: start; }
.ap-content { min-width: 0; background: transparent; box-shadow: none; }
.ap-card {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #c4def0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(33, 78, 113, .07);
}
.ap-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #d3e5f2;
}
.ap-card__header h2,
.ap-profile h2 {
  margin: 0;
  color: #172c47;
  font-family: Philosopher, Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
}
.ap-message { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #acd7f4; border-radius: 10px; background: #eef8ff; }
.ap-message.is-error { border-color: #f1b4ba; background: #fff0f2; color: #a51e2b; }
.ap-message.is-success { border-color: #9bd7b8; background: #edf9f3; color: #087244; }
.ap-muted { margin: 0; padding: 13px 16px; color: #526a85; font-size: 13px; }
.ap-profile__identity {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
}
.ap-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #14a7ee, #067dcb);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 137, 223, .25);
}
.ap-handle { margin: 3px 0 0; color: #5a7189; font-size: 13px; }
.ap-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ap-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #b8daf0;
  border-radius: 999px;
  background: #eef8ff;
  color: #075f9e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ap-pill--success { border-color: #a4dbbf; background: #edf9f3; color: #087244; }
.ap-profile__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ap-button,
.ap-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #acd7f4;
  border-radius: 9px;
  background: #fff;
  color: #066ba9;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.ap-button--primary { border-color: #0789df; background: #0789df; color: #fff; }
.ap-button:hover,
.ap-button:focus-visible,
.ap-text-button:hover,
.ap-text-button:focus-visible { outline: 3px solid rgba(7, 137, 223, .15); outline-offset: 1px; }
.ap-text-button { min-height: auto; padding: 5px 8px; border-color: transparent; background: transparent; }
.ap-tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; border-top: 1px solid #d3e5f2; scrollbar-width: thin; }
.ap-tab {
  flex: 0 0 auto;
  padding: 12px 10px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #455f7a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.ap-tab.is-active { border-bottom-color: #0789df; color: #006eb5; }
.ap-panel { margin-top: 14px; }
.ap-panel[hidden] { display: none !important; }
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ap-stat { padding: 14px; border: 1px solid #c4def0; border-radius: 12px; background: #fff; }
.ap-stat small { display: block; color: #61768d; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ap-stat strong { display: block; margin-top: 5px; color: #0578c6; font-size: 23px; }
.ap-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-compact-list { margin: 0; padding: 0; list-style: none; }
.ap-compact-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 11px 16px; border-top: 1px solid #e1edf5; }
.ap-compact-list li:first-child { border-top: 0; }
.ap-compact-list strong { font-size: 13px; }
.ap-compact-list small { display: block; margin-top: 2px; color: #687c91; }
.ap-compact-list .ap-time { color: #0578c6; font-weight: 900; }
.ap-empty { margin: 0; padding: 25px 16px; color: #637990; text-align: center; }
.ap-table-wrap { overflow-x: auto; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ap-table th { padding: 9px 12px; background: #eef8ff; color: #31526f; text-align: left; white-space: nowrap; }
.ap-table td { padding: 10px 12px; border-top: 1px solid #dceaf4; vertical-align: top; }
.ap-table td strong { color: #066eaf; }
.ap-table .ap-time { color: #0578c6; font-weight: 900; white-space: nowrap; }
.ap-segmented { display: flex; flex-wrap: wrap; gap: 5px; }
.ap-segmented button { padding: 5px 9px; border: 1px solid #b9daf0; border-radius: 8px; background: #eef8ff; color: #126ca6; font-size: 11px; font-weight: 900; cursor: pointer; }
.ap-segmented button.is-active { border-color: #0789df; background: #0789df; color: #fff; }
.ap-meet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.ap-meet { padding: 13px; border: 1px solid #c8e0f0; border-radius: 11px; background: #fbfdff; }
.ap-meet + .ap-meet { margin-top: 10px; }
.ap-meet-grid .ap-meet + .ap-meet { margin-top: 0; }
.ap-meet h3 { margin: 0 0 5px; color: #17304d; font-size: 14px; }
.ap-meet p { margin: 0 0 10px; color: #657b91; font-size: 11px; }
.ap-meet-results { margin-top: 10px; padding-top: 9px; border-top: 1px solid #d8e8f3; }
.ap-progress-controls { padding: 14px 16px 0; }
.ap-progress-controls label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 900; }
.ap-progress-controls select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #b9d8ec; border-radius: 9px; background: #fff; }
.ap-progress-chart { min-height: 160px; padding: 15px 16px; }
.ap-chart { display: block; width: 100%; height: 180px; }
.ap-chart line { stroke: #d9e8f2; stroke-width: 1; }
.ap-chart polyline { fill: none; stroke: #0789df; stroke-width: 3; }
.ap-chart circle { fill: #fff; stroke: #0789df; stroke-width: 3; }
.ap-chooser-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 16px 16px; }
.ap-chooser-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px; border: 1px solid #c4def0; border-radius: 10px; background: #fbfdff; color: #17304d; text-align: left; cursor: pointer; }
.ap-chooser-button:hover,
.ap-chooser-button:focus-visible { border-color: #0789df; outline: 3px solid rgba(7, 137, 223, .12); }
.ap-mini-avatar { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: #0789df; color: #fff; font-size: 11px; font-weight: 900; }
.ap-chooser-button strong,
.ap-chooser-button small { display: block; }
.ap-chooser-button small { margin-top: 2px; color: #657b91; font-size: 11px; }
.ap-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 190px; color: #526a85; }
.ap-load-more { padding: 0 14px 14px; text-align: center; }
.ap-load-more[hidden] { display: none !important; }
.ap-load-more .ap-button { min-width: 170px; }
.ap-button:disabled { opacity: .62; cursor: wait; }
.ap-spinner { width: 24px; height: 24px; border: 3px solid #c7e3f5; border-top-color: #0789df; border-radius: 50%; animation: ap-spin .7s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .ap-page { padding-top: 16px; }
  .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-two-column { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ap-page { padding-inline: 8px; }
  .ap-page-hero { padding: 20px 17px; border-radius: 13px; }
  .ap-profile__identity { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
  .ap-avatar { width: 52px; height: 52px; border-radius: 14px; }
  .ap-profile__actions { grid-column: 1 / -1; justify-content: stretch; }
  .ap-profile__actions .ap-button { flex: 1; }
  .ap-tabs { padding: 0 6px; }
  .ap-tab { padding-inline: 8px; }
  .ap-meet-grid,
  .ap-chooser-list { grid-template-columns: 1fr; }
  .ap-card__header { align-items: flex-start; flex-direction: column; }
}
