.mqs-landing, .mqs-page {
    --mqs-ink:#172b2b;
    --mqs-muted:#526767;
    --mqs-edge:#ccdad5;
    --mqs-paper:#f6faf8;
    --mqs-accent:#085d52;
    --mqs-focus:#238975;
    color:var(--mqs-ink);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.55;
}
.elementor-1146:has(.mqs-landing) :is(.elementor-element-fd7dbae,.elementor-element-80f4cb1) { display:none; }
.mqs-landing *, .mqs-page * { box-sizing:border-box; }
.mqs-page { margin:0; background:#edf3f0; }
.mqs-shell { max-width:1420px; padding-inline:clamp(16px,3vw,42px); margin-inline:auto; }
.mqs-main { padding-top:clamp(20px,4vw,48px); padding-bottom:60px; }
.mqs-skip { position:absolute; left:12px; top:-100px; padding:12px; background:white; }
.mqs-skip:focus { top:12px; z-index:20; }
.mqs-top { background:#fff; border-bottom:1px solid var(--mqs-edge); }
.mqs-top-inner { display:flex; flex-wrap:wrap; align-items:center; gap:16px 32px; min-height:64px; padding-block:14px; }
.mqs-top-inner nav, .mqs-actions { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.mqs-top-inner nav a { padding:5px 8px; }
.mqs-brand { font-weight:850; letter-spacing:-.03em; font-size:1.25rem; }
.mqs-page a, .mqs-landing a:not(.mqs-btn) { color:var(--mqs-accent); text-underline-offset:3px; }
.mqs-page :is(a,button,input,textarea,select,summary):focus-visible,
.mqs-landing :is(a,button,summary):focus-visible { outline:3px solid var(--mqs-focus); outline-offset:3px; }
.mqs-hero {
    display:grid;
    grid-template-columns:minmax(0,1.36fr) minmax(0,1fr);
    gap:clamp(18px,4vw,48px);
    align-items:center;
    padding:clamp(22px,5vw,62px);
    background:radial-gradient(ellipse at 92% 10%,#28645a 0%,transparent 55%),#123a35;
    border-radius:20px;
    color:#f0fff9;
}
.mqs-landing .mqs-hero h1 { font-size:clamp(29px,4.4vw,55px); line-height:1.08; letter-spacing:-.05em; margin:9px 0 16px; color:#f0fff9 !important; }
.mqs-hero p { color:#e0eee9; font-size:1rem; max-width:48ch; }
.mqs-hero .mqs-kicker { color:#b6edda; }
.mqs-kicker, .mqs-tag { display:block; font-size:.8rem; color:var(--mqs-muted); font-weight:700; letter-spacing:.03em; margin:0; }
.mqs-hero-preview { color:#203b35; border-radius:15px; background:#f6fbf7; border:1px solid #cfe7da; overflow:hidden; }
.mqs-preview-head { padding:14px 18px; border-bottom:1px solid #d6e5dc; background:#e9f4ee; }
.mqs-preview-head span, .mqs-preview-head strong { display:block; }
.mqs-preview-body { padding:10px 18px 17px; }
.mqs-preview-body p { display:flex; justify-content:space-between; color:inherit; gap:5px; font-size:.88rem; margin:10px 0 0; }
.mqs-preview-body progress, .mqs-question-preview progress, .mqs-page .myquiz-core progress { width:100%; accent-color:#287c64; }
.mqs-preview-foot { padding:9px 18px; color:#36564b; font-size:.8rem; background:#e9f4ee; }
.mqs-section { margin:clamp(24px,4vw,54px) 0; }
.mqs-section h2, .mqs-page h1, .mqs-page h2 { font-weight:750; letter-spacing:-.025em; line-height:1.16; }
.mqs-section h2 { font-size:clamp(23px,3vw,34px); }
.mqs-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:14px; margin-block:14px; }
.mqs-card, .mqs-panel { border:1px solid var(--mqs-edge); border-radius:13px; padding:clamp(15px,2.4vw,25px); background:#fff; }
.mqs-cards .mqs-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.mqs-cards .mqs-card .mqs-btn { margin-top:auto; }
.mqs-card h2, .mqs-card h3 { margin:.3em 0; }
.mqs-card h2 { font-size:1.2rem; }
.mqs-card-marker { width:36px; height:7px; border-radius:7px; margin-bottom:13px; background:var(--swatch,#388b72); }
.mqs-marker-ink { background:#287d84; }
.mqs-marker-mint { background:#328867; }
.mqs-marker-sand { background:#bd7832; }
.mqs-btn, .mqs-page button {
    display:inline-flex; align-items:center; justify-content:center;
    border:1px solid #9db8ac; border-radius:8px; padding:9px 13px;
    font:inherit; font-weight:650; font-size:.9rem; text-decoration:none; min-height:39px;
    background:#fff; color:#174b3e; cursor:pointer;
}
.mqs-btn.mqs-primary, .mqs-page button[type=submit] { background:#085d52; color:#fff; border-color:#085d52; }
.mqs-hero .mqs-btn.mqs-primary { background:#bbefcd; color:#103c2d; border-color:#bbefcd; }
.mqs-landing .mqs-hero .mqs-btn.mqs-secondary { color:#174b3e !important; }
.mqs-page button:disabled { opacity:.55; cursor:default; }
.mqs-page button[aria-pressed=true], .mqs-page button[aria-current=true] { border-color:#085d52; background:#d8eee4; color:#18443a; }
.mqs-notice, .mqs-status:empty { padding:8px 12px; }
.mqs-notice { background:#e2f2eb; border-left:4px solid #448f76; border-radius:4px; }
.mqs-page label { display:block; font-size:.9rem; font-weight:625; margin-block:10px; }
.mqs-page label small { display:block; color:var(--mqs-muted); font-size:.8rem; line-height:1.4; font-weight:400; margin-top:4px; }
.mqs-page input:not([type=checkbox],[type=radio]),.mqs-page textarea,.mqs-page select {
    display:block; width:100%; padding:8px 10px; margin-top:4px; border:1px solid #adbfba;
    border-radius:6px; background:#fff; color:#1e3430; font:inherit;
}
.mqs-page input[type=checkbox],.mqs-page input[type=radio] { margin-inline:7px; accent-color:var(--mqs-accent); }
.mqs-filter { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:12px; border:1px solid var(--mqs-edge); border-radius:10px; background:#fff; }
.mqs-filter label { margin:0; min-width:min(100%,12rem); }
.mqs-editor-head { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:6px; }
.mqs-layout { display:grid; grid-template-columns:minmax(180px,0.82fr) minmax(0,1.7fr) minmax(218px,1fr); align-items:start; gap:13px; }
.mqs-layout > * { min-width:0; }
.mqs-structure {
    position:sticky; top:10px; max-height:calc(100vh - 26px); overflow:auto;
    padding:13px; background:#f8fbf9; border:1px solid var(--mqs-edge); border-radius:13px;
}
.mqs-structure > button { display:flex; width:100%; justify-content:flex-start; margin:4px 0; }
.mqs-structure h2, .mqs-structure h3 { margin:.2em 0 .45em; }
.mqs-outline { margin-top:18px; }
.mqs-outline ol { list-style:none; padding:0; }
.mqs-outline li { display:flex; align-items:center; gap:4px; }
.mqs-outline li.mqs-drop-target { outline:2px solid var(--mqs-accent); outline-offset:2px; border-radius:6px; }
.mqs-outline li button { text-align:left; justify-content:flex-start; margin:3px 0; overflow:hidden; overflow-wrap:anywhere; }
.mqs-answer { border:1px solid var(--mqs-edge); border-radius:8px; padding:9px; margin:9px 0; }
.mqs-answer-preview { border:1px solid currentColor; border-radius:8px; padding:8px 11px; }
.mqs-mobile { display:none; }
.mqs-guide details, .mqs-section details { background:#fff; border:1px solid var(--mqs-edge); border-radius:8px; padding:10px 13px; margin:7px 0; }
.mqs-theme-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(95px,1fr)); gap:7px; margin:12px 0; }
.mqs-theme-grid button, .mqs-question-preview, .mqs-participant { background:var(--tbg,#fff); color:var(--tf,#174338); }
.mqs-theme-grid button { border-color:var(--swatch,#619783); }
.mqs-question-preview { margin-top:13px; }
.mqs-narrow { max-width:390px; margin-inline:auto; }
.mqs-participant { max-width:760px; margin:20px auto; }
.mqs-participant .myquiz-core { margin-top:18px; }
.mqs-participant .mq4-option { display:flex; gap:8px; align-items:center; border:1px solid var(--swatch,#619783); border-radius:7px; padding:8px 10px; }
.mqs-participant footer { margin-top:21px; }
.mqs-participant footer a { color:inherit; }
.mqs-private-note { opacity:.86; font-size:.88rem; }
[data-theme=paper] { --swatch:#467d68; --tbg:#fff; --tf:#172b2b; }
[data-theme=midnight] { --swatch:#5677a3; --tbg:#192c49; --tf:#f0f7ff; }
[data-theme=ocean] { --swatch:#327da4; --tbg:#edf9ff; --tf:#174058; }
[data-theme=forest] { --swatch:#437357; --tbg:#ebf6e8; --tf:#203a27; }
[data-theme=coral] { --swatch:#ad574a; --tbg:#fff0eb; --tf:#623b32; }
[data-theme=graphite] { --swatch:#77858b; --tbg:#262f33; --tf:#f3f5f6; }
[data-theme=sand] { --swatch:#876d4e; --tbg:#fff8e9; --tf:#533b22; }
[data-theme=violet] { --swatch:#7853aa; --tbg:#f4eefc; --tf:#4c2b71; }
[data-theme=moss] { --swatch:#67723d; --tbg:#f1f3df; --tf:#3d4925; }
[data-theme=ice] { --swatch:#436e93; --tbg:#eff5fa; --tf:#2d4d70; }
[data-theme=cocoa] { --swatch:#977764; --tbg:#503826; --tf:#fff5e8; }
[data-theme=sun] { --swatch:#ad7528; --tbg:#fff6d0; --tf:#563e1a; }
@media(max-width:930px){
    .mqs-mobile { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
    .mqs-layout { display:block; }
    .mqs-layout [data-region] { display:none; }
    .mqs-layout[data-mobile=structure] [data-region=structure],
    .mqs-layout[data-mobile=content] [data-region=content],
    .mqs-layout[data-mobile=options] [data-region=options] { display:block; position:static; }
}
@media(max-width:650px){
    .mqs-hero { grid-template-columns:minmax(0,1fr); border-radius:13px; }
    .mqs-top-inner { gap:8px; }
    .mqs-top-inner nav { gap:4px; }
    .mqs-top-inner nav a { padding:3px 4px; }
    .mqs-cards { grid-template-columns:1fr; }
}

/* The Studio workspace follows the Newsy body class. Participant themes use separate tokens. */
.mqs-page, .mqs-landing {
    --mqs-surface:#fff; --mqs-canvas:#eef4f1; --mqs-soft:#f5faf7; --mqs-control:#fff;
    --mqs-action:#085d52; --mqs-on-action:#fff; --mqs-selected:#d8eee4;
    --mqs-danger:#8d2923; --mqs-success:#195f44;
}
html[data-mqs-scheme=dark] :is(.mqs-landing,.mqs-integrated),
html:not([data-mqs-scheme=light]) body.dark :is(.mqs-landing,.mqs-integrated) {
    --mqs-ink:#f2f7f4; --mqs-muted:#b4c9bf; --mqs-edge:#49645c; --mqs-surface:#20342f;
    --mqs-canvas:#14231f; --mqs-soft:#263e36; --mqs-control:#182b25; --mqs-accent:#a3e6c6;
    --mqs-action:#a9e3c4; --mqs-on-action:#112c21; --mqs-selected:#34574a;
    --mqs-focus:#96e7c1; --mqs-danger:#ffc1ba; --mqs-success:#b7eccf; color-scheme:dark;
}
.mqs-integrated { background:var(--mqs-canvas); position:relative; isolation:isolate; }
.mqs-integrated .mqs-main { padding-top:clamp(20px,3vw,42px); min-height:55vh; }
.mqs-integrated .mqs-main:not(.mqs-wide) { max-width:1200px; }
.mqs-inline-nav { border-block:1px solid var(--mqs-edge); background:var(--mqs-surface); }
.mqs-landing > .mqs-inline-nav { border:1px solid var(--mqs-edge); border-radius:12px; margin-block:0 15px; }
.mqs-inline-nav .mqs-shell { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding-block:8px; }
:is(.mqs-integrated,.mqs-landing) .mqs-inline-nav a {
    color:var(--mqs-ink) !important; padding:6px 9px; border-radius:6px; font-size:.88rem; font-weight:650;
    text-decoration:none; white-space:nowrap;
}
:is(.mqs-integrated,.mqs-landing) .mqs-inline-nav a:hover,
:is(.mqs-integrated,.mqs-landing) .mqs-inline-nav a[aria-current=page] { background:var(--mqs-selected); }
.mqs-inline-nav .mqs-workspace-link { margin-inline-start:auto; }
.mqs-crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:0 9px; margin:0 0 16px; font-size:.84rem; }
.mqs-crumbs > span { color:var(--mqs-muted); }
.mqs-page-intro { max-width:74ch; margin-block:0 23px; }
.mqs-page-intro p { margin:.6em 0; color:var(--mqs-muted); }
.mqs-main .mqs-service { max-width:75ch; }
.mqs-main .mqs-service ul { padding-inline-start:24px; }
.mqs-main .mqs-service .mqs-actions { margin-top:1.2em; }
:is(.mqs-integrated,.mqs-landing) :is(.mqs-card,.mqs-panel,.mqs-section details,.mqs-guide details,.mqs-question-preview,.mqs-structure,.mqs-filter) {
    background:var(--mqs-surface); color:var(--mqs-ink);
}
:is(.mqs-integrated,.mqs-landing) :is(h1,h2,h3,h4,label,legend,summary,strong,dt,th) { color:var(--mqs-ink) !important; }
:is(.mqs-integrated,.mqs-landing) .mqs-hero h1 { color:#f0fff9 !important; }
:is(.mqs-integrated,.mqs-landing) .mqs-hero-preview :is(strong,span) { color:#203b35 !important; }
:is(.mqs-integrated,.mqs-landing) .mqs-question-preview[data-theme] { background:var(--tbg); color:var(--tf); color-scheme:normal; }
:is(.mqs-integrated,.mqs-landing) .mqs-question-preview[data-theme] :is(h2,h3,strong,legend) { color:var(--tf) !important; }
:is(.mqs-integrated,.mqs-landing) :is(a:not(.mqs-btn),.mqs-crumbs a) { color:var(--mqs-accent) !important; }
:is(.mqs-integrated,.mqs-landing) :is(.mqs-btn,button) {
    color:var(--mqs-ink) !important; background:var(--mqs-control); border-color:var(--mqs-edge);
    text-transform:none; letter-spacing:normal; box-shadow:none;
}
:is(.mqs-integrated,.mqs-landing) :is(.mqs-btn.mqs-primary,button[type=submit]) {
    background:var(--mqs-action); color:var(--mqs-on-action) !important; border-color:var(--mqs-action);
}
.mqs-landing .mqs-hero .mqs-btn.mqs-primary { background:#bbefcd; color:#103c2d !important; }
.mqs-landing .mqs-hero .mqs-btn.mqs-secondary { background:#fff; color:#174b3e !important; }
:is(.mqs-integrated,.mqs-landing) :is(.mqs-btn,button):not(:disabled):hover { filter:brightness(.91); }
.mqs-integrated button:disabled { opacity:.62; border-style:dashed; }
.mqs-integrated button[aria-pressed=true], .mqs-integrated button[aria-current=true] { background:var(--mqs-selected); }
.mqs-integrated :is(input:not([type=checkbox],[type=radio]),select,textarea) {
    color:var(--mqs-ink) !important; background:var(--mqs-control); border-color:var(--mqs-edge);
}
.mqs-integrated :is(input,textarea)::placeholder { color:var(--mqs-muted); opacity:1; }
.mqs-integrated :is(.mqs-notice,dialog) { background:var(--mqs-soft); color:var(--mqs-ink); border-color:var(--mqs-edge); }
.mqs-integrated .mqs-status { color:var(--mqs-accent); min-height:1.1em; }
.mqs-integrated .mqs-status[data-state=error] { color:var(--mqs-danger); }
.mqs-template-cover {
    width:100%; min-height:70px; border-radius:9px; display:flex; align-items:flex-end; padding:12px;
    background:var(--tbg,#e5f1eb); color:var(--tf,#174338); border-inline-start:5px solid var(--swatch,#388b72);
    font-weight:750; font-size:.8rem; letter-spacing:.025em;
}
.mqs-table-scroll { overflow-x:auto; margin:16px 0; }
.mqs-table-scroll :is(th,td) { min-width:90px; padding:8px; border-bottom:1px solid var(--mqs-edge); background:var(--mqs-surface); }
.mqs-template-meta { display:flex; flex-wrap:wrap; gap:5px 12px; margin-block:6px 12px; color:var(--mqs-muted); font-size:.83rem; }
.mqs-native-title { font-size:clamp(1.7rem,3.8vw,2.7rem); margin-block:.3em .2em; }
:is(.mqs-participant,.mqs-question-preview)[data-pattern=grid] {
    background-image:linear-gradient(90deg,#7eaaa42b 1px,transparent 1px),linear-gradient(#7eaaa42b 1px,transparent 1px);
    background-size:24px 24px;
}
:is(.mqs-participant,.mqs-question-preview)[data-pattern=dots] {
    background-image:radial-gradient(#7eaaa454 1px,transparent 1px); background-size:18px 18px;
}
:is(.mqs-participant,.mqs-question-preview)[data-pattern=lines] {
    background-image:repeating-linear-gradient(130deg,transparent 0 17px,#7eaaa42b 17px 18px);
}
@media(max-width:650px) {
    .mqs-inline-nav .mqs-shell { gap:3px; padding-inline:8px; }
    :is(.mqs-integrated,.mqs-landing) .mqs-inline-nav a { padding:5px 7px; }
    .mqs-inline-nav .mqs-workspace-link { margin-inline-start:0; }
}

.mqs-custom-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}
.mqs-participant:has(.mqs-custom-background),
.mqs-question-preview:has(.mqs-custom-background) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.mqs-custom-logo { display: block; max-width: 180px; max-height: 84px; object-fit: contain; margin-bottom: 12px; }
.mqs-inline-visual { display: block; width: auto; max-width: 100%; max-height: 320px; object-fit: contain; margin-block: 12px; }
.mqs-upload-preview { display: block; width: auto; max-width: 160px; max-height: 100px; object-fit: contain; margin-block: 8px; }
[data-studio-font="serif"] { font-family: Georgia, "Times New Roman", serif; }
[data-studio-font="compact"] { font-family: "Segoe UI", Arial, sans-serif; line-height: 1.4; }
.mqs-participant progress, .mqs-question-preview progress { accent-color: var(--mqs-custom-accent, currentColor); }
.mqs-participant .quiz-answer:focus-visible { outline-color: var(--mqs-custom-accent, currentColor); }

@media print {
    .mqs-participant .mqs-custom-background, .mqs-participant .quiz-answer, .mqs-participant footer,
    .mqs-participant .mqs-private-note, .mqs-participant .mqs-print-button { display: none !important; }
    .mqs-page .mqs-shell { max-width: 100%; padding: 0; }
    .mqs-page .mqs-participant { color: #172121; background: #fff; padding: 0; border: 0; box-shadow: none; }
    .mqs-participant .mq4-result tr, .mqs-participant .mqs-inline-visual { break-inside: avoid; }
}

.mq-group-matrix { min-width: 0; max-width: 100%; }
.mq-group-table { width: 100%; border-collapse: collapse; }
.mq-group-table :is(th,td) { padding: .5rem; border-bottom: 1px solid currentColor; text-align: center; }
.mq-group-table th[scope="row"] { text-align: start; font-weight: normal; }
.mq-group-table caption { text-align: start; margin-bottom: .5rem; }
.mq-group-mobile-label { display: none; }
.mq-group-number { display: grid; gap: .35rem; margin-block: .75rem; }
.mq-group-number :is(input,small) { max-width: 100%; }
@media (max-width: 620px) {
    .mq-group-table :is(tbody,tr,th,td) { display: block; }
    .mq-group-table thead { position: absolute; clip: rect(0,0,0,0); overflow: hidden; width: 1px; height: 1px; }
    .mq-group-table tr { padding: .5rem 0; }
    .mq-group-table td { border: 0; text-align: start; padding: .32rem .5rem; }
    .mq-group-table td label { display: flex; align-items: center; gap: .6rem; }
    .mq-group-mobile-label { display: inline; }
}
