:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183337;background:#f4f8f8;font-size:16px;line-height:1.5;--accent:#006c64;--line:#c4d5d3}*{box-sizing:border-box}body{margin:0}a{color:#00645d}button,input,select,textarea{font:inherit}button{background:white;border:1px solid #9bb8b3;border-radius:9px;padding:9px 14px;min-height:44px;cursor:pointer;color:#163c38}button:hover{background:#e4f2ef}button:disabled{opacity:.5;cursor:default}button.primary{background:#006c64;color:white;border-color:#006c64}button.danger{color:#9c2424}input,textarea,select{width:100%;border:1px solid #9bb8b3;background:white;color:#183337;border-radius:8px;padding:10px}textarea{resize:vertical;min-height:64px}label{display:block;font-weight:600}label input,label textarea,label select{margin-top:6px}h1,h2,h3,p{margin:0 0 12px}h1{font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.15;letter-spacing:-.035em}h2{font-size:1.35rem}h3{font-size:1.1rem}header{padding:18px 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px;background:#fff}.brand{display:flex;align-items:center;gap:12px;font-size:1.4rem;text-decoration:none;font-weight:750}.brand img{border-radius:9px}header>span{color:#48645f}main{max-width:1500px;margin:auto;padding:36px 4%}.intro{display:flex;justify-content:space-between;gap:32px;align-items:center;padding:20px 0 32px}.eyebrow{font-size:.875rem;letter-spacing:.1em;color:#00645d;font-weight:700}.local{max-width:330px;border-left:3px solid #58a99a;padding-left:18px}.local p,.hint{font-size:.875rem;color:#4b6562}.layout{display:grid;grid-template-columns:265px minmax(0,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:white}aside{background:#edf4f2;padding:22px;border-right:1px solid var(--line)}aside>button{width:100%;margin-top:12px}.aside-title{display:flex;justify-content:space-between;gap:8px;align-items:start}.aside-title h2{margin-top:8px}#decks{margin:18px 0}#decks button{display:flex;width:100%;justify-content:space-between;margin-bottom:7px;text-align:left;overflow-wrap:anywhere}#decks button[aria-current=true]{background:#006c64;color:white}#workspace{padding:28px;min-width:0}.deck-heading{display:flex;justify-content:space-between;gap:20px}.tools{display:flex;gap:6px;align-content:start;flex-wrap:wrap}#quick{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:22px 0;border-bottom:1px solid var(--line)}#quick button{justify-self:start}#quick .hint{align-self:center;margin:0}.selection-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:20px 0}.check{display:flex;gap:8px;align-items:center;font-weight:400}.check input{width:20px;height:20px;margin:0}.card{border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:12px;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:12px}.card p{white-space:pre-wrap;overflow-wrap:anywhere}.card .answer{color:#3a5853;border-top:1px solid #dae5e2;padding-top:10px}.card .tag{font-size:.875rem;color:#8c3030}.card img{max-width:100%;max-height:180px}.card audio{max-width:100%}.card button{align-self:start}.exports{margin-top:24px;border-top:1px solid var(--line);padding-top:20px;display:flex;flex-wrap:wrap;gap:10px;align-items:end}.exports label{max-width:180px}.exports~p{margin-top:14px}#status{min-height:28px;color:#00584f;font-weight:600}footer{display:flex;gap:22px;padding:26px 0;flex-wrap:wrap}.skip{position:absolute;left:-9999px}.skip:focus{left:10px;background:white;padding:12px;z-index:5}:focus-visible{outline:3px solid #bd6b00;outline-offset:3px}dialog{width:min(780px,95vw);max-height:90vh;border:1px solid #9bb8b3;border-radius:16px;padding:28px;color:#183337}dialog::backdrop{background:#102e32aa}dialog label{margin:14px 0}.dialog-actions{display:flex;gap:12px;justify-content:end;margin-top:22px}#modal-content pre{white-space:pre-wrap;max-height:200px;overflow:auto}#modal-content input[type=file]{padding:16px}#modal-content .preview{max-height:280px;overflow:auto;background:#edf4f2;padding:15px;border-radius:8px}#modal-content .preview p{white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:24px;background:#f1f7f5;border-radius:12px}@media(max-width:900px){.layout{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid var(--line)}#decks{display:flex;gap:8px;flex-wrap:wrap}#decks button{width:auto;gap:12px}aside>button{width:auto;margin-right:8px}header>span{display:none}.intro{align-items:start}.deck-heading{display:block}.tools{margin-bottom:16px}}@media(max-width:580px){main{padding:18px 12px}.intro{display:block}.local{max-width:none;margin-top:20px}#workspace{padding:18px}#quick{grid-template-columns:1fr}.card{grid-template-columns:24px minmax(0,1fr)}.card>button{grid-column:2;justify-self:start}.selection-tools button{padding:8px}.exports button{flex-grow:1}header{padding:14px}dialog{padding:20px}}
