/* Qualped Club member portal
   Styled from qualped.com: eagle-and-sky band, cursive wordmark on a light corner,
   bright qped-blue buttons with bold letter-spaced caps, 5px corners, lifted shadows. */
:root {
  /* Layout idea: Qualped's sky band with the three gateway tabs on top, navy-ink reading panels on a light sky canvas below. */
  --qped-blue: #03a9f4;
  --qped-deep: #026e9f;
  --sky: #54c2f4;
  --sky-light: #a6dcf4;
  --sky-pale: #e6f5fd;
  --ink: #0e2440;
  --ink-soft: #3b5572;
  --paper: #ffffff;
  --line: #bfe1f3;
  --ember: #f79007;
  --gold: #a67c00;
  --ok: #15703f;
  --bad: #b3261e;
  --font-display: "Noto Serif", "Times New Roman", Times, serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
  --radius: 5px;
  --lift: 0 27px 15px -24px rgb(0 0 0 / .25);
  --glow: 0 0 10px 2px #a6dcf4;
  --halo: 0 1px 2px rgba(1, 44, 74, .95), 0 0 4px rgba(1, 44, 74, .8), 0 0 16px rgba(2, 60, 96, .85);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #4a93c8; /* the sky layer covers this; it shows only if the layer cannot load */
  min-height: 100%;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
[hidden] { display: none !important; }
.qc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- preview strip ---------- */
.qc-preview {
  background: var(--qped-deep); color: #fff; font-size: 13px; line-height: 1.4;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 16px;
}
.qc-preview strong { font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }
.qc-preview span { flex: 1 1 260px; }
.qc-preview button {
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius);
  font-size: 12px; font-weight: 600; padding: 5px 10px;
}
.qc-preview button:hover, .qc-preview button[aria-pressed="true"] { background: #fff; color: var(--qped-deep); }

/* ---------- the sky: Qualped's eagle video behind every screen, under the same blue veil as qualped.com ---------- */
.qc-sky {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0;
  overflow: hidden; pointer-events: none; background: #4a93c8;
}
.qc-sky__media, .qc-sky__media video, .qc-sky__media img, .qc-sky__shade { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.qc-sky__media video, .qc-sky__media img { max-width: none; object-fit: cover; object-position: 51.87% 52.49%; }
.qc-sky__shade { background: rgba(84, 194, 244, .5); }
#app { position: relative; z-index: 1; }

/* ---------- top band: clear, so the sky shows through; the light corner stays ---------- */
.qc-top { position: relative; isolation: isolate; color: #fff; }
.qc-top__shade, .qc-top__corner { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.qc-top__shade {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 420px 300px at 0 0, rgba(214, 238, 251, .92) 0, rgba(214, 238, 251, .55) 38%, rgba(214, 238, 251, 0) 70%);
  /* The glow melts away toward the foot of the band, so no edge shows where the band ends and the page begins. */
  -webkit-mask-image: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0) 100%);
}
.qc-top__corner {
  width: 190px; height: 150px;
  background: radial-gradient(ellipse 190px 150px at 100% 100%, rgba(166, 220, 244, 0) 99.2%, var(--sky-light) 100%);
}
.qc-top__inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px 18px;
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo tabs tools"; align-items: end; gap: 14px 20px;
}
.qc-logo { grid-area: logo; display: block; line-height: 0; border-radius: var(--radius); align-self: start; }
.qc-logo img { width: 200px; height: auto; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.qc-tools { grid-area: tools; display: flex; align-items: center; gap: 8px; align-self: start; padding-top: 6px; }
.qc-tabs { grid-area: tabs; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.qc-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.25; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; text-decoration: none; background: var(--qped-blue); border-radius: var(--radius);
  padding: 13px 20px; box-shadow: var(--glow); text-shadow: 0 1px 1px rgba(2, 110, 159, .55);
}
.qc-tab:hover, .qc-tab:focus-visible { background: var(--qped-deep); }
.qc-tab svg { width: 18px; height: 18px; flex: none; }

.qc-iconbtn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--qped-deep); box-shadow: var(--glow);
}
.qc-iconbtn:hover { background: #fff; color: var(--ink); }
.qc-iconbtn svg { width: 22px; height: 22px; }
.qc-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ember); color: #1b1200; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.qc-avatarbtn { padding: 0; border: 0; background: none; border-radius: 50%; }

