.rq-page {
  --rq-ink: #241b32;
  --rq-muted: #5e506b;
  --rq-violet: #59328a;
  --rq-purple: #ede3fa;
  --rq-pink: #fff0f5;
  --rq-border: #d9cce8;
  color: var(--rq-ink);
}
.rq-page [hidden] { display: none !important; }
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rq-page :is(p,a,button,strong,summary) { overflow-wrap: anywhere; }
.rq-breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .9rem; color: var(--rq-muted); font-size: .875rem; }
#content.rq-page a { color: var(--rq-violet); }
#content.rq-page .rq-hero {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--rq-border);
  border-radius: 20px;
  border-top: 4px solid #9b74bc;
  background: linear-gradient(115deg,#fff 12%,#fbf6ff 66%,#fff2f7);
  box-shadow: 0 9px 28px #38214e0b;
}
#content.rq-page .rq-hero .tool-page-category { color: var(--rq-violet); }
#content.rq-page .rq-hero h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.22; margin: .4em 0 .35em; word-break: keep-all; }
#content.rq-page .tool-page-intro { color: var(--rq-muted); line-height: 1.65; }
#content.rq-page .rq-meta {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; padding: 0; margin: .85rem 0 1rem;
}
#content.rq-page .rq-meta li {
  padding: .25rem .65rem; background: #fff;
  border: 1px solid var(--rq-border); border-radius: 999px;
  color: var(--rq-muted); font-size: .85rem;
}
.rq-panel {
  margin: 1.25rem 0 1.75rem; padding: clamp(.85rem, 2.6vw, 1.6rem);
  border: 1px solid var(--rq-border); border-radius: 18px; background: #fff;
  box-shadow: 0 8px 24px #38214e08;
  scroll-margin-top: 4.75rem;
}
#content.rq-page .rq-panel h2 { color: var(--rq-ink); font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: 0 0 .85rem; line-height: 1.35; }
#content.rq-page .rq-panel h3 { font-size: 1.12rem; margin: 0 0 .35rem; line-height: 1.4; }
.rq-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.rq-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: .6rem; }
#content.rq-page .rq-mode { margin: 0; position: relative; cursor: pointer; }
.rq-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rq-mode > span {
  display: grid; align-content: start; gap: .25rem; height: 100%;
  min-height: 82px; padding: .75rem; border: 1px solid var(--rq-border);
  border-radius: 10px; background: #fff; color: var(--rq-ink);
}
.rq-mode > span > span, .rq-mode small { font-size: .875rem; line-height: 1.4; color: var(--rq-muted); }
.rq-mode strong { font-size: 1rem; }
.rq-mode input:checked + span { background: #f7efff; border-color: var(--rq-violet); box-shadow: inset 0 0 0 1px var(--rq-violet); }
.rq-mode input:checked + span small::before { content: "✓ "; }
.rq-member { margin-top: .75rem; }
.rq-settings { display: flex; flex-wrap: wrap; gap: .55rem 1.15rem; align-items: end; margin-top: .8rem; }
#content.rq-page :is(.rq-settings,.rq-member) label { color: var(--rq-ink); margin: 0 0 .2rem; font-size: .95rem; }
#content.rq-page select { min-height: 44px; width: 100%; min-width: min(158px, 100%); color: var(--rq-ink); margin: 0; }
#content.rq-page :is(.rq-check,#rq-review-filter) { display: flex; align-items: center; gap: .45rem; min-height: 44px; }
.rq-page input[type=checkbox] { accent-color: var(--rq-violet); }
.rq-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; margin: .8rem 0 0; }
#content.rq-page button {
  min-height: 44px; min-width: 44px; height: auto; width: auto;
  padding: .5rem .85rem; line-height: 1.35;
  border: 1px solid #b9a5ce; border-radius: 8px; background: #fff;
  color: var(--rq-ink) !important; font-size: .94rem; font-weight: 750;
  white-space: normal; text-transform: none; letter-spacing: normal; box-shadow: none; cursor: pointer;
}
#content.rq-page button:hover:not(:disabled) { border-color: var(--rq-violet); background: #f8f2fd; }
#content.rq-page button.rq-primary { background: var(--rq-violet); color: #fff !important; border-color: var(--rq-violet); }
#content.rq-page button.rq-primary:hover:not(:disabled) { background: #461f75; }
#content.rq-page button:disabled { opacity: .58; cursor: default; }
#content.rq-page :is(button,a,select,summary,textarea,[tabindex]):focus-visible,
.rq-mode input:focus-visible + span { outline: 3px solid #7d409e; outline-offset: 2px; }
.rq-daily {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem;
  margin-top: 1rem; padding: .8rem; border-radius: 10px; background: var(--rq-pink); border: 1px solid #ebc9d8;
}
#content.rq-page :is(.rq-daily,.rq-storage) p { margin: 0; color: var(--rq-muted); }
.rq-storage { margin-top: .85rem; font-size: .875rem; }
.rq-storage .rq-actions:not(:has(button:not([hidden]))) { display: none; }
.rq-progress-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .7rem; font-size: .91rem; color: var(--rq-muted); }
.rq-page progress { display: block; width: 100%; height: .65rem; margin: .4rem 0 .95rem; overflow: hidden; accent-color: var(--rq-violet); }
.rq-subtle, .rq-shortcuts, #rq-status { color: var(--rq-muted); font-size: .9rem; }
#content.rq-page .rq-subtle, #content.rq-page .rq-shortcuts { margin: .45rem 0; }
.rq-answers { display: grid; gap: .55rem; margin: .85rem 0; }
#content.rq-page .rq-option {
  display: flex; align-items: center; gap: .7rem; min-height: 52px;
  width: 100%; padding: .65rem .8rem; text-align: left; touch-action: manipulation;
}
.rq-option .rq-key {
  display: grid; width: 1.8rem; height: 1.8rem; flex: none; place-items: center;
  background: #f0e7fb; color: #4b2576; border-radius: 6px; font-size: .85rem;
}
.rq-option .rq-option-state { margin-left: auto; font-size: .82rem; white-space: nowrap; }
#content.rq-page .rq-option[aria-pressed=true] { border: 2px solid var(--rq-violet); background: #f8f0ff; }
#content.rq-page .rq-option[data-state=right] { color: #164e3e !important; background: #eaf7f0; border-color: #4f8d74; }
#content.rq-page .rq-option[data-state=wrong] { color: #782942 !important; background: #fff0f4; border-color: #ad6078; }
.rq-option[aria-disabled=true] { cursor: default !important; }
.rq-response { margin: .7rem 0; border-left: 3px solid var(--rq-violet); padding: .65rem .8rem; background: #f8f3ff; }
#content.rq-page .rq-response p, #content.rq-page #rq-status { margin: .3rem 0; }
.rq-result-card { padding: clamp(.9rem, 3vw, 1.45rem); border: 1px solid var(--rq-border); border-radius: 13px; background: #faf4ff; }
#content.rq-page .rq-result-card p { margin: .28rem 0; }
.rq-score { color: var(--rq-violet); font-size: clamp(2rem, 7vw, 3.8rem); font-weight: 850; line-height: 1.05; font-variant-numeric: tabular-nums; }
#rq-grade { font-weight: 800; }
.rq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 105px),1fr)); gap: .55rem; margin: .8rem 0; }
.rq-stats div { padding: .45rem .55rem; background: #fff; border-radius: 6px; }
.rq-stats dt { font-size: .82rem; color: var(--rq-muted); }
.rq-stats dd { margin: 0; font-weight: 800; }
.rq-share, .rq-review { border-top: 1px solid var(--rq-border); padding-top: .8rem; margin-top: .85rem; }
#content.rq-page #rq-copy-text { display: block; width: 100%; color: var(--rq-ink); padding: .6rem; border: 1px solid var(--rq-border); margin-top: .35rem; }
.rq-review details { border-bottom: 1px solid var(--rq-border); padding: .3rem 0; }
.rq-review summary { min-height: 44px; padding: .35rem 0; cursor: pointer; font-weight: 740; }
#content.rq-page .rq-review p { margin: .35rem 0; }
#content.rq-page .rq-guide { margin: 0; padding: 1.2rem 0; border-top: 1px solid var(--rq-border); }
#content.rq-page .rq-guide p { line-height: 1.72; margin: .5rem 0; }
@media (max-width: 450px) {
  .rq-modes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rq-mode > span { padding: .62rem; }
  #content.rq-page .rq-panel button { scroll-margin-bottom: 75px; }
  #content.rq-page .rq-actions button { flex: 1 1 135px; }
}
@media (prefers-reduced-motion: reduce) {
  #content.rq-page :is(button,a,select,summary) { transition: none !important; }
}
