/* QuestNest intentionally uses no remote fonts or images. */
/* The automatically created app page is a clean canvas; shortcode embeds elsewhere keep the theme. */
html.questnest-app-document,
html.questnest-app-document body { margin: 0 !important; padding: 0 !important; }
html.questnest-app-document #wpadminbar,
html.questnest-app-document #hostinger-ai-assistant,
html.questnest-app-document #hostinger-agent,
html.questnest-app-document #hostinger-kodee,
html.questnest-app-document #kodee,
html.questnest-app-document [id*="hostinger-ai"],
html.questnest-app-document [class*="hostinger-ai"],
html.questnest-app-document [id*="hostinger-agent"],
html.questnest-app-document [class*="hostinger-agent"],
html.questnest-app-document [id*="kodee"],
html.questnest-app-document [class*="kodee"],
html.questnest-app-document [id*="ask-ai"],
html.questnest-app-document [class*="ask-ai"],
html.questnest-app-document [id*="ask_ai"],
html.questnest-app-document [class*="ask_ai"],
html.questnest-app-document [data-testid*="hostinger-agent"],
html.questnest-app-document [data-testid*="kodee"],
html.questnest-app-document [data-testid*="ask-ai"],
html.questnest-app-document [aria-label*="Hostinger Agent"],
html.questnest-app-document [aria-label*="Kodee"],
html.questnest-app-document [aria-label*="Ask AI"],
html.questnest-app-document [title*="Kodee"],
html.questnest-app-document [title*="Ask AI"],
html.questnest-app-document iframe[src*="hostinger"],
html.questnest-app-document iframe[src*="kodee"] { display: none !important; visibility: hidden !important; pointer-events: none !important; }
body.questnest-dedicated-app-page > header,
body.questnest-dedicated-app-page > footer,
body.questnest-dedicated-app-page #masthead,
body.questnest-dedicated-app-page #colophon,
body.questnest-dedicated-app-page .site-header,
body.questnest-dedicated-app-page .site-footer,
body.questnest-dedicated-app-page .wp-site-blocks > header,
body.questnest-dedicated-app-page .wp-site-blocks > footer,
body.questnest-dedicated-app-page header.wp-block-template-part,
body.questnest-dedicated-app-page footer.wp-block-template-part,
body.questnest-dedicated-app-page .entry-header,
body.questnest-dedicated-app-page .wp-block-post-title { display: none !important; }
body.questnest-dedicated-app-page { margin: 0 !important; padding: 0 !important; }
.qn-app.is-kiosk [data-qn-action="install-pwa"],
.qn-app.is-kiosk [data-qn-action="fullscreen"] { display: none !important; }
body.questnest-dedicated-app-page .wp-site-blocks,
body.questnest-dedicated-app-page #page,
body.questnest-dedicated-app-page .site,
body.questnest-dedicated-app-page .site-content,
body.questnest-dedicated-app-page .content-area,
body.questnest-dedicated-app-page main.site-main,
body.questnest-dedicated-app-page .entry-content,
body.questnest-dedicated-app-page .wp-block-post-content,
body.questnest-dedicated-app-page #questnest-app-page { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }

