:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24352e;background:#f5f7f5;font-size:14px}*{box-sizing:border-box}body{margin:0}header{padding:25px 4%;background:#fff;border-bottom:1px solid #e1e7e1;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:13px;align-items:center}.logo{background:#e8f2eb;color:#2e6b48;padding:10px 13px;border-radius:12px;font-size:26px}h1{font-size:21px;margin:0;letter-spacing:-.6px}h1 span{font-size:15px;font-weight:500;color:#718078;margin-left:10px}p{color:#829087;margin:7px 0 0;font-size:12px}.directory{font-family:monospace;color:#7e8d83;font-size:12px}main{max-width:1600px;padding:28px 4%;margin:auto}.toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.position{display:flex;gap:16px;align-items:center}.eyebrow{font-size:10px;letter-spacing:1.8px;color:#8a988e}.position strong{font-size:13px}.navigation{display:flex;gap:8px}button{font:inherit;border:1px solid #d7e0d8;background:#fff;color:#3a4c40;border-radius:7px;padding:9px 15px;cursor:pointer}button:hover:enabled{background:#edf4ef}button:disabled{opacity:.4;cursor:default}button:focus-visible{outline:3px solid #a4cbb3;outline-offset:2px}.workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;min-height:520px;height:calc(100dvh - 255px)}section{border:1px solid #dce4dd;border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:0;box-shadow:0 3px 10px #263a2b04}.panel-title{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e8ede8;gap:10px;font-size:11px;color:#88968b}.panel-title b{color:#354a3a;font-size:13px;margin-left:9px}.panel-title>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace}.image-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:24px;background-color:#eef1ed;background-image:radial-gradient(#d4dcd3 .7px,transparent .7px);background-size:12px 12px}.image-stage img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 5px 24px #22322812}.panel-footer{display:flex;justify-content:space-between;padding:13px 20px;font-size:11px;color:#8b978d}.editor-top,.editor-bottom{display:flex;justify-content:space-between;padding:15px 20px;color:#8a988d;font-size:10px;letter-spacing:.4px}#status{color:#5d8068}#status.dirty{color:#b47b28}textarea{flex:1;min-height:200px;width:100%;resize:none;padding:12px 22px;border:0;outline:0;background:#fff;font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;color:#283d30;tab-size:2}textarea:focus{box-shadow:inset 3px 0 #a9c9b2}textarea::placeholder{color:#b3bdb5}.save-bar{padding:17px 20px;border-top:1px solid #e7ede7;display:flex;align-items:center;justify-content:space-between;gap:10px}.save-bar>span{font-size:11px;color:#89958b}.primary{background:#2d6044;color:white;border-color:#2d6044;white-space:nowrap}.primary:hover:enabled{background:#234e36}kbd{font:10px monospace;border:1px solid #dce3dd;border-radius:4px;padding:3px 5px}.primary kbd{margin-left:16px;border-color:#ffffff30;color:#c9ddd0}footer{display:flex;justify-content:space-between;gap:18px;margin-top:22px;color:#8c988e;font-size:11px;line-height:2}footer i{display:inline-block;width:16px}#error{padding:12px;background:#fff0ec;color:#ab4837;margin-top:12px;border-radius:6px} [hidden]{display:none!important}@media(max-width:720px){header{padding:18px 5%}.directory{display:none}h1{font-size:18px}h1 span{font-size:12px}main{padding:20px 4%}.workspace{grid-template-columns:1fr;height:auto;gap:14px;min-height:0}.image-panel{height:38dvh;min-height:220px}.editor-panel{min-height:360px}.image-stage{padding:14px}.panel-title{padding:13px 16px}.editor-top,.editor-bottom{padding:12px 16px}textarea{min-height:180px}footer{flex-direction:column;gap:5px}.save-bar{padding:13px 16px}.eyebrow{display:none}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}
.work-area{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;height:calc(100dvh - 255px);min-height:520px}.work-area .workspace{height:100%;min-height:0;gap:16px}.browser{background:#fff;border:1px solid #dce4dd;border-radius:12px;padding:16px 12px;display:flex;flex-direction:column;min-height:0}.browser-heading{display:flex;justify-content:space-between;font-size:13px;margin:2px 4px 16px}.browser-heading span,.recent-heading span{color:#8a988d;font-size:10px}.search-label{font-size:11px;color:#718078;margin:0 4px 7px}#search{width:100%;padding:10px;border:1px solid #dce4dd;border-radius:6px;font:inherit;font-size:12px;min-width:0}#search:focus{outline:2px solid #a9c9b2}.recent-heading{display:flex;justify-content:space-between;margin:18px 4px 8px;font-size:11px;color:#718078}.recent-list{flex-shrink:0;font-size:11px;color:#8a988d}.recent-row{display:flex;flex-direction:column;gap:3px;width:100%;padding:7px 9px;text-align:left;border:0;font-size:12px}.recent-row span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-row small{font-size:9px;color:#89958b}.file-list{overflow:auto;flex:1;min-height:120px;overscroll-behavior:contain;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed;position:relative}#file-spacer{position:relative}#file-rows{position:absolute;top:0;left:0;right:0}.file-row{display:block;width:100%;height:38px;text-align:left;border:0;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:12px ui-monospace,monospace;padding:9px}.selected{background:#e8f2eb;color:#2d6044;font-weight:600}.locate{font-size:11px;margin-top:10px;padding:8px}@media(max-width:1100px) and (min-width:721px){.work-area{grid-template-columns:190px minmax(0,1fr)}.work-area .workspace{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.work-area{height:auto;min-height:850px}.work-area .workspace{min-height:850px}.image-panel{min-height:300px}}@media(max-width:720px){.work-area{display:flex;flex-direction:column;height:auto;min-height:0}.browser{height:340px}.recent-list{display:flex;overflow-x:auto;max-height:65px;min-height:30px}.recent-row{min-width:145px;width:145px}.recent-heading{margin-top:12px}.browser-heading{margin-bottom:10px}.work-area .workspace{height:auto;min-height:0}.file-list{min-height:80px}}
/* Keep recent files compact so the main file browser retains its space. */
.recent-list{max-height:112px;overflow-y:auto;overscroll-behavior:contain}
.recent-row{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:5px 8px;min-height:28px;font-size:11px}
.recent-row span{flex:1;min-width:0}
.recent-row small{display:none}
@media(max-width:720px){.recent-list{display:block;max-height:56px;min-height:28px;overflow-x:hidden;overflow-y:auto}.recent-row{width:100%;min-width:0;min-height:28px}}
