.study-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.study-grid button,.study-rating button{min-height:44px;white-space:normal;margin:0}.study-tools{margin-bottom:14px}.study-guide h3{margin:18px 0 10px}.study-step{border:1px solid var(--line,#b8bdb8);border-radius:12px;padding:12px;margin:10px 0;overflow-wrap:anywhere}.study-step summary{cursor:pointer;min-height:34px;display:flex;gap:10px;align-items:center}.study-step summary::after{content:'⌄';margin-left:auto;opacity:.65}.study-step[open] summary::after{content:'⌃'}.step-number{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid currentColor;flex-shrink:0}.study-visual{border:1px solid var(--line,#b8bdb8);border-radius:14px;margin:16px 0;padding:12px}.study-graph{display:block;width:100%;height:auto;max-height:240px;overflow:hidden}.study-label,.study-output{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.study-visual input[type=range]{width:100%;min-height:36px}.study-quote{padding:12px;border-left:3px solid currentColor;margin-bottom:12px}.study-flash{border:1px solid var(--line,#b8bdb8);border-radius:18px;padding:24px 16px;min-height:220px;display:flex;flex-direction:column;justify-content:center;text-align:center;cursor:pointer;margin:12px 0;overflow-wrap:anywhere}.study-rating{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.study-map{display:flex;flex-direction:column;align-items:center;gap:14px;padding:8px 0 20px}.study-root{padding:14px;border:2px solid currentColor;border-radius:12px;text-align:center;max-width:100%;overflow-wrap:anywhere}.study-branch{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:9px;border:1px solid var(--line,#b8bdb8);border-radius:10px;width:min(95%,420px)}.study-branch::before{content:'';position:absolute;top:-15px;left:50%;height:14px;border-left:1px solid currentColor;opacity:.5}.study-branch button{margin:0;white-space:normal;max-width:100%;overflow-wrap:anywhere}.study-selection{position:fixed;z-index:40;bottom:calc(100px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:8px;border:1px solid currentColor;border-radius:12px;background:var(--paper,#fff);box-shadow:0 5px 20px #0003;max-width:95vw}.study-selection[hidden]{display:none}.study-selection button{margin:0;min-height:42px}.study-status{margin:10px 0}.study-step textarea{min-height:72px}
html[data-theme=night] .study-selection{background:#202a30}

.study-map{align-items:flex-start;position:relative;padding-left:12px}.study-root{align-self:flex-start}.study-branch{margin-left:20px;width:calc(100% - 20px);justify-content:flex-start}.study-branch::before{top:50%;left:-21px;width:20px;height:1px;border-left:0;border-top:1px solid currentColor}.study-branch::after{content:"";position:absolute;left:-21px;top:-15px;bottom:-15px;border-left:1px solid currentColor;opacity:.5}.study-branch:last-child::after{bottom:50%}.study-guide button,.study-step button{margin-top:8px}
