/*
 * The pilot profile of the Crew Center, from the Profile board: the hero, the tab bar and the eight
 * tabs. Everything is scoped under .cc so the classic profile (pilot-profile.css) is untouched.
 */
.cc .pf [hidden] { display: none !important; }
.cc .hic-ac { background: var(--wnb); color: var(--wnt); }
.cc .hic-ok { background: var(--okb); color: var(--okt); }
.cc .pf-sub { font-size: 13px; color: var(--mu); }
.cc .pf-note { font-size: 13px; color: var(--mu); }
.cc .pf-big { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.cc .pf-huge { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cc .pf-mid { font-size: 22px; font-weight: 600; }
.cc .r { text-align: right; }

/* ---- hero ---- */
.cc .pf-hero { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(125deg, #07163A 0%, #003875 48%, #2F6FC4 100%); color: #fff; padding: 40px 44px 36px; display: flex; flex-direction: column; gap: 30px; box-shadow: 0 30px 60px -28px rgba(0, 56, 117, .7); }
.cc .pf-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.cc .pf-dash { stroke-dasharray: 4 8; animation: pf-dash 3s linear infinite; }
.cc .pf-hero-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 59px, rgba(255, 255, 255, .05) 59px 60px), repeating-linear-gradient(90deg, transparent 0 59px, rgba(255, 255, 255, .05) 59px 60px); }
.cc .pf-hero-glow { position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 137, 50, .55), transparent 65%); animation: pf-glow 5s ease-in-out infinite; }
@keyframes pf-dash { to { stroke-dashoffset: -40; } }
@keyframes pf-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cc .pf-dash, .cc .pf-hero-glow { animation: none; } }
html[data-ja-reduced-motion="true"] .cc .pf-dash, html[data-ja-reduced-motion="true"] .cc .pf-hero-glow { animation: none; }