/* welcome hero inside the band */
.qc-hero { max-width: 1180px; margin: 0 auto; padding: 8px 20px 150px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; }
.qc-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.2vw, 60px); color: #fff; text-shadow: var(--halo); line-height: 1.05; }
.qc-hero__sub { font-family: var(--font-display); font-size: 17px; color: #fff; text-shadow: var(--halo); margin-top: 12px; max-width: 30em; }
.qc-hero__future {
  font-family: var(--font-display); font-style: italic; font-weight: 400; text-align: right; color: var(--sky-light);
  text-shadow: 0 0 7px #fff; font-size: clamp(54px, 10.5vw, 136px); line-height: .98; margin: 0; white-space: nowrap;
}

/* ---------- body layout ---------- */
.qc-body { max-width: 1180px; margin: 0 auto; padding: 22px 20px 60px; display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 22px; align-items: start; }
.qc-body--single { grid-template-columns: minmax(0, 1fr); }
.qc-body--lifted { margin-top: -130px; position: relative; }
.qc-side { position: sticky; top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.qc-nav {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; border-radius: var(--radius);
  padding: 11px 12px; font-weight: 600; font-size: 15px; color: var(--ink);
}
.qc-nav svg { width: 20px; height: 20px; color: var(--qped-deep); flex: none; }
.qc-nav:hover { background: var(--sky-pale); }
.qc-nav[aria-current="page"] { background: var(--sky-pale); box-shadow: inset 4px 0 0 var(--qped-blue); color: var(--qped-deep); }
.qc-nav .qc-badge { position: static; margin-left: auto; }
.qc-side hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.qc-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

.qc-bottom { display: none; }

.qc-view-title { font-style: italic; font-weight: 400; font-size: clamp(28px, 4vw, 38px); color: var(--qped-deep); }
.qc-view-lede { color: var(--ink-soft); max-width: 62ch; margin-top: 4px; }
.qc-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 16px; }
/* Words that sit straight on the sky, with no card behind them: white with a deep-blue halo, as on qualped.com. */
.qc-head--sky .qc-view-title, .qc-head--sky .qc-view-lede, .qc-main .qc-onsky { color: #fff; text-shadow: var(--halo); }
.qc-head--sky .qc-view-lede, .qc-main .qc-muted.qc-onsky { font-weight: 600; }

/* ---------- panels ---------- */
.qc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); padding: 20px; min-width: 0; }
.qc-panel--tint { background: #f3fafe; }
.qc-panel__title { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.qc-panel__title small { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--ink-soft); margin-left: 8px; }
.qc-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.qc-stack--tight { gap: 8px; }
.qc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.qc-row--between { justify-content: space-between; }
.qc-row--end { justify-content: flex-end; }
.qc-grow { flex: 1 1 0; min-width: 0; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.qc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qc-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.qc-muted { color: var(--ink-soft); font-size: 14px; }
.qc-small { font-size: 13px; }
.qc-band {
  font-family: var(--font-display); letter-spacing: 1.5px; font-size: 14px; line-height: 1.7; color: var(--qped-deep); text-align: center;
  background: rgba(255, 255, 255, .78); box-shadow: 0 0 10px 2px var(--qped-blue) inset; padding: 14px 24px; border-radius: 0;
}
.qc-empty { text-align: center; padding: 28px 16px; color: var(--ink-soft); }
.qc-empty h3 { font-style: italic; font-weight: 400; font-size: 22px; color: var(--qped-deep); margin-bottom: 6px; }
.qc-loading { padding: 28px; text-align: center; color: var(--ink-soft); font-family: var(--font-display); font-style: italic; background: rgba(255, 255, 255, .92); border-radius: var(--radius); }
#app > .qc-loading { max-width: 360px; margin: 18vh auto 0; box-shadow: var(--lift); }

/* ---------- buttons ---------- */
.qc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius);
  background: var(--qped-blue); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; line-height: 1.2;
  letter-spacing: 1px; text-transform: uppercase; padding: 12px 22px; min-height: 44px; text-decoration: none;
  text-shadow: 0 1px 1px rgba(2, 110, 159, .55);
}
.qc-btn:hover, .qc-btn:focus-visible { background: var(--qped-deep); }
.qc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.qc-btn svg { width: 16px; height: 16px; flex: none; }
.qc-btn--ghost { background: #fff; color: var(--qped-deep); box-shadow: inset 0 0 0 2px var(--qped-blue); text-shadow: none; }
.qc-btn--ghost:hover, .qc-btn--ghost:focus-visible { background: var(--qped-deep); color: #fff; box-shadow: inset 0 0 0 2px var(--qped-deep); }
.qc-btn--ghost[aria-pressed="true"] { background: var(--qped-deep); color: #fff; box-shadow: inset 0 0 0 2px var(--qped-deep); }
.qc-btn--danger { background: var(--bad); text-shadow: none; }
.qc-btn--danger:hover, .qc-btn--danger:focus-visible { background: #7f1a14; }
.qc-btn--small { padding: 8px 14px; min-height: 36px; font-size: 11px; }
.qc-btn--block { width: 100%; }
.qc-link { background: none; border: 0; padding: 0; color: var(--qped-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.qc-link:hover { color: var(--ink); }

/* ---------- forms ---------- */
.qc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qc-field > label, .qc-label { font-weight: 600; font-size: 14px; color: var(--ink); }
.qc-input, .qc-select, .qc-textarea {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid #8cc6e6; border-radius: var(--radius); padding: 11px 12px; font-size: 16px; line-height: 1.4;
}
.qc-textarea { min-height: 96px; resize: vertical; }
.qc-input:focus, .qc-select:focus, .qc-textarea:focus { outline: none; border-color: var(--qped-blue); box-shadow: 0 0 0 3px rgba(3, 169, 244, .3); }
.qc-hint { font-size: 13px; color: var(--ink-soft); }
.qc-error { font-size: 14px; color: var(--bad); font-weight: 600; }
.qc-notice { border-left: 4px solid var(--qped-blue); background: var(--sky-pale); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 14px; }
.qc-notice--warn { border-left-color: var(--ember); background: #fff6e8; }
.qc-notice--ok { border-left-color: var(--ok); background: #ebf7f0; }
.qc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.qc-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--qped-deep); flex: none; }
.qc-pass { position: relative; }
.qc-pass .qc-input { padding-right: 74px; }
.qc-pass button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--qped-deep); font-weight: 600; font-size: 13px; padding: 8px; }
.qc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qc-form-grid .qc-span { grid-column: 1 / -1; }
.qc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-pill {
  border: 0; border-radius: var(--radius); background: #fff; color: var(--qped-deep); box-shadow: inset 0 0 0 1px #8cc6e6;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 9px 14px; min-height: 40px;
}
.qc-pill[aria-pressed="true"], .qc-pill[aria-selected="true"] { background: var(--qped-deep); color: #fff; box-shadow: none; }
.qc-seg { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- avatars, chips ---------- */
.qc-avatar {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--qped-blue), var(--qped-deep)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--sky-light);
}
.qc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.qc-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.qc-avatar--lg { width: 76px; height: 76px; font-size: 26px; }
.qc-avatar--xl { width: 112px; height: 112px; font-size: 38px; }
.qc-avatar i { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 2px #fff; }
.qc-chip {
  display: inline-flex; align-items: center; gap: 5px; border-radius: var(--radius); padding: 3px 8px; font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.5; white-space: nowrap;
  background: var(--sky-pale); color: var(--qped-deep);
}
.qc-chip--member { box-shadow: var(--glow); background: #fff; }
.qc-chip--author { box-shadow: var(--glow); background: var(--qped-deep); color: #fff; }
.qc-chip--cofounder { box-shadow: 0 0 10px 2px #fbd9a5; background: #8a4b00; color: #fff; }
.qc-chip--patron { box-shadow: 0 0 10px 2px #ecd98a; background: #fff8dc; color: #6b5200; }
.qc-chip--free { background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 1px #8cc6e6; }
.qc-chip--supporter { background: #e3f4fd; color: var(--qped-deep); box-shadow: var(--glow); }
.qc-chip--elite { background: var(--ink); color: #f6d77a; box-shadow: 0 0 10px 2px #ecd98a; }
.qc-chip--sample { background: #eef0f3; color: #4a5565; }
.qc-chip--plain { background: #eef7fc; color: var(--ink-soft); }
.qc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qc-name { font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; font-size: 15px; }
button.qc-name:hover { color: var(--qped-deep); text-decoration: underline; }

/* ---------- membership card ---------- */
.qc-card {
  position: relative; overflow: hidden; border-radius: 12px; color: #fff; padding: 20px; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, #0389c8 0, #03a9f4 48%, #54c2f4 100%); box-shadow: var(--lift), 0 0 0 1px rgba(255, 255, 255, .4) inset;
}
.qc-card::after { content: ""; position: absolute; right: -70px; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.qc-card__brand { font-family: var(--font-display); font-style: italic; font-size: 22px; text-shadow: 0 1px 3px rgba(2, 70, 110, .5); }
.qc-card__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-shadow: 0 1px 3px rgba(2, 70, 110, .5); overflow-wrap: anywhere; }
.qc-card__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; position: relative; z-index: 1; }
.qc-card__meta b { display: block; font-family: var(--font-display); font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; opacity: .92; }
.qc-card__meta span { font-weight: 700; font-size: 15px; text-shadow: 0 1px 2px rgba(2, 70, 110, .5); }

/* ---------- tiers ---------- */
.qc-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px; }
.qc-tier {
  position: relative; text-align: left; background: #fff; border: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px #8cc6e6; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 100px;
}
.qc-tier:hover { box-shadow: inset 0 0 0 2px var(--qped-blue); }
.qc-tier[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--qped-blue), var(--glow); background: #f3fafe; }
.qc-tier[disabled] { opacity: .6; cursor: not-allowed; }
.qc-tier__name { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--qped-deep); }
.qc-tier__price { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.qc-tier__price small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.qc-tier__note { font-size: 13px; color: var(--ink-soft); }
.qc-tier__flag { align-self: flex-start; margin-top: 4px; }
.qc-quote > .qc-row { flex-wrap: nowrap; align-items: flex-start; }
.qc-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qc-paybtn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 0; border-radius: var(--radius); font-weight: 700; font-size: 15px; padding: 10px 14px;
}
.qc-paybtn--card { background: var(--ink); color: #fff; }
.qc-paybtn--card:hover { background: #1c3a61; }
.qc-paybtn--paypal { background: #ffc439; color: #111; }
.qc-paybtn--paypal:hover { background: #f2b21f; }
.qc-paybtn svg { width: 22px; height: 22px; }

/* ---------- posts ---------- */
.qc-composer textarea { min-height: 76px; }
.qc-post { padding: 18px 20px; }
.qc-post__head { display: flex; align-items: flex-start; gap: 12px; }
.qc-post__who { flex: 1 1 0; min-width: 0; }
.qc-post__time { font-size: 13px; color: var(--ink-soft); }
.qc-post__body { margin-top: 12px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qc-post__img { display: block; margin-top: 12px; border-radius: var(--radius); max-height: 520px; width: auto; }
.qc-post__pin { font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--gold); display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.qc-post__pin svg { width: 14px; height: 14px; }
.qc-quote { margin-top: 12px; border: 1px solid var(--line); border-left: 4px solid var(--qped-blue); border-radius: var(--radius); padding: 12px 14px; background: #f6fbfe; }
.qc-quote .qc-post__body { margin-top: 6px; font-size: 15px; }
.qc-post__actions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.qc-act {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: var(--radius); padding: 8px 7px; min-height: 40px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.qc-act svg { width: 18px; height: 18px; }
.qc-act:hover { background: var(--sky-pale); color: var(--qped-deep); }
.qc-act[aria-pressed="true"] { color: var(--qped-deep); background: var(--sky-pale); }
.qc-act b { font-variant-numeric: tabular-nums; }
.qc-comments { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.qc-comment { display: flex; gap: 10px; align-items: flex-start; }
.qc-comment__bubble { background: #f1f9fe; border-radius: 12px; padding: 8px 12px; min-width: 0; flex: 1 1 0; }
.qc-comment__bubble p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.qc-commentform { display: flex; gap: 8px; align-items: flex-start; margin-top: 4px; }
.qc-commentform .qc-input { min-height: 44px; }

/* ---------- menus, dialogs, toasts ---------- */
.qc-menuwrap { position: relative; }
.qc-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(14, 36, 64, .25); padding: 6px; display: flex; flex-direction: column; gap: 2px; color: var(--ink);
}
.qc-menu button { text-align: left; border: 0; background: none; border-radius: var(--radius); padding: 10px 12px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.qc-menu button:hover { background: var(--sky-pale); }
.qc-menu .qc-menu__danger { color: var(--bad); }
.qc-menu__head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.qc-more { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; color: var(--ink-soft); display: grid; place-items: center; }
.qc-more:hover { background: var(--sky-pale); color: var(--qped-deep); }
.qc-more svg { width: 20px; height: 20px; }

.qc-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(14, 36, 64, .55); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.qc-dialog { background: #fff; border-radius: 8px; width: min(560px, 100%); max-height: calc(100% - 8px); overflow-y: auto; box-shadow: 0 30px 60px rgba(14, 36, 64, .4); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.qc-dialog h2 { font-style: italic; font-weight: 400; font-size: 26px; color: var(--qped-deep); }
.qc-toasts { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.qc-toast { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(14, 36, 64, .35); }
.qc-toast--bad { background: var(--bad); }
.qc-toast--ok { background: var(--ok); }
.qc-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(400px, 100%); background: #fff; box-shadow: -20px 0 50px rgba(14, 36, 64, .3); display: flex; flex-direction: column; }
.qc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.qc-drawer__body { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.qc-note { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: none; border-radius: var(--radius); padding: 10px; color: var(--ink); }
.qc-note:hover { background: var(--sky-pale); }
.qc-note--new { background: #eef8fe; box-shadow: inset 3px 0 0 var(--qped-blue); }

/* ---------- members ---------- */
.qc-member { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.qc-member__top { display: flex; gap: 12px; align-items: flex-start; }
.qc-member__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.qc-profile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.qc-declaration { font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--qped-deep); border-left: 4px solid var(--qped-blue); padding: 4px 0 4px 16px; overflow-wrap: anywhere; }
.qc-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.qc-social { display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px #8cc6e6; padding: 8px 12px; min-height: 40px; color: var(--qped-deep); font-weight: 600; font-size: 14px; text-decoration: none; background: #fff; }
.qc-social:hover { background: var(--qped-deep); color: #fff; box-shadow: none; }
.qc-social svg { width: 18px; height: 18px; }
.qc-rank { display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.qc-rank:last-child { border-bottom: 0; }
.qc-rank__n { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--qped-deep); text-align: center; font-variant-numeric: tabular-nums; }
.qc-rank__pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.qc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.qc-stat { background: var(--sky-pale); border-radius: var(--radius); padding: 12px; }
.qc-stat b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--qped-deep); font-variant-numeric: tabular-nums; }
.qc-stat span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.qc-progress { height: 10px; background: var(--sky-pale); border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.qc-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--qped-deep), var(--qped-blue)); border-radius: 5px; }
.qc-todo { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 9px 6px; border-radius: var(--radius); font-size: 15px; color: var(--ink); }
.qc-todo:hover { background: var(--sky-pale); }
.qc-todo i { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px #8cc6e6; display: grid; place-items: center; color: #fff; }
.qc-todo--done i { background: var(--ok); box-shadow: none; }
.qc-todo--done span { color: var(--ink-soft); text-decoration: line-through; }
.qc-todo i svg { width: 14px; height: 14px; }

/* ---------- circles, events ---------- */
.qc-circle { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.qc-circle h3 { font-size: 18px; }
.qc-circle__open { background: none; border: 0; padding: 0; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.qc-circle__open:hover { color: var(--qped-deep); text-decoration: underline; }
.qc-event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.qc-date { background: var(--qped-deep); color: #fff; border-radius: var(--radius); text-align: center; padding: 8px 4px; font-family: var(--font-display); }
.qc-date b { display: block; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.qc-date span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.qc-event h3 { font-size: 18px; }

/* ---------- messages ---------- */
.qc-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; min-height: 460px; }
.qc-threads { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.qc-thread { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.qc-thread:hover, .qc-thread[aria-current="true"] { background: var(--sky-pale); }
.qc-thread__text { min-width: 0; flex: 1 1 0; }
.qc-thread__text p { font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc-convo { display: flex; flex-direction: column; min-width: 0; }
.qc-convo__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.qc-convo__list { flex: 1 1 auto; overflow-y: auto; max-height: 52vh; min-height: 260px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f6fbfe; }
.qc-msg { max-width: 78%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.qc-msg p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.qc-msg time { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.qc-msg--me { align-self: flex-end; background: var(--qped-deep); border-color: var(--qped-deep); color: #fff; border-radius: 14px 14px 4px 14px; }
.qc-msg--me time { color: #d5eefb; }
.qc-convo__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.qc-convo__form textarea { min-height: 44px; height: 44px; max-height: 140px; }

/* ---------- tables ---------- */
.qc-tablewrap { overflow-x: auto; }
.qc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.qc-table th { text-align: left; font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.qc-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* ---------- auth card ---------- */
.qc-auth { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
.qc-auth__card { padding: 24px; }
.qc-auth__card h2 { font-style: italic; font-weight: 400; font-size: 30px; color: var(--qped-deep); }
.qc-steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.qc-steps li { font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); padding: 6px 10px; border-radius: var(--radius); background: var(--sky-pale); }
.qc-steps li[aria-current="step"] { background: var(--qped-deep); color: #fff; }
.qc-code { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* ---------- footer, as on qualped.com ---------- */
.qc-footer { margin-top: 10px; color: #fff; }
.qc-foot-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qc-foot-tile {
  display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 108px; padding: 18px 14px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; text-align: center;
  background-size: cover; background-position: center center; background-repeat: no-repeat; text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.qc-foot-tile:hover, .qc-foot-tile:focus-visible { background-position: top center; }
.qc-foot-tile svg { width: 36px; height: 36px; flex: none; stroke-width: 2; }
.qc-foot-brand { background: var(--sky); display: flex; flex-direction: column; align-items: center; padding: 8px 16px 10px; }
.qc-foot-brand a { line-height: 0; border-radius: var(--radius); }
.qc-foot-brand img { width: 150px; height: auto; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .75)); }
.qc-foot-brand span { font-family: var(--font-display); font-size: 25px; line-height: 1.3; letter-spacing: 1px; color: #fff; text-shadow: 0 1px 6px rgba(2, 70, 110, .5); text-align: center; }
.qc-foot-strip { height: 20px; background: #333; }
.qc-foot-join { background: var(--sky); text-align: center; line-height: 0; position: relative; z-index: 1; box-shadow: 0 31px 17px -20px rgb(0 0 0 / .25); }
.qc-foot-join button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 0; background: var(--qped-blue); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase;
  padding: 22px 30px; min-height: 64px; text-shadow: 0 1px 1px rgba(2, 110, 159, .55);
}
.qc-foot-join button:hover, .qc-foot-join button:focus-visible { background: var(--qped-deep); color: var(--sky-light); }
.qc-foot-join svg { width: 26px; height: 26px; flex: none; }
.qc-foot-info { background: var(--qped-blue); padding: 14px 20px; }
.qc-foot-info__in { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; align-items: center; }
.qc-foot-place { font-family: var(--font-display); font-size: 16px; line-height: 1.65; text-align: center; text-shadow: 0 1px 2px rgba(2, 70, 110, .6); }
.qc-foot-contact { font-size: 16px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; text-shadow: 0 1px 2px rgba(2, 70, 110, .6); }
.qc-foot-contact p { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.qc-foot-contact svg { width: 20px; height: 20px; flex: none; }
.qc-foot-social { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.qc-foot-social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--glow); }
.qc-foot-social a:hover, .qc-foot-social a:focus-visible { background: var(--sky-pale); }
.qc-foot-social svg { width: 21px; height: 21px; stroke-width: 2; }
.qc-foot-legal { background: #d6ecf8; padding: 16px 20px 26px; }
.qc-foot-legal p {
  position: relative; max-width: 960px; margin: 0 auto; background: #fff; color: var(--qped-deep); font-family: var(--font-display);
  font-size: 15px; line-height: 1.65; padding: 46px 46px 22px;
}
.qc-foot-legal p::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px;
  background: repeating-linear-gradient(90deg, #d6ecf8 0 2px, rgba(214, 236, 248, 0) 2px 5px);
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0)); mask-image: linear-gradient(#000, rgba(0, 0, 0, 0));
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .qc-cols, .qc-auth { grid-template-columns: minmax(0, 1fr); }
  .qc-cols--home { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .qc-cols--home > .qc-stack { display: contents; }
  .qc-cols--home .qc-card { order: -2; }
  .qc-cols--home .qc-home-steps { order: -1; }
}
@media (max-width: 900px) {
  .qc-body { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 36px; }
  .qc-footer--nav .qc-foot-legal { padding-bottom: 88px; }
  .qc-side { display: none; }
  .qc-bottom {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14, 36, 64, .12);
  }
  .qc-bottom button {
    position: relative; border: 0; background: none; padding: 8px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 700; color: var(--ink-soft); min-height: 58px;
  }
  .qc-bottom svg { width: 23px; height: 23px; }
  .qc-bottom button[aria-current="page"] { color: var(--qped-deep); box-shadow: inset 0 3px 0 var(--qped-blue); }
  .qc-bottom .qc-badge { top: 4px; right: calc(50% - 24px); }
  .qc-top__corner { width: 130px; height: 100px; background: radial-gradient(ellipse 130px 100px at 100% 100%, rgba(166, 220, 244, 0) 99%, var(--sky-light) 100%); }
  .qc-top__inner { grid-template-columns: 1fr auto; grid-template-areas: "logo tools" "tabs tabs"; padding: 10px 16px 14px; }
  .qc-logo img { width: 150px; }
  .qc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .qc-tab { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 11px; letter-spacing: .6px; min-height: 62px; }
  .qc-hero { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 140px; gap: 8px; }
  .qc-chat { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .qc-chat--open .qc-threads { display: none; }
  .qc-chat:not(.qc-chat--open) .qc-convo { display: none; }
  .qc-threads { border-right: 0; }
  .qc-toasts { bottom: 76px; }
}
@media (max-width: 700px) {
  .qc-foot-tiles { grid-template-columns: minmax(0, 1fr); }
  .qc-foot-tile { min-height: 78px; justify-content: flex-start; padding: 14px 24px; font-size: 14px; }
  .qc-foot-info__in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .qc-foot-join button { width: 100%; padding: 18px 16px; font-size: 13px; }
  .qc-foot-legal p { padding: 40px 20px 18px; font-size: 14px; }
}
@media (max-width: 560px) {
  .qc-panel { padding: 16px; }
  .qc-post { padding: 16px; }
  .qc-form-grid, .qc-grid--2, .qc-pay { grid-template-columns: minmax(0, 1fr); }
  .qc-profile { grid-template-columns: minmax(0, 1fr); }
  .qc-event { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .qc-band { font-size: 12.5px; letter-spacing: 1px; padding: 12px 14px; }
  .qc-auth__card { padding: 18px; }
  .qc-dialog { padding: 18px; }
  .qc-msg { max-width: 88%; }
  .qc-act span { display: none; }
  .qc-act { padding: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .qc-btn, .qc-tab, .qc-nav, .qc-act, .qc-tier, .qc-pill { transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
  .qc-toast { animation: qc-rise .2s ease-out; }
  @keyframes qc-rise { from { transform: translateY(8px); opacity: .4; } to { transform: none; opacity: 1; } }
}
