/* Profile and My flying: the shared look (27 Nov 2026). Photo banner, then cards with the v2.0 soft blue title panel. */
html { --me-bg:#f7f7f7; --me-card:#fff; --me-panel:#e6edfc; --me-title:#214b9a; --me-stripe:#214b9a; --me-text:#242528; --me-muted:#606267; --me-line:#dadbdd; --me-chip:#f0f2f5; --me-accent:#214b9a; }
html[data-theme="dark"] { --me-bg:#191a1c; --me-card:#242528; --me-panel:#283959; --me-title:#97b7ff; --me-stripe:#7aa2f7; --me-text:#f4f4f5; --me-muted:#c0c1c4; --me-line:#444549; --me-chip:#2e2f33; --me-accent:#7aa2f7; }
[hidden] { display:none !important; }
html { scrollbar-gutter:stable; }   /* room for the scroll bar is always kept, so opening a card never shifts the page sideways */
* { box-sizing:border-box; }
html body.me { margin:0; padding:0; background:var(--me-bg); color:var(--me-text); font:15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.me .wrap { max-width:1180px; margin:0 auto; padding:16px 24px 48px; }

/* Buttons: squarer, 32px, grey / blue / red */
.me .btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:32px; min-height:32px; padding:0 14px; border-radius:6px; border:1px solid var(--me-line); background:var(--me-card); color:var(--me-text); font:600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor:pointer; white-space:nowrap; text-decoration:none; box-shadow:none; }
.me .btn svg { width:16px; height:16px; flex:none; }
.me .btn.blue { background:#214b9a; border-color:#214b9a; color:#fff; }
.me .btn.danger { color:#c62828; border-color:#e6abab; }
.me .btn:disabled, .me .btn[aria-disabled="true"] { opacity:.45; cursor:not-allowed; pointer-events:none; }
.me .btn.ok { border-color:#2e9e4f; color:#2e9e4f; }
html[data-theme="dark"] .me .btn.blue { background:#7aa2f7; border-color:#7aa2f7; color:#191a1c; }

/* Photo banner */
.me .hero { position:relative; border-radius:8px; overflow:hidden; min-height:180px; background:#25262a; }
.me .hero > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 55%; filter:var(--photo-fx, contrast(1.18) saturate(1.3)); }
.me .hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(20,21,24,.86) 0%, rgba(20,21,24,.55) 48%, rgba(20,21,24,.1) 100%); }
.me .who { position:relative; z-index:1; display:flex; align-items:center; gap:20px; padding:40px 30px; color:#fff; }
.me .hero.has-stats .who { padding-bottom:22px; }
.me .av { flex:none; width:92px; height:92px; border-radius:50%; display:grid; place-items:center; background-color:#606267; background-image:radial-gradient(circle at 34% 26%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 32%, rgba(255,255,255,0) 52%), radial-gradient(circle at 62% 78%, rgba(0,0,0,0) 30%, rgba(0,0,0,.38) 100%); color:#fff; font-size:34px; font-weight:700; text-shadow:0 2px 3px rgba(0,0,0,.45); box-shadow:inset 0 -6px 12px rgba(0,0,0,.35), inset 0 3px 6px rgba(255,255,255,.35), 0 0 0 4px rgba(255,255,255,.9), 0 8px 18px rgba(0,0,0,.45); }   /* a shaded 3D ball in your own pill colour (27 Nov 2026) */
.me .who h1 { margin:0; color:#fff; font-size:clamp(25px, 2.6vw, 38px); font-weight:700; line-height:1.08; letter-spacing:-.035em; }
.me .who .line { margin:6px 0 10px; color:#e3e4e6; font-size:14px; overflow-wrap:anywhere; }
.me .tags { display:flex; gap:6px; flex-wrap:wrap; }
.me .tag { height:24px; padding:0 10px; display:inline-flex; align-items:center; border-radius:6px; font-size:12px; font-weight:600; background:rgba(255,255,255,.16); color:#fff; border:1px solid rgba(255,255,255,.3); }
.me .stats { position:relative; z-index:1; display:flex; flex-wrap:wrap; margin:0 30px 22px; border-radius:8px; overflow:hidden; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22); width:max-content; max-width:calc(100% - 60px); }
.me .stats div { padding:9px 18px; color:#fff; border-left:1px solid rgba(255,255,255,.18); }
.me .stats div:first-child { border-left:0; }
.me .stats b { display:block; font-size:20px; font-weight:700; line-height:1.1; }
.me .stats span { font-size:11px; letter-spacing:.07em; text-transform:uppercase; color:#d6d7da; }

.me .bar { display:flex; justify-content:flex-end; align-items:flex-start; gap:8px; min-height:14px; margin:14px 0 4px; }
.me .bar .tvlay { margin:0; text-align:right; flex:1; }
.me .tvlay > button { height:32px; padding:0 14px 0 12px; border-radius:6px; background:var(--me-card); border-color:var(--me-line); color:var(--me-text); box-shadow:none; }
.me .tvlay-box { text-align:left; border-radius:8px; }
.me .tvlay-hd { background:var(--me-panel); color:var(--me-title); border-bottom:1px solid var(--me-line); border-left:5px solid var(--me-stripe); }

/* Cards: v2.0 heading standard */
.me .grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:18px; align-items:start; }
.me .col { display:grid; gap:18px; min-width:0; align-content:start; }
.me .full { grid-column:1 / -1; }
html[data-version="2"] body.me .card { padding:0 !important; border-radius:8px; }   /* the title panel fills the card's top edge (the shared card style added padding) */
.me .card { background:var(--me-card); border:1px solid var(--me-line); border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,.05), 0 6px 18px rgba(0,0,0,.05); overflow:hidden; min-width:0; }
.me .ch { position:relative; display:flex; align-items:center; gap:12px; padding:14px 12px 13px 23px; background:var(--me-panel); border-bottom:1px solid var(--me-line); cursor:pointer; -webkit-tap-highlight-color:transparent; user-select:none; }
.me .ch.fixed { cursor:default; user-select:auto; }   /* a card that always stays open (Personal information, My Calendar) */
.me .ch::before { content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:var(--me-stripe); }
.me .ch .tt { flex:1; min-width:0; }
.me .ch h2 { margin:0; display:flex; align-items:center; gap:8px; font-size:20px; font-weight:600; color:var(--me-title); line-height:1.2; }
.me .ch p { margin:2px 0 0; color:var(--me-muted); font-size:13px; }
.me .fold { flex:none; width:32px; height:32px; border:0; border-radius:6px; background:transparent; color:var(--me-title); display:grid; place-items:center; cursor:pointer; }
.me .fold svg { width:18px; height:18px; transition:transform .15s; }
.me .card.closed .cb { display:none; }
.me .card.closed .ch { border-bottom:0; }
.me .card.closed .fold svg { transform:rotate(-90deg); }
.me .cb { padding:16px 18px 18px; }
.me .dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#e23b3b; flex:none; }
.me .count { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:6px; background:#d63b3b; color:#fff; font-size:12px; font-weight:700; }

/* Fields */
.me .fields { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.me .fields .full { grid-column:1 / -1; }
.me .f label { display:block; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--me-muted); margin:0 0 5px; }
.me .f input { width:100%; height:38px; min-height:38px; padding:0 11px; border:1px solid var(--me-line); border-radius:6px; background:var(--me-card); color:var(--me-text); font:16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.me .f input:read-only, .me .f input:disabled { background:var(--me-bg); color:var(--me-text); }
.me .f input:focus { outline:2px solid var(--me-accent); outline-offset:-1px; }
.me .acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.me .row { display:flex; align-items:center; gap:12px; padding-top:14px; margin-top:16px; border-top:1px solid var(--me-line); }
.me .row .t { flex:1; min-width:0; }
.me .row b { display:block; font-size:15px; }
.me .row small { color:var(--me-muted); font-size:13px; }
.me .ico { width:36px; height:36px; border-radius:8px; display:grid; place-items:center; background:var(--me-chip); color:var(--me-title); flex:none; }
.me .ico svg { width:18px; height:18px; }
.me .pwbox { margin-top:14px; padding:14px; border:1px solid var(--me-line); border-radius:8px; background:var(--me-bg); }
.me .msg { font-size:13px; margin-top:8px; } .me .msg:empty { display:none; }
.me .hint { margin:0; color:var(--me-muted); font-size:13px; }

/* Calendar */
.me .cal-acts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 12px; }
.me .cal-acts .btn.blue { grid-column:1 / -1; }

/* Tables */
.me .tbl { width:100%; border-collapse:collapse; font-size:14px; }
.me .tbl th { text-align:left; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--me-muted); padding:0 10px 8px; border-bottom:1px solid var(--me-line); white-space:nowrap; }
.me .tbl th.s { cursor:pointer; user-select:none; } .me .tbl th.s:hover { color:var(--me-title); }
.me .tbl td { padding:10px; border-bottom:1px solid var(--me-line); vertical-align:middle; }
.me .tbl .n { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.me .tbl .c { text-align:center; }
.me .tbl tr.mk td { padding-top:18px; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--me-muted); border-bottom:0; }
.me .tbl tr.ty td { font-weight:600; }
.me .tbl tr.var td:first-child { padding-left:28px; color:var(--me-muted); }
.me .tbl tr.tot td { border-bottom:0; border-top:2px solid var(--me-line); font-weight:700; color:var(--me-title); }
.me .tbl .tap { cursor:pointer; font-weight:600; } .me .tbl .tap:hover { color:var(--me-title); text-decoration:underline; }
.me .tbl .cols-off-hours .h, .me .tbl.no-hours .h, .me .tbl.no-last .l { display:none; }
.me .rg { margin-left:8px; padding:1px 6px; border-radius:4px; background:var(--me-chip); color:var(--me-muted); font-size:11px; font-weight:600; white-space:nowrap; }
.me .empty { margin:0; color:var(--me-muted); font-size:14px; }

/* Lists (qualifications, passenger flights) */
.me .list { display:grid; gap:8px; }
.me .li { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:center; padding:10px 12px; border:1px solid var(--me-line); border-radius:6px; font-size:14px; }
.me .li b { font-size:15px; } .me .li small { grid-column:1; color:var(--me-muted); font-size:13px; } .me .li .r { grid-row:1 / span 2; grid-column:2; color:var(--me-muted); font-size:13px; text-align:right; }
.me .st { height:24px; padding:0 9px; border-radius:6px; display:inline-flex; align-items:center; font-size:12px; font-weight:600; background:var(--me-panel); color:var(--me-title); white-space:nowrap; }
.me .st.good { background:rgba(46,158,79,.14); color:#2e7d43; } .me .st.bad { background:rgba(214,59,59,.12); color:#c62828; } .me .st.wait { background:rgba(217,138,31,.14); color:#a8650e; } .me .st.none { background:var(--me-chip); color:var(--me-muted); }
html[data-theme="dark"] .me .st.good { color:#6fd08c; } html[data-theme="dark"] .me .st.bad { color:#ff8a8a; } html[data-theme="dark"] .me .st.wait { color:#f0b25a; }

/* My Wishlist answers */
.me .wl { display:grid; gap:10px; }
.me .wi { border:1px solid var(--me-line); border-radius:6px; overflow:hidden; }
.me .wi.acc { border-left:5px solid #2e9e4f; } .me .wi.dec { border-left:5px solid #d63b3b; } .me .wi.sub { border-left:5px solid #d98a1f; }
.me .wtop { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; padding:10px 12px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.me .wtop b { display:flex; align-items:center; gap:8px; font-size:15px; }
.me .wtop .chv { width:16px; height:16px; color:var(--me-muted); transition:transform .15s; }
.me .wi.shut .wtop .chv { transform:rotate(-90deg); } .me .wi.shut .wbody { display:none; }
.me .wbody { padding:0 12px 12px; font-size:14px; }
.me .wbody .note { margin:0 0 6px; color:var(--me-muted); font-size:13px; }
.me .wbody .det { margin:0; } .me .wbody .det small { display:inline-block; min-width:5.5em; color:var(--me-muted); font-size:13px; }
.me .fl { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:8px; margin-top:10px; }
.me .fl div { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border-radius:6px; background:var(--me-chip); font-weight:600; }
.me .wbody .go { margin:10px 0 0; text-align:right; }

/* Confirm boxes */
.me .ask { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(20,21,24,.5); }
.me .ask .box { width:100%; max-width:360px; padding:20px; border-radius:8px; background:var(--me-card); color:var(--me-text); box-shadow:0 12px 40px rgba(0,0,0,.25); text-align:center; }
.me .ask h3 { margin:0 0 6px; font-size:17px; } .me .ask p { margin:0 0 14px; color:var(--me-muted); font-size:14px; }
.me .ask .acts { justify-content:center; margin:0; } .me .ask .btn { flex:1; }

@media (max-width:860px) {
  .me .wrap { padding:12px 12px 40px; }
  .me .grid { grid-template-columns:minmax(0,1fr); }
  .me .who { padding:26px 18px; gap:14px; } .me .hero.has-stats .who { padding-bottom:16px; }
  .me .av { width:64px; height:64px; font-size:24px; }
  .me .stats { margin:0 18px 18px; max-width:calc(100% - 36px); }
  .me .stats div { padding:8px 12px; } .me .stats b { font-size:17px; }
}
@media (max-width:560px) {
  .me .fields { grid-template-columns:1fr; }
  .me .cb { padding:14px 14px 16px; }
  .me .row { flex-wrap:wrap; } .me .row .btn { width:100%; }
}

/* Profile and My flying (2 Dec 2026): the photo banner is now the page's top bar; the person's own details sit in a plain card below it. */
.me .hero.person { background:var(--me-card); border:1px solid var(--me-line); min-height:0; }
.me .hero.person::after { display:none; }
.me .hero.person .who { color:var(--me-text); padding:18px; }
.me .hero.person .who h1 { color:var(--me-text); font-size:clamp(22px, 2.2vw, 30px); letter-spacing:-.03em; }
.me .hero.person .who .line { color:var(--me-muted); }
.me .hero.person .tag { background:var(--me-chip); color:var(--me-title); border-color:var(--me-line); }
.me .hero.person .stats { margin:0; width:auto; max-width:none; border:0; border-top:1px solid var(--me-line); border-radius:0; background:none; }
.me .hero.person .stats div { flex:1 1 110px; color:var(--me-text); border-left:1px solid var(--me-line); }
.me .hero.person .stats div:first-child { border-left:0; }
.me .hero.person .stats span { color:var(--me-muted); }
@media (max-width:560px) { .me .hero.person .who { padding:14px; } .me .hero.person .stats { margin:0; max-width:none; } }
