@import url('/base.css');
:root{font-family:"Segoe UI","Microsoft JhengHei",sans-serif;color:#322b48;background:#f9f8fc;font-synthesis:none;--purple:#7354bb;--ink:#322b48;--muted:#70677f;--line:#e8e2ef;--soft:#f0eafa;--peach:#fff0e7;--mint:#e6f4ef}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 0 20%,#efebff 0,transparent 46%),radial-gradient(ellipse at 100% 60%,#fff1e9 0,transparent 40%),#faf9fc;min-height:100vh}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input,textarea{outline-offset:5px}button:focus-visible,a:focus-visible{outline:3px solid #7960b5}a{color:var(--purple)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.85rem,3.2vw,2.8rem);line-height:1.4;letter-spacing:.02em;font-weight:750;margin-bottom:14px}h2{font-size:1.45rem;line-height:1.5}h3{font-size:1.15rem;line-height:1.5}p{line-height:1.9}button{min-height:48px}input,textarea{border:1px solid #d7cbe4;background:#fff;border-radius:14px;padding:14px 16px;min-height:48px;width:100%;color:var(--ink);font-size:1rem}textarea{resize:vertical;line-height:1.7;min-height:100px}input:focus,textarea:focus{outline:2px solid #a08aca}label{display:block;line-height:1.6}small{font-size:.875rem;line-height:1.7;color:var(--muted)}.topbar{height:96px;max-width:1280px;margin:auto;display:flex;align-items:center;gap:20px;padding:0 48px}.brand{text-decoration:none;font-weight:750;font-size:1.2rem;display:flex;gap:12px;align-items:center}.brand:first-letter{font-size:2rem}.topnote{margin-left:auto;color:var(--muted);font-size:.9rem}.badge{display:inline-flex;padding:6px 12px;border-radius:20px;background:#fff0d3;color:#72521c;font-size:.875rem}.topbar [hidden]{display:none}main{max-width:1120px;min-height:calc(100vh - 175px);margin:auto;padding:28px 40px 48px}footer{max-width:1200px;padding:24px 40px;margin:auto;display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:.875rem;border-top:1px solid var(--line)}.eyebrow{color:var(--purple);font-size:.85rem;letter-spacing:.15em;font-weight:700;margin-bottom:18px}.sub{color:var(--muted);font-size:1.05rem;line-height:1.9;max-width:650px}.hero{max-width:790px;margin:4vh auto;text-align:center;padding:32px 20px}.hero h1{font-size:clamp(2.5rem,5vw,4rem);letter-spacing:.04em;margin:18px 0}.hero .sub{margin:20px auto 30px}.hero-symbol{display:inline-grid;place-items:center;font-size:4rem;width:124px;height:124px;border-radius:38px;background:linear-gradient(140deg,#e0d5ff,#fce6df);box-shadow:0 20px 70px #8a73b51a;transform:rotate(-7deg);margin:8px 0 25px}.hero .pill-note{margin-top:28px}.pill-note{color:var(--muted);font-size:.9rem}.pill-note span{display:inline-block;margin:0 8px}.primary,.secondary,.quiet{border:0;padding:14px 24px;border-radius:15px;font-weight:650;line-height:1.6;transition:transform .15s,background .15s}.primary{background:var(--purple);color:white;box-shadow:0 7px 18px #7653b329}.primary:hover{background:#6343a7;transform:translateY(-1px)}.hero .primary{min-width:245px;padding:18px 34px;font-size:1.1rem}.secondary{background:#fff;color:var(--purple);border:1px solid #d8cbe8}.secondary:hover{background:#f7f2ff}.quiet{color:var(--muted);background:transparent;padding:12px}.quiet:hover{background:#eee8f6}.progress{display:flex;gap:10px;align-items:center;margin:0 0 30px;color:var(--muted);font-size:.875rem}.progress i{width:9px;height:9px;background:#ded8e8;border-radius:50%}.progress i.active{background:var(--purple);width:24px;border-radius:8px}.progress i.past{background:#b9a6d9}.progress span{margin-left:10px}.page-title{margin-bottom:28px}.cards{display:grid;gap:16px}.interest-grid{grid-template-columns:repeat(3,1fr)}.choice-card{text-align:left;border:1.5px solid var(--line);background:#fff;border-radius:24px;min-height:192px;padding:24px;position:relative;box-shadow:0 6px 20px #4d2d7510;transition:.18s;color:var(--ink)}.choice-card:hover{transform:translateY(-3px);border-color:#b8a3d5}.choice-card.selected{border-color:var(--purple);background:#f2edff;box-shadow:0 0 0 2px #e8dffa}.choice-card .emoji{font-size:2rem;display:inline-grid;place-items:center;background:var(--soft);border-radius:18px;width:64px;height:64px;margin-bottom:18px}.choice-card:nth-child(2) .emoji{background:var(--peach)}.choice-card:nth-child(3) .emoji{background:#e9effb}.choice-card:nth-child(4) .emoji{background:var(--mint)}.choice-card strong{display:block;font-size:1.2rem;margin-bottom:9px}.choice-card p{margin-bottom:0;color:var(--muted);font-size:.95rem;line-height:1.7}.checkmark{position:absolute;right:20px;top:20px;width:23px;height:23px;border:1px solid #d6cde0;border-radius:50%;font-size:14px;text-align:center;line-height:21px}.selected .checkmark{background:var(--purple);border-color:var(--purple);color:white}.nav{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}.nav .right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.intro-grid{grid-template-columns:1fr 1fr}.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:0 5px 24px #64478206}.intro-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.intro-card h2{margin-bottom:0}.intro-card p{margin:0;color:var(--muted);font-size:1rem}.intro-card button{margin-top:auto}.result-text{white-space:pre-wrap;line-height:1.9;background:#f4f0fb;border-radius:15px;padding:18px;width:100%;overflow-wrap:anywhere}.callout{background:#efe9fa;border:1px solid #e0d4f3;padding:22px 25px;border-radius:20px;margin:24px 0;line-height:1.85}.workspace{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:start}.prompt-preview{background:linear-gradient(130deg,#f0e9ff,#fff0e9);border:1px solid #e4d8ef;border-radius:23px;padding:26px;margin-bottom:18px;overflow-wrap:anywhere}.prompt-preview p{margin:12px 0 0;font-size:1.1rem;line-height:1.95}.prompt-label{color:var(--purple);font-weight:700;font-size:.9rem}.field{margin-bottom:24px}.field:last-child{margin-bottom:0}.field h3{margin-bottom:12px}.options{display:flex;gap:9px;flex-wrap:wrap}.option{border:1px solid #e1d9e9;background:#fff;border-radius:13px;padding:11px 15px;min-height:47px;font-size:.95rem;line-height:1.55;color:#5f546e}.option[aria-pressed=true]{background:#eee6fc;color:#563694;border-color:#9c7bc8;box-shadow:inset 0 0 0 1px #b59bd7}.field input,.field textarea{margin-top:12px}.live-column{position:sticky;top:24px}.wide{width:100%}.result{margin-top:18px}.art{width:100%;max-height:510px;object-fit:contain;border-radius:18px;display:block;background:#ede7f5;aspect-ratio:1}.art-caption{margin:12px 0;color:var(--muted);font-size:.875rem}.result-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.result-actions .option{flex:1}.download{display:block;margin-top:14px;text-align:center;text-decoration:none;font-size:.95rem;padding:12px;border-radius:12px;background:#f2eff7}.placeholder{min-height:235px;border:1px dashed #cfc3e3;border-radius:22px;display:grid;place-content:center;text-align:center;color:var(--muted);padding:28px;background:#fff8}.placeholder span{font-size:2.5rem;margin-bottom:15px}.loader{min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(130deg,#f0e9ff,#fff2e5);border-radius:22px;padding:24px;text-align:center;line-height:1.8}.sparkles{font-size:3.5rem;animation:breathe 1.8s ease-in-out infinite;margin-bottom:20px}.error{background:#fff1e9;border:1px solid #efd6c8;border-radius:18px;padding:24px;line-height:1.9}.error p{margin-bottom:14px}.compare{display:grid;gap:14px;margin:16px 0}.version{border:1px solid var(--line);border-radius:18px;padding:20px;background:#fff}.version.selected{border:2px solid #a78ace;background:#f5f0ff}.version p{overflow-wrap:anywhere;white-space:pre-wrap}.complete{text-align:center;max-width:750px;margin:auto;padding:20px}.complete .art{max-width:440px;margin:24px auto}.feedback-grid{display:grid;gap:22px}.feedback-grid .field{margin:0}.feedback-hero{display:grid;grid-template-columns:1fr 240px;gap:24px;align-items:center;margin-bottom:28px}.feedback-hero .art{max-height:240px}.feedback-hero h1{font-size:2.1rem}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;background:#403250;color:white;padding:14px 24px;border-radius:16px;max-width:90vw;line-height:1.6;box-shadow:0 10px 30px #0002}.save-status{color:#876524;font-size:.875rem;margin-top:12px}.teacher{max-width:1060px}.login{max-width:430px;margin:7vh auto}.login form{display:grid;gap:16px}.teacher-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.teacher-list{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:25px}.session-card{text-align:left;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}.session-card:hover{border-color:#ad8ecd}.session-card h3{margin:12px 0}.session-card p{margin:0;color:var(--muted)}.toggle{display:flex;gap:10px;align-items:center}.toggle input{width:21px;min-height:21px;accent-color:var(--purple)}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-grid .span{grid-column:1/-1}.detail-grid ul{padding-left:20px;line-height:1.9}.detail-grid p{white-space:pre-wrap;overflow-wrap:anywhere}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.stat{padding:20px;border-radius:18px;background:#eee8f7}.stat strong{display:block;font-size:1.8rem;color:var(--purple);margin-bottom:8px}.history-item{padding:16px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border-bottom:0}.history-item p{margin:10px 0}.dwell{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.empty{padding:40px;text-align:center;color:var(--muted)}.activity{max-height:400px;overflow:auto}.small-button{padding:9px 15px;font-size:.9rem}.privacy{font-size:.875rem;color:var(--muted);margin-top:18px}.finish-note{font-size:1.3rem;line-height:2.1}.inline-error{color:#934f31}.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.restore-note{margin-top:14px;color:var(--muted);font-size:.9rem}
@keyframes breathe{0%,100%{transform:scale(.92) rotate(-8deg);opacity:.6}50%{transform:scale(1.08) rotate(8deg);opacity:1}}
@media(max-width:850px){.topbar{padding:0 28px;height:80px}main{padding:24px 28px 40px}.interest-grid{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:1fr}.live-column{position:static}.workspace .art{max-height:480px}.hero{margin:3vh auto}.stats{grid-template-columns:repeat(2,1fr)}.feedback-hero{grid-template-columns:1fr 190px}}
@media(max-width:520px){.topbar{padding:0 20px;gap:12px;height:76px}.brand{font-size:1rem}.topnote{display:none}.badge{margin-left:auto}main{padding:18px 20px 32px}.hero{padding:28px 0;margin:0}.hero h1{font-size:2.5rem}.hero-symbol{height:110px;width:110px}.hero .sub{font-size:1rem}.interest-grid,.intro-grid,.teacher-list,.detail-grid{grid-template-columns:1fr}.choice-card{min-height:150px;padding:21px}.choice-card .emoji{float:left;margin:0 18px 22px 0;width:55px;height:55px;font-size:1.8rem}.choice-card strong{padding-right:22px}.choice-card p{clear:both}.checkmark{right:16px;top:22px}.page-title{margin-bottom:24px}.panel{padding:21px}.nav{align-items:stretch}.nav .right{justify-content:flex-end}.nav .primary{padding:13px 17px}.nav .quiet{padding:10px 0}.feedback-hero{grid-template-columns:1fr}.feedback-hero .art{max-width:220px;margin:auto}.detail-grid .span{grid-column:auto}.teacher-head{align-items:flex-start}.teacher-head h1{font-size:1.7rem}footer{padding:22px 20px}footer span:last-child{display:none}.option{padding:10px 13px}.progress{margin-bottom:24px}.sub{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
