:root{font-family:Segoe UI,Arial,sans-serif;color:#0b1f2a;background:#dbe3ee}*{box-sizing:border-box}body{margin:0}p{font-size:1.2em}.app-bg{min-height:100vh;background:linear-gradient(#73d2c6,#9fc7da 35%,#dbe3ee)}.app-header{display:flex;align-items:center;gap:1rem;min-height:68px;padding:0 1rem;border:1px solid #2f6f7e;background:linear-gradient(180deg,#d9f8f2,#c8ede6 40%,#7ecfc3)}.app-header h1{margin:0;font-size:clamp(1.7rem,2.5vw,2.8rem)}.app-title-button{border:none;background:transparent;padding:0;cursor:pointer}.menu-button{border:none;background:transparent;font-size:2.3rem;line-height:1;cursor:pointer}.page-content{padding:1.5rem}.panel{background:#bde9d9;border:4px solid #57b9b3;border-radius:16px;padding:1rem;box-shadow:8px 8px #405f6340}.panel.large{max-width:860px}.primary-button,.secondary-button{border:none;border-radius:14px;font-size:1.9rem;font-weight:700;padding:.5rem 1.5rem;cursor:pointer}.primary-button{background:#3ca16c;color:#fff}.primary-button:disabled{background:#9ed0b9;cursor:not-allowed}.secondary-button{background:#70beac;color:#fff}.welcome-layout{display:grid;gap:2rem}.welcome-layout .primary-button{justify-self:center;margin-top:1rem}.context-page{display:grid;gap:1rem}.context-grid{display:grid;grid-template-columns:repeat(3,minmax(210px,1fr));gap:1rem}.context-grid.two-items{grid-template-columns:repeat(3,minmax(210px,1fr))}.context-grid.two-items>:nth-child(2){grid-column:3}.context-card{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:.8rem;padding:1rem;border:4px solid transparent;border-radius:12px;background:#33c0b2;color:#001c20;cursor:pointer;box-shadow:8px 8px #405f6340}.context-card.selected{border-color:#49628c}.context-card h3{margin:0 0 .4rem;font-size:2rem}.context-card p{margin:0;font-size:1.4rem}.context-icon{font-size:2.8rem}.context-actions{display:flex;justify-content:space-between;align-items:center;gap:1rem}.detail h3{margin-top:0}.meta-grid{display:grid;gap:.5rem}.workflow-layout{display:grid;grid-template-columns:110px minmax(0,1fr);gap:1.5rem;min-height:calc(100vh - 130px);align-items:start}.step-rail{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;align-self:stretch;padding:.5rem 0}.step-rail:before{content:"";position:absolute;top:calc(.5rem + 36px);bottom:calc(.5rem + 36px);left:50%;transform:translate(-50%);width:3px;background:#39424f;opacity:.75}.step-node{position:relative;z-index:1;width:72px;height:72px;border-radius:50%;border:3px solid #39424f;padding:0;display:grid;place-items:center;font-size:2rem;background:#d3e3ef;cursor:pointer}.step-node.active{background:#40c23b}.workflow-main{display:grid;gap:1rem;align-content:start}.intro h2{margin:0 0 .5rem}.step-body{display:grid;gap:1rem;align-content:start}.question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:stretch}.prompt{background:#3ac5b8;display:flex;flex-direction:column}.prompt h3{margin-top:0;margin-bottom:.6rem;min-height:5.2rem}.prompt textarea{flex:1;min-height:240px;max-height:240px;overflow-y:auto;resize:none}textarea{width:100%;margin-top:.6rem;padding:.8rem;border-radius:10px;border:2px solid #2f4d63;font-family:inherit;font-size:1rem;resize:vertical;background:#e9edf3}.validation-message{margin:.6rem 0 0;color:#8b1212;font-weight:600}.button-row{display:flex;justify-content:center;gap:1rem}.button-row.nav{justify-content:space-between}.side-note{max-width:none}.error-panel{max-width:540px}.side-note-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.question-preview{margin:0;white-space:pre-wrap}.codap-embed{border:3px solid #57b9b3;border-radius:16px;overflow:hidden;box-shadow:8px 8px #405f6340;background:#f1fbf8;min-height:360px;height:520px;max-height:85vh;resize:vertical;overflow:auto}.codap-embed iframe{width:100%;height:100%;border:0;display:block}.codap-resize-hint{margin:0;font-size:.95rem;color:#2a4b52}.codap-bridge-info{background:#cdeee6}.codap-bridge-url{margin:0;font-family:Courier New,Courier,monospace;font-size:.95rem;color:#16363b;word-break:break-all}.chat-assistant{position:fixed;right:1rem;bottom:1rem;display:grid;gap:.6rem;justify-items:end;z-index:20}.chat-launcher{border:none;border-radius:999px;background:#2eb9aa;color:#03323a;font-weight:700;font-size:1rem;padding:.65rem .95rem;cursor:pointer;box-shadow:0 8px 20px #04212640;display:flex;align-items:center;justify-content:center;width:80px;height:80px;padding:0}.chat-panel{width:min(420px,calc(100vw - 2rem));max-height:min(72vh,640px);background:#f1fbf8;border:3px solid #2eb9aa;border-radius:14px;padding:.75rem;box-shadow:0 10px 24px #04212640;display:grid;grid-template-rows:auto 1fr auto;gap:.65rem}.chat-panel-header{display:flex;align-items:center;justify-content:space-between}.chat-panel-header h3{margin:0;font-size:1.05rem}.chat-close{border:none;border-radius:8px;background:#d9ece9;color:#153238;padding:.25rem .45rem;cursor:pointer;font-weight:700}.chat-messages{overflow:auto;display:grid;gap:.5rem;padding:.25rem .1rem}.chat-message{border-radius:10px;padding:.55rem .65rem;max-width:92%}.chat-message-content{line-height:1.35}.chat-md-paragraph{margin:0}.chat-md-heading{margin:0 0 .35rem;font-size:1rem}.chat-md-list{margin:0;padding-left:1.2rem}.chat-md-quote{margin:0;padding-left:.65rem;border-left:3px solid #78b4ad}.chat-md-separator{border:0;border-top:1px solid #9accc6;margin:.15rem 0}.chat-message.assistant{background:#dff4ef;justify-self:start}.chat-message.user{background:#2eb9aa;color:#052127;justify-self:end}.chat-typing{display:inline-flex;align-items:center;gap:.35rem;min-height:1.2rem}.chat-typing-dot{width:.45rem;height:.45rem;border-radius:50%;background:#3b808c;animation:chatTypingPulse 1s ease-in-out infinite}.chat-typing-dot:nth-child(2){animation-delay:.16s}.chat-typing-dot:nth-child(3){animation-delay:.32s}@keyframes chatTypingPulse{0%,80%,to{transform:translateY(0);opacity:.35}40%{transform:translateY(-3px);opacity:1}}.chat-input-row{display:grid;grid-template-columns:1fr auto;gap:.5rem;align-items:end}.chat-input{margin:0;min-height:72px}.chat-send{border:none;border-radius:10px;background:#2b8568;color:#fff;font-weight:700;padding:.65rem .85rem;cursor:pointer}.chat-send:disabled{opacity:.6;cursor:not-allowed}.chat-icon{width:150px;height:150px;display:grid;place-items:center}.chat-icon img{width:100%;height:100%;object-fit:contain;display:block}@media (max-width: 980px){.context-grid,.question-grid,.side-note-grid,.workflow-layout{grid-template-columns:1fr}.step-rail{flex-direction:row;flex-wrap:wrap;justify-content:flex-start}.step-rail:before{display:none}.chat-assistant{right:.75rem;left:.75rem;justify-items:stretch}.chat-launcher{width:100%;justify-content:center}.chat-panel{width:100%;max-height:62vh}.chat-input-row{grid-template-columns:1fr}}
