/* QuicklyQR subpages (built from sub/kit.mjs). One rule per concern, grouped by section.
   Scale: tile 34px with 17px icon (same as .qq-row__ic), tag icon 15px, pill icon 14px, chevrons 18px bold.
   Cards are the homepage .qq-card / .qq-kpi (14px 16px, 14px radius). Frames use --r-xl. */

/* ---------- shared ---------- */
.qq-img { border: 0; }
.sub-hero h1, .qq-h2, .qq-close h2 { text-wrap: balance; }
.sub-tile { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.sub-tile .qq-ic { width: 17px; height: 17px; }
.sub-tile--on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sub-stack { display: grid; gap: 12px; }
.sub-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sub-st { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: .78rem; line-height: 1.2; white-space: nowrap; }
.sub-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.sub-st[data-s="active"]::before, .sub-st[data-s="live"]::before, .sub-st[data-s="editable"]::before { background: var(--ok); }
.sub-st[data-s="paused"]::before { background: #a1a1aa; }
.sub-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: var(--pill); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent) !important; font-weight: 600; font-size: .78rem; }
@keyframes sub-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes sub-bob { 50% { transform: translateY(-5px); } }
@keyframes sub-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes sub-w { from { transform: scaleX(0); } }
@keyframes sub-draw { from { stroke-dashoffset: 1300; } }
@keyframes sub-draw-s { from { stroke-dashoffset: 300; } }
@keyframes sub-prog { from { width: 0; } to { width: 100%; } }

/* ---------- hero ---------- */
.sub-hero { padding: 96px 0 72px; overflow: hidden; }
.sub-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.sub-hero h1 { font: 400 clamp(3.6rem, 6.4vw, 7rem)/.92 var(--display); letter-spacing: var(--display-track); text-transform: uppercase; margin: 22px 0 24px; }
:root[data-font="oswald"] .sub-hero h1, :root[data-font="shoulders"] .sub-hero h1, :root[data-font="barlow"] .sub-hero h1 { font-weight: 700; }
.sub-lead { font-size: 1.15rem; line-height: 1.65; color: var(--text-2); max-width: 520px; margin: 0; }
.sub-hero .qq-hero__cta { justify-content: flex-start; margin: 32px 0 0; }
.sub-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--text-2); font-size: .85rem; }
.sub-note .qq-ic { width: 18px; height: 18px; color: var(--accent); }
.sub-hero__txt > * { animation: qq-up .8s cubic-bezier(.2,.7,.2,1) both; }
.sub-hero__txt > *:nth-child(2) { animation-delay: .06s; } .sub-hero__txt > *:nth-child(3) { animation-delay: .12s; } .sub-hero__txt > *:nth-child(4) { animation-delay: .18s; } .sub-hero__txt > *:nth-child(5) { animation-delay: .24s; }

/* collage: photo A top-left, photo B bottom-right, free corners hold the floating cards */
.sub-collage { position: relative; width: 100%; max-width: 580px; justify-self: end; aspect-ratio: 1 / 1.04; }
.sub-photo { position: absolute; width: 56%; border-radius: 22px; box-shadow: var(--sh-2); animation: qq-up .9s cubic-bezier(.2,.7,.2,1) both; }
.sub-photo--a { left: 0; top: 7%; }
.sub-photo--b { right: 0; bottom: 0; width: 50%; z-index: 1; box-shadow: 0 0 0 6px var(--bg), var(--sh-2); animation-delay: .12s; }
.sub-float { position: absolute; z-index: 2; box-shadow: var(--sh-2); animation: sub-in .8s cubic-bezier(.2,.7,.2,1) .5s both, sub-bob 7s ease-in-out 1.4s infinite; }
.sub-float--main { left: 0; bottom: 0; width: 45%; min-width: 0; padding: 14px 16px 16px; gap: 3px; }
.sub-float--main .qq-spark { top: 14px; bottom: auto; right: 14px; width: 34%; height: 24px; }
.sub-float--main b { font-size: 2rem; line-height: 1.1; }
.sub-float--main em span { color: var(--text-2); font-weight: 500; }
.sub-float--note { right: 0; top: 24%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; animation-delay: .7s, 1.6s; }
.sub-float--note b { display: block; font-size: .9rem; }
.sub-float--note small { display: block; color: var(--text-2); font-size: .78rem; margin-top: 2px; }
.sub-hero .qq-spark path { stroke-dasharray: 300; animation: sub-draw-s 1.3s ease .6s both; }

