@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'IBM Plex Sans Thai',Tahoma,sans-serif;color:#e9f2f0;background:#0a2d5a;line-height:1.55;font-synthesis:none;--panel:#0d2038;--line:#29445f;--muted:#91aaa3;--mint:#8be0c2;--ink:#0a2d5a}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 72% -15%,#1776c8 0,transparent 46%),#0a2d5a}button,input,textarea{font:inherit}button{cursor:pointer}.topbar{height:70px;border-bottom:1px solid #ffffff12;display:flex;align-items:center;justify-content:space-between;padding:0 max(26px,calc((100vw - 1480px)/2));background:#082653e8}.brand{display:flex;align-items:center;gap:11px;color:#e9f2f0;text-decoration:none;font:600 14px Manrope,'IBM Plex Sans Thai',sans-serif;letter-spacing:-.02em}.brand b{color:#99d9c2}.brand-mark{width:34px;height:34px;border:1px solid #4e8e7a;border-radius:10px;display:grid;place-items:center;color:#9de3c9;font-size:12px}.top-actions{display:flex;align-items:center;gap:10px}.saved{font-size:12px;color:var(--muted);margin-right:10px}.save-button{font:inherit;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;transition:color .16s,background .16s,border-color .16s}.save-button:hover,.save-button:focus-visible{color:#c9f8e5;background:#15342b;border-color:#355b4d;outline:none}.save-button:active{transform:translateY(1px)}.button{border-radius:9px;border:1px solid #355049;background:#152723;color:#dce9e4;padding:9px 15px;font-size:13px;font-weight:600;transition:.16s}.button:hover{filter:brightness(1.18);transform:translateY(-1px)}.button.primary{background:#a2e5cc;color:#10251e;border-color:#a2e5cc}.button.quiet{background:transparent}.button.secondary{background:#142722}.button.danger{border-color:#603c3b;color:#f0a9a0;background:#261918}.shell{width:min(1480px,calc(100% - 52px));margin:auto}.hero{display:flex;justify-content:space-between;align-items:end;padding:44px 4px 30px}.eyebrow{font:700 10px Manrope,sans-serif;letter-spacing:.16em;color:#77bba2;margin:0 0 8px}.hero h1{font:700 clamp(28px,3vw,39px) Manrope,'IBM Plex Sans Thai',sans-serif;letter-spacing:-.04em;margin:0 0 10px;color:#f0f6f3}.lead{font-size:14px;color:#9db4ac;margin:0}.hero-tag{border:1px solid #264238;background:#10231e;padding:9px 13px;border-radius:30px;color:#b1c9c0;font-size:12px;margin-bottom:3px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:10px;background:#7ce0b8;box-shadow:0 0 12px #7ce0b866;margin-right:7px}.workspace{display:grid;grid-template-columns:minmax(230px,.83fr) minmax(330px,1.18fr) minmax(320px,1fr);gap:15px;align-items:stretch}.panel{background:linear-gradient(150deg,#102744,#0c1c34);border:1px solid #294562;border-radius:14px;min-height:590px;overflow:hidden}.tree-panel,.editor-panel,.preview-panel{padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel-head .eyebrow{margin-bottom:4px}.panel h2{font:600 17px Manrope,'IBM Plex Sans Thai',sans-serif;margin:0;color:#e7f0ed}.icon-button{border:1px solid #41675a;background:#19352b;color:#a7e7ce;width:34px;height:34px;border-radius:9px;font-size:22px;line-height:1}.panel-hint{font-size:11px;color:#829b92;margin:0 0 16px}.tree{display:flex;flex-direction:column;gap:5px;max-height:435px;overflow:auto;padding-right:3px}.tree-row{display:flex;gap:4px;align-items:center;min-width:0}.tree-select{flex:1;text-align:left;min-width:0;background:transparent;border:1px solid transparent;color:#bfd0ca;border-radius:7px;padding:7px 8px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-select:hover{background:#172b25}.tree-select.active{color:#b7efd9;background:#1c382e;border-color:#315b49}.tree-select .kind{font-size:9px;color:#6f9888;margin-right:7px;text-transform:uppercase;letter-spacing:.06em}.tree-select .disclosure{display:inline-block;width:14px;color:#81ad9b}.tree-add{background:none;border:0;color:#70998a;font-size:16px;padding:4px 6px;border-radius:5px}.tree-add:hover{background:#20372f;color:#a7e7ce}.tree-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #203832;margin-top:15px;padding-top:13px}.tree-count,.text-button{font-size:11px;color:#8ba79c}.text-button{border:0;background:transparent}.text-button:hover{color:#c5f5e3}.type-pill{background:#19362b;border:1px solid #325746;color:#95d4b8;border-radius:20px;padding:4px 9px;font-size:10px}.editor-form{padding-top:7px}.field{display:block;margin-bottom:17px}.field>span{display:block;font-size:12px;font-weight:600;color:#d8e5df;margin-bottom:7px}.field em{font-style:normal;color:#77958a;font-weight:400;font-size:10px;margin-left:5px}.field input,.field textarea{width:100%;background:#091a31;border:1px solid #294562;border-radius:8px;color:#edf5f1;padding:10px 11px;font-size:13px;outline:none}.field input:focus,.field textarea:focus{border-color:#83cfb0;box-shadow:0 0 0 3px #83cfb01b}.field textarea{resize:vertical;min-height:155px}.field small{display:block;color:#748e84;font-size:10px;margin-top:5px}.form-actions{border-top:1px solid #203832;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}.right-actions{display:flex;gap:7px}.form-actions .button{font-size:11px;padding:8px 10px}.empty-state{text-align:center;color:#849e94;padding:115px 10px}.empty-icon{font-size:27px;color:#7ab99e}.empty-state h3{color:#d9e7e1;font-size:15px;margin:10px 0 3px}.empty-state p{font-size:12px;margin:0}.receiver-mark{font:700 10px Manrope,sans-serif;letter-spacing:.08em;color:#78c7a8}.receiver{width:min(100%,790px);margin:24px auto 0;border:1px solid #385148;border-radius:14px;background:#111916;padding:11px;box-shadow:0 18px 45px #0005}.receiver-top,.receiver-bottom{height:29px;display:flex;justify-content:space-between;align-items:center;padding:0 7px;color:#92a79e;font:600 8px Manrope,sans-serif;letter-spacing:.08em}.receiver-screen{min-height:520px;background-color:#fff7e4;background-image:radial-gradient(circle at 18px 18px,#eddfc477 2px,transparent 3px),radial-gradient(circle at 54px 50px,#f0e4cc88 3px,transparent 4px);background-size:76px 76px;color:#1d241c;padding:22px 20px;border:5px solid #27332b;border-radius:5px}.screen-path{font-size:10px;color:#687364;border-bottom:1px solid #d6cfbd;padding-bottom:10px;margin:0 0 16px}.receiver-screen h3{font-size:20px;line-height:1.35;margin:0 0 15px;color:#1a3023}.preview-body{font-size:13px;white-space:pre-wrap;line-height:1.8}.image-file-select{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.image-file-select .button{font-size:11px;padding:7px 10px}.image-file-select span{color:#b3c8df;font-size:11px;overflow-wrap:anywhere}.image-editor-preview{display:block;max-width:100%;max-height:220px;object-fit:contain;margin-top:10px;border:1px solid #294562;border-radius:8px;background:#091a31}.image-editor-preview[hidden]{display:none}.preview-image{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:14px 0;border:1px solid #d5cdbb;border-radius:6px;background:#fff}.image-showcase{margin:10px 0 18px;padding:13px;border:1px solid #35516d;border-radius:10px;background:#091a31}.image-showcase[hidden]{display:none}.image-showcase-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:#d8e5df;font-size:12px}.image-showcase-head span{color:#91a9bf;font-size:10px;overflow-wrap:anywhere;text-align:right}.image-showcase img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:7px;background:#071426}.preview-items{margin-top:6px;display:grid;gap:0}.preview-section{border-bottom:1px solid #d5cdbb;background:#fff9ebc7}.preview-section summary{cursor:pointer;list-style:disclosure-closed;padding:9px 9px;font-size:15px;line-height:1.35;color:#171b17}.preview-section[open] summary{list-style:disclosure-open;background:#f6edda}.preview-section summary::marker{font-size:12px}.preview-section-content{padding:8px 16px 14px 28px;font-size:13px;line-height:1.7}.preview-section-content h4{font-size:15px;margin:3px 0 8px;color:#213b2d}.preview-section-content p{white-space:pre-wrap;margin:0 0 10px}.preview-section-content details{margin-left:4px}.preview-audio{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #a7b38e;border-radius:7px;background:#f9f5e8;color:#284d38;text-decoration:none;font-size:12px;font-weight:600}.preview-audio:hover{background:#e9f0d8}.preview-foot{font-size:10px;color:#83ac9a;margin:15px 0 22px}.format-note{border-top:1px solid #203832;padding-top:13px}.format-note b{font-size:11px;color:#c6d8d0}.format-note p{font-size:10px;color:#829a90;margin:5px 0}.page-foot{display:flex;justify-content:space-between;padding:22px 3px 30px;color:#6d887d;font-size:11px}.page-foot a{color:#84a99a;text-decoration:none}.page-foot a:hover{color:#c1ebda}.page-foot i{font-style:normal;margin:0 8px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);padding:10px 15px;border-radius:9px;background:#d9f3e6;color:#143327;font-size:12px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 8px 30px #0005}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(220px,.8fr) minmax(310px,1.2fr)}.preview-panel{grid-column:1/-1;min-height:0}.receiver{max-width:790px;margin:18px auto}.receiver-screen{min-height:340px}}@media(max-width:690px){.topbar{height:auto;min-height:62px;padding:10px 16px;gap:10px;flex-wrap:wrap}.brand{font-size:12px}.top-actions{gap:6px}.saved:not(.save-button){display:none}.button{padding:8px 10px;font-size:11px}.shell{width:calc(100% - 28px)}.hero{padding:30px 2px 20px;display:block}.hero-tag{display:inline-block;margin-top:16px}.workspace{grid-template-columns:1fr}.panel{min-height:0}.tree{max-height:280px}.preview-panel{grid-column:auto}.receiver-screen{padding:16px 13px;min-height:300px}.preview-section summary{font-size:13px}.editor-panel{min-height:410px}.empty-state{padding:70px 8px}.page-foot{gap:9px;flex-wrap:wrap}.form-actions{align-items:flex-start;flex-direction:column}.right-actions{width:100%}.right-actions .button{flex:1}}
.preview-audio{display:inline-flex;align-items:center;margin-top:9px;padding:6px 10px;border:1px solid #a7b38e;border-radius:7px;background:#f9f5e8;color:#284d38;font-size:12px;font-weight:600;text-decoration:none}.preview-audio:hover{background:#e9f0d8}.preview-audio[hidden]{display:none}
.audio-check{margin:-7px 0 17px;padding:12px;border:1px solid #294562;border-radius:9px;background:#091a31}.audio-check[hidden]{display:none}.audio-check-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.audio-check-toolbar .button{font-size:11px;padding:7px 10px}.audio-check-toolbar span{margin-left:auto;color:#94aaa0;font:11px Manrope,sans-serif}.audio-seek{display:block;width:100%;margin:10px 0 4px;accent-color:#8be0c2;cursor:pointer}.audio-check small{color:#88a298;font-size:10px}
.preview-switch{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.preview-switch .button[aria-selected="true"]{background:#a2e5cc;border-color:#a2e5cc;color:#10251e}.receiver[hidden],.receiver-frame[hidden]{display:none}.receiver-frame{overflow:hidden;border:1px solid #385148;border-radius:13px;background:#111916;padding:10px;box-shadow:0 18px 45px #0005}.receiver-frame iframe{display:block;width:100%;height:min(70vh,720px);min-height:480px;border:5px solid #27332b;border-radius:5px;background:#fff7e4}.receiver-frame p{margin:10px 7px 4px;color:#91aaa3;font-size:11px}.preview-foot{min-height:18px}
@media(max-width:690px){.preview-switch{gap:6px}.preview-switch .button{font-size:10px;padding:7px 9px}.receiver-frame iframe{height:65vh;min-height:380px}}
.audio-check-toolbar .button:disabled{cursor:not-allowed;opacity:.42;transform:none;filter:none}.audio-seek:disabled{cursor:not-allowed;opacity:.45}
.audio-file-select{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 7px}.audio-file-select .button{font-size:11px;padding:7px 10px}.audio-file-select span{color:#b3c8df;font-size:11px;overflow-wrap:anywhere}.audio-local-note{display:block;color:#91a9bf!important;margin:0 0 12px;line-height:1.55}.audio-file-select .text-button{padding:4px 6px;color:#a9c5e0}.audio-file-select .text-button:hover{color:#fff}

.preview-audio-player{display:block;width:100%;margin:10px 0;min-height:42px}
.preview-audio-player[hidden]{display:none}
.menu-media-import{padding:13px;border:1px solid #35516d;border-radius:10px;background:#091a31}.menu-media-import>span{font-size:12px}.menu-media-import .menu-media-title{display:block;margin:10px 0;font-size:11px;color:#b9cbdc}.menu-media-title input{display:block;width:100%;margin-top:5px;background:#0c2038;border:1px solid #294562;border-radius:7px;color:#edf5f1;padding:8px 10px;font:inherit}.menu-media-import .image-file-select{margin:8px 0}.menu-media-import .button{font-size:11px;padding:7px 10px}.menu-media-import small{display:block;margin-top:8px;color:#829a90;font-size:10px}
.top-actions{flex-wrap:wrap}#createWebPageButton{white-space:nowrap}#createWebPageButton:disabled{opacity:.65;cursor:wait}
.preview-image[role="button"],.image-showcase img[role="button"]{cursor:zoom-in}.preview-image[role="button"]:focus-visible,.image-showcase img[role="button"]:focus-visible{outline:3px solid #4c9e7e;outline-offset:3px}.image-viewer{width:min(94vw,1100px);max-width:94vw;max-height:94vh;padding:14px;border:1px solid #49627a;border-radius:12px;background:#091a31;color:#eaf3ee;box-shadow:0 20px 70px #000a}.image-viewer::backdrop{background:#020811d9}.image-viewer form{display:flex;justify-content:flex-end;margin-bottom:10px}.image-viewer-close{padding:7px 12px}.image-viewer img{display:block;max-width:100%;max-height:calc(94vh - 75px);width:auto;height:auto;object-fit:contain;margin:auto;border-radius:6px}
