.eco-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.eco-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;margin:4px 8px 4px 0;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface-soft);color:var(--fog);font:700 15px/1.4 inherit;cursor:pointer;text-decoration:none}.eco-button[aria-selected="true"]{background:var(--orange);color:#121b2b;border-color:#c2410c}.eco-button:hover{border-color:var(--orange)}.eco-button:focus-visible,.eco-qa select:focus-visible,.eco-qa summary:focus-visible{outline:3px solid var(--eco-focus);outline-offset:3px}.eco-panel{padding:clamp(18px,4vw,32px);border:1px solid var(--line);border-radius:24px;background:var(--surface-1);color:var(--fog);max-width:900px}.eco-panel h2{font-size:24px;font-weight:800;margin:0 0 12px}.eco-panel h3{font-weight:800}.eco-panel p{line-height:1.65;margin:10px 0}.eco-feedback{padding:18px;border-radius:16px;background:var(--surface-soft);border:1px solid var(--line);margin-top:18px!important}.eco-status{color:var(--muted);font-size:14px}.eco-qa{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}.eco-qa summary{min-height:44px;cursor:pointer;display:list-item;padding:10px 0}.eco-qa select{display:block;max-width:100%;min-height:44px;margin-top:10px;padding:8px;background:var(--surface-1);color:var(--fog);border:1px solid var(--line-strong);border-radius:8px}
.eco-field{display:block;margin:16px 0;font-weight:600}.eco-field input,.eco-field textarea,.eco-field select,.eco-question select{display:block;width:100%;max-width:100%;min-height:44px;margin-top:8px;padding:12px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-soft);color:var(--fog);font:inherit;box-sizing:border-box}.eco-field textarea{min-height:110px;resize:vertical}.eco-field input:focus-visible,.eco-field textarea:focus-visible,.eco-field select:focus-visible,.eco-question select:focus-visible{outline:3px solid var(--eco-focus);outline-offset:3px}.eco-card,.eco-question{padding:20px;margin:18px 0;border:1px solid var(--line);border-radius:16px;min-width:0}.eco-card h3{font-size:18px}.eco-reading,.eco-chat p{white-space:pre-wrap;overflow-wrap:anywhere}.eco-chat{max-height:500px;overflow:auto}.eco-chat p{padding:12px;background:var(--surface-soft);border-radius:12px}.eco-button:disabled{opacity:.55;cursor:default}.eco-panel h4{font-weight:700;margin-top:20px}.eco-feedback:empty{display:none}
.eco-panel .katex-display{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:4px 0}.eco-panel .katex{font-size:1.05em}
.eco-math-choices{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.eco-math-choices li{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);font-weight:400;overflow-wrap:anywhere}
.eco-panel{width:100%;box-sizing:border-box;min-width:0;overflow-wrap:anywhere}.eco-panel .eco-card{background:var(--surface-soft);box-sizing:border-box}.eco-panel .eco-field,.eco-question legend{font-size:15px;line-height:1.6}.eco-question legend{max-width:100%;padding:0 6px;white-space:normal;overflow-wrap:anywhere}.eco-tabs .eco-field{margin:4px 0;flex:1 1 150px;min-width:0}.eco-tabs .eco-button[aria-pressed="true"]{background:var(--orange);color:#121b2b;border-color:#c2410c}.eco-button{font-family:inherit;font-size:15px;font-weight:700;line-height:1.4;max-width:100%;white-space:normal}.eco-chat{overscroll-behavior:contain}.eco-field input:disabled,.eco-field select:disabled{opacity:.75;cursor:default}.eco-panel .eco-question select{font-size:16px}.eco-panel .eco-feedback{font-size:14px}.eco-panel .eco-field select option{background:var(--surface-1);color:var(--fog)}
@media(max-width:480px){.eco-panel{padding:18px;border-radius:20px}.eco-card,.eco-question{padding:16px;margin:16px 0}.eco-tabs{gap:6px}.eco-tabs .eco-button{padding:10px 12px;margin:0;font-size:13px}.eco-tabs .eco-field{flex-basis:100%}.eco-field input,.eco-field textarea,.eco-field select{font-size:16px}.eco-panel h2{font-size:22px}.eco-chat{max-height:55svh}}