/* ---------- feature strip ---------- */
.sub-strip { border-block: 1px solid var(--line); padding: 28px 0; }
.sub-strip__in { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sub-strip__in span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.sub-strip .qq-ic { width: 18px; height: 18px; color: var(--accent); }

/* ---------- sections ---------- */
.sub-section { padding: 104px 0; }
.sub-tint { background: var(--bg-2); }
.sub-split, .sub-feature, .sub-illus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.sub-split { align-items: start; }
.sub-split p, .sub-feature p { font-size: 1.15rem; line-height: 1.65; color: var(--text-2); max-width: 540px; margin: 0; }
.sub-split__ui { margin-top: 56px; }
.sub-feature__txt .qq-tag, .sub-illus .qq-tag { margin-bottom: 20px; }
.qq-faq .qq-tag { margin-bottom: 6px; }
.sub-feature .qq-h2 { margin: 0 0 22px; }
.sub-illus .qq-h2 { margin: 0; }

/* printed code stays, the destination changes */
.sub-redirect { display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px; border-radius: 20px; }
.sub-redirect__code { display: grid; justify-items: center; gap: 10px; }
.sub-redirect__code i { display: block; width: 124px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: #0a0a0a; }
.sub-redirect__code svg { display: block; width: 100%; height: auto; }
.sub-redirect__code small { color: var(--text-2); font-size: .78rem; font-weight: 500; }
.sub-redirect__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); }
.sub-redirect__arrow .qq-ic { width: 18px; height: 18px; }
.sub-redirect__list { display: grid; gap: 10px; }
.sub-redirect__list > div { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.sub-redirect__list b { display: block; font-size: .92rem; }
.sub-redirect__list small { display: block; color: var(--text-2); font-size: .8rem; margin-top: 2px; }
.sub-redirect__list .is-old { opacity: .55; }
.sub-redirect__list .is-new { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- how-to (tabs + product window) ---------- */
.sub-how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sub-how__list { display: grid; }
.sub-how__row { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: start; gap: 14px; width: 100%; padding: 22px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: color .2s; }
.sub-how__row:first-child { border-top: 1px solid var(--line); }
.sub-how__row > .qq-ic { width: 18px; height: 18px; margin-top: 2px; color: var(--text-2); transition: transform .2s, color .2s; }
.sub-how__row:hover > .qq-ic { transform: translateX(3px); color: var(--text); }
.sub-how__num { padding-top: 3px; font: 600 .8rem var(--mono); color: var(--text-2); }
.sub-how__txt b { display: block; font-size: 1.1rem; }
.sub-how__txt small { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--text-2); line-height: 1.5; transition: max-height .4s ease, opacity .3s, margin .3s; }
.sub-how__row.is-on .sub-how__txt small { max-height: 64px; opacity: 1; margin-top: 8px; }
.sub-how__row.is-on .sub-how__num, .sub-how__row.is-on > .qq-ic { color: var(--accent); }
.sub-how__row::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; background: var(--accent); }
.sub-how__row.is-on::after { animation: sub-prog 5s linear forwards; }
.sub-how.is-paused .sub-how__row.is-on::after { animation: none; width: 100%; }
.sub-how button:focus-visible, .sub-related a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sub-views { display: grid; }
.sub-view { grid-area: 1 / 1; display: grid; align-content: start; gap: 16px; min-width: 0; padding: 24px 26px 28px; }
.sub-view:not([hidden]) { animation: sub-fade .45s ease both; }
.sub-view[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.sub-view[hidden] * { animation: none !important; }
.sub-view > p { margin: 0; color: var(--text-2); }
.sub-view__head { margin: 0; }
.sub-window-card { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.sub-how .qq-field div { overflow-wrap: anywhere; }
.sub-how .qq-field .qq-ic { flex: none; }

/* ---------- mini UI inside windows and floats ---------- */
.sub-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sub-kpis .qq-kpi { min-width: 0; min-height: 88px; }
.sub-bars { height: 84px; }
.sub-chart .qq-card__head, .sub-line .qq-card__head, .sub-hbars .qq-card__head, .sub-feed .qq-card__head { margin-bottom: 12px; }
.sub-line > svg { height: 96px; }
.sub-line .qq-card__head svg { width: 15px; height: 15px; }
.sub-line .qq-chart__line { stroke-dasharray: 1300; }
.is-in .sub-line .qq-chart__line { animation: sub-draw 1.5s ease .1s both; }
.is-in .qq-spark path { stroke-dasharray: 300; animation: sub-draw-s 1.2s ease .3s both; }
.sub-hbars .qq-hbar { padding: 5px 0; }
.sub-hbars--wide .qq-hbar { grid-template-columns: 104px minmax(0, 1fr) 40px; }
.sub-hbars--wide .qq-hbar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-in .qq-hbar s { transform-origin: left; animation: sub-w .9s cubic-bezier(.2,.7,.2,1) both; }
.sub-feed li > div { min-width: 0; }
.sub-feed li em { white-space: nowrap; }
.sub-tbl { padding: 2px 16px; }
.sub-tbl__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.sub-tbl__row + .sub-tbl__row { border-top: 1px solid var(--line); }
.sub-tbl__qr { display: block; flex: none; width: 34px; height: 34px; padding: 4px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #0a0a0a; }
.sub-tbl__qr svg { display: block; width: 100%; height: 100%; }
.sub-tbl__name { flex: 1; min-width: 0; }
.sub-tbl__name b { display: block; font-size: .88rem; }
.sub-tbl__name small { display: block; color: var(--text-2); font-size: .78rem; margin-top: 1px; }
.sub-tbl__num { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.sub-tbl__num .qq-ic { width: 14px; height: 14px; }
.sub-set { padding: 2px 16px; }
.sub-set__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0; }
.sub-set__row + .sub-set__row { border-top: 1px solid var(--line); }
.sub-set__row b { display: block; font-size: .88rem; }
.sub-set__row small { display: block; color: var(--text-2); font-size: .78rem; margin-top: 1px; }
.sub-sw { position: relative; width: 36px; height: 20px; border-radius: 10px; background: var(--surface-3); transition: background .2s; }
.sub-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s; }
.sub-sw.is-on { background: var(--accent); }
.sub-sw.is-on::after { transform: translateX(16px); }
.sub-segwrap { display: grid; gap: 6px; }
.sub-segwrap small { color: var(--text-2); font-size: .78rem; font-weight: 500; }
.sub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .82rem; }
.sub-chips .qq-ic { width: 14px; height: 14px; color: var(--accent); }

/* ---------- cross link ---------- */
.sub-cross { padding: 38px 0; border-block: 1px solid var(--line); }
.sub-cross .qq-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sub-cross p { margin: 0; font-weight: 700; font-size: 1.2rem; }
.sub-cross .qq-hero__cta { margin: 0; }

/* ---------- card page (phone) ---------- */
.sub-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.sub-checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.sub-checks .qq-ic { width: 20px; height: 20px; color: var(--accent); }
.sub-feature__art { position: relative; display: grid; place-items: center; min-height: 680px; padding: 48px 24px; border-radius: var(--r-xl); background: #111; color: #fff; overflow: hidden; }
.sub-phone { position: relative; width: 232px; display: grid; gap: 10px; padding: 38px 16px 20px; border: 7px solid #2c2c2c; border-radius: 34px; background: #fff; color: #111; text-align: center; box-shadow: 0 18px 36px #0006; }
.sub-phone__notch { position: absolute; top: 9px; left: 50%; width: 58px; height: 15px; margin-left: -29px; border-radius: var(--pill); background: #111; }
.sub-phone__mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 2px; border-radius: 50%; background: #e7f0e9; color: #184b30; }
.sub-phone__mark .qq-ic { width: 24px; height: 24px; }
.sub-phone > b { font-size: 1.05rem; line-height: 1.25; }
.sub-phone > small { color: #666; }
.sub-phone__status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-style: normal; font-weight: 600; font-size: .74rem; color: #166534; }
.sub-phone__status .qq-dot { background: #16a34a; }
.sub-phone__link { display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e4e4e7; border-radius: 12px; text-align: left; font-size: .82rem; }
.sub-phone__link b { font-weight: 600; }
.sub-phone__link .qq-ic { width: 16px; height: 16px; }
.sub-phone__link .qq-ic:first-child { color: #166534; }
.sub-phone__link .qq-ic:last-child { width: 12px; height: 12px; color: #999; }
.sub-feature__a { left: 24px; top: 24px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; color: var(--text); animation-delay: .1s, 1s; }
.sub-feature__a b { display: block; font-size: .88rem; }
.sub-feature__a small { display: block; color: var(--text-2); font-size: .76rem; margin-top: 2px; }
.sub-feature__b { right: 24px; bottom: 24px; width: 172px; color: var(--text); animation-delay: .1s, 1.8s; }
.sub-feature__b b { font-size: 1.6rem; }
.sub-feature__b .qq-spark { bottom: 12px; width: 36%; }
.sub-feature .sub-float { animation: none; }
/* photo-filled art (S10): topic image behind the phone; pages without art keep the dark panel */
.sub-feature__art--photo { background: #111; }
.sub-feature__art--photo > .qq-img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; border-radius: inherit; }
.sub-feature__art--photo > .qq-img img { object-fit: cover; }
.sub-feature__art--photo .sub-phone { z-index: 1; }

/* ---------- photo band ---------- */
.sub-image-band { position: relative; }
.sub-image-band > .qq-img { border-radius: var(--r-xl); }
.sub-image-band__card { position: absolute; left: 28px; bottom: 28px; z-index: 1; width: min(310px, 60%); }
.sub-image-band__card .sub-feed { box-shadow: var(--sh-2); }
.sub-image-band__card .sub-feed li { background: none; padding: 0; }
.sub-image-band__kpi { position: absolute; right: 28px; top: 28px; z-index: 1; width: 190px; box-shadow: var(--sh-2); min-height: 88px; }

/* ---------- illustration + points ---------- */
.sub-illus > .qq-img { border-radius: var(--r-xl); }
.sub-illus__img img { object-position: 50% 0; }
.sub-illus__img--mid img { object-position: 50% 42%; }
.sub-points { display: grid; gap: 22px; margin-top: 32px; }
.sub-points > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; }
.sub-points b, .sub-points small { display: block; }
.sub-points b { padding-top: 6px; }
.sub-points small { color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.sub-illus__ui { margin-top: 30px; }

/* ---------- related + closing ---------- */
.sub-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sub-related a { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: 12px; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sub-related a:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-3px); }
.sub-related a > b { margin-top: 6px; font-size: 1.2rem; }
.sub-related p { margin: 0; color: var(--text-2); }
.sub-related a > .qq-ic { width: 18px; height: 18px; align-self: end; transition: transform .2s; }
.sub-related a:hover > .qq-ic { transform: translateX(4px); }
.sub-close { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sub-close .qq-close__txt { max-width: 640px; }
.sub-close__art { position: relative; display: grid; justify-items: end; align-items: center; min-height: 270px; }
.sub-close__code { display: grid; justify-items: center; gap: 10px; width: 190px; padding: 16px 16px 12px; border-radius: 22px; background: #fff; color: #0a0a0a; }
.sub-close__code i { display: block; width: 100%; }
.sub-close__code svg { display: block; width: 100%; height: auto; }
.sub-close__code span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; }
.sub-close__code .qq-ic { width: 15px; height: 15px; }
.sub-close__card { position: absolute; left: 0; top: 36px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; box-shadow: var(--sh-2); background: #fff; color: #0a0a0a; border-color: #e4e4e7; }
.sub-close__card small { display: block; margin-top: 2px; color: #52525b; font-size: .78rem; }
.sub-close__card b { font-size: .88rem; }
.sub-close__card .qq-row__ic { background: #f4f4f5; border-color: #e4e4e7; color: #0a0a0a; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sub-close { grid-template-columns: 1fr; }
  .sub-close__art { justify-items: center; }
  .sub-close__card { display: none; }
  .sub-hero__grid, .sub-split, .sub-how, .sub-feature, .sub-illus { grid-template-columns: 1fr; gap: 40px; }
  .sub-hero { padding-top: 64px; }
  .sub-collage { max-width: 560px; justify-self: center; }
  .sub-section { padding: 80px 0; }
  .sub-strip__in { grid-template-columns: repeat(3, 1fr); }
  .sub-cross .qq-wrap { flex-direction: column; align-items: flex-start; }
  
}
@media (max-width: 700px) {
  .sub-related { grid-template-columns: 1fr; }
  .sub-related a { min-height: 180px; }
  .sub-redirect { grid-template-columns: 1fr; justify-items: center; }
  .sub-redirect__arrow { transform: rotate(90deg); }
  .sub-redirect__list { width: 100%; }
  .sub-row2 { grid-template-columns: 1fr; }
  .sub-view[hidden] { display: none; }
}
@media (max-width: 600px) {
  .sub-hero { padding: 44px 0 56px; }
  .sub-hero h1 { font-size: clamp(3.4rem, 17vw, 4.4rem); }
  .sub-photo { border-radius: 16px; }
  .sub-float--main { padding: 10px 12px 12px; }
  .sub-float--main b { font-size: 1.5rem; }
  .sub-float--main .qq-spark { display: none; }
  .sub-photo--a { top: 12%; }
  .sub-float--note { top: 0; }
  .sub-float--note { gap: 8px; padding: 9px 12px 9px 9px; grid-template-columns: 30px 1fr auto; }
  .sub-float--note .qq-row__ic { width: 30px; height: 30px; }
  .sub-strip__in { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sub-strip__in span { padding: 0 10px; font-size: .86rem; }
  .sub-section { padding: 64px 0; }
  .sub-view { padding: 18px 16px 20px; }
  .sub-feature__art { min-height: 700px; padding: 112px 16px; }
  .sub-feature__a { left: 16px; top: 16px; }
  .sub-feature__b { right: 16px; bottom: 16px; }
  .sub-image-band__card { left: 12px; bottom: 12px; width: calc(100% - 24px); }
  .sub-image-band__kpi { display: none; }
  .sub-cross .qq-hero__cta { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sub-float, .sub-photo, .sub-hero__txt > * { animation: none !important; }
  .sub-how *, .sub-view { animation: none !important; transition: none !important; }
}

/* ---------- richer mini UI (fields, wizard, CV paper, templates, toolbar, share, editor, history, charts) ---------- */
.sub-fields { display: grid; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); gap: 12px; }
.sub-fields .qq-field > div { min-width: 0; }
.sub-fields .qq-field span { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-fields .qq-field em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--text-2); }
.sub-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: .78rem; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.sub-btn .qq-ic { width: 14px; height: 14px; }
.sub-btn--dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sub-wiz { display: grid; gap: 10px; }
.sub-wiz__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--text-2); }
.sub-wiz__top b { color: var(--text); font-size: .88rem; }
.sub-wiz__bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.sub-wiz__bar s { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; }
.is-in .sub-wiz__bar s { animation: sub-w .9s cubic-bezier(.2,.7,.2,1) both; }
.sub-wiz ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.sub-wiz li { display: grid; justify-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--text-2); text-align: center; }
.sub-wiz li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); font-size: .74rem; }
.sub-wiz li span .qq-ic { width: 13px; height: 13px; }
.sub-wiz li.is-done span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sub-wiz li.is-now { color: var(--text); }
.sub-wiz li.is-now span { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* CV paper: always white like a printed page */
.sub-cv { display: grid; gap: 10px; align-content: start; padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #111; box-shadow: var(--sh-1); }
.sub-cv__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #e4e4e7; }
.sub-cv__av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e7f0e9; color: #184b30; }
.sub-cv__av .qq-ic { width: 17px; height: 17px; }
.sub-cv__head b { display: block; font-size: .9rem; }
.sub-cv__head small { display: block; color: #666; font-size: .72rem; }
.sub-cv h6 { margin: 0 0 5px; font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #166534; }
.sub-cv__job { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-weight: 600; font-size: .74rem; }
.sub-cv__job em { font-style: normal; font-weight: 500; color: #777; white-space: nowrap; }
.sub-cv s { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: #e4e4e7; }
.sub-cv__sec { position: relative; }
.sub-cv__sec.is-sel { outline: 1.5px solid #166534; outline-offset: 5px; border-radius: 2px; }
.sub-cv__sec.is-sel::before, .sub-cv__sec.is-sel::after { content: ""; position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid #166534; }
.sub-cv__sec.is-sel::before { left: -9px; top: -9px; }
.sub-cv__sec.is-sel::after { right: -9px; bottom: -9px; }
.sub-cv__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.sub-cv__tags span { padding: 2px 8px; border: 1px solid #d4d4d8; border-radius: 99px; font-size: .64rem; font-weight: 600; }
.sub-cv--classic .sub-cv__head { flex-direction: column; text-align: center; border-bottom: 2px solid #111; }
.sub-cv--modern { grid-template-columns: 38% minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.sub-cv--modern aside { display: grid; gap: 12px; align-content: start; padding: 14px 12px; background: #f4f4f5; }
.sub-cv--modern aside .sub-cv__head { flex-direction: column; text-align: center; border: 0; padding: 0; }
.sub-cv--modern .sub-cv__job em { display: none; }
.sub-cv__main { display: grid; gap: 12px; align-content: start; padding: 14px; }
.sub-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sub-tpl { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sub-tpl.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sub-tpl > span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 18px; font-weight: 600; font-size: .8rem; }
.sub-tpl > span .qq-ic { width: 15px; height: 15px; color: var(--accent); }
.sub-tpl__pg { display: grid; align-content: start; gap: 5px; aspect-ratio: 3 / 2.3; padding: 9px; border: 1px solid #e4e4e7; border-radius: 6px; background: #fff; }
.sub-tpl__pg i { display: block; width: 60%; height: 12px; border-radius: 3px; background: #111; }
.sub-tpl__pg u { display: block; text-decoration: none; }
.sub-tpl__pg s { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #e4e4e7; }
.sub-tpl__pg--classic i { width: 70%; height: 8px; margin: 0 auto 3px; border-bottom: 2px solid #111; border-radius: 0; background: none; }
.sub-tpl__pg--modern { grid-template-columns: 34% 1fr; }
.sub-tpl__pg--modern i { grid-row: span 3; width: 100%; height: 100%; background: #e4e4e7; }
.sub-tool { display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sub-tool > span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; color: var(--text-2); }
.sub-tool > span .qq-ic { width: 17px; height: 17px; }
.sub-tool > span.is-on { background: var(--accent-soft); color: var(--accent); }
.sub-tool > i { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.sub-tool > em { margin-left: auto; padding: 0 8px; font-style: normal; font-size: .76rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.sub-split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.sub-share { display: grid; gap: 14px; }
.sub-share__top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.sub-share__qr { display: block; width: 96px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #0a0a0a; }
.sub-share__qr svg { display: block; width: 100%; height: auto; }
.sub-share__top b { display: block; font-size: .95rem; }
.sub-share__top small { display: block; margin: 2px 0 10px; color: var(--text-2); font-size: .8rem; overflow-wrap: anywhere; }
.sub-share__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-share__rows { border-top: 1px solid var(--line); }
.sub-share__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; }
.sub-share__row + .sub-share__row { border-top: 1px solid var(--line); }
.sub-share__row:last-child { padding-bottom: 0; }
.sub-share__row b { display: block; font-size: .88rem; }
.sub-share__row small { display: block; margin-top: 1px; color: var(--text-2); font-size: .78rem; }
.sub-share__row em { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font: 600 .76rem var(--mono); color: var(--text-2); white-space: nowrap; }
.sub-edit { display: grid; gap: 10px; }
.sub-edit .qq-card__head { margin: 0; }
.sub-edit__in { display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 0 6px 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-weight: 500; }
.sub-edit__in .qq-ic { width: 17px; height: 17px; }
.sub-edit__in > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-edit p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-2); font-size: .8rem; }
.sub-edit p .qq-ic { width: 15px; height: 15px; flex: none; }
.sub-hist ol { list-style: none; margin: 0; padding: 0; }
.sub-hist li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 0 0 14px; }
.sub-hist li:last-child { padding-bottom: 0; }
.sub-hist li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.sub-hist li:last-child::before { display: none; }
.sub-hist li > i { width: 13px; height: 13px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.sub-hist li.is-now > i { border-color: var(--accent); background: var(--accent); }
.sub-hist b { display: block; font-size: .86rem; }
.sub-hist small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; color: var(--text-2); font-size: .78rem; }
.sub-hist small s { opacity: .7; }
.sub-hist small .qq-ic { width: 12px; height: 12px; }
.sub-hist em { font-style: normal; color: var(--text-2); font-size: .76rem; white-space: nowrap; }
.sub-hist .qq-card__head { margin-bottom: 12px; }
.sub-mark .sub-bars { position: relative; }
.sub-mark .qq-bars i { background: var(--text-2); opacity: .35; }
.sub-mark .qq-bars i.is-after { background: var(--accent); opacity: 1; }
.sub-mark .qq-bars u { position: absolute; top: -4px; bottom: 0; border-left: 1.5px dashed var(--text-2); text-decoration: none; }
.sub-mark .qq-bars u em { position: absolute; top: 0; left: 6px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--surface); font-style: normal; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.sub-donut__in { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: center; }
.sub-donut__in > i { position: relative; display: block; width: 104px; height: 104px; border-radius: 50%; }
.sub-donut__in > i::after { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--surface); }
.sub-donut ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sub-donut li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .86rem; }
.sub-donut li s { width: 10px; height: 10px; border-radius: 3px; }
.sub-donut li b { font-variant-numeric: tabular-nums; }
.sub-donut .qq-card__head { margin-bottom: 12px; }
.sub-export .qq-card__head { margin-bottom: 6px; }
.sub-export__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; }
.sub-export__row + .sub-export__row { border-top: 1px solid var(--line); }
.sub-export__row b { display: block; font-size: .88rem; }
.sub-export__row small { display: block; margin-top: 1px; color: var(--text-2); font-size: .78rem; }
.sub-stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sub-stat3 .qq-card { display: grid; gap: 3px; min-width: 0; }
.sub-stat3 small { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; }
.sub-stat3 small .qq-ic { width: 15px; height: 15px; }
.sub-stat3 b { font-size: 1.35rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sub-stat3 span { color: var(--text-2); font-size: .76rem; }
.sub-heat__g { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.sub-heat__g i { aspect-ratio: 1; border-radius: 3px; background: var(--accent); opacity: calc(.08 + var(--l) * .092); }
.sub-heat .qq-card__head { margin-bottom: 12px; }
@media (max-width: 600px) {
  .sub-wiz ol { gap: 2px; }
  .sub-wiz li { font-size: .66rem; }
}
@media (max-width: 700px) {
  .sub-fields, .sub-split2, .sub-stat3 { grid-template-columns: 1fr; }
  .sub-share__top { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .sub-share__qr { width: 72px; padding: 6px; }
  .sub-share__row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .sub-share__row em { display: none; }
  .sub-tool { flex-wrap: wrap; }
  .sub-tool > em { display: none; }
  .sub-donut__in { grid-template-columns: 88px minmax(0, 1fr); }
  .sub-donut__in > i { width: 88px; height: 88px; }
  .sub-donut__in > i::after { inset: 20px; }
  .sub-mark .qq-bars u em { padding: 1px 6px; font-size: .62rem; }
}

/* illustration figure with floating cards */
.sub-illus__fig { position: relative; }
.sub-illus__fig > .qq-img { border-radius: var(--r-xl); }
.sub-illus__fig .sub-float { animation: none; }
.sub-fig__a { right: 16px; bottom: 16px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; width: min(260px, 72%); padding: 12px 16px 12px 12px; }
.sub-fig__a b { display: block; font-size: .88rem; }
.sub-fig__a small { display: block; margin-top: 2px; color: var(--text-2); font-size: .76rem; }
.sub-fig__b { left: 16px; top: 16px; width: 164px; min-height: 80px; }
.sub-fig__b b { font-size: 1.4rem; }
.sub-fig__b .qq-spark { bottom: 10px; width: 34%; }
@media (max-width: 600px) { .sub-fig__b { display: none; } }

/* event card, shelf label, link list */
.sub-event { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.sub-event__date { display: grid; place-items: center; align-content: center; height: 62px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); }
.sub-event__date small { color: var(--accent); font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sub-event__date b { font-size: 1.4rem; line-height: 1; letter-spacing: -.03em; }
.sub-event__txt { display: grid; gap: 3px; min-width: 0; }
.sub-event__txt b { font-size: .95rem; }
.sub-event__txt small { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .8rem; }
.sub-event__txt .qq-ic { width: 14px; height: 14px; flex: none; }
.sub-label { display: grid; grid-template-columns: minmax(0, 1fr) 92px; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #111; box-shadow: var(--sh-1); }
.sub-label__txt { display: grid; gap: 4px; min-width: 0; }
.sub-label__txt small { color: #166534; font: 700 .62rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sub-label__txt b { font-size: 1.05rem; line-height: 1.2; }
.sub-label__txt span { color: #666; font-size: .78rem; }
.sub-label__txt em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 700; font-size: .74rem; }
.sub-label__txt em .qq-ic { width: 14px; height: 14px; color: #166534; }
.sub-label > i { display: block; padding: 6px; border: 1px solid #e4e4e7; border-radius: 10px; color: #0a0a0a; }
.sub-label svg { display: block; width: 100%; height: auto; }
.sub-links { padding: 2px 16px; }
.sub-links__row { display: grid; grid-template-columns: 16px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 11px 0; }
.sub-links__row + .sub-links__row { border-top: 1px solid var(--line); }
.sub-links__row > .qq-ic { width: 16px; height: 16px; color: var(--text-2); }
.sub-links__row b { display: block; font-size: .88rem; }
.sub-links__row small { display: block; margin-top: 1px; color: var(--text-2); font-size: .78rem; overflow-wrap: anywhere; }
.sub-links__row em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: .8rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sub-links__row em .qq-ic { width: 14px; height: 14px; }
@media (max-width: 700px) {
  .sub-event { grid-template-columns: 56px minmax(0, 1fr); }
  .sub-event .sub-btn { grid-column: 1 / -1; justify-self: start; }
  .sub-links__row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .sub-links__row > .qq-ic { display: none; }
  .sub-links__row em { display: none; }
}

/* keeps a two-line headline on two lines at phone width */
.sub-fit { white-space: nowrap; }
@media (max-width: 600px) { .sub-fit { font-size: 15.2vw; } }
