/* Personal footprint stays within Settings > Account on every bundled client. */
.learning-footprint-panel {
  --footprint-ink: rgba(244, 250, 255, .96);
  --footprint-muted: rgba(224, 235, 245, .76);
  margin: 14px 0;
  padding: 14px;
  min-width: 0;
  border: 1px solid rgba(137, 210, 204, .25);
  border-radius: 16px;
  color: var(--footprint-ink);
  background: rgba(180, 221, 218, .045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.learning-footprint-panel [hidden] { display: none !important; }
.footprint-header, .footprint-title, .footprint-controls, .footprint-calendar-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footprint-header, .footprint-calendar-head { justify-content: space-between; }
.footprint-header { flex-wrap: wrap; }
.footprint-title { flex: 1 1 155px; min-width: 0; font-size: 14px; }
.footprint-title > svg { width: 25px; height: 29px; color: #a7e1d1; flex: none; }
.learning-footprint-panel .footprint-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(184, 224, 228, .22);
  border-radius: 11px;
  color: var(--footprint-ink);
  background: rgba(200, 229, 239, .07);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}
.learning-footprint-panel .footprint-action svg { width: 19px; height: 19px; flex: none; }
.learning-footprint-panel .footprint-action:hover:not(:disabled) { background: rgba(200, 229, 239, .14); }
.learning-footprint-panel .footprint-action:disabled { opacity: .5; cursor: default; }
.learning-footprint-panel .footprint-action.is-danger { color: #ffd2ce; border-color: rgba(255, 166, 159, .3); }
.learning-footprint-panel button:focus-visible { outline: 2px solid #b7f0df; outline-offset: 2px; }
.footprint-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.footprint-overview > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 11px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}
.footprint-overview > div > span { color: var(--footprint-muted); font-size: 13px; line-height: 1.5; }
.footprint-overview strong { font-size: 23px; font-weight: 650; line-height: 1.2; }
.footprint-overview small { display: block; margin-top: 5px; color: var(--footprint-muted); font-size: 12px; font-weight: 400; line-height: 1.4; }
.learning-footprint-panel .footprint-caption { margin: 9px 0; color: var(--footprint-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.footprint-detail { padding-top: 5px; }
.learning-footprint-panel h5 { margin: 17px 0 10px; color: var(--footprint-ink); font-size: 13px; font-weight: 650; }
.footprint-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 9px 0; }
.footprint-metrics > div { padding: 8px 5px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footprint-metrics dt { color: var(--footprint-muted); font-size: 12px; line-height: 1.5; }
.footprint-metrics dd { margin: 5px 0 0; font-size: 17px; }
.footprint-performance { display: grid; gap: 7px; }
.footprint-performance article { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 5px 9px; padding: 11px; border-radius: 10px; background: rgba(255, 255, 255, .045); }
.footprint-performance strong { font-size: 12px; }
.footprint-performance span { text-align: right; font-size: 12px; overflow-wrap: anywhere; }
.footprint-performance small { grid-column: 1 / -1; font-size: 12px; color: var(--footprint-muted); line-height: 1.7; overflow-wrap: anywhere; }
.footprint-calendar-head { margin-bottom: 7px; }
.footprint-calendar-head strong { font-size: 13px; }
.learning-footprint-panel .footprint-calendar-head .footprint-action { padding: 9px; flex: 0 0 44px; }
.footprint-calendar-head .footprint-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.footprint-calendar-scroll { overflow-x: auto; padding: 3px; margin: 0 -3px; overscroll-behavior-x: contain; }
.footprint-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 4px; min-width: 332px; }
.footprint-weekday { padding: 6px 0; color: var(--footprint-muted); font-size: 12px; text-align: center; }
.learning-footprint-panel .footprint-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--footprint-ink);
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  cursor: pointer;
}
.footprint-day i { display: block; width: 4px; height: 4px; border: 1px solid rgba(206, 225, 235, .7); border-radius: 50%; }
.footprint-day.is-recorded { background: rgba(112, 194, 170, .14); }
.footprint-day.is-recorded i { background: #a7e1d1; border-color: #a7e1d1; }
.footprint-day.is-uncovered i, .footprint-day.is-incomplete i { width: 9px; height: 0; border-radius: 0; border-width: 1px 0 0; transform: rotate(-35deg); }
.footprint-day.is-uncovered { color: rgba(224, 235, 245, .63); }
.footprint-day.is-incomplete { background: rgba(225, 168, 112, .1); }
.learning-footprint-panel .footprint-day[aria-pressed="true"] { border-color: #b7f0df; box-shadow: inset 0 0 0 1px rgba(183, 240, 223, .3); }
.learning-footprint-panel .footprint-day.is-future { opacity: .3; cursor: default; }
.footprint-day.is-future i { visibility: hidden; }
.footprint-day-summary { display: grid; gap: 5px; margin: 13px 0; }
.footprint-day-summary strong { font-size: 12px; }
.footprint-day-summary span, .footprint-day-summary small { color: var(--footprint-muted); font-size: 12px; line-height: 1.6; }
.footprint-timeline { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 1px solid rgba(167, 225, 209, .24); }
.footprint-timeline li { position: relative; display: grid; gap: 6px; margin: 0 0 13px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); }
.footprint-timeline li::before { content: ""; position: absolute; left: -14px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #a7e1d1; }
.footprint-event-kind { color: #c5eee4; font-size: 13px; font-weight: 600; }
.footprint-timeline p { margin: 0; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.footprint-timeline small { color: var(--footprint-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.footprint-event-id { opacity: .8; }
.footprint-timeline .footprint-correction { color: #f5d09f; }
.footprint-controls { flex-wrap: wrap; margin-top: 13px; }
.footprint-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block: 12px; }
.footprint-pagination > span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.footprint-controls > .footprint-action { flex: 1 1 115px; }
.footprint-storage-status { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .09); color: var(--footprint-muted); font-size: 12px; line-height: 1.65; }
.footprint-notice { margin: 12px 0 0; color: #c9e8e0; font-size: 13px; line-height: 1.65; }
.footprint-clear-confirm { margin-top: 13px; padding: 12px; border-radius: 11px; border: 1px solid rgba(255, 166, 159, .25); background: rgba(120, 53, 49, .1); }
.footprint-clear-confirm strong { font-size: 12px; }
.footprint-clear-confirm p { margin: 8px 0; color: var(--footprint-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.learning-footprint-panel.is-native { padding-bottom: max(14px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 380px) {
  .learning-footprint-panel { padding: 11px; }
  .footprint-overview { gap: 5px; }
  .footprint-overview > div { padding: 9px 6px; }
  .footprint-overview strong { font-size: 21px; }
  .footprint-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .learning-footprint-panel *, .learning-footprint-panel *::before, .learning-footprint-panel *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.footprint-disclosure {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: .875rem; text-align: start; cursor: pointer;
}
.footprint-disclosure .footprint-title { font-size: 1rem; font-weight: 600; }
.footprint-disclosure > span:not(.footprint-title) { color: var(--footprint-muted); }
.footprint-chevron { width: 18px; height: 18px; flex: none; }
.footprint-disclosure[aria-expanded="true"] .footprint-chevron { transform: rotate(90deg); }
.footprint-content[hidden] { display: none !important; }
.footprint-content { padding-top: 8px; }
.footprint-sync { margin-block: 12px 24px; padding-block: 16px; border-block: 1px solid var(--line, #476478); line-height: 1.7; }
.footprint-sync h5 { margin: 0 0 8px; font-size: 16px; }
.footprint-sync p { max-width: 70ch; }
.footprint-sync a { color: var(--text, #e6f1ff); text-decoration: underline; text-underline-offset: 3px; }
.footprint-consent { display: flex; align-items: flex-start; gap: 10px; padding-block: 10px; min-height: 44px; cursor: pointer; }
.footprint-consent input { flex: 0 0 24px; width: 24px; height: 24px; margin: 6px 0; accent-color: #38b2bc; }
.footprint-consent span { overflow-wrap: anywhere; }
.footprint-sync button { min-height: 44px; }
.footprint-privacy-dialog { box-sizing: border-box; position: fixed; inset: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); margin: auto; width: min(720px, calc(100vw - 24px)); height: min(760px, calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)))); max-width: none; max-height: none; padding: 0; border: 1px solid #486477; border-radius: 16px; background: #071925; color: #eef8ff; overflow: hidden; }
.footprint-privacy-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.footprint-privacy-dialog::backdrop { background: #00121acc; }
.footprint-privacy-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid #486477; }
.footprint-privacy-dialog h2 { margin: 0; font-size: 18px; line-height: 1.5; }
.footprint-privacy-dialog button { flex: none; width: 44px; height: 44px; border: 1px solid #486477; border-radius: 10px; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.footprint-privacy-dialog button:focus-visible { outline: 2px solid #a1dfef; outline-offset: 2px; }
.footprint-privacy-dialog iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: #071925; }
.footprint-stamina-total { font-variant-numeric: tabular-nums; }
.stamina-achievement { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 14px; margin-block: 12px 20px; }
.stamina-achievement h4 { font-size: 18px; margin: 0 0 6px; }
.stamina-achievement p { margin: 4px 0; line-height: 1.6; overflow-wrap: anywhere; }
.stamina-badge { --material: #b7ac93; position: relative; width: 108px; aspect-ratio: 1; border-radius: 50%; }
.stamina-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.stamina-material { position: absolute; inset: 0; border: 5px solid var(--material); border-radius: 50%; box-shadow: inset 0 2px 3px #fff9, 0 3px 8px #0005; pointer-events: none; }
.material-0 { opacity: .55; --material: #63717a; }
.material-1 { --material: #c4b79e; }.material-2 { --material: #b9986e; }
.material-3 { --material: #709b8a; }.material-4 { --material: #bc8aaa; }
.material-1 .stamina-material,.material-2 .stamina-material { border-style: dashed; box-shadow: none; }
.material-3 .stamina-material,.material-4 .stamina-material { border-style: double; border-width: 7px; }
.material-5 { --material: #7c8991; }.material-6 { --material: #bb8151; }.material-7 { --material: #d3e0e7; }.material-8 { --material: #edc05d; }
.material-9 { --material: #70b6c9; }.material-10 { --material: #79c3d4; }.material-11 { --material: #81ccdb; }.material-12 { --material: #8ed6e3; }.material-13 { --material: #9bdfea; }.material-14 { --material: #ade6ef; }.material-15 { --material: #c1eff4; }.material-16 { --material: #d6f8fa; }.material-17 { --material: #f0ce69; }
.stamina-material i { position: absolute; width: 9px; height: 9px; top: calc(50% - 4.5px); left: calc(50% - 4.5px); background: #edffff; border: 1px solid #436c7c; transform: rotate(var(--gem-angle)) translateY(-49px) rotate(45deg); }
.stamina-crown { position: absolute; width: 40px; height: 24px; top: -16px; left: calc(50% - 20px); fill: #edc05d; stroke: #604c1c; stroke-width: 1.5px; }
.material-17 .stamina-material { border-style: double; border-width: 8px; }
.stamina-tier-list { grid-column: 1 / -1; }
.stamina-tier-list summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.stamina-tier-list ol { list-style: none; padding: 0; display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.stamina-tier-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 9px; border-bottom: 1px solid #486477; }
.stamina-tier-list .is-earned { font-weight: 700; }
.stamina-tier-list p { font-size: 13px; }

.footprint-header > .footprint-disclosure { flex: 1; width: auto; min-width: 0; }
.footprint-help { flex: none; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--footprint-muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
