#studio,#pad-pair{
  color-scheme:light;color:#213c31;background:#f7f4eb;border:1px solid #fff9e8b3;border-radius:16px;
  box-shadow:0 24px 90px #06130f69;padding:0;font:14px/1.5 "PingFang SC","Microsoft YaHei",Arial,sans-serif;
}
#studio{width:min(836px,calc(100vw - 24px));max-height:min(90dvh,890px);overflow:hidden}
#studio::backdrop,#pad-pair::backdrop{background:#101b18a1;backdrop-filter:blur(5px)}
#studio-form{max-height:inherit;display:flex;flex-direction:column}
.studio-head,.studio-foot,.section-head,.color-row,.transfer,.map-preview,.pair-top,.pair-actions{display:flex;align-items:center;gap:12px}
.studio-head,.studio-foot,.section-head,.pair-top{justify-content:space-between}
.studio-head,.studio-foot{padding:15px 24px}.studio-head,.pair-top{background:#213a30;color:#f3f1e4}
.studio-head h2,.pair-top h2{font:600 27px/1.25 "Songti SC",serif;margin:0}
#studio button,.file-btn,#pad-pair button,#pair-network{border:1px solid #c7cec1;background:#fcfbf5;border-radius:7px;color:#304a3b;padding:6px 11px;min-height:35px;line-height:1.2}
#studio button:hover:not(:disabled),.file-btn:hover,#pad-pair button:hover{background:#e4e8db}
#studio button.icon-only,#pad-pair button.icon-only{padding:0}
.studio-head #studio-close,.pair-top #pair-close{width:40px;height:40px;color:#f0f3e2;border-color:#aeb8a84f;background:transparent}
.studio-head #studio-close:hover,.pair-top #pair-close:hover{background:#384e42}
#studio :focus-visible,#pad-pair :focus-visible,.file-btn:focus-within{outline:2px solid #718556;outline-offset:2px}
.studio-scroll{padding:0 24px 16px;overflow:auto;overscroll-behavior:contain;min-height:0}
.studio-scroll section{padding:17px 0;border-bottom:1px solid #d3d8cb}
.studio-scroll h3{font-size:16px;line-height:1.3;margin:0 0 10px}
.section-head h3{margin:0}
#templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#templates button{position:relative;text-align:left;display:grid;gap:4px;align-content:start;padding:0 0 10px;overflow:hidden}
#templates button[aria-pressed=true]{box-shadow:inset 0 0 0 2px #385942;background:#e5eadb;border-color:#385942}
#templates button[aria-pressed=true]::after{content:"";position:absolute;top:8px;right:8px;width:9px;height:9px;border-radius:50%;background:#cbdc94;border:2px solid #f7f6ea;box-shadow:0 0 0 2px #284736}
#templates img{width:100%;aspect-ratio:2.65;object-fit:cover;margin-bottom:3px}
#templates strong,#templates span{padding-inline:11px}#templates span{font-size:12px;line-height:1.4;color:#536454}
.color-row{margin-top:11px;font-size:12px}.color-row label{display:flex;align-items:center;gap:8px}.color-row input{width:38px;height:28px;border:1px solid #bdc9b6;border-radius:4px;padding:2px}
.studio-help,.map-preview{font-size:12px;color:#59685b;margin:8px 0 10px}
.entry,.entry-legend{display:grid;grid-template-columns:34px minmax(90px,.93fr) minmax(88px,1.2fr) minmax(95px,1fr) 106px;gap:7px;align-items:center}
.entry-legend{font-size:11px;color:#5b6a5d;margin:13px 0 5px}.entry-legend span:first-child{text-align:center}
.entry{padding:6px 0;border-top:1px solid #d8dccf}
.entry input,.entry select,#pair-network{min-width:0;width:100%;padding:7px;color:#273c30;background:#fffef8;border:1px solid #c5cebf;font-family:inherit;font-size:12px;line-height:1.4;border-radius:6px;min-height:35px}
.entry input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:#375e45;justify-self:center}
.row-actions{display:flex;gap:2px}
#studio .row-actions button{width:34px;height:34px;min-height:34px;--icon-size:16px;border-color:transparent;background:transparent}
#studio .row-actions [data-icon=trash]:hover{color:#7d3827;background:#f4e5d9}
.file-btn{display:inline-flex;position:relative;overflow:hidden;cursor:pointer}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.map-preview img{max-width:110px;max-height:48px}.map-preview,.transfer{justify-content:flex-start}
.studio-foot{border-top:1px solid #c5ccbf;background:#e8ecdf}.studio-foot span{font-size:12px}
.studio-foot #save-config{background:#2b513e;color:#fffcef;border-color:transparent;min-height:40px;padding-inline:16px;white-space:nowrap}
.studio-foot #save-config:hover{background:#396249}
#pad-pair{width:min(440px,calc(100vw - 24px));max-height:92dvh;overflow:auto}
.pair-top{padding:14px 20px}.pair-top h2{font-size:24px}#pair-local,#pair-live{padding:15px 21px 20px}
#pad-pair p{line-height:1.65;margin:0 0 10px}#pad-pair a{color:#285a40;overflow-wrap:anywhere}
#pair-join,#pair-codebox{display:grid;justify-items:center;gap:8px;margin:14px 0}#pair-qr{width:min(194px,44vw);image-rendering:pixelated;border:1px solid #d5dbca;border-radius:8px}
#pair-codebox{padding:11px;background:#e7ebdf;border-radius:9px}#pair-codebox small,#pair-link{font-size:12px}
#pair-code{font:600 28px/1.25 ui-monospace,monospace;letter-spacing:.16em;padding-left:.16em}
.pair-actions{justify-content:center;flex-wrap:wrap}
@media(max-width:600px){
 .studio-head,.studio-foot{padding:10px 13px}.studio-scroll{padding-inline:13px}.studio-head h2{font-size:23px}
 #templates{gap:5px}#templates img{aspect-ratio:1.9}#templates strong{font-size:12px;padding:0 6px}#templates span{display:none}
 .entry-legend,.entry{grid-template-columns:26px minmax(60px,1fr) minmax(65px,1fr) minmax(70px,1fr);gap:4px}
 .entry-legend span:last-child{display:none}.row-actions{grid-column:2/-1;justify-self:end}
}

.pair-demo{margin:12px 20px 0;padding:13px 15px;background:#e6ecdd;border-radius:9px}
.pair-demo a{color:#294c38;font-weight:650}.pair-demo p{margin:5px 0 0;color:#4b6356;font-size:13px}