.cc .pf-hero-top { position: relative; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.cc .pf-hero-who { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; flex: 1 1 560px; min-width: 0; }
.cc .pf-ring { width: 164px; height: 164px; border-radius: 50%; padding: 6px; display: flex; flex: none; position: relative; }
.cc .pf-ring-in { flex: 1; border-radius: 50%; background: linear-gradient(145deg, #F7F9FC, #C9D8F0); border: 5px solid #07163A; display: flex; align-items: center; justify-content: center; color: #003875; font-size: 52px; font-weight:700; letter-spacing: -0.04em; overflow: hidden; }
.cc .pf-ring-in img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc .pf-rank { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); background: #F58932; color: #141250; font-weight:700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .5); }
.cc .pf-who { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1 1 320px; }
.cc .pf-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cc .pf-ident { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.cc .pf-online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(7, 185, 109, .2); color: #8FF0C0; }
.cc .pf-online span { width: 8px; height: 8px; border-radius: 50%; background: #07B96D; }
.cc .pf-who h1 { font-size: 54px; font-weight:700; letter-spacing: -0.045em; line-height: 1.02; overflow-wrap: anywhere; }
.cc .pf-who p { font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 560px; line-height: 1.45; }
.cc .pf-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .78); }
.cc .pf-facts strong { color: #fff; }
.cc .pf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cc .pf-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.cc .pf-ghost:hover { background: rgba(255, 255, 255, .22); }
.cc .pf-ghost-line { background: transparent; }

.cc .pf-crewcard { flex: 0 1 340px; min-width: 280px; transform: rotate(1.6deg); border-radius: 24px; padding: 22px 24px; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 14px; }
.cc .pf-cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc .pf-cc-top img { height: 30px; width: auto; display: block; }
.cc .pf-cc-top span { font-size: 11px; font-weight:700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cc .pf-cc-name { display: flex; flex-direction: column; gap: 2px; }
.cc .pf-cc-name strong { font-size: 22px; font-weight:700; letter-spacing: -0.02em; }
.cc .pf-cc-name span { font-size: 13.5px; opacity: .85; }
.cc .pf-cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc .pf-cc-grid div { display: flex; flex-direction: column; }
.cc .pf-cc-grid span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cc .pf-cc-grid b { font-size: 17px; font-weight: 600; }
.cc .pf-cc-bar { height: 34px; border-radius: 6px; background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 10px, #fff 10px 13px, transparent 13px 15px); opacity: .85; }
.cc .pf-cc-slogan { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F5A93B; }

.cc .pf-hero-stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.cc .pf-hero-stats > div { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc .pf-hero-stats span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.cc .pf-hero-stats b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.cc .pf-hero-stats small { font-size: 12px; opacity: .72; }
.cc .pf-hero-pins { position: relative; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cc .pf-hl { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.cc .pf-pin { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.cc .pf-pin > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.cc .pf-pin b { font-size: 14px; font-weight: 700; }
.cc .pf-pin small { font-size: 12px; opacity: .75; }
.cc .pf-pin.lt { background: var(--s2); border-color: var(--bd); color: var(--tx); }
.cc .pf-pin.lt small { color: var(--mu); opacity: 1; }
.cc .pf-hex { clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); width: 40px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.cc .pf-hex svg { width: 18px; height: 18px; }
.cc .pf-hex.lg { width: 68px; height: 76px; }
.cc .pf-hex.lg svg { width: 30px; height: 30px; }
.cc .pf-nopins { font-size: 14px; opacity: .8; }
.cc .pf-pride { margin-left: auto; font-size: 14px; opacity: .85; }

/* ---- tabs and panels ---- */
.cc .pf-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 16px; background: var(--s3); overflow-x: auto; max-width: 100%; align-self: flex-start; }
.cc .pf-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cc .pf-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cc .pf-main { flex: 3 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cc .pf-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cc .pf-rangecards { display: flex; flex-direction: column; gap: 20px; }

/* ---- cards ---- */
.cc .pf-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cc .pf-sky { background-image: linear-gradient(180deg, var(--sky1), var(--sky2)); }
.cc .pf-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc .pf-h h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.cc .pf-aside { margin-left: auto; font-size: 13.5px; color: var(--mu); }
.cc .pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.cc .pf-stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc .pf-sig { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cc .pf-sigcard { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background-image: linear-gradient(180deg, var(--sky1), var(--sky2)); min-width: 0; }
.cc .pf-sigcard .pf-big { font-size: 26px; overflow-wrap: anywhere; }
.cc .pf-chart { width: 100%; height: auto; display: block; }
.cc .pf-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--mu); align-items: center; }
.cc .pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cc .pf-legend i { width: 16px; height: 3px; border-radius: 2px; }
.cc .pf-legend i.round { width: 12px; height: 12px; border-radius: 50%; }
.cc .pf-win { display: inline-flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--s3); }
.cc .pf-win .seg { min-height: 40px; padding: 0 14px; }
.cc .pf-ppi-head { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; }
.cc .pf-ppi-head > div { display: flex; flex-direction: column; }
.cc .pf-empty { padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.cc .pf-empty .hic { width: 48px; height: 48px; border-radius: 16px; }
.cc .pf-empty strong { font-size: 16px; }
.cc .pf-empty span:not(.hic) { font-size: 14px; color: var(--mu); max-width: 420px; }

/* comparison */
.cc .pf-cmp { display: grid; grid-template-columns: 1fr 110px 140px 90px; gap: 6px 12px; align-items: center; font-size: 14px; }
.cc .pf-cmp > span { padding: 10px 0; border-top: 1px solid var(--bd); }
.cc .pf-cmp > .lbl { padding: 0; border: 0; }
.cc .pf-cmp .pf-cmp-l { min-width: 0; }
@media (max-width: 560px) { .cc .pf-cmp { grid-template-columns: 1fr 64px 64px 64px; gap: 4px 8px; font-size: 13px; } }

/* rank journey */
.cc .pf-journey { display: flex; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.cc .pf-journey > div { flex: 1 0 118px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cc .pf-j-top { display: flex; align-items: center; width: 100%; }
.cc .pf-j-dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 3px solid transparent; background: var(--s3); color: var(--mu); }
.cc .pf-j-dot svg { width: 14px; height: 14px; }
.cc .pf-j-done { background: var(--ac); color: #141250; }
.cc .pf-j-current { background: var(--ac); color: #141250; border-color: var(--infb); }
.cc .pf-j-bar { flex: 1; height: 4px; background: var(--s3); border-radius: 2px; }
.cc .pf-j-bar.on { background: var(--ac); }
.cc .pf-j-t { display: flex; flex-direction: column; }
.cc .pf-j-t strong { font-size: 14px; }
.cc .pf-j-t span { font-size: 12px; color: var(--mu); }

/* rows */
.cc .pf-flight { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 0 6px; border-top: 1px solid var(--bd); color: var(--tx); text-decoration: none; border-radius: 10px; flex-wrap: wrap; }
.cc .pf-f-route { font-size: 16px; font-weight: 600; min-width: 130px; }
.cc .pf-f-ac { font-size: 13.5px; color: var(--mu); flex: 1 1 140px; }
.cc .pf-f-time { font-size: 13.5px; }
.cc .pf-date { width: 44px; height: 48px; border-radius: 12px; background: var(--infb); color: var(--lk); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cc .pf-date b { font-size: 16px; font-weight: 600; line-height: 1; }
.cc .pf-date small { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.cc .pf-toprow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc .pf-prog { display: flex; flex-direction: column; gap: 6px; }
.cc .pf-prog > div { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.cc .pf-prog > i { display: block; height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.cc .pf-prog > i b { display: block; height: 100%; border-radius: 4px; background: var(--ac); }
.cc .pf-kv { display: flex; flex-direction: column; gap: 10px; }
.cc .pf-kv > div { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.cc .pf-kv span { color: var(--mu); }

/* map */
.cc .pf-chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cc .pf-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: 600 13.5px 'Inter', sans-serif; border: 1px solid var(--bd2); background: var(--s1); color: var(--tx); }
.cc .pf-chip:hover { background: var(--s2); }
.cc .pf-chip.on { background: var(--br); color: var(--brc); border-color: var(--br); }
.cc .pf-chip .mono { margin-left: 4px; }
.cc .pf-mapw { border-radius: 20px; overflow: hidden; border: 1px solid var(--bd); background: linear-gradient(180deg, var(--sky1), var(--sky2)); position: relative; }
.cc .pf-gl { width: 100%; height: 100%; min-height: 520px; }
/* the map card is as tall as the column of panels beside it, and the map takes what the chips and legend leave */
.cc .pf-cols:has(> .pf-mapcard) { align-items: stretch; }
.cc .pf-mapcard .pf-mapw { flex: 1 1 auto; display: flex; }
.cc .pf-mapcard .pf-mapw > .pf-gl { flex: 1 1 auto; }
.cc .pf-gl[data-failed] { display: flex; align-items: center; justify-content: center; }
.cc .pf-selhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cc .pf-sel3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cc .pf-sel3 > div { display: flex; flex-direction: column; min-width: 0; }
.cc .pf-sel3 .mono { font-weight: 600; }
.cc .pf-topap { display: grid; grid-template-columns: 56px 1fr 40px; gap: 10px; align-items: center; min-height: 44px; border: 0; border-top: 1px solid var(--bd); background: transparent; cursor: pointer; color: var(--tx); font: 500 14px 'Inter', sans-serif; text-align: left; padding: 0; }
.cc .pf-topap .mono:first-child { font-weight: 600; }
.cc .pf-bar { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.cc .pf-bar i { display: block; height: 100%; border-radius: 4px; background: var(--lk); }
.cc .pf-route { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--bd); }
.cc .pf-route .mono:first-child { font-weight: 600; flex: 1; }
.cc .pf-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.cc .pf-stamp { position: relative; padding: 14px; border-radius: 16px; border: 2px dashed var(--bd2); background: var(--s2); display: flex; flex-direction: column; gap: 4px; }
.cc .pf-stamp > .mono:first-child { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--lk); }
.cc .pf-stamp strong { font-size: 13.5px; }
.cc .pf-stamp-flag { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--s1); }
.cc .pf-stamp-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc .pf-stamp > .mono:last-child { font-size: 11.5px; color: var(--mu); }

/* statistics */
.cc .pf-bars { display: flex; align-items: flex-end; gap: 8px; }
.cc .pf-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.cc .pf-bars span { font-size: 11px; color: var(--mu); }
.cc .pf-bars i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; min-height: 2px; }
.cc .pf-bar-l { display: flex; gap: 8px; }
.cc .pf-bar-l span { flex: 1; text-align: center; font-size: 11px; color: var(--mu); min-width: 0; }
.cc .pf-donutrow { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cc .pf-donut { width: 140px; height: 140px; border-radius: 50%; position: relative; flex: none; }
.cc .pf-donut > span { position: absolute; inset: 24px; border-radius: 50%; background: var(--s1); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cc .pf-donut b { font-size: 20px; font-weight: 600; }
.cc .pf-donut small { font-size: 11px; color: var(--mu); }
.cc .pf-dleg { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.cc .pf-dleg > div { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cc .pf-dleg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cc .pf-dleg span:nth-child(2) { flex: 1; min-width: 0; }
.cc .pf-heat { display: grid; grid-template-columns: 28px 1fr; gap: 6px; }
.cc .pf-heat-d { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; font-size: 10.5px; color: var(--mu); }
.cc .pf-heat-d span { display: flex; align-items: center; }
.cc .pf-heat-g { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); grid-auto-columns: 1fr; gap: 3px; height: 150px; }
.cc .pf-heat-g span { border-radius: 3px; background: var(--s3); }
.cc .pf-heat-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); padding-left: 34px; }
.cc .pf-split { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--s3); }
.cc .pf-split > div { height: 100%; }
.cc .pf-hrow { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cc .pf-hrow i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.cc .pf-hrow span:nth-child(2) { flex: 1; }
.cc .pf-rule { height: 1px; background: var(--bd); }
.cc .pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc .pf-two > div { display: flex; flex-direction: column; }
.cc .pf-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: 28px; }
.cc .pf-recs > div { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--bd); }
.cc .pf-recs > div > span { flex: 1; font-size: 14px; color: var(--mu); }
.cc .pf-recs > div > div { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 0; }
.cc .pf-recs b { font-size: 16px; font-weight: 600; }
.cc .pf-recs small { font-size: 12px; color: var(--mu); }
.cc .pf-gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); column-gap: 24px; }
.cc .pf-gal > div { display: flex; flex-direction: column; min-width: 0; }
.cc .pf-landing { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--bd); color: var(--tx); text-decoration: none; }
.cc .pf-landing > .mono { font-size: 17px; font-weight: 600; min-width: 74px; }
.cc .pf-landing > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc .pf-landing > div .mono { font-size: 13.5px; font-weight: 600; }
.cc .pf-landing small { font-size: 12px; color: var(--mu); }
.cc .pf-dn { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; flex-wrap: wrap; }
.cc .pf-dn span { display: inline-flex; align-items: center; gap: 8px; }
.cc .pf-dn i { width: 12px; height: 12px; border-radius: 4px; }
.cc .pf-hangar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.cc .pf-hangar > div, .cc .pf-ratings > div { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--bd); background: var(--s2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc .pf-hh { display: flex; align-items: center; gap: 8px; }
.cc .pf-hh strong { font-size: 15px; flex: 1; min-width: 0; }
.cc .pf-ratings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }

/* academy and record */
.cc .pf-ahead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cc .pf-ahead > div { display: flex; flex-direction: column; }
.cc .pf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cc .pf-tiles > div { padding: 12px 14px; border-radius: 16px; background: var(--s1); border: 1px solid var(--bd); display: flex; flex-direction: column; }
.cc .pf-tiles .mono { font-size: 22px; font-weight: 600; }
.cc .pf-tiles small { font-size: 12px; color: var(--mu); }
.cc .pf-wrow { display: flex; align-items: center; gap: 14px; min-height: 60px; border-top: 1px solid var(--bd); }
.cc .pf-wrow > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cc .pf-wrow strong { font-size: 15px; }
.cc .pf-wrow > div span { font-size: 12.5px; color: var(--mu); }
.cc .pf-wdot { width: 34px; height: 34px; border-radius: 50%; background: var(--s3); color: var(--mu); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cc .pf-wdot.on { background: var(--infb); color: var(--lk); }
.cc .pf-gstep { display: flex; align-items: center; gap: 10px; min-height: 40px; border-top: 1px solid var(--bd); font-size: 14px; }
.cc .pf-gstep > span:first-child { width: 22px; height: 22px; border-radius: 50%; background: var(--s3); color: var(--mu); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cc .pf-gstep > span:first-child.ok { background: var(--okb); color: var(--okt); }
.cc .pf-gstep svg { width: 12px; height: 12px; }
.cc .pf-gstep > span:nth-child(2) { flex: 1; min-width: 0; }
.cc .pf-gstep .mono { font-size: 12.5px; color: var(--mu); }
.cc .pf-mentor { display: flex; align-items: center; gap: 12px; }
.cc .pf-mentor > span { width: 44px; height: 44px; border-radius: 50%; background: var(--infb); color: var(--lk); display: inline-flex; align-items: center; justify-content: center; font-weight:700; flex: none; }
.cc .pf-mentor > div { display: flex; flex-direction: column; }
.cc .pf-mentor small { font-size: 12.5px; color: var(--mu); }
.cc .pf-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.cc .pf-badge { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cc .pf-badge-top { display: flex; gap: 14px; align-items: center; }
.cc .pf-badge-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc .pf-badge-top strong { font-size: 17px; letter-spacing: -0.01em; }
.cc .pf-badge-top > div span { font-size: 13px; color: var(--mu); line-height: 1.4; }
.cc .pf-badge-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc .pf-badge-meta .mono { margin-left: auto; font-size: 12px; color: var(--mu); }
.cc .pf-how { font-size: 13px; color: var(--mu); padding-top: 10px; border-top: 1px solid var(--bd); }
.cc .pf-kinds { min-width: 680px; }
.cc .pf-krow { display: grid; grid-template-columns: 150px 1fr 130px 140px; gap: 14px; align-items: center; min-height: 56px; padding: 0 6px; border-bottom: 1px solid var(--bd); font-size: 14px; }
.cc .pf-krow.head { min-height: 0; padding: 8px 6px; border-bottom-color: var(--bd2); }
.cc .pf-krow span:nth-child(2) { color: var(--tx2); }
.cc .pf-krow .chip { justify-self: start; }
.cc .pf-krow .mono { font-size: 13px; color: var(--mu); }
.cc .pf-quote { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--s2); border-left: 4px solid var(--ac); display: flex; flex-direction: column; gap: 6px; }
.cc .pf-quote span { font-size: 15px; line-height: 1.5; }
.cc .pf-quote small { font-size: 12.5px; color: var(--mu); }
.cc .pf-ms { display: flex; gap: 14px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--bd); }
.cc .pf-ms > .mono { font-size: 12.5px; color: var(--mu); min-width: 84px; padding-top: 2px; }
.cc .pf-ms > div { display: flex; flex-direction: column; }
.cc .pf-ms strong { font-size: 14.5px; }
.cc .pf-ms span:not(.mono) { font-size: 13px; color: var(--mu); }

/* involvement */
.cc .pf-year { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 4px; min-width: 780px; }
.cc .pf-year span { border-radius: 4px; }
.cc .pf-ylegend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mu); }
.cc .pf-ylegend i { width: 14px; height: 14px; border-radius: 4px; }
.cc .pf-mentees { display: flex; gap: 8px; flex-wrap: wrap; }
.cc .pf-mentees span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--s2); border: 1px solid var(--bd); font-size: 13px; }
.cc .pf-mentees b { width: 28px; height: 28px; border-radius: 50%; background: var(--infb); color: var(--lk); display: inline-flex; align-items: center; justify-content: center; font-weight:700; font-size: 11px; }

/* year in review */
.cc .pf-yearblock { display: flex; flex-direction: column; gap: 20px; }
.cc .pf-yhero { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(125deg, #07163A 0%, #003875 55%, #F58932 140%); color: #fff; padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; }
.cc .pf-yh { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cc .pf-yh span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.cc .pf-yh h2 { font-size: 38px; font-weight:700; letter-spacing: -0.04em; line-height: 1.1; }
.cc .pf-ybig { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.cc .pf-ybig > div { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc .pf-ybig span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.cc .pf-ybig b { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; overflow-wrap: anywhere; }
.cc .pf-ybig small { font-size: 12.5px; opacity: .75; }
.cc .pf-yrow { display: flex; align-items: center; gap: 14px; min-height: 60px; border-top: 1px solid var(--bd); }
.cc .pf-yrow > span { flex: 1; font-size: 14px; color: var(--mu); }
.cc .pf-yrow > div { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cc .pf-yrow b { font-size: 16px; }
.cc .pf-yrow small { font-size: 12px; color: var(--mu); }
.cc .pf-earned { display: flex; gap: 12px; flex-wrap: wrap; }

/* logbook */
.cc .pf-log { min-width: 820px; }
.cc .pf-lrow { display: grid; grid-template-columns: 120px 1.2fr 1fr 90px 100px 100px; gap: 14px; align-items: center; min-height: 56px; padding: 0 10px; border-bottom: 1px solid var(--bd); color: var(--tx); text-decoration: none; border-radius: 10px; }
.cc .pf-lrow.head { min-height: 0; padding: 8px 10px; border-bottom-color: var(--bd2); }
.cc .pf-lrow .mono { font-size: 13.5px; }
.cc .pf-lrow .mu { color: var(--mu); }
.cc .pf-lrow .b { font-weight: 600; }
.cc .pf-pager { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.cc .pf-pager > div { display: flex; gap: 6px; }
.cc .pg[disabled] { opacity: .45; cursor: default; }

/* the rest, on a phone */
@media (max-width: 720px) {
    .cc .pf-hero { padding: 28px 20px 26px; border-radius: 26px; gap: 24px; }
    .cc .pf-who h1 { font-size: 38px; }
    .cc .pf-ring { width: 132px; height: 132px; }
    .cc .pf-ring-in { font-size: 42px; }
    .cc .pf-crewcard { display: none; }
    .cc .pf-yhero { padding: 26px 20px; }
    .cc .pf-yh h2 { font-size: 28px; }
    .cc .pf-card { padding: 18px 16px; }
    .cc .pf-gl { height: 360px; min-height: 360px; }
    .cc .pf-pride { margin-left: 0; }
    .cc .pf-ybig b { font-size: 30px; }
}

/* Bootstrap's .row (the classic stylesheet is still loaded) must not touch the design's rows */
.cc .pf-flight, .cc .pf-landing, .cc .pf-lrow { margin-inline: 0; --bs-gutter-x: 0; }
.cc .pf-flight > *, .cc .pf-landing > *, .cc .pf-lrow > * { width: auto; max-width: none; padding-inline: 0; margin-top: 0; }
.cc .pf-flight > .chip { flex: none; }

.cc .pf-chart[data-pf-ppi] { height: 210px; }

/* The day tooltip of A year in the sky. */
.cc .pf-year span[data-t] { cursor: default; }
.cc .pf-year span[data-t]:hover { outline: 2px solid var(--lk); outline-offset: 1px; }
.pf-tip { position: absolute; z-index: 1700; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: #0A1C42; color: #fff; font: 600 12.5px 'Inter', system-ui, sans-serif; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap; }
.pf-tip strong { font-weight:700; }
.pf-tip code { font: 600 12px 'Inter',system-ui,sans-serif;font-variant-numeric:tabular-nums; color: #9CC2FF; }

/* The date on a group flight keeps the size of the icons above it (the row's rule for children would shrink it). */
.cc .pf-flight > .pf-date { width: 48px; height: 48px; border-radius: 12px; }
