:root{font-family:system-ui,'Noto Sans Thai',Tahoma,sans-serif}*{box-sizing:border-box}.agent-shell{max-width:1320px;margin:0 auto;padding:26px 18px 70px;color:#173b32}.agent-header,.section-row,.action-row,.linkbox{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.agent-header h1{font-size:30px;margin:0}.agent-header p{color:#718079}.agent-panel{background:white;border:1px solid #e1e6e2;border-radius:16px;padding:22px;margin-bottom:18px;box-shadow:0 3px 16px #193b3010}.agent-panel h2{font-size:19px;margin:0 0 9px}.agent-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.agent-stats>div{border-radius:14px;padding:18px;background:#eaf1ec;display:flex;flex-direction:column;gap:6px}.agent-stats small{color:#667b70}.agent-stats strong{font-size:25px}.agent-layout{display:grid;grid-template-columns:minmax(320px,1fr) minmax(360px,1fr);gap:20px}.agent-panel label{display:block;margin:13px 0 6px;font-size:14px;font-weight:600}.agent-panel input:not([type=file]):not([type=range]):not([type=color]),.agent-panel select{width:100%;border:1px solid #c9d6cf;border-radius:9px;font:inherit;padding:12px;background:white}.agent-panel input[type=range]{width:100%}.agent-panel input[type=color]{display:block;width:70px;height:43px}.agent-panel button,.agent-panel .agent-link{font:inherit;background:#174b3a;color:white;padding:11px 17px;border:0;border-radius:9px;cursor:pointer;text-decoration:none;display:inline-block}.agent-panel button.secondary{background:#e4eee7;color:#1c4539}.agent-panel button.quiet{background:#f1f5f1;color:#184735;padding:8px 10px}.agent-panel button:disabled{opacity:.45;cursor:not-allowed}.agent-panel .hint{color:#6b7d72;font-size:13px;line-height:1.7}.inline-form{display:flex;gap:10px}.inline-form input{flex:1;min-width:0}.inline-form button{white-space:nowrap}.message{color:#236348;min-height:20px;font-size:13px}.error{color:#b03939!important}.drop{padding:24px 12px!important;border:2px dashed #abc8b5;text-align:center;border-radius:14px;cursor:pointer;background:#f8fbf8}.drop.over{background:#e0f0e4}.agent-item{border:1px solid #edf0eb;border-radius:12px;padding:12px;margin:9px 0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.agent-item .name{flex:1;min-width:150px}.agent-item small{display:block;color:#65756e}.agent-item button{padding:7px 10px;font-size:12px}.agent-item .off{opacity:.55}.agent-panel canvas{display:block;width:100%;max-width:440px;aspect-ratio:3/4;height:auto;margin:15px auto;border-radius:10px;box-shadow:0 6px 24px #0002}.linkbox{background:#eef4ed;border-radius:12px;padding:10px;margin-top:12px}.linkbox code{overflow-wrap:anywhere;flex:1;font-size:12px}.section-row span{font-size:12px;color:#65756e}.order-row{border-bottom:1px solid #e7ebe7;padding:11px 0;font-size:13px;display:flex;gap:12px;align-items:center;justify-content:space-between}.order-row select{width:auto;max-width:140px}.order-row strong{display:block}.order-row small{color:#66796d}.empty{padding:18px;color:#708176;text-align:center}.sticky{position:sticky;top:12px}@media(max-width:850px){.agent-layout{grid-template-columns:1fr}.agent-stats{grid-template-columns:1fr 1fr}.sticky{position:static}}@media(max-width:480px){.agent-stats{grid-template-columns:1fr}.inline-form{flex-wrap:wrap}.inline-form button{width:100%}.agent-panel{padding:15px}}
