:root{font-family:Poppins,"Noto Sans Thai",Arial,sans-serif;color:#23312d;background:#f6f2e9}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:74px;border-bottom:1px solid #d8e2d6;display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1100px)/2))}.brand{display:flex;align-items:center;gap:10px;color:#123c32;font-weight:600;font-size:23px;letter-spacing:-.035em}.brand img{display:block;width:35px;height:39px;object-fit:contain}.main{width:min(1100px,calc(100% - 40px));margin:40px auto 80px;flex:1}.join{width:min(100%,530px);margin:20px auto;background:#fffdf8;border:1px solid #d8e2d6;border-radius:16px;padding:32px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:700;color:#2f6b5f;margin-bottom:12px}.join h1,.heading h1{color:#123c32;font-size:clamp(30px,4vw,43px);line-height:1.2;margin:0 0 14px}.join p,.closed p{color:#495b52;font-size:18px;line-height:1.6;margin:0 0 25px}.join label{display:block;font-weight:600;margin:18px 0 8px}.join input,.compose textarea{display:block;width:100%;border:1px solid #b6c9b9;border-radius:10px;background:#fff;color:#23312d;padding:13px 14px;outline:none}.join input:focus,.compose textarea:focus{border-color:#2f6b5f;box-shadow:0 0 0 3px #2f6b5f24}.primary{border:0;border-radius:10px;background:#123c32;color:#fff;padding:13px 20px;min-height:48px;font-weight:600}.primary:hover:not(:disabled){background:#2f6b5f}.primary:disabled{opacity:.52;cursor:not-allowed}.join .primary{width:100%;margin-top:22px}.heading{display:flex;justify-content:space-between;align-items:start;gap:24px;padding:10px 0 28px;border-bottom:1px solid #d8e2d6;margin-bottom:28px}.heading h1{max-width:850px;margin-bottom:0}.heading-actions{display:flex;align-items:center;gap:10px}.code{background:#d8e2d6;color:#123c32;border-radius:8px;padding:8px 12px;font-weight:700;letter-spacing:.12em}.print{border:1px solid #b6c9b9;border-radius:8px;background:#fffdf8;color:#123c32;padding:9px 13px;font-weight:600;white-space:nowrap}.participant-layout{display:grid;grid-template-columns:minmax(0,420px) 1fr;gap:28px;align-items:start}.compose,.closed{background:#fffdf8;border:1px solid #d8e2d6;border-radius:16px;padding:27px}.compose h2,.my-cards h2,.closed h2,.results h2{font-size:25px;letter-spacing:-.035em;margin:0 0 10px;color:#123c32}.compose textarea{resize:vertical;margin-top:13px}.compose-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;color:#56685d;font-size:13px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.card{background:#fffdf8;border:1px solid #d8e2d6;border-radius:14px;padding:17px 18px;min-width:0}.card p{font-size:18px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}.card small{color:#56685d}.empty{border:1px dashed #b6c9b9;border-radius:12px;color:#56685d;padding:32px;text-align:center;grid-column:1/-1}.closed{max-width:800px;margin:auto}.results-head{display:flex;justify-content:space-between;align-items:start;gap:18px;margin-bottom:20px}.groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));align-items:start;gap:18px}.group{background:#edf2eb;border:1px solid #d8e2d6;border-radius:16px;padding:18px;min-height:150px}.group-head{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:14px}.group-head h3{font-size:18px;line-height:1.3;margin:0}.group-head span{background:#d8e2d6;border-radius:20px;padding:3px 8px;font-size:13px}.group .card{margin-top:10px}.error{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:10;background:#fff0ee;border:1px solid #e8a59c;border-radius:10px;color:#9b2921;padding:13px 17px;max-width:min(90vw,600px)}.loading{color:#56685d;text-align:center;margin:100px auto}footer{margin-top:auto;border-top:1px solid #d8e2d6;padding:22px;text-align:center;font-size:12px;color:#56685d}@media(max-width:800px){.participant-layout{grid-template-columns:1fr}.heading{flex-direction:column}}@media(max-width:560px){.main{width:calc(100% - 28px);margin-top:18px}.topbar{padding:0 18px}.brand{font-size:20px}.join{padding:24px}.cards,.groups{grid-template-columns:1fr}.results-head{flex-direction:column}}@media print{body,.group{background:#fff}.topbar,footer,.print,.compose,.error{display:none!important}.main{width:100%;margin:0}.heading{padding-top:0}.groups{grid-template-columns:repeat(3,1fr);gap:10px}.group,.card{break-inside:avoid}}
