@font-face{font-family:StudioThai;src:url('ai-studio-assets/noto-thai-regular.ttf') format('truetype');font-weight:400;font-display:swap}
.selection-summary{display:grid;gap:5px;margin:-8px 0 24px;padding:12px;background:#f0f6f5;border-left:3px solid #126d62;font-size:11px;line-height:1.7;overflow-wrap:anywhere;color:#60777a}.selection-summary strong{font-size:12px;color:#24423b}.file-origin,.file-detail{font-size:11px;color:#7a8b95;overflow-wrap:anywhere;line-height:1.6;margin:5px 0}#status[data-state=error]{color:#b43c46}
@font-face{font-family:StudioThai;src:url('ai-studio-assets/noto-thai-semibold.ttf') format('truetype');font-weight:500 800;font-display:swap}
:root{font-family:StudioThai,'Leelawadee UI',Tahoma,sans-serif;color:#23313a;background:#f4f6f8;font-size:14px;letter-spacing:0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;background:#126d62;color:white;border:1px solid #126d62;border-radius:6px;font-weight:600;cursor:pointer;text-decoration:none;margin:0}button:hover,.button:hover{background:#0b594f}button:disabled{opacity:.4;cursor:not-allowed}.secondary{background:white;color:#344650;border-color:#d6dfe4}.secondary:hover{background:#edf2f4}button:focus-visible,.button:focus-within,select:focus-visible{outline:3px solid #92cfc3;outline-offset:2px}svg{width:18px;height:18px;flex-shrink:0}[hidden]{display:none!important}
header{height:78px;display:flex;align-items:center;gap:14px;padding:0 32px;background:white;border-bottom:1px solid #dfe5e9}.brand{display:grid;place-items:center;width:42px;height:42px;background:#163c35;color:white;text-decoration:none;font-weight:700;font-size:17px;border-radius:6px}.brand-name{font-weight:600;font-size:18px;line-height:1.4}.brand-name span{display:block;font-weight:400;font-size:11px;color:#83909a}.engine{margin-left:auto;background:#eef3f6;border:1px solid #dfe7ed;color:#63717c;border-radius:5px;padding:7px 11px;font-size:12px}.engine[data-ready=true]{background:#eaf6ef;color:#287a50;border-color:#cfe8d9}
main{display:grid;grid-template-columns:310px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100vh - 144px)}aside{padding:28px 24px;border-right:1px solid #dfe5e9;background:white}.aside-title{display:flex;align-items:center;gap:10px;margin-bottom:26px;color:#30444a}h1{font-size:18px;margin:0;font-weight:600}.commands{display:flex;gap:8px;margin-bottom:26px}.commands .button{flex:1;padding:10px 8px;font-size:13px}aside>label{display:block;font-weight:500;font-size:13px;color:#596873;margin-bottom:22px}select{display:block;width:100%;margin-top:9px;padding:12px 32px 12px 12px;border:1px solid #d1dce2;border-radius:6px;background:white;color:#23313a;min-height:44px}#prepare{width:100%;margin-bottom:24px}.run-controls{display:grid;grid-template-columns:1fr 42px;gap:8px}.icon-button{width:42px;height:42px;padding:0;min-height:42px}progress{display:block;width:100%;height:6px;border:0;border-radius:4px;overflow:hidden;accent-color:#126d62}progress::-webkit-progress-bar{background:#edf1f4}progress::-webkit-progress-value{background:#126d62}#status{font-size:12px;line-height:1.8;color:#667680;overflow-wrap:anywhere;margin:12px 0 24px}.local-note{display:flex;gap:10px;border-top:1px solid #e8edef;padding-top:22px;color:#607b6d;font-size:12px}.local-note span{display:block;margin-top:5px;font-size:11px;color:#89949b}
.workspace{padding:30px 32px;min-width:0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}h2{font-size:22px;line-height:1.5;margin:0;font-weight:600}.workspace-sub{color:#8a97a1;font-size:11px;display:block;margin-top:5px}#count{font-size:12px;background:#e8eef2;border-radius:4px;padding:6px 10px;color:#5f6f7c}.view-bar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce4e9;margin-bottom:24px;min-height:47px}.view-tabs{display:flex;gap:22px}.view-tabs button{padding:12px 0;background:none;color:#81909a;border:0;border-radius:0;min-height:47px;font-size:13px;font-weight:500;border-bottom:2px solid transparent}.view-tabs button[aria-selected=true]{color:#126d62;border-bottom-color:#126d62}.view-tabs span{font-size:10px;background:#e9eef2;padding:1px 6px;border-radius:4px}.results{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:18px}.empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:380px;text-align:center;color:#9aa8b3}.empty-state svg{width:40px;height:40px;stroke-width:1.4;margin-bottom:18px}.empty-state h3{font-size:16px;color:#62747f;font-weight:500;margin:0}.empty-state p{font-size:12px;color:#9ba7af}
article{border:1px solid #dce4e9;border-radius:7px;background:white;min-width:0;overflow:hidden;padding:12px}article img{display:block;width:100%;height:200px;object-fit:contain;background:repeating-conic-gradient(#e9edf0 0% 25%,#f8fafb 0% 50%) 0/16px 16px;border-radius:3px}article .file-name{font-size:13px;font-weight:500;margin:13px 0 7px;overflow-wrap:anywhere;line-height:1.6}article .file-state{font-size:11px;color:#84919b;margin:0 0 10px;line-height:1.7;overflow-wrap:anywhere}article .file-state[data-state=done]{color:#24845b}article .file-state[data-state=error]{color:#c54c55}article a[download]{display:inline-flex;gap:6px;align-items:center;text-decoration:none;color:#126d62;font-size:12px;font-weight:600;padding:8px 0}article a[download] svg{width:15px;height:15px}.history-actions{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f3;margin-top:10px;padding-top:6px}.history-actions .icon-button{width:32px;height:32px;min-height:32px;border:0;background:none;color:#98a3ac}.history-note,#historyStatus{font-size:12px;color:#83919b;line-height:1.7}.history-meta{font-size:11px;color:#788892;line-height:1.8;margin:8px 0}.history-mode{font-size:10px;display:inline-block;background:#edf3f8;color:#476985;padding:3px 7px;border-radius:4px;margin-top:12px}
footer{max-width:1600px;margin:auto;display:flex;justify-content:space-between;padding:22px 32px;border-top:1px solid #dfe5e9;color:#8d99a2;font-size:11px;gap:12px}footer b{color:#6b8e7f;font-size:9px;font-weight:500;margin-left:18px}@media(min-width:1600px){main{border-left:1px solid #dfe5e9;border-right:1px solid #dfe5e9}}@media(max-width:760px){header{padding:0 16px;height:70px}.brand-name{font-size:16px}.engine{font-size:10px;padding:6px 8px}main{grid-template-columns:1fr}aside{padding:24px 18px;border-right:0;border-bottom:1px solid #dfe5e9}.workspace{padding:24px 18px}.results{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}article img{height:160px}.empty-state{min-height:240px}.section-head{margin-bottom:18px}h2{font-size:20px}.view-tabs{gap:18px}footer{padding:20px 18px;flex-wrap:wrap}footer b{display:none}}
/* Typography pass: keep Thai glyphs crisp and visually weighty like print signage. */
:root{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:'kern' 1,'liga' 1}
h1,h2,h3,strong,b,button,.button,label{font-weight:600}
select,input{font-weight:500}
 .control-note{display:block;margin-top:2px;color:#126d62;font-size:10px;font-weight:500;line-height:1.5}
.text-editor{margin-top:22px;padding-top:18px;border-top:1px solid #e8edef}.text-editor-title{display:flex;align-items:center;gap:8px;color:#30444a;font-size:13px;margin-bottom:8px}.text-editor-target{font-size:11px;color:#87949d;overflow-wrap:anywhere;line-height:1.6;margin:0 0 12px}.text-editor label{display:block;font-size:11px;color:#64747e;margin-bottom:10px}.text-editor textarea,.text-editor input,.text-editor select{display:block;width:100%;margin-top:6px;padding:8px;border:1px solid #d1dce2;border-radius:5px;background:#fff;color:#23313a;min-height:36px}.text-editor textarea{resize:vertical}.text-editor input[type=color]{height:36px;padding:3px}.text-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.text-editor-stroke{display:grid!important;grid-template-columns:1fr 54px;align-items:center;gap:8px}.text-editor-stroke input{margin:0}.text-editor button{width:100%;margin-top:4px;font-size:12px}
/* Studio navigation */
.studio-menu{display:flex;flex-direction:column;gap:5px;margin:-4px -4px 24px;padding-bottom:18px;border-bottom:1px solid #e1e8f3}.studio-menu small{margin:12px 8px 5px;color:#71839d;font-size:12px;font-weight:700}.studio-menu a{padding:11px 12px;border-radius:10px;color:#294a78;text-decoration:none;font-size:13px}.studio-menu a:hover,.studio-menu a.active{background:#eaf0ff;color:#2d5bda;font-weight:800}.studio-menu-note{margin-top:14px;padding:12px;border-radius:12px;background:#f3f6fc;color:#6680a3;font-size:12px;line-height:1.5}.studio-menu-note span{font-size:11px;color:#8da0bb}.studio-account{display:flex;align-items:center;gap:8px;margin-left:auto}.studio-account a{color:#26466f;text-decoration:none;border:1px solid #d9e3f1;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700;background:#fff}.studio-account a:first-child{color:#137e68;background:#effbf6}.engine{margin-left:auto;color:#16866e;font-size:11px;background:#effbf6;border-radius:18px;padding:8px 12px}
