/* Scoped restaurant knowledge checks; shares the portal's existing colours. */
.restaurant-quiz{margin:28px 0;padding:22px;border:1px solid var(--line,#dfe5ef);border-radius:18px;background:var(--panel,#fff);color:var(--ink,#10203b);line-height:1.6;min-width:0;overflow-wrap:anywhere}
.restaurant-quiz[hidden],.restaurant-quiz [hidden],[data-restaurant-quiz-fallback][hidden]{display:none!important}
.restaurant-quiz h2{margin:0 0 12px;font-size:1.25rem;line-height:1.4;letter-spacing:-.015em}
.restaurant-quiz__intro{margin:0 0 20px;color:var(--muted,#59677d);font-size:.93rem}
.restaurant-quiz__form{display:grid;gap:18px}
.restaurant-quiz__question{min-inline-size:0;margin:0;padding:15px;border:1px solid var(--line,#dfe5ef);border-radius:12px;background:var(--panel,#fff)}
.restaurant-quiz__question legend{max-width:100%;padding:0 5px;font-size:.98rem;font-weight:700;line-height:1.55;white-space:normal}
.restaurant-quiz__options{display:grid;gap:8px;margin-top:8px}
.restaurant-quiz__option{display:flex;align-items:flex-start;gap:11px;min-height:46px;padding:10px 12px;border:1px solid var(--line,#dfe5ef);border-radius:10px;background:var(--surface,#f8faff);font-size:.93rem;font-weight:400;line-height:1.6;cursor:pointer}
.restaurant-quiz__option:hover{border-color:var(--brand,#2459d8)}
.restaurant-quiz__option:focus-within{outline:3px solid var(--brand,#2459d8);outline-offset:2px}
.restaurant-quiz__option input[type=radio]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:18px;padding:0;margin:4px 0 0;accent-color:var(--brand,#2459d8);box-shadow:none}
.restaurant-quiz__option span{min-width:0}
.restaurant-quiz__option.is-correct{border-color:#2a8067;background:#eff8f3}
.restaurant-quiz__option.is-incorrect{border-color:#b96153;background:#fff4f1}
.restaurant-quiz__question[data-state=missing]{border-color:#b96153}
.restaurant-quiz__feedback{margin:13px 0 0;padding:12px;border-radius:9px;background:var(--brand-soft,#edf3ff);font-size:.9rem;line-height:1.65}
.restaurant-quiz__question[data-state=missing] .restaurant-quiz__feedback{background:#fff4f1;color:#833326}
.restaurant-quiz__actions{display:flex;gap:10px;flex-wrap:wrap}
.restaurant-quiz__actions button{min-height:44px;font:inherit;font-size:.93rem;font-weight:700}
.restaurant-quiz__actions button:focus-visible,.restaurant-quiz__result:focus-visible{outline:3px solid var(--brand,#2459d8);outline-offset:3px}
.restaurant-quiz__status,.restaurant-quiz__noscript{margin:0;color:var(--muted,#59677d);font-size:.87rem;line-height:1.6}
.restaurant-quiz__error{margin:0;padding:12px;border:1px solid #d9a196;border-radius:10px;background:#fff4f1;color:#833326;font-size:.93rem}
.restaurant-quiz__result{margin:0;padding:18px;border:1px solid #cbdaf6;border-radius:12px;background:var(--brand-soft,#edf3ff);scroll-margin-block:22px}
.restaurant-quiz__result h3{margin:0 0 10px;font-size:1.1rem;line-height:1.45}
.restaurant-quiz__result p{margin:0 0 10px}
.restaurant-quiz__result p:last-child{margin-bottom:0}
.restaurant-quiz__scope{font-size:.86rem;color:var(--muted,#59677d)}
@media(max-width:600px){.restaurant-quiz{padding:16px;margin:22px 0;border-radius:14px}.restaurant-quiz h2{font-size:1.16rem}.restaurant-quiz__question{padding:11px}.restaurant-quiz__question legend{font-size:.94rem}.restaurant-quiz__option{padding:10px;gap:9px}.restaurant-quiz__actions{align-items:stretch}.restaurant-quiz__actions button{flex:1 1 150px}.restaurant-quiz__result{padding:14px}}
@media(forced-colors:active){.restaurant-quiz__option.is-correct,.restaurant-quiz__option.is-incorrect,.restaurant-quiz__question[data-state=missing]{border:2px solid Highlight}.restaurant-quiz__option input[type=radio]{forced-color-adjust:auto}}
@media print{.restaurant-quiz__actions,.restaurant-quiz__status{display:none}.restaurant-quiz{box-shadow:none;padding:12px}.restaurant-quiz__question{break-inside:avoid}}

/* Restaurant inputs use the shared planner controls and worker lifecycle. */
[data-practical-planner="ettermi-profit"] .dgr-field-group{margin-block:24px;padding-top:20px;border-top:1px solid var(--line,#dfe5ef)}
[data-practical-planner="ettermi-profit"] .dgr-field-group:first-child{margin-top:0;padding-top:0;border-top:0}
[data-practical-planner="ettermi-profit"] .dgr-field-group h3{font-size:1.06rem;line-height:1.45;margin:0 0 8px}
[data-practical-planner="ettermi-profit"] .dgr-field-group>p{font-size:.9rem;line-height:1.65;color:var(--muted,#59677d);margin:0 0 16px}
[data-practical-planner="ettermi-profit"] .dgp-field{min-width:0}
[data-practical-planner="ettermi-profit"] .dgp-field small{line-height:1.6}
[data-practical-planner="ettermi-profit"] [data-planner-scalar][hidden]{display:none!important}
[data-practical-planner="ettermi-profit"] .dgp-row-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){[data-practical-planner="ettermi-profit"] .dgp-row-fields{grid-template-columns:minmax(0,1fr)}[data-practical-planner="ettermi-profit"] .dgr-field-group{margin-block:20px;padding-top:18px}}