.qn-app {
  --qn-accent: #635bff;
  --qn-green: #19a974;
  --qn-ink: #253047;
  --qn-muted: #6d768c;
  --qn-bg: #f5f7ff;
  --qn-card: #ffffff;
  --qn-line: #e4e8f3;
  --qn-shadow: 0 14px 38px rgba(54, 64, 101, .11);
  --qn-soft-shadow: 0 7px 20px rgba(54, 64, 101, .08);
  position: relative;
  width: 100%;
  min-height: 720px;
  color: var(--qn-ink);
  font-family: Inter, ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  isolation: isolate;
}
.qn-app *, .qn-app *::before, .qn-app *::after { box-sizing: border-box; }
.qn-app button, .qn-app input, .qn-app select, .qn-app textarea { font: inherit; }
.qn-app button { color: inherit; }
.qn-app h1, .qn-app h2, .qn-app h3, .qn-app p { margin-top: 0; }
.qn-app button, .qn-app a { -webkit-tap-highlight-color: transparent; }
.qn-app button:focus-visible, .qn-app a:focus-visible, .qn-app input:focus-visible, .qn-app select:focus-visible, .qn-app textarea:focus-visible { outline: 4px solid color-mix(in srgb, var(--qn-accent) 28%, transparent); outline-offset: 2px; }
.qn-svg-sprite { position: absolute; overflow: hidden; pointer-events: none; }
.qn-icon { width: 1.35em; height: 1.35em; display: inline-block; fill: currentColor; vertical-align: -.2em; overflow: visible; }
.qn-ui-icon { width: 24px; height: 24px; display: block; }
.qn-loading { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--qn-bg); color: var(--qn-muted); font-weight: 700; }
.qn-loading-mark { display: grid; place-items: center; width: 64px; height: 64px; color: #fff; background: var(--qn-accent); border-radius: 22px; font-size: 34px; animation: qn-bob 1.4s ease-in-out infinite; }
.qn-load-error { padding: 30px; border: 1px solid #f4b4b4; background: #fff3f3; color: #8c2525; border-radius: 14px; }

/* Fullscreen elements must become their own scroll viewport on mobile. */
.qn-app.is-fullscreen,
.qn-app:fullscreen,
.qn-app:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: var(--qn-bg);
}
.qn-app.is-fullscreen > .qn-shell,
.qn-app:fullscreen > .qn-shell,
.qn-app:-webkit-full-screen > .qn-shell {
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.qn-shell { min-height: 100vh; background: radial-gradient(circle at 92% -5%, color-mix(in srgb, var(--qn-accent) 12%, transparent) 0 19%, transparent 38%), radial-gradient(circle at 0 55%, rgba(25,169,116,.08), transparent 30%), var(--qn-bg); padding-bottom: 105px; }
.qn-topbar { position: sticky; z-index: 30; top: 0; min-height: 78px; display: flex; align-items: center; gap: 20px; padding: 11px clamp(16px, 4vw, 54px); background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(220,225,239,.9); box-shadow: 0 5px 18px rgba(58,68,103,.05); backdrop-filter: blur(18px); }
.qn-brand { min-width: 200px; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.qn-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--qn-accent), color-mix(in srgb, var(--qn-accent) 70%, #3240a0)); border-radius: 17px; transform: rotate(-4deg); box-shadow: 0 7px 18px color-mix(in srgb, var(--qn-accent) 25%, transparent); }
.qn-brand-mark .qn-icon { width: 27px; height: 27px; }
.qn-brand strong { display: block; color: var(--qn-ink); font-size: 22px; line-height: 1.05; letter-spacing: -.45px; }
.qn-brand small { display: block; margin-top: 3px; color: var(--qn-muted); font-size: 12px; font-weight: 700; }
.qn-top-stats { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; }
.qn-pill { display: flex; align-items: center; gap: 6px; min-height: 43px; padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 750; }
.qn-pill strong { font-size: 19px; line-height: 1; }
.qn-stars-pill { color: #7b5900; background: #fff3c5; }
.qn-stars-pill .qn-icon { color: #e4a500; }
.qn-level-pill { color: #fff; background: var(--qn-accent); }
.qn-level-number { display: grid; place-items: center; width: 28px; height: 28px; color: var(--qn-accent); background: #fff; border-radius: 50%; font-size: 15px; font-weight: 900; }
.qn-top-actions { min-width: 110px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.qn-icon-button { width: 47px; height: 47px; min-width: 47px; min-height: 47px; display: grid; align-items: center; justify-items: center; padding: 0 !important; border: 1px solid var(--qn-line); border-radius: 15px; background: #fff; color: #606a82; cursor: pointer; box-shadow: 0 4px 12px rgba(47,56,89,.05); line-height: 0; appearance: none; box-sizing: border-box; transition: transform .18s ease, color .18s ease, border-color .18s ease; }
.qn-icon-button > .qn-ui-icon { position: static !important; width: 24px; height: 24px; display: block; margin: 0 !important; transform: none !important; }
.qn-icon-button:hover { color: var(--qn-accent); border-color: color-mix(in srgb, var(--qn-accent) 35%, var(--qn-line)); transform: translateY(-2px); }
.qn-icon-button.is-unlocked { color: #fff; border-color: var(--qn-green); background: var(--qn-green); }
.qn-pwa-install-top { color: #fff; border-color: var(--qn-accent); background: var(--qn-accent); }
.qn-pwa-install-top:hover { color: #fff; border-color: var(--qn-accent); filter: brightness(.96); }
.qn-main { width: min(1380px, 100%); min-height: 600px; margin: 0 auto; padding: clamp(25px, 4vw, 54px) clamp(16px, 4vw, 54px) 45px; }
.qn-view { animation: qn-view-in .28s ease-out both; }

.qn-nav { position: fixed; z-index: 40; left: 50%; bottom: 18px; width: min(760px, calc(100% - 26px)); display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 8px; background: rgba(255,255,255,.94); border: 1px solid rgba(218,223,238,.9); border-radius: 25px; box-shadow: 0 15px 45px rgba(43,52,84,.21); transform: translateX(-50%); backdrop-filter: blur(18px); }
.qn-nav-button { min-height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 5px 4px; border: 0; border-radius: 18px; color: #768096; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; transition: color .18s, background .18s, transform .18s; }
.qn-nav-button .qn-icon { width: 24px; height: 24px; }
.qn-nav-button:hover { color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 7%, white); transform: translateY(-1px); }
.qn-nav-button.is-active { color: #fff; background: var(--qn-accent); box-shadow: 0 7px 14px color-mix(in srgb, var(--qn-accent) 25%, transparent); }

.qn-hero { position: relative; overflow: hidden; min-height: 270px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .6fr); align-items: center; gap: 24px; padding: clamp(28px, 5vw, 58px); color: #fff; background: linear-gradient(125deg, color-mix(in srgb, var(--qn-accent) 94%, #2f3f91), var(--qn-accent) 58%, #8e72ff); border-radius: 34px; box-shadow: 0 20px 50px color-mix(in srgb, var(--qn-accent) 24%, transparent); }
.qn-hero::before { content: ""; position: absolute; inset: auto auto -85px -60px; width: 260px; height: 260px; border: 45px solid rgba(255,255,255,.06); border-radius: 50%; }
.qn-hero::after { content: "✦"; position: absolute; right: 43%; top: 26px; color: rgba(255,255,255,.35); font-size: 38px; transform: rotate(14deg); }
.qn-hero-copy { position: relative; z-index: 2; }
.qn-eyebrow { display: block; margin-bottom: 5px; color: var(--qn-accent); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.qn-hero .qn-eyebrow { color: rgba(255,255,255,.78); }
.qn-hero h1 { margin-bottom: 8px; font-size: clamp(37px, 6vw, 68px); line-height: .98; letter-spacing: -2.5px; }
.qn-hero p { max-width: 620px; margin-bottom: 22px; color: rgba(255,255,255,.87); font-size: clamp(16px, 2vw, 20px); }
.qn-hero-level { max-width: 420px; }
.qn-hero-level > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 850; }
.qn-hero-level small { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-weight: 650; }
.qn-mini-buddy { position: relative; z-index: 2; align-self: stretch; min-height: 210px; padding: 10px; border: 0; border-radius: 28px; background: rgba(255,255,255,.13); cursor: pointer; color: #fff; transition: transform .2s, background .2s; }
.qn-mini-buddy:hover { background: rgba(255,255,255,.2); transform: rotate(1deg) scale(1.02); }
.qn-mini-buddy-shark { overflow: hidden; background: linear-gradient(180deg,rgba(110,225,240,.42),rgba(7,102,142,.48)); box-shadow: inset 0 -30px 0 rgba(226,199,132,.24); }.qn-mini-buddy-shark::before,.qn-mini-buddy-shark::after { content: ""; position: absolute; z-index: 0; width: 17px; height: 17px; border: 3px solid rgba(225,252,255,.65); border-radius: 50%; }.qn-mini-buddy-shark::before { left: 12%; top: 18%; box-shadow: 27px 38px 0 -5px rgba(225,252,255,.55); }.qn-mini-buddy-shark::after { right: 13%; top: 31%; box-shadow: -18px -25px 0 -6px rgba(225,252,255,.52); }.qn-mini-buddy-shark .qn-pet,.qn-mini-buddy-shark > span { position: relative; z-index: 1; }
.qn-mini-buddy .qn-pet { width: min(240px, 100%); height: 170px; display: block; margin: -8px auto -4px; filter: drop-shadow(0 13px 10px rgba(35,23,58,.18)); }
.qn-mini-buddy span { display: inline-block; padding: 7px 13px; background: rgba(255,255,255,.15); border-radius: 50px; font-size: 13px; font-weight: 850; }
.qn-progress { position: relative; overflow: hidden; height: 13px; background: #e9ecf5; border-radius: 100px; }
.qn-progress span { display: block; height: 100%; min-width: 0; background: linear-gradient(90deg, var(--card-color, var(--qn-accent)), color-mix(in srgb, var(--card-color, var(--qn-accent)) 65%, #fff)); border-radius: inherit; transition: width .5s ease; }
.qn-progress-small { height: 8px; background: rgba(255,255,255,.2); }
.qn-progress-small span { background: #fff; }
.qn-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 40px; }
.qn-stat-card { min-height: 108px; display: grid; grid-template-columns: 48px auto; grid-template-rows: auto auto; column-gap: 14px; align-content: center; padding: 19px 24px; background: #fff; border: 1px solid var(--qn-line); border-radius: 23px; box-shadow: var(--qn-soft-shadow); }
.qn-stat-card > span { grid-row: 1/3; width: 48px; height: 48px; display: grid; place-items: center; color: var(--stat-color); background: color-mix(in srgb, var(--stat-color) 11%, white); border-radius: 16px; }
.qn-stat-card > span .qn-icon { width: 27px; height: 27px; }
.qn-stat-card strong { align-self: end; font-size: 27px; line-height: 1; }
.qn-stat-card small { align-self: start; margin-top: 3px; color: var(--qn-muted); font-size: 12px; font-weight: 750; }

.qn-section { margin-top: 38px; }
.qn-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.qn-section-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.12; letter-spacing: -.65px; }
.qn-section-heading h2 .qn-icon { color: var(--qn-accent); }
.qn-text-button, .qn-section-heading > button, .qn-admin-card-head button { padding: 7px 4px; border: 0; background: none; color: var(--qn-accent); cursor: pointer; font-size: 13px; font-weight: 850; }
.qn-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.qn-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qn-card { position: relative; overflow: hidden; min-width: 0; padding: 23px; background: var(--qn-card); border: 1px solid var(--qn-line); border-radius: 25px; box-shadow: var(--qn-soft-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.qn-card:hover { border-color: color-mix(in srgb, var(--card-color) 25%, var(--qn-line)); box-shadow: var(--qn-shadow); transform: translateY(-2px); }
.qn-card-icon { flex: 0 0 auto; width: 53px; height: 53px; display: grid; place-items: center; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 11%, white); border-radius: 18px; }
.qn-card-icon .qn-icon { width: 29px; height: 29px; }
.qn-task-card { min-height: 185px; display: grid; grid-template-columns: auto 1fr; gap: 15px; align-content: start; }
.qn-task-card::after { content: ""; position: absolute; right: -28px; top: -35px; width: 105px; height: 105px; border: 18px solid color-mix(in srgb, var(--card-color) 8%, transparent); border-radius: 50%; pointer-events: none; }
.qn-card-body { min-width: 0; }
.qn-card-kicker { display: block; margin-bottom: 4px; color: var(--card-color); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.qn-card h3 { margin: 0 0 5px; font-size: 20px; line-height: 1.2; letter-spacing: -.25px; }
.qn-card p { margin: 0; color: var(--qn-muted); font-size: 14px; }
.qn-complete-button, .qn-reward-button { grid-column: 1/-1; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; align-self: end; margin-top: 3px; padding: 10px 15px; border: 0; border-radius: 15px; color: #fff; background: var(--card-color); cursor: pointer; font-weight: 850; box-shadow: 0 7px 14px color-mix(in srgb, var(--card-color) 20%, transparent); transition: transform .16s ease, filter .16s ease; }
.qn-complete-button:hover, .qn-reward-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.qn-complete-button .qn-icon { width: 20px; height: 20px; }
.qn-task-card.is-complete { background: #f4fbf7; border-color: #c9ead8; }
.qn-task-card.is-complete .qn-card-icon { color: var(--qn-green); background: #dff5e8; }
.qn-done-label { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 3px; color: #117c55; background: #e3f7eb; border-radius: 14px; font-weight: 900; }
.qn-undo { position: absolute; top: 8px; right: 10px; z-index: 2; padding: 5px 8px; border: 0; background: transparent; color: #7b8498; cursor: pointer; font-size: 11px; font-weight: 750; }
.qn-complete-count { color: var(--qn-muted); font-size: 13px; font-weight: 800; }
.qn-category-section { margin-top: 30px; }

.qn-page-title { display: flex; align-items: center; gap: 20px; margin: 0 0 30px; }
.qn-page-title-icon { flex: 0 0 auto; width: 79px; height: 79px; display: grid; place-items: center; color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 10%, white); border: 1px solid color-mix(in srgb, var(--qn-accent) 12%, var(--qn-line)); border-radius: 25px; transform: rotate(-3deg); }
.qn-page-title-icon .qn-icon { width: 42px; height: 42px; }
.qn-page-title h1 { margin: 0 0 5px; font-size: clamp(32px, 4.5vw, 50px); line-height: 1; letter-spacing: -1.6px; }
.qn-page-title p { max-width: 780px; margin: 0; color: var(--qn-muted); font-size: 16px; }
.qn-goal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qn-goal-card { display: flex; flex-direction: column; min-height: 360px; }
.qn-goal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qn-goal-count { padding: 6px 11px; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 9%, white); border-radius: 50px; font-size: 12px; font-weight: 900; }
.qn-goal-card h3 { font-size: 23px; }
.qn-goal-card > p { min-height: 42px; margin-bottom: 18px; }
.qn-goal-card .qn-progress { margin-top: auto; }
.qn-goal-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--qn-muted); font-size: 11px; font-weight: 750; }
.qn-goal-reward { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 12px; color: #7a5800; background: #fff7d8; border-radius: 14px; font-size: 12px; font-weight: 800; }
.qn-goal-reward > span { display: block; }
.qn-goal-reward small { display: block; color: #9b7921; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.qn-goal-card .qn-complete-button { margin-top: 14px; }
.qn-goal-card.is-complete { background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--card-color) 8%, white)); }
.qn-goal-finished { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; margin-top: 14px; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 10%, white); border-radius: 15px; font-weight: 900; }
.qn-goal-card.is-compact { min-height: 290px; }

.qn-balance-banner { display: flex; align-items: center; gap: 15px; max-width: 580px; margin-bottom: 24px; padding: 17px 20px; color: #6d5000; background: linear-gradient(120deg, #fff4bf, #fff9e0); border: 1px solid #f3df91; border-radius: 20px; }
.qn-balance-banner > .qn-icon { width: 43px; height: 43px; color: #d79800; }
.qn-balance-banner strong, .qn-balance-banner span { display: block; }
.qn-balance-banner span { font-size: 13px; opacity: .78; }
.qn-reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qn-reward-card { display: flex; flex-direction: column; min-height: 325px; text-align: center; }
.qn-reward-picture { width: 100px; height: 100px; display: grid; place-items: center; margin: 0 auto 17px; color: var(--card-color); background: color-mix(in srgb, var(--card-color) 10%, white); border-radius: 34px; transform: rotate(-3deg); }
.qn-reward-picture .qn-icon { width: 55px; height: 55px; }
.qn-reward-card .qn-card-body { flex: 1; }
.qn-reward-card h3 { font-size: 22px; }
.qn-redeemed-count { display: block; margin-top: 9px; color: #8c94a7; font-size: 11px; font-weight: 750; }
.qn-reward-button { justify-content: space-between; margin-top: 18px; }
.qn-reward-button strong { display: flex; align-items: center; gap: 3px; padding: 4px 8px; color: var(--card-color); background: #fff; border-radius: 100px; font-size: 12px; }
.qn-reward-button[disabled] { color: #737c91; background: #e7eaf1; box-shadow: none; cursor: default; }
.qn-reward-button[disabled] strong { color: #737c91; }

.qn-badge-summary { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding: 23px 28px; background: #fff; border: 1px solid var(--qn-line); border-radius: 25px; box-shadow: var(--qn-soft-shadow); }
.qn-badge-summary h2 { margin: 0 0 4px; font-size: 22px; }
.qn-badge-summary p { margin: 0; color: var(--qn-muted); }
.qn-badge-ring { flex: 0 0 auto; width: 78px; height: 78px; display: grid; place-content: center; text-align: center; color: #fff; background: linear-gradient(145deg, #ffb020, #f07743); border: 7px solid #fff3d3; border-radius: 50%; }
.qn-badge-ring strong { font-size: 26px; line-height: 1; }
.qn-badge-ring span { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.qn-badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qn-badge-card { min-height: 255px; padding: 22px 18px; text-align: center; background: #fff; border: 1px solid var(--qn-line); border-radius: 25px; box-shadow: var(--qn-soft-shadow); }
.qn-badge-medal { position: relative; width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; background: var(--card-color); border: 9px solid color-mix(in srgb, var(--card-color) 16%, white); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 10px 22px color-mix(in srgb, var(--card-color) 17%, transparent); }
.qn-badge-medal span .qn-icon { width: 47px; height: 47px; }
.qn-badge-medal i { position: absolute; right: -2px; bottom: 3px; width: 31px; height: 31px; display: grid; place-items: center; color: #8a5c00; background: #ffd761; border: 4px solid #fff; border-radius: 50%; font-style: normal; font-size: 13px; }
.qn-badge-card h3 { margin: 0 0 6px; font-size: 18px; }
.qn-badge-card p { margin: 0 0 8px; color: var(--qn-muted); font-size: 13px; }
.qn-badge-card small { color: var(--card-color); font-size: 10px; font-weight: 800; }
.qn-badge-card.is-locked { filter: grayscale(.9); opacity: .62; background: #f4f5f8; box-shadow: none; }
.qn-badge-card.is-locked .qn-badge-medal { background: #b0b5c1; border-color: #e5e7eb; box-shadow: none; }
.qn-badge-card.is-locked .qn-badge-medal > .qn-ui-icon { position: absolute; right: -4px; bottom: 0; width: 30px; height: 30px; padding: 6px; color: #7d8493; background: #fff; border-radius: 50%; }

.qn-buddy-view { max-width: 1050px; margin: 0 auto; }
.qn-pet-room { position: relative; overflow: hidden; min-height: 430px; display: grid; place-items: end center; padding: 40px 30px 0; background: linear-gradient(#cdeeff 0 68%, #aee0a1 68% 75%, #82c478 75%); border: 8px solid #fff; border-radius: 36px; box-shadow: var(--qn-shadow); }
.qn-pet-room::before { content: ""; position: absolute; top: 45px; right: 65px; width: 90px; height: 90px; background: #fff0a5; border: 12px solid rgba(255,255,255,.45); border-radius: 50%; }
.qn-pet-room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: repeating-linear-gradient(90deg, rgba(56,94,54,.08) 0 2px, transparent 2px 40px), #f0d8a6; }
.qn-room-cloud { position: absolute; width: 95px; height: 28px; background: rgba(255,255,255,.75); border-radius: 50px; }
.qn-room-cloud::before, .qn-room-cloud::after { content: ""; position: absolute; bottom: 0; background: inherit; border-radius: 50%; }
.qn-room-cloud::before { left: 16px; width: 38px; height: 38px; }.qn-room-cloud::after { right: 14px; width: 48px; height: 48px; }
.qn-cloud-one { top: 75px; left: 9%; }.qn-cloud-two { top: 140px; right: 14%; transform: scale(.72); }
.qn-pet-stage { position: relative; z-index: 3; width: min(420px, 75%); transform-origin: 50% 100%; }
.qn-pet-stage .qn-pet { width: 100%; max-height: 330px; display: block; filter: drop-shadow(0 16px 12px rgba(40,65,54,.18)); }
.qn-pet-speech { position: absolute; z-index: 5; top: 44px; left: 50%; max-width: 240px; padding: 10px 16px; color: var(--qn-ink); background: #fff; border-radius: 18px 18px 18px 4px; box-shadow: var(--qn-soft-shadow); font-size: 13px; font-weight: 850; transform: translateX(-50%); }
.qn-room-label { position: absolute; z-index: 4; left: 22px; bottom: 18px; padding: 8px 13px; color: #70573b; background: rgba(255,255,255,.8); border-radius: 50px; font-size: 12px; font-weight: 850; }
.qn-pet-actions { position: relative; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(680px, calc(100% - 32px)); margin: -28px auto 25px; }
.qn-pet-actions button { min-height: 81px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--qn-accent); background: #fff; border: 1px solid var(--qn-line); border-radius: 21px; box-shadow: 0 10px 25px rgba(49,61,94,.13); cursor: pointer; font-size: 12px; font-weight: 850; transition: transform .18s, color .18s; }
.qn-pet-actions button:hover { transform: translateY(-4px) rotate(-1deg); }
.qn-pet-actions .qn-icon { width: 28px; height: 28px; }
.qn-pet-growth { display: flex; align-items: center; gap: 18px; max-width: 680px; margin: 0 auto; padding: 19px 24px; background: #fff; border: 1px solid var(--qn-line); border-radius: 24px; box-shadow: var(--qn-soft-shadow); }
.qn-pet-growth h2 { margin: 0 0 3px; font-size: 20px; }.qn-pet-growth p { margin: 0; color: var(--qn-muted); font-size: 13px; }
.qn-pet-level-medallion { position: relative; flex: 0 0 auto; width: 72px; height: 72px; display: grid; place-items: center; color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 10%, white); border-radius: 23px; }
.qn-pet-level-medallion .qn-icon { width: 38px; height: 38px; }.qn-pet-level-medallion strong { position: absolute; right: -7px; bottom: -7px; width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--qn-accent); border: 3px solid #fff; border-radius: 50%; font-size: 12px; }
.qn-pet-stage.is-feed { animation: qn-nibble .7s ease-in-out 2; }.qn-pet-stage.is-play { animation: qn-jump .65s ease-in-out 2; }.qn-pet-stage.is-decorate { animation: qn-spin .9s ease-in-out; }.qn-pet-stage.is-hello { animation: qn-wave .75s ease-in-out 2; }

.qn-activity-strip { padding: 22px; background: rgba(255,255,255,.6); border: 1px solid var(--qn-line); border-radius: 26px; }
.qn-activity-strip h2 { font-size: 18px; }
.qn-activity-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
.qn-activity-chips > div { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; max-width: 270px; padding: 10px 13px; background: #fff; border: 1px solid var(--qn-line); border-radius: 15px; }
.qn-activity-chips .qn-icon { flex: 0 0 auto; color: var(--qn-accent); }.qn-activity-chips span, .qn-activity-chips strong, .qn-activity-chips small { display: block; }.qn-activity-chips strong { overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.qn-activity-chips small { color: var(--qn-muted); font-size: 9px; }
.qn-empty { grid-column: 1/-1; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--qn-muted); background: rgba(255,255,255,.66); border: 2px dashed #d9deec; border-radius: 26px; text-align: center; }
.qn-empty > .qn-icon { width: 48px; height: 48px; margin-bottom: 10px; color: #a5adc0; }.qn-empty h3 { margin: 0 0 5px; color: var(--qn-ink); font-size: 19px; }.qn-empty p { max-width: 430px; margin: 0; font-size: 13px; }

/* Parent modal, pin, alerts */
.qn-parent-overlay, .qn-modal-wrap, .qn-celebration { position: fixed; z-index: 999999; inset: 0; display: grid; }
.qn-parent-overlay { top: var(--qn-visible-top, 0); bottom: auto; width: 100%; height: 100vh; height: var(--qn-visible-height, 100dvh); max-height: 100vh; max-height: var(--qn-visible-height, 100dvh); overflow: hidden; }
.qn-parent-overlay, .qn-modal-wrap { background: rgba(23,28,43,.54); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.qn-overlay-scrim, .qn-modal-scrim,
.qn-overlay-scrim:hover, .qn-modal-scrim:hover,
.qn-overlay-scrim:focus, .qn-modal-scrim:focus,
.qn-overlay-scrim:active, .qn-modal-scrim:active { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 !important; border: 0 !important; border-radius: 0 !important; color: transparent !important; background: transparent !important; box-shadow: none !important; opacity: 1 !important; filter: none !important; transform: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; appearance: none; cursor: default; }
.qn-parent-drawer { position: relative; z-index: 2; justify-self: end; width: min(1080px, 94vw); height: 100%; max-height: 100%; overflow: auto; overscroll-behavior: contain; background: #f7f8fc; box-shadow: -20px 0 60px rgba(24,29,46,.22); animation: qn-drawer-in .3s ease-out; }
.qn-drawer-close { position: absolute; z-index: 5; right: 15px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f0f2f8; cursor: pointer; color: #5d6577; font-size: 27px; line-height: 1; }
.qn-modal-wrap { place-items: center; padding: 18px; }
.qn-modal { position: relative; z-index: 2; width: min(440px, 100%); padding: 34px; background: #fff; border-radius: 29px; box-shadow: 0 25px 80px rgba(24,29,46,.3); text-align: center; animation: qn-pop .25s ease-out; }
.qn-modal-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; background: #f3f4f7; border-radius: 12px; color: #687084; cursor: pointer; font-size: 24px; }
.qn-modal-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 13px; color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 10%, white); border-radius: 24px; }.qn-modal-icon .qn-icon { width: 39px; height: 39px; }
.qn-modal h2 { margin: 0 0 6px; font-size: 27px; }.qn-modal > p { margin-bottom: 20px; color: var(--qn-muted); }
.qn-modal label { display: block; text-align: left; }.qn-modal label span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 850; }
.qn-modal input { width: 100%; height: 55px; padding: 9px 15px; border: 2px solid var(--qn-line); border-radius: 15px; text-align: center; font-size: 24px; letter-spacing: .2em; }
.qn-pin-help { display: block; margin: 7px 0 17px; color: var(--qn-muted); font-size: 10px; text-align: left; }
.qn-modal label + label { margin-top: 12px; }.qn-modal input.qn-name-input { height: 47px; text-align: left; font-size: 15px; letter-spacing: normal; }
.qn-modal .qn-button { width: 100%; margin-top: 14px; }
.qn-install-help-modal { max-height: min(720px, calc(100dvh - 36px)); overflow-y: auto; }
.qn-install-diagnostic { margin: 14px 0 4px; padding: 13px; color: #44506a; background: #f4f6fb; border: 1px solid #dde2ed; border-radius: 14px; text-align: left; }
.qn-install-diagnostic strong,.qn-install-diagnostic code,.qn-install-diagnostic small { display: block; }
.qn-install-diagnostic strong { margin-bottom: 6px; color: #2c3548; font-size: 11px; }
.qn-install-diagnostic code { overflow-wrap: anywhere; color: #5c3fc1; font: 10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: normal; }
.qn-install-diagnostic small { margin-top: 7px; color: #788196; font-size: 9px; }
.qn-modal-error { min-height: 19px; margin-top: 8px; color: #b23333; font-size: 12px; font-weight: 750; }
.qn-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 17px; border: 1px solid var(--qn-accent); border-radius: 13px; color: #fff !important; background: var(--qn-accent); text-decoration: none !important; cursor: pointer; font-weight: 800; box-shadow: 0 7px 15px color-mix(in srgb, var(--qn-accent) 19%, transparent); }
.qn-button-light { color: var(--qn-accent) !important; background: #fff; border-color: color-mix(in srgb, var(--qn-accent) 22%, var(--qn-line)); box-shadow: none; }
.qn-remove-stars-button { color: #a34444 !important; border-color: #e6bcbc; }.qn-remove-stars-button .qn-icon { width: 18px; height: 18px; }.qn-button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .48; box-shadow: none; }
.qn-toast-region { position: fixed; z-index: 1000000; right: 18px; top: 90px; width: min(380px, calc(100% - 36px)); display: grid; gap: 8px; pointer-events: none; }
.qn-toast { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: #263044; border-radius: 16px; box-shadow: 0 13px 35px rgba(26,32,48,.23); opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s; font-size: 13px; font-weight: 750; }.qn-toast.is-visible { opacity: 1; transform: translateY(0); }.qn-toast.is-success { background: #177e58; }.qn-toast.is-error { background: #a53838; }.qn-toast .qn-icon { flex: 0 0 auto; }
.qn-app.is-busy::after { content: ""; position: fixed; z-index: 1000001; right: 24px; bottom: 24px; width: 32px; height: 32px; border: 4px solid rgba(99,91,255,.18); border-top-color: var(--qn-accent); border-radius: 50%; animation: qn-spin-loader .7s linear infinite; }
.qn-celebration { place-items: center; background: rgba(38,32,70,.54); backdrop-filter: blur(7px); }
.qn-celebration-card { position: relative; z-index: 3; width: min(470px, calc(100% - 34px)); padding: 42px 30px 34px; color: var(--qn-ink); background: #fff; border: 0; border-radius: 35px; box-shadow: 0 25px 80px rgba(21,17,43,.35); cursor: pointer; text-align: center; animation: qn-pop .4s cubic-bezier(.2,1.4,.5,1); }
.qn-celebration-card > span { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: linear-gradient(145deg, #ffbd37, #f27a43); border: 10px solid #fff1c5; border-radius: 50%; transform: rotate(-4deg); }.qn-celebration-card > span .qn-icon { width: 55px; height: 55px; }.qn-celebration-card h2 { margin: 0 0 8px; font-size: 30px; }.qn-celebration-card p { margin: 0 0 14px; color: var(--qn-muted); }.qn-celebration-card small { color: #9aa0ae; font-weight: 700; }
.qn-confetti { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }.qn-confetti i { --h: calc(var(--i) * 47deg); position: absolute; left: calc(var(--i) * 3.57%); top: -20px; width: 9px; height: 16px; background: hsl(var(--h) 80% 60%); animation: qn-confetti calc(2s + var(--i) * .015s) linear infinite; animation-delay: calc(var(--i) * -.08s); transform: rotate(calc(var(--i) * 19deg)); }

/* Parent management UI */
.qn-parent-panel { min-height: 100%; display: grid; grid-template-columns: 225px minmax(0, 1fr); color: var(--qn-ink); }
.qn-parent-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 14px 16px; color: #fff; background: #222b40; }
.qn-parent-title { display: flex; align-items: center; gap: 10px; padding: 5px 8px 25px; }.qn-parent-title > span { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--qn-accent); border-radius: 13px; }.qn-parent-title strong, .qn-parent-title small { display: block; }.qn-parent-title strong { font-size: 15px; }.qn-parent-title small { margin-top: 1px; color: #aeb7cb; font-size: 10px; }
.qn-parent-sidebar nav { display: grid; gap: 4px; }.qn-parent-sidebar nav button, .qn-lock-parent { width: 100%; min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #bec6d8; background: transparent; border: 0; border-radius: 12px; cursor: pointer; text-align: left; font-size: 12px; font-weight: 750; }.qn-parent-sidebar nav button:hover { color: #fff; background: rgba(255,255,255,.07); }.qn-parent-sidebar nav button.is-active { color: #fff; background: var(--qn-accent); }.qn-parent-sidebar nav .qn-icon { width: 19px; height: 19px; }.qn-lock-parent { margin-top: auto; color: #d4d9e4; border: 1px solid rgba(255,255,255,.12); }.qn-lock-parent .qn-ui-icon { width: 18px; height: 18px; }
.qn-parent-content { min-width: 0; min-height: 100vh; padding: 45px clamp(25px, 4vw, 55px); background: #f7f8fc; }
.qn-parent-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 28px; }.qn-parent-page-head h2 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -1.2px; }.qn-parent-page-head p { max-width: 680px; margin: 0; color: var(--qn-muted); }
.qn-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.qn-quick-award-button .qn-icon { width: 18px; height: 18px; }.qn-quick-award-help { display: block; margin: 12px 0 2px; color: var(--qn-muted); font-size: 10px; line-height: 1.45; text-align: left; }.qn-quick-award-modal { width: min(500px,100%); }.qn-quick-award-form .qn-form-grid { gap: 12px; text-align: left; }.qn-quick-award-form select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--qn-ink); background: #fbfcff; border: 1px solid #dfe3ed; border-radius: 11px; }
.qn-admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }.qn-admin-stat { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--qn-line); border-radius: 19px; }.qn-admin-stat > span { grid-row: 1/3; width: 42px; height: 42px; display: grid; place-items: center; color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 9%, white); border-radius: 13px; }.qn-admin-stat strong { font-size: 23px; line-height: 1.1; }.qn-admin-stat small { color: var(--qn-muted); font-size: 10px; font-weight: 750; }
.qn-admin-two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }.qn-admin-card { padding: 21px; background: #fff; border: 1px solid var(--qn-line); border-radius: 21px; box-shadow: 0 5px 15px rgba(43,53,85,.04); }.qn-admin-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.qn-admin-card-head h3 { margin: 0; font-size: 17px; }.qn-admin-list { display: grid; gap: 5px; }.qn-admin-list > div { min-height: 57px; display: flex; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid #edf0f6; }.qn-admin-list > div:first-child { border-top: 0; }.qn-admin-list-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; background: #f3f5fa; border-radius: 10px; }.qn-admin-list > div > span:nth-child(2) { min-width: 0; flex: 1; }.qn-admin-list strong, .qn-admin-list small { display: block; }.qn-admin-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.qn-admin-list small { color: var(--qn-muted); font-size: 9px; }.qn-small-button { min-height: 31px; padding: 5px 9px; color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 7%, white); border: 1px solid color-mix(in srgb, var(--qn-accent) 18%, var(--qn-line)); border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 800; }.qn-admin-tip { display: flex; gap: 15px; margin-top: 16px; background: #fff9e8; border-color: #f1e2af; }.qn-admin-tip > span { flex: 0 0 auto; width: 45px; height: 45px; display: grid; place-items: center; color: #d9843a; background: #ffedc2; border-radius: 14px; }.qn-admin-tip h3 { margin: 0 0 3px; font-size: 16px; }.qn-admin-tip p { margin: 0; color: #756746; font-size: 12px; }
.qn-manage-list { display: grid; gap: 11px; }.qn-manage-row { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--qn-line); border-radius: 18px; }.qn-manage-row.is-archived { opacity: .58; background: #f0f1f5; }.qn-manage-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--item-color); background: color-mix(in srgb, var(--item-color) 9%, white); border-radius: 16px; }.qn-manage-icon .qn-icon { width: 27px; height: 27px; }.qn-manage-copy { min-width: 0; }.qn-manage-copy > div { display: flex; align-items: center; gap: 7px; }.qn-manage-copy strong { font-size: 14px; }.qn-kind-tag { padding: 3px 7px; color: #697286; background: #eef0f5; border-radius: 50px; font-size: 8px; font-weight: 900; text-transform: uppercase; }.qn-manage-copy p { overflow: hidden; margin: 3px 0; color: var(--qn-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.qn-manage-copy small { color: var(--qn-accent); font-size: 9px; font-weight: 800; }.qn-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.qn-row-actions button { min-height: 30px; padding: 5px 8px; color: #596276; background: #f5f6f9; border: 1px solid #e3e6ee; border-radius: 8px; cursor: pointer; font-size: 9px; font-weight: 750; }.qn-row-actions button:hover { color: var(--qn-accent); border-color: color-mix(in srgb, var(--qn-accent) 25%, #e3e6ee); }.qn-row-actions .qn-danger-link { color: #a84545; }
.qn-editor-form { padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--qn-line); border-radius: 23px; }.qn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 19px; }.qn-form-grid label { display: block; min-width: 0; }.qn-form-grid label > span, .qn-editor-form label > span { display: block; margin-bottom: 6px; color: #424b60; font-size: 11px; font-weight: 850; }.qn-form-grid input:not([type="checkbox"]):not([type="radio"]), .qn-form-grid select, .qn-form-grid textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--qn-ink); background: #fbfcff; border: 1px solid #dfe3ed; border-radius: 11px; box-shadow: none; }.qn-form-grid textarea { resize: vertical; }.qn-form-grid input[type="color"] { height: 46px; padding: 4px !important; }.qn-form-grid label small { display: block; margin-top: 4px; color: var(--qn-muted); font-size: 9px; }.qn-form-wide { grid-column: 1/-1; }.qn-check-field { min-height: 46px; display: flex !important; align-items: center; gap: 9px; padding: 10px 12px; background: #f7f8fb; border: 1px solid #e2e5ed; border-radius: 11px; }.qn-check-field input { width: 18px; height: 18px; margin: 0; }.qn-check-field > span { margin: 0 !important; }.qn-icon-select { display: grid; grid-template-columns: 45px 1fr; }.qn-icon-choice-preview { display: grid; place-items: center; color: var(--qn-accent); background: #eef0ff; border-radius: 11px 0 0 11px; }.qn-icon-select select { border-radius: 0 11px 11px 0 !important; }.qn-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--qn-line); }.qn-settings-section { padding-bottom: 27px; margin-bottom: 27px; border-bottom: 1px solid var(--qn-line); }.qn-settings-section > h3 { margin: 0 0 15px; font-size: 17px; }.qn-settings-section > p { margin: -8px 0 16px; color: var(--qn-muted); font-size: 12px; }.qn-pet-choices { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.qn-pet-choice { position: relative; display: grid; justify-items: center; padding: 14px; border: 2px solid var(--qn-line); border-radius: 18px; cursor: pointer; text-align: center; }.qn-pet-choice.is-selected { border-color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 5%, white); }.qn-pet-choice input { position: absolute; z-index: 3; top: 10px; right: 10px; }.qn-pet-choice > span { overflow: hidden; height: 100px; border-radius: 14px; }.qn-pet-choice-shark > span { background: linear-gradient(#8ce5ef,#2c9fbe 72%,#dec887 72%); }.qn-pet-choice .qn-pet { width: 130px; height: 100px; }.qn-pet-choice strong { font-size: 13px; }.qn-pet-choice small { color: var(--qn-muted); font-size: 9px; }
.qn-device-section { border-bottom: 0; }.qn-device-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.qn-device-mode-card { min-width: 0; display: grid; grid-template-columns: 46px minmax(0,1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 15px; color: var(--qn-ink); background: #fafbfe; border: 2px solid #e2e6ef; border-radius: 17px; cursor: pointer; text-align: left; }.qn-device-mode-card:hover { border-color: color-mix(in srgb,var(--qn-accent) 35%,#e2e6ef); }.qn-device-mode-card.is-selected { background: color-mix(in srgb,var(--qn-accent) 6%,white); border-color: var(--qn-accent); box-shadow: 0 7px 18px color-mix(in srgb,var(--qn-accent) 10%,transparent); }.qn-device-mode-card > span { grid-row: 1/4; width: 46px; height: 46px; display: grid; place-items: center; color: var(--qn-accent); background: #fff; border: 1px solid #e4e8f1; border-radius: 14px; }.qn-device-mode-card .qn-icon { width: 23px; height: 23px; }.qn-device-mode-card strong { font-size: 13px; }.qn-device-mode-card small { margin-top: 3px; color: var(--qn-muted); font-size: 9px; line-height: 1.35; }.qn-device-mode-card em { width: max-content; margin-top: 8px; padding: 4px 7px; color: var(--qn-accent); background: #fff; border-radius: 20px; font-size: 8px; font-style: normal; font-weight: 900; text-transform: uppercase; }.qn-device-security-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 11px 12px; color: #5d667a; background: #f3f5fa; border-radius: 12px; font-size: 10px; line-height: 1.45; }.qn-device-security-note .qn-icon { flex: 0 0 auto; width: 17px; height: 17px; color: var(--qn-accent); }
.qn-item-editor [hidden] { display: none !important; }
.qn-item-kind-picker { min-width: 0; margin: 0 0 27px; padding: 0 0 27px; border: 0; border-bottom: 1px solid var(--qn-line); }
.qn-item-kind-picker legend { width: 100%; margin-bottom: 13px; color: #343d51; font-size: 16px; font-weight: 900; }
.qn-item-kind-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.qn-item-kind-option { position: relative; min-width: 0; min-height: 105px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-content: center; align-items: center; gap: 10px; padding: 14px; background: #fafbfe; border: 2px solid #e2e6ef; border-radius: 16px; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.qn-item-kind-option:hover { border-color: color-mix(in srgb, var(--qn-accent) 35%, #e2e6ef); transform: translateY(-1px); }
.qn-item-kind-option:focus-within { outline: 4px solid color-mix(in srgb, var(--qn-accent) 20%, transparent); outline-offset: 2px; }
.qn-item-kind-option.is-selected { border-color: var(--qn-accent); background: color-mix(in srgb, var(--qn-accent) 6%, white); box-shadow: 0 7px 18px color-mix(in srgb, var(--qn-accent) 10%, transparent); }
.qn-item-kind-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qn-editor-form .qn-item-kind-icon { width: 38px; height: 38px; display: grid; place-items: center; margin: 0; color: var(--qn-accent); background: #fff; border: 1px solid #e6e9f2; border-radius: 12px; }
.qn-item-kind-icon .qn-icon { width: 21px; height: 21px; }
.qn-editor-form .qn-item-kind-copy { min-width: 0; display: block; margin: 0; color: var(--qn-ink); }
.qn-item-kind-copy strong, .qn-item-kind-copy small { display: block; }
.qn-item-kind-copy strong { font-size: 13px; line-height: 1.15; }
.qn-item-kind-copy small { margin-top: 4px; color: var(--qn-muted); font-size: 9px; font-weight: 650; line-height: 1.3; }
.qn-item-editor-section { padding-bottom: 27px; margin-bottom: 27px; border-bottom: 1px solid var(--qn-line); }
.qn-item-section-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.qn-item-section-head > span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--qn-accent); border-radius: 9px; font-size: 11px; font-weight: 900; }
.qn-item-section-head h3 { margin: 1px 0 3px; font-size: 16px; }
.qn-item-section-head p { margin: 0; color: var(--qn-muted); font-size: 11px; }
.qn-item-editor label em { color: #8b93a5; font-size: 9px; font-style: normal; font-weight: 650; }
.qn-item-appearance { margin-top: -5px; padding: 0; background: #f8f9fc; border: 1px solid #e3e6ef; border-radius: 14px; }
.qn-item-appearance summary { min-height: 57px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.qn-item-appearance summary::-webkit-details-marker { display: none; }
.qn-item-appearance summary > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--qn-accent); background: #fff; border-radius: 10px; }
.qn-item-appearance summary strong { font-size: 12px; }
.qn-item-appearance summary small { color: var(--qn-muted); font-size: 9px; }
.qn-item-appearance[open] summary { border-bottom: 1px solid #e3e6ef; }
.qn-item-appearance > .qn-form-grid { padding: 17px; }
.qn-item-active { margin-top: 16px; }
.qn-history-list { overflow: hidden; background: #fff; border: 1px solid var(--qn-line); border-radius: 21px; }.qn-history-list article { min-height: 67px; display: flex; align-items: center; gap: 13px; padding: 12px 17px; border-top: 1px solid #edf0f6; }.qn-history-list article:first-child { border-top: 0; }.qn-history-list article > span { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--qn-accent); background: #f0f1ff; border-radius: 12px; }.qn-history-list article > span.is-star-removal { color: #a34444; background: #fff0f0; }.qn-history-list article > div { flex: 1; min-width: 0; }.qn-history-list strong, .qn-history-list small { display: block; }.qn-history-list strong { font-size: 12px; }.qn-history-list small { margin-top: 2px; color: var(--qn-muted); font-size: 9px; }.qn-history-list em { color: #17865d; font-size: 11px; font-style: normal; font-weight: 900; }.qn-history-list em.is-negative { color: #a74747; }.qn-history-list article > .qn-small-button { flex: 0 0 auto; }

@keyframes qn-view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes qn-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes qn-pop { from { opacity: 0; transform: scale(.88) translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes qn-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
@keyframes qn-nibble { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(7px) scaleY(.96); } }
@keyframes qn-jump { 0%,100% { transform: translateY(0); } 45% { transform: translateY(-30px) rotate(3deg); } }
@keyframes qn-spin { 0% { transform: rotate(0); } 50% { transform: rotate(-8deg) scale(1.05); } 100% { transform: rotate(0); } }
@keyframes qn-wave { 0%,100% { transform: rotate(0); } 35% { transform: rotate(-5deg); } 70% { transform: rotate(5deg); } }
@keyframes qn-spin-loader { to { transform: rotate(360deg); } }
@keyframes qn-confetti { to { top: 110%; transform: rotate(720deg) translateX(60px); } }

@media (max-width: 1050px) {
  .qn-goal-grid, .qn-reward-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qn-badge-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .qn-admin-stat-grid { grid-template-columns: repeat(2,1fr); }
  .qn-parent-panel { grid-template-columns: 195px minmax(0,1fr); }
}
@media (max-width: 780px) {
  .qn-app { min-height: 600px; }
  .qn-topbar { gap: 8px; padding: 9px 12px; }
  .qn-brand { min-width: 0; flex: 1; }.qn-brand-mark { width: 42px; height: 42px; border-radius: 14px; }.qn-brand strong { font-size: 18px; }.qn-brand small { display: none; }
  .qn-top-stats { flex: 0 0 auto; }.qn-pill { min-height: 38px; padding: 6px 9px; }.qn-pill > span:last-child { display: none; }.qn-pill strong { font-size: 16px; }.qn-level-pill { display: none; }
  .qn-top-actions { min-width: 85px; gap: 5px; }.qn-icon-button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; border-radius: 12px; }.qn-icon-button .qn-ui-icon { width: 21px; height: 21px; }
  .qn-main { padding: 22px 13px 35px; }.qn-nav { bottom: 8px; width: calc(100% - 14px); padding: 5px; border-radius: 20px; }.qn-nav-button { min-height: 57px; border-radius: 15px; font-size: 9px; }.qn-nav-button .qn-icon { width: 21px; height: 21px; }
  .qn-hero { min-height: 245px; grid-template-columns: 1fr 150px; padding: 26px; border-radius: 27px; }.qn-hero h1 { font-size: 42px; }.qn-mini-buddy { min-height: 170px; }.qn-mini-buddy .qn-pet { height: 135px; }.qn-mini-buddy span { font-size: 10px; }
  .qn-stat-card { grid-template-columns: 39px auto; min-height: 88px; padding: 13px; }.qn-stat-card > span { width: 39px; height: 39px; border-radius: 13px; }.qn-stat-card strong { font-size: 22px; }
  .qn-card-grid, .qn-task-grid { grid-template-columns: 1fr; }.qn-badge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.qn-badge-card { min-height: 225px; padding: 17px 13px; }.qn-badge-medal { width: 88px; height: 88px; }.qn-badge-medal span .qn-icon { width: 39px; height: 39px; }
  .qn-goal-grid, .qn-reward-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.qn-page-title-icon { width: 65px; height: 65px; border-radius: 21px; }.qn-page-title-icon .qn-icon { width: 34px; height: 34px; }.qn-page-title h1 { font-size: 34px; }
  .qn-parent-drawer { width: 100%; }.qn-parent-panel { grid-template-columns: 72px minmax(0,1fr); }.qn-parent-title > div, .qn-parent-sidebar nav span, .qn-lock-parent { display: none; }.qn-parent-title { justify-content: center; padding: 5px 0 22px; }.qn-parent-sidebar { padding: 18px 8px; }.qn-parent-sidebar nav button { justify-content: center; padding: 9px; }.qn-parent-sidebar nav .qn-icon { width: 22px; height: 22px; }.qn-parent-content { padding: 40px 18px; }.qn-admin-two-col { grid-template-columns: 1fr; }.qn-manage-row { grid-template-columns: 45px minmax(0,1fr); }.qn-manage-icon { width: 44px; height: 44px; }.qn-row-actions { grid-column: 1/-1; justify-content: flex-start; }.qn-form-grid { grid-template-columns: 1fr; }.qn-form-wide { grid-column: auto; }.qn-item-kind-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .qn-hero { grid-template-columns: 1fr; }.qn-mini-buddy { display: none; }.qn-hero h1 { font-size: 38px; }
  .qn-stat-row { gap: 7px; }.qn-stat-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 5px; text-align: center; }.qn-stat-card > span { width: 33px; height: 33px; }.qn-stat-card strong { font-size: 20px; }.qn-stat-card small { font-size: 9px; }
  .qn-goal-grid, .qn-reward-grid { grid-template-columns: 1fr; }.qn-page-title { align-items: flex-start; gap: 13px; }.qn-page-title-icon { width: 52px; height: 52px; border-radius: 17px; }.qn-page-title-icon .qn-icon { width: 27px; height: 27px; }.qn-page-title h1 { font-size: 29px; }.qn-page-title p { font-size: 13px; }
  .qn-badge-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.qn-badge-card { min-height: 210px; padding: 14px 8px; }.qn-badge-card h3 { font-size: 15px; }.qn-badge-card p { font-size: 11px; }.qn-badge-medal { width: 76px; height: 76px; border-width: 7px; }
  .qn-pet-room { min-height: 340px; padding-top: 80px; }.qn-pet-stage { width: 95%; }.qn-pet-speech { top: 24px; }.qn-pet-actions { gap: 6px; }.qn-pet-actions button { min-height: 68px; font-size: 9px; border-radius: 17px; }.qn-pet-actions .qn-icon { width: 23px; height: 23px; }.qn-pet-growth { padding: 14px; }.qn-pet-level-medallion { width: 57px; height: 57px; }
  .qn-badge-summary { padding: 16px; }.qn-badge-ring { width: 65px; height: 65px; }.qn-badge-summary h2 { font-size: 17px; }.qn-badge-summary p { font-size: 11px; }
  .qn-parent-page-head { flex-direction: column; }.qn-head-actions { width: 100%; justify-content: stretch; }.qn-head-actions .qn-button { flex: 1 1 auto; }.qn-admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 7px; }.qn-admin-stat { grid-template-columns: 34px 1fr; padding: 12px; }.qn-admin-stat > span { width: 34px; height: 34px; }.qn-pet-choices { grid-template-columns: 1fr; }.qn-pet-choice { grid-template-columns: 90px 1fr; grid-template-rows: auto auto; text-align: left; }.qn-pet-choice > span { grid-row: 1/3; height: 70px; }.qn-pet-choice .qn-pet { width: 90px; height: 70px; }.qn-device-mode-grid { grid-template-columns: 1fr; }.qn-item-kind-grid { grid-template-columns: 1fr; }.qn-item-kind-option { min-height: 82px; }.qn-item-appearance summary { grid-template-columns: 34px 1fr; }.qn-item-appearance summary small { grid-column: 2; }
}

.qn-reset-zone { margin-top: 28px; padding: clamp(20px,3vw,30px); background: #fff8f8; border: 1px solid #edc6c6; border-radius: 23px; }
.qn-reset-zone-head { display: flex; gap: 14px; margin-bottom: 19px; }.qn-reset-zone-head > span { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: #b84545; border-radius: 15px; }.qn-reset-zone-head h3 { margin: 0 0 5px; font-size: 21px; }.qn-reset-zone-head p { margin: 0; color: #765e64; font-size: 12px; }.qn-reset-zone .qn-eyebrow { color: #a83f3f; }
.qn-reset-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.qn-reset-options label { min-height: 82px; display: flex; align-items: flex-start; gap: 10px; padding: 13px; background: #fff; border: 1px solid #ead7d7; border-radius: 14px; cursor: pointer; }.qn-reset-options input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: #b84545; }.qn-reset-options strong,.qn-reset-options small { display: block; }.qn-reset-options strong { color: #473a3d; font-size: 12px; }.qn-reset-options small { margin-top: 3px; color: #806e73; font-size: 9px; line-height: 1.4; }
.qn-reset-confirm { display: block; max-width: 350px; margin-top: 18px; }.qn-reset-confirm > span { display: block; margin-bottom: 6px; color: #603f45; font-size: 11px; font-weight: 800; }.qn-reset-confirm input { width: 100%; min-height: 46px; padding: 9px 12px; color: #4f3036; background: #fff; border: 1px solid #dfbaba; border-radius: 11px; font-weight: 850; letter-spacing: .08em; }.qn-danger-button { min-height: 44px; margin-top: 14px; padding: 9px 15px; color: #fff; background: #ac3e3e; border: 1px solid #983333; border-radius: 12px; cursor: pointer; font-weight: 850; }.qn-danger-button:hover { background: #953333; }
@media (max-width: 560px) { .qn-reset-options { grid-template-columns: 1fr; }.qn-reset-zone-head > span { width: 42px; height: 42px; } }

/* v0.3: account and multi-child surfaces. */
.qn-account-shell { min-height: 100dvh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 10% 10%,rgba(99,91,255,.13),transparent 32%),radial-gradient(circle at 90% 85%,rgba(25,169,116,.12),transparent 30%),var(--qn-bg); }
.qn-account-card { width: min(570px,100%); padding: clamp(28px,6vw,52px); background: #fff; border: 1px solid var(--qn-line); border-radius: 32px; box-shadow: var(--qn-shadow); text-align: center; }.qn-account-card-wide { width: min(760px,100%); }.qn-account-logo { width: 80px; height: 80px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: linear-gradient(145deg,var(--qn-accent),#8d70ff); border-radius: 27px; transform: rotate(-4deg); }.qn-account-logo .qn-icon { width: 43px; height: 43px; }.qn-account-card h1 { margin: 0 0 10px; font-size: clamp(34px,6vw,52px); line-height: 1; letter-spacing: -1.7px; }.qn-account-card > p { color: var(--qn-muted); }.qn-account-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 23px 0 12px; }.qn-account-card > small { display: block; color: var(--qn-muted); font-size: 10px; }.qn-account-logout { display: inline-block; margin-top: 22px; color: var(--qn-muted); font-size: 11px; font-weight: 750; }
.qn-kid-create { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--qn-line); text-align: left; }.qn-kid-create .qn-button { margin: 18px 0 0 auto; }.qn-kid-create.is-compact { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--qn-line); border-radius: 19px; }.qn-kid-switcher select { max-width: 150px; min-height: 39px; padding: 7px 28px 7px 10px; color: var(--qn-accent); background: #f2f1ff; border: 1px solid #dedbff; border-radius: 12px; font-size: 11px; font-weight: 850; }
.qn-kid-manage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 28px; }.qn-kid-manage-card { display: grid; grid-template-columns: 65px minmax(0,1fr); gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--qn-line); border-radius: 21px; box-shadow: var(--qn-soft-shadow); }.qn-kid-manage-card.is-current { border-color: color-mix(in srgb,var(--kid-color) 45%,var(--qn-line)); box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--kid-color) 18%,transparent); }.qn-kid-avatar { width: 63px; height: 63px; display: grid; place-items: center; color: var(--kid-color); background: color-mix(in srgb,var(--kid-color) 10%,white); border-radius: 20px; }.qn-kid-avatar .qn-icon { width: 35px; height: 35px; }.qn-kid-manage-card h3 { margin: 5px 0 2px; font-size: 21px; }.qn-kid-manage-card p { margin: 0; color: var(--qn-muted); font-size: 10px; }.qn-kid-card-actions { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid #edf0f5; }.qn-kid-card-actions button { min-height: 34px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: #596276; background: #f5f6f9; border: 1px solid #e1e4ec; border-radius: 9px; cursor: pointer; font-size: 9px; font-weight: 800; }.qn-kid-card-actions button:first-child { color: var(--qn-accent); }.qn-kid-card-actions button.qn-danger-link { color: #aa4343; }.qn-add-kid-section { margin-top: 15px; }.qn-modal-danger { color: #fff; background: #b84545; }
.qn-account-notice { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 18px; padding: 13px; color: #6b571e; background: #fff8dc; border: 1px solid #ecd998; border-radius: 15px; }.qn-account-notice > .qn-icon { width: 28px; height: 28px; color: #b88613; }.qn-account-notice strong,.qn-account-notice span { display: block; }.qn-account-notice strong { font-size: 12px; }.qn-account-notice span { margin-top: 2px; font-size: 9px; }.qn-account-notice a { color: var(--qn-accent); font-size: 10px; font-weight: 850; }
@media (max-width: 780px) { .qn-kid-switcher { display: none; }.qn-kid-manage-grid { grid-template-columns: 1fr; }.qn-account-shell { align-items: start; padding: 14px; }.qn-account-card { margin-top: 4vh; border-radius: 24px; }.questnest-page { overflow-x: hidden; } }
@media (max-width: 560px) { .qn-account-card { padding: 25px 18px; }.qn-account-card h1 { font-size: 34px; }.qn-kid-create .qn-form-grid { gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .qn-app *, .qn-app *::before, .qn-app *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v0.2: family calendar, allowance, and gentle virtual-pet care. */
.qn-nav { width: min(960px, calc(100% - 26px)); grid-template-columns: repeat(8, minmax(64px, 1fr)); overflow-x: auto; scrollbar-width: none; }
.qn-nav::-webkit-scrollbar { display: none; }
.qn-nav-more { display: none; }
.qn-more-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; max-width: 850px; margin: 0 auto; }.qn-more-grid button { min-height: 108px; display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px; color: var(--qn-ink); background: #fff; border: 1px solid var(--qn-line); border-radius: 21px; box-shadow: var(--qn-soft-shadow); cursor: pointer; text-align: left; }.qn-more-grid button > span { width: 56px; height: 56px; display: grid; place-items: center; color: var(--qn-accent); background: color-mix(in srgb,var(--qn-accent) 10%,white); border-radius: 18px; }.qn-more-grid button > span .qn-icon { width: 30px; height: 30px; }.qn-more-grid strong,.qn-more-grid small { display: block; }.qn-more-grid strong { font-size: 18px; }.qn-more-grid small { margin-top: 3px; color: var(--qn-muted); font-size: 11px; }.qn-more-grid i { color: var(--qn-accent); font-size: 29px; font-style: normal; }
.qn-more-grid button.qn-install-card { color: #fff; background: linear-gradient(135deg, var(--qn-accent), color-mix(in srgb, var(--qn-accent) 70%, #263b9b)); border-color: transparent; }.qn-more-grid button.qn-install-card > span { color: var(--qn-accent); background: #fff; }.qn-more-grid button.qn-install-card small { color: rgba(255,255,255,.82); }.qn-more-grid button.qn-install-card i { color: #fff; }
.qn-mobile-parent-actions { display: none; }

.qn-calendar-shell { overflow: hidden; background: #fff; border: 1px solid var(--qn-line); border-radius: 28px; box-shadow: var(--qn-soft-shadow); }
.qn-calendar-toolbar { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px auto auto; align-items: center; gap: 8px; padding: 17px 19px; border-bottom: 1px solid var(--qn-line); }
.qn-calendar-toolbar h2 { margin: 0; text-align: center; font-size: 24px; }
.qn-calendar-toolbar button { min-height: 40px; padding: 6px 12px; color: var(--qn-accent); background: #f4f3ff; border: 0; border-radius: 12px; cursor: pointer; font-weight: 900; }
.qn-calendar-toolbar > .qn-calendar-step { padding: 0; font-size: 27px; line-height: 1; }
.qn-calendar-mode-switch { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; padding: 3px; background: #eef0f7; border-radius: 13px; }.qn-calendar-toolbar .qn-calendar-mode-switch button { min-height: 34px; padding: 5px 11px; color: var(--qn-muted); background: transparent; border-radius: 10px; font-size: 10px; line-height: 1; }.qn-calendar-toolbar .qn-calendar-mode-switch button.is-active { color: #fff; background: var(--qn-accent); box-shadow: 0 4px 10px color-mix(in srgb,var(--qn-accent) 24%,transparent); }
.qn-calendar-weekdays, .qn-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.qn-calendar-weekdays { padding: 0 10px; color: var(--qn-muted); background: #fafbfe; border-bottom: 1px solid var(--qn-line); }
.qn-calendar-weekdays span { padding: 10px 5px; text-align: center; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.qn-calendar-grid { padding: 10px; }
.qn-calendar-day { position: relative; min-width: 0; min-height: 112px; padding: 8px; color: var(--qn-ink); background: #fff; border: 1px solid #edf0f6; cursor: pointer; text-align: left; }
.qn-calendar-day:hover { z-index: 2; border-color: color-mix(in srgb, var(--qn-accent) 35%, var(--qn-line)); }
.qn-calendar-day.is-blank { background: #fafbfe; cursor: default; }
.qn-calendar-day.is-today .qn-day-number { color: #fff; background: var(--qn-accent); }
.qn-calendar-day.is-selected { z-index: 1; background: color-mix(in srgb, var(--qn-accent) 5%, white); box-shadow: inset 0 0 0 2px var(--qn-accent); }
.qn-day-number { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; font-size: 12px; font-weight: 900; }
.qn-day-events { display: grid; gap: 3px; }
.qn-day-events i { display: block; overflow: hidden; padding: 3px 5px; color: color-mix(in srgb, var(--event-color) 65%, #142034); background: color-mix(in srgb, var(--event-color) 16%, white); border-left: 3px solid var(--event-color); border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.qn-day-events small { color: var(--qn-muted); font-size: 8px; font-weight: 800; }
.qn-day-agenda { max-width: 900px; margin: 32px auto 0; }
.qn-agenda-event { position: relative; display: grid; grid-template-columns: 7px 150px minmax(0,1fr); gap: 15px; align-items: center; min-height: 102px; margin-bottom: 10px; padding: 15px 18px 15px 0; background: #fff; border: 1px solid var(--qn-line); border-radius: 19px; box-shadow: var(--qn-soft-shadow); }
.qn-event-line { align-self: stretch; background: var(--event-color); border-radius: 20px; }
.qn-event-time { color: var(--event-color); font-size: 12px; font-weight: 900; }
.qn-agenda-event h3 { margin: 4px 0 3px; font-size: 18px; }
.qn-agenda-event p, .qn-agenda-event small { display: block; margin: 0; color: var(--qn-muted); font-size: 12px; }
.qn-agenda-event p .qn-icon { width: 15px; height: 15px; color: var(--event-color); }
.qn-week-help { padding: 10px 16px; color: #5e687d; background: #f7f8fc; border-bottom: 1px solid var(--qn-line); font-size: 10px; font-weight: 750; text-align: center; }.qn-week-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }.qn-week-calendar { --qn-week-height: 1056px; --qn-week-hour: 44px; min-width: 1010px; display: grid; grid-template-columns: 64px repeat(7,minmax(128px,1fr)); grid-template-rows: auto var(--qn-week-height); background: #fff; }.qn-week-corner,.qn-week-day-head { position: sticky; z-index: 8; top: 0; min-height: 66px; border: 0; border-right: 1px solid #e4e8f1; border-bottom: 1px solid #dfe4ef; background: #fafbfe; }.qn-week-corner { z-index: 10; left: 0; display: grid; place-items: center; color: var(--qn-muted); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }.qn-week-day-head { display: grid; place-content: center; justify-items: center; gap: 2px; padding: 7px; color: var(--qn-ink); cursor: pointer; }.qn-week-day-head span { color: var(--qn-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }.qn-week-day-head strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; }.qn-week-day-head.is-today strong { color: #fff; background: var(--qn-accent); }.qn-week-day-head.is-selected { background: color-mix(in srgb,var(--qn-accent) 7%,white); box-shadow: inset 0 -3px var(--qn-accent); }.qn-week-times { position: sticky; z-index: 6; left: 0; height: var(--qn-week-height); background: #fafbfe; border-right: 1px solid #dfe4ef; }.qn-week-times span { position: absolute; left: 0; right: 7px; color: #737c90; font-size: 8px; font-weight: 800; line-height: 1; text-align: right; transform: translateY(-50%); }.qn-week-day-column { position: relative; height: var(--qn-week-height); border-right: 1px solid #e6e9f1; background-color: #fff; background-image: linear-gradient(to bottom,transparent calc(100% - 1px),#e7eaf2 calc(100% - 1px)); background-size: 100% var(--qn-week-hour); }.qn-week-day-column.is-today { background-color: color-mix(in srgb,var(--qn-accent) 3%,white); }.qn-week-day-column.is-selected { box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--qn-accent) 42%,transparent); }.qn-week-event { position: absolute; z-index: 2; overflow: hidden; min-height: 2px; padding: 5px 6px; color: color-mix(in srgb,var(--event-color) 67%,#172236); background: color-mix(in srgb,var(--event-color) 18%,white); border: 1px solid color-mix(in srgb,var(--event-color) 30%,white); border-left: 4px solid var(--event-color); border-radius: 7px; box-shadow: 0 2px 7px rgba(45,55,83,.08); line-height: 1.15; pointer-events: none; }.qn-week-event.is-care { background: repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-color) 20%,white) 0 8px,color-mix(in srgb,var(--event-color) 12%,white) 8px 16px); }.qn-week-event.continues-before { border-top-left-radius: 2px; border-top-right-radius: 2px; border-top-style: dashed; }.qn-week-event.continues-after { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; border-bottom-style: dashed; }.qn-week-event small,.qn-week-event strong,.qn-week-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.qn-week-event small { margin-bottom: 3px; color: color-mix(in srgb,var(--event-color) 75%,#263246); font-size: 7px; font-weight: 900; }.qn-week-event strong { font-size: 10px; }.qn-week-event span { margin-top: 3px; opacity: .74; font-size: 7px; font-weight: 750; }
.qn-privacy-note, .qn-money-note { display: flex; align-items: center; gap: 9px; margin: -10px 0 20px; padding: 12px 14px; color: #6f5a20; background: #fff8dc; border: 1px solid #eedb9a; border-radius: 14px; font-size: 11px; font-weight: 750; }

.qn-money-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: clamp(25px,5vw,45px); color: #fff; background: linear-gradient(130deg, #137b59, #19a974); border-radius: 30px; box-shadow: 0 18px 45px rgba(19,123,89,.22); }
.qn-money-hero > span { width: 84px; height: 84px; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 27px; transform: rotate(-4deg); }
.qn-money-hero > span .qn-icon { width: 46px; height: 46px; }
.qn-money-hero small, .qn-money-hero strong { display: block; }.qn-money-hero small { opacity: .78; font-weight: 800; }.qn-money-hero strong { font-size: clamp(40px,7vw,70px); line-height: 1; }.qn-money-hero p { margin: 7px 0 0; opacity: .85; font-size: 13px; }
.qn-money-hero > i { position: absolute; right: 7%; color: rgba(255,255,255,.18); font-size: 100px; transform: rotate(12deg); }
.qn-money-note { margin: 25px 0 0; color: #48546c; background: #f0f2ff; border-color: #daddf7; }
.qn-money-ledger { overflow: hidden; background: #fff; border: 1px solid var(--qn-line); border-radius: 20px; }
.qn-money-row { min-height: 67px; display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 11px 15px; border-top: 1px solid #edf0f6; }
.qn-money-row:first-child { border-top: 0; }.qn-money-row > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: #19a974; border-radius: 12px; }.qn-money-row.is-negative > span { background: #e06464; }
.qn-money-row strong, .qn-money-row small { display: block; }.qn-money-row strong { font-size: 13px; }.qn-money-row small { margin-top: 2px; color: var(--qn-muted); font-size: 9px; }.qn-money-row em { color: #16835c; font-style: normal; font-weight: 900; }.qn-money-row.is-negative em { color: #b54545; }.qn-money-row button { padding: 5px 8px; color: #697286; background: #f4f5f8; border: 1px solid #e0e3eb; border-radius: 8px; cursor: pointer; font-size: 9px; font-weight: 800; }.qn-money-row.is-reversed { opacity: .48; text-decoration: line-through; }
.qn-allowance-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 22px; color: #fff; background: linear-gradient(130deg,#137b59,#19a974); border-radius: 23px; }.qn-allowance-summary > span { width: 61px; height: 61px; display: grid; place-items: center; background: rgba(255,255,255,.15); border-radius: 19px; }.qn-allowance-summary small,.qn-allowance-summary strong { display: block; }.qn-allowance-summary strong { font-size: 32px; line-height: 1.1; }.qn-allowance-summary p { margin: 4px 0 0; opacity: .82; font-size: 11px; }
.qn-allowance-settings { margin-bottom: 18px; }.qn-allowance-settings .qn-settings-section { margin: 0; padding: 0; border: 0; }.qn-form-help { color: var(--qn-muted); font-size: 11px; }.qn-money-input { display: grid; grid-template-columns: 38px 1fr; }.qn-money-input b { display: grid; place-items: center; color: #667086; background: #eef0f5; border: 1px solid #dfe3ed; border-right: 0; border-radius: 11px 0 0 11px; }.qn-money-input input { border-radius: 0 11px 11px 0 !important; }.qn-allowance-workspace { margin-bottom: 24px; }.qn-allowance-workspace .qn-editor-form { box-shadow: none; }

.qn-pet-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.qn-pet-title-row .qn-page-title { flex: 1; }
.qn-sound-button { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 12px; color: var(--qn-accent); background: #fff; border: 1px solid var(--qn-line); border-radius: 13px; cursor: pointer; font-size: 11px; font-weight: 850; }
.qn-room-theme-garden { background: linear-gradient(#bfeaff 0 66%,#91d67c 66% 76%,#65b45f 76%); }.qn-room-theme-garden::before { background: #ffe36e; }.qn-room-theme-garden::after { background: repeating-linear-gradient(90deg,rgba(91,113,45,.11) 0 2px,transparent 2px 40px),#f2dc9e; }
.qn-room-theme-ocean { background: linear-gradient(#66d8ed 0 24%,#35bad4 24% 62%,#218dad 62% 75%,#dfc784 75%); }.qn-room-theme-ocean::before { width: 62px; height: 62px; background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.23); box-shadow: -70px 70px 0 -20px rgba(255,255,255,.18),-130px 24px 0 -24px rgba(255,255,255,.24); }.qn-room-theme-ocean::after { background: radial-gradient(circle at 15% 50%,#fff3 0 3px,transparent 4px),radial-gradient(circle at 72% 40%,#fff3 0 4px,transparent 5px),#e5cc8e; }.qn-room-theme-ocean .qn-room-cloud { opacity: .18; }
.qn-room-theme-space { background: radial-gradient(circle at 13% 20%,#fff 0 2px,transparent 3px),radial-gradient(circle at 72% 28%,#fff 0 2px,transparent 3px),radial-gradient(circle at 32% 48%,#fff8c7 0 2px,transparent 3px),linear-gradient(#182953 0 75%,#392f62 75%); }.qn-room-theme-space::before { background: linear-gradient(145deg,#d7b6ff,#7e73e6); border-color: rgba(255,255,255,.18); box-shadow: inset -22px -13px 0 rgba(60,50,130,.22); }.qn-room-theme-space::after { background: repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 44px),#4b3d6f; }.qn-room-theme-space .qn-room-cloud { opacity: .08; }
.qn-room-theme-dino { background: linear-gradient(#ffd39c 0 56%,#91bd67 56% 75%,#557e48 75%); }.qn-room-theme-dino::before { background: #ff9a68; border-color: rgba(255,255,255,.25); }.qn-room-theme-dino::after { background: repeating-linear-gradient(70deg,rgba(75,105,45,.12) 0 5px,transparent 5px 36px),#c6aa6d; }.qn-room-theme-dino .qn-room-cloud { background: rgba(255,250,222,.55); }
.qn-room-theme-candy { background: linear-gradient(#ffd4ec 0 38%,#d8c6ff 38% 68%,#b4e2cf 68% 75%,#f7c9db 75%); }.qn-room-theme-candy::before { background: repeating-radial-gradient(circle,#fff 0 8px,#ffabc9 9px 17px); border-color: rgba(255,255,255,.42); }.qn-room-theme-candy::after { background: repeating-linear-gradient(90deg,rgba(164,75,130,.09) 0 2px,transparent 2px 38px),#f7d4bd; }
.qn-room-decoration { position: absolute; z-index: 2; right: 7%; bottom: 76px; pointer-events: none; filter: drop-shadow(0 8px 7px rgba(42,54,67,.16)); }.qn-room-decoration > span { display: block; font-size: 64px; line-height: 1; }.qn-decoration-none { display: none; }.qn-decoration-star_garland { left: 5%; right: 5%; top: 16px; bottom: auto; text-align: center; }.qn-decoration-star_garland > span { color: #ffd449; font-size: clamp(25px,5vw,42px); letter-spacing: clamp(16px,7vw,65px); text-shadow: 0 3px 0 rgba(131,91,13,.12); }.qn-decoration-plant { left: 7%; right: auto; }.qn-decoration-rainbow { top: 92px; right: 6%; bottom: auto; }.qn-decoration-treasure { right: 7%; bottom: 62px; }.qn-decoration-aquarium { right: 6%; bottom: 72px; padding: 10px 13px; background: rgba(134,229,255,.48); border: 4px solid rgba(255,255,255,.7); border-radius: 24px; }.qn-pet-room.is-equipping .qn-room-decoration { animation: qn-decor-pop .75s ease both; }
.qn-pet-stage { animation: qn-pet-idle 3.2s ease-in-out infinite; }.qn-pet-room.is-sleeping { background: linear-gradient(#24365f 0 68%, #496c5a 68% 75%, #b89d72 75%); }.qn-pet-room.is-sleeping::before { background: #fff7cc; box-shadow: -24px -6px 0 #24365f; }.qn-pet-room.is-sleeping .qn-room-cloud { opacity: .2; }
.qn-pet-room.qn-pet-habitat-shark { background: linear-gradient(#7fe1ee 0,#32b5cf 48%,#117f9e 75%,#0b6886 75%); }.qn-pet-room.qn-pet-habitat-shark.qn-room-theme-garden { background: linear-gradient(#a8f0e8 0,#48cbbf 48%,#168e9b 75%,#08707f 75%); }.qn-pet-room.qn-pet-habitat-shark.qn-room-theme-space { background: radial-gradient(circle at 18% 18%,#d4f8ff 0 2px,transparent 3px),radial-gradient(circle at 78% 25%,#d4f8ff 0 2px,transparent 3px),linear-gradient(#285a91 0,#153f75 52%,#0a2e5a 75%,#092744 75%); }.qn-pet-room.qn-pet-habitat-shark.qn-room-theme-dino { background: linear-gradient(#79d7c7 0,#2aa59e 48%,#177b78 75%,#466c55 75%); }.qn-pet-room.qn-pet-habitat-shark.qn-room-theme-candy { background: linear-gradient(#d5c7ff 0,#8ab7ed 48%,#6581c4 75%,#5c6aa5 75%); }.qn-pet-room.qn-pet-habitat-shark.is-sleeping { background: linear-gradient(#234f72 0,#153c60 48%,#0b2d4f 75%,#09243e 75%); }.qn-pet-room.qn-pet-habitat-shark::before { top: 54px; right: 58px; width: 34px; height: 34px; background: rgba(207,249,255,.12); border: 4px solid rgba(220,252,255,.64); box-shadow: -70px 54px 0 -8px rgba(220,252,255,.52),-130px 2px 0 -11px rgba(220,252,255,.55),15px 90px 0 -12px rgba(220,252,255,.5); }.qn-pet-room.qn-pet-habitat-shark::after { height: 74px; background: radial-gradient(ellipse at 18% 100%,#58a36d 0 8%,transparent 9%),radial-gradient(ellipse at 84% 100%,#4a9663 0 7%,transparent 8%),repeating-linear-gradient(100deg,rgba(115,91,41,.1) 0 3px,transparent 3px 34px),#e0c785; }.qn-pet-habitat-shark .qn-room-cloud { width: 21px; height: 21px; background: rgba(220,252,255,.08); border: 3px solid rgba(220,252,255,.56); border-radius: 50%; animation: qn-bubbles 5s ease-in-out infinite; }.qn-pet-habitat-shark .qn-room-cloud::before,.qn-pet-habitat-shark .qn-room-cloud::after { bottom: auto; background: rgba(220,252,255,.08); border: 2px solid rgba(220,252,255,.5); border-radius: 50%; }.qn-pet-habitat-shark .qn-room-cloud::before { left: 28px; top: 24px; width: 12px; height: 12px; }.qn-pet-habitat-shark .qn-room-cloud::after { right: 25px; bottom: 24px; width: 9px; height: 9px; }
.qn-pet-room.is-hungry .qn-pet-stage, .qn-pet-room.is-bored .qn-pet-stage, .qn-pet-room.is-messy .qn-pet-stage { animation-duration: 4.4s; }
.qn-pet-thought { position: absolute; z-index: 8; right: 3%; top: 16%; min-width: 62px; min-height: 42px; display: grid; place-items: center; padding: 7px 10px; color: #596276; background: #fff; border-radius: 50%; box-shadow: var(--qn-soft-shadow); font-size: 18px; font-weight: 900; }
.qn-pet-thought:empty { display: none; }.qn-pet-prop { position: absolute; z-index: 9; left: 50%; bottom: 23%; width: 45px; height: 45px; transform: translateX(-50%); pointer-events: none; }.qn-pet-prop > span { display: none; }
.qn-pet-effects { position: absolute; z-index: 7; inset: 18% 18% 25%; pointer-events: none; }.qn-pet-effects i { position: absolute; left: 50%; top: 50%; color: #ff668f; opacity: 0; font-size: 27px; font-style: normal; }
.qn-pet-speech strong { display: block; color: var(--qn-accent); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.qn-pet-stage.is-feed { animation: qn-pet-munch .8s ease-in-out 2; }.qn-pet-stage.is-feed .qn-pet-prop > span { display: block; font-size: 38px; animation: qn-snack-fly 1.15s ease-in both; }
.qn-pet-stage.is-play { animation: qn-pet-hop .7s ease-in-out 2; }.qn-pet-stage.is-play .qn-pet-prop > span { display: block; font-size: 42px; animation: qn-ball-bounce .65s ease-in-out 3; }
.qn-pet-stage.is-clean { animation: qn-pet-wiggle .9s ease-in-out; }.qn-pet-stage.is-clean::after { content: "✦  ✧  ✦"; position: absolute; inset: 10% 0 auto; color: #fff6a5; text-align: center; font-size: 34px; text-shadow: 0 2px 8px rgba(46,74,90,.25); animation: qn-sparkle-pop 1.1s ease both; }
.qn-pet-stage.is-hello { animation: qn-pet-wiggle .75s ease-in-out 2; }.qn-pet-stage.is-care { animation: qn-care-dance 1.25s ease-in-out 2; }.qn-pet-room.is-action-care .qn-pet-effects i { animation: qn-heart-float 1.8s ease-out both; }.qn-pet-room.is-action-care .qn-pet-effects i:nth-child(2) { left: 25%; animation-delay: .2s; color: #ffd35a; }.qn-pet-room.is-action-care .qn-pet-effects i:nth-child(3) { left: 75%; animation-delay: .4s; color: #69d4ff; }
.qn-daily-care { position: relative; z-index: 6; width: min(680px,calc(100% - 32px)); min-height: 72px; display: flex; align-items: center; gap: 13px; margin: 16px auto 14px; padding: 12px 18px; color: #fff; background: linear-gradient(120deg,#e85278,#ff7f72); border: 5px solid #fff; border-radius: 22px; box-shadow: 0 12px 28px rgba(126,50,85,.2); cursor: pointer; text-align: left; }.qn-daily-care.is-done { background: linear-gradient(120deg,#17845c,#26b87e); }.qn-daily-care > .qn-icon { width: 34px; height: 34px; flex: 0 0 auto; }.qn-daily-care strong,.qn-daily-care small { display: block; }.qn-daily-care small { opacity: .82; font-size: 10px; }
.qn-pet-needs { width: min(680px,calc(100% - 32px)); display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 0 auto 12px; }.qn-pet-needs > div { display: grid; grid-template-columns: 1fr auto; gap: 5px; padding: 10px 12px; background: #fff; border: 1px solid var(--qn-line); border-radius: 15px; }.qn-pet-needs span { color: var(--qn-muted); font-size: 9px; font-weight: 850; }.qn-pet-needs strong { font-size: 10px; }.qn-pet-needs b { grid-column: 1/-1; overflow: hidden; height: 7px; background: #eceef4; border-radius: 20px; }.qn-pet-needs b i { display: block; height: 100%; background: linear-gradient(90deg,#ffb74b,#19a974); border-radius: inherit; transition: width .5s ease; }
.qn-pet-actions-five { grid-template-columns: repeat(4,1fr); margin: 0 auto 22px; }
.qn-pet-action-emoji { display: block; font-size: 27px; line-height: 1; }.qn-pet-actions button small { max-width: 100%; overflow: hidden; color: var(--qn-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.qn-pet-growth > div:last-child { min-width: 0; flex: 1; }.qn-buddy-level-bar { overflow: hidden; height: 7px; margin-top: 10px; background: #eceef5; border-radius: 30px; }.qn-buddy-level-bar i { display: block; height: 100%; background: linear-gradient(90deg,#ffc04f,var(--qn-accent)); border-radius: inherit; }
.qn-pet-collection { max-width: 900px; margin: 24px auto 0; padding: 24px; background: rgba(255,255,255,.82); border: 1px solid var(--qn-line); border-radius: 28px; box-shadow: var(--qn-soft-shadow); }.qn-pet-collection-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }.qn-pet-collection-head h2 { margin: 2px 0 5px; font-size: 23px; }.qn-pet-collection-head p { max-width: 570px; margin: 0; color: var(--qn-muted); font-size: 12px; }.qn-next-pet-unlock { flex: 0 0 auto; min-width: 205px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; color: #634b18; background: #fff7d6; border: 1px solid #efdc91; border-radius: 17px; }.qn-next-pet-unlock > span { font-size: 31px; }.qn-next-pet-unlock small,.qn-next-pet-unlock strong { display: block; }.qn-next-pet-unlock small { color: #8b733e; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }.qn-next-pet-unlock strong { font-size: 12px; }.qn-next-pet-unlock.is-complete { color: #256e53; background: #e5faef; border-color: #a5dfc2; }
.qn-pet-collection-groups { display: grid; gap: 18px; }.qn-pet-collection-group { min-width: 0; }.qn-pet-collection-group > div:first-child { margin-bottom: 8px; }.qn-pet-collection-group h3 { margin: 0 0 2px; font-size: 15px; }.qn-pet-collection-group p { margin: 0; color: var(--qn-muted); font-size: 10px; }.qn-pet-collection-row { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }.qn-pet-collection-item { position: relative; min-width: 0; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; color: var(--qn-ink); background: #fff; border: 2px solid #e6e9f1; border-radius: 18px; cursor: pointer; transition: transform .18s,border-color .18s,box-shadow .18s; }.qn-pet-collection-item:hover:not(:disabled) { z-index: 2; transform: translateY(-3px); border-color: color-mix(in srgb,var(--qn-accent) 45%,white); box-shadow: 0 10px 20px rgba(55,61,88,.12); }.qn-pet-collection-item > span { font-size: 31px; line-height: 1.2; }.qn-pet-collection-item strong { width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.qn-pet-collection-item small { color: var(--qn-muted); font-size: 8px; font-weight: 800; }.qn-pet-collection-item.is-equipped { color: var(--qn-accent); background: color-mix(in srgb,var(--qn-accent) 7%,white); border-color: var(--qn-accent); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }.qn-pet-collection-item.is-locked { cursor: default; filter: grayscale(.78); opacity: .58; }.qn-pet-collection-item.is-locked > span { filter: blur(2px); }

@keyframes qn-pet-idle { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.015,.985); } }
@keyframes qn-pet-munch { 0%,100% { transform: translateY(0) scaleY(1); } 35% { transform: translateY(8px) scale(1.03,.94); } 65% { transform: translateY(3px) scale(.98,1.03); } }
@keyframes qn-pet-hop { 0%,100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-38px) rotate(5deg); } }
@keyframes qn-pet-wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-7deg) scale(1.03); } 75% { transform: rotate(7deg) scale(1.03); } }
@keyframes qn-care-dance { 0%,100% { transform: translateY(0) rotate(0) scale(1); } 25% { transform: translateY(-22px) rotate(-7deg) scale(1.06); } 50% { transform: translateY(0) rotate(0) scale(.98); } 75% { transform: translateY(-22px) rotate(7deg) scale(1.06); } }
@keyframes qn-snack-fly { 0% { transform: translate(-110px,-100px) rotate(-30deg); opacity: 0; } 45% { opacity: 1; } 78% { transform: translate(0,0) rotate(15deg) scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@keyframes qn-ball-bounce { 0%,100% { transform: translate(-85px,-20px); } 50% { transform: translate(85px,-95px); } }
@keyframes qn-sparkle-pop { 0% { opacity: 0; transform: scale(.5) rotate(-10deg); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: scale(1.5) rotate(10deg); } }
@keyframes qn-heart-float { 0% { opacity: 0; transform: translate(-50%,20px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-150px) scale(1.4) rotate(15deg); } }
@keyframes qn-decor-pop { 0% { opacity: .2; transform: scale(.4) rotate(-12deg); } 60% { opacity: 1; transform: scale(1.2) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes qn-bubbles { 0%,100% { transform: translateY(0) scale(1); opacity: .55; } 50% { transform: translateY(-22px) scale(1.08); opacity: .9; } }

@media (max-width: 780px) {
	.qn-app { width: 100%; max-width: 100%; min-width: 0; }
	.qn-pwa-install-top { display: none; }
	.qn-shell { width: 100%; min-height: 100svh; min-height: 100dvh; overflow-x: hidden; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
	.qn-main { min-width: 0; }
	.qn-nav { bottom: max(8px,env(safe-area-inset-bottom)); width: calc(100% - 14px); max-width: 620px; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; overflow: visible; }
	.qn-nav-button { min-width: 0; overflow: hidden; touch-action: manipulation; }.qn-nav-button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.qn-nav-button .qn-icon { flex: 0 0 auto; }
	.qn-nav-secondary { display: none; }.qn-nav-more { display: flex; }
	.qn-parent-overlay { overflow: hidden; overscroll-behavior: contain; }
	.qn-parent-drawer { height: 100%; max-height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; overscroll-behavior: contain; }
	.qn-parent-drawer > .qn-parent-panel { height: 100%; min-height: 0; overflow: hidden; }
	.qn-parent-drawer .qn-parent-sidebar { position: relative; top: auto; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.qn-parent-drawer .qn-parent-content { height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  .qn-mobile-parent-actions { position: sticky; z-index: 20; top: 0; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; color: #fff; background: #222b40; }
  .qn-mobile-parent-actions button { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; font-size: 11px; font-weight: 850; }
  .qn-mobile-parent-actions .qn-ui-icon { width: 18px; height: 18px; }
  .qn-calendar-day { min-height: 87px; padding: 5px; }.qn-day-number { width: 23px; height: 23px; font-size: 10px; }.qn-day-events i { max-width: 100%; padding: 2px 3px; font-size: 7px; }.qn-week-calendar { --qn-week-height: 960px; --qn-week-hour: 40px; min-width: 930px; grid-template-columns: 58px repeat(7,minmax(120px,1fr)); }.qn-week-event { padding: 4px; }.qn-week-event strong { font-size: 9px; }
  .qn-agenda-event { grid-template-columns: 6px 115px minmax(0,1fr); gap: 10px; }
  .qn-pet-title-row { display: block; }.qn-sound-button { margin: -17px 0 17px auto; }.qn-pet-needs { grid-template-columns: 1fr; }.qn-pet-needs > div { grid-template-columns: 80px 1fr auto; align-items: center; }.qn-pet-needs b { grid-column: auto; }.qn-pet-collection { padding: 18px 14px; }.qn-pet-collection-head { align-items: stretch; flex-direction: column; }.qn-next-pet-unlock { width: 100%; min-width: 0; }.qn-pet-collection-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; padding: 2px 2px 9px; overscroll-behavior-inline: contain; scrollbar-width: thin; }.qn-pet-collection-item { min-height: 106px; }.qn-room-decoration > span { font-size: 48px; }
}
@media (max-width: 560px) {
	.qn-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }.qn-nav-button { min-width: 0; padding-inline: 2px; font-size: 9px; }.qn-nav-button .qn-icon { width: 21px; height: 21px; }
	.qn-more-grid { grid-template-columns: 1fr; }.qn-more-grid button { min-height: 88px; }
  .qn-calendar-toolbar { grid-template-columns: 40px minmax(0,1fr) 40px; padding: 10px; }.qn-calendar-toolbar h2 { font-size: 17px; }.qn-calendar-today { grid-column: 1; padding-inline: 7px !important; }.qn-calendar-mode-switch { grid-column: 2/-1; }.qn-calendar-grid { padding: 4px; }.qn-calendar-weekdays { padding: 0 4px; }.qn-calendar-day { min-height: 59px; padding: 2px; }.qn-day-events i { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; color: transparent; background: var(--event-color); }.qn-day-events { display: flex; flex-wrap: wrap; padding-left: 3px; }.qn-day-events small { display: none; }.qn-agenda-event { grid-template-columns: 5px 1fr; align-items: start; padding-right: 12px; }.qn-event-time { grid-column: 2; }.qn-agenda-event > div:last-child { grid-column: 2; }
  .qn-money-hero { padding: 25px 19px; gap: 13px; }.qn-money-hero > span { width: 61px; height: 61px; border-radius: 19px; }.qn-money-hero > span .qn-icon { width: 34px; height: 34px; }.qn-money-row { grid-template-columns: 34px minmax(0,1fr) auto; gap: 8px; padding: 9px; }.qn-money-row > span { width: 33px; height: 33px; }.qn-money-row button { grid-column: 2/-1; justify-self: start; }
}
