/* G PLAY Tools · 3 new utility prototypes */
:root{font-family:Inter,system-ui,Arial,sans-serif;color:#e9f5ff;background:#080e1c}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 70% -5%,#17305c,transparent 46%),#080e1c}
button,input,select,textarea{font:inherit}
.tool-shell .panel{margin-top:18px}
.tool-shell label{display:block;font-size:13px;color:#d5e9fa;font-weight:650;margin:10px 0 7px}
.tool-shell textarea{width:100%;min-height:300px;resize:vertical;background:#081827;border:1px solid #3b617c;border-radius:10px;padding:12px;color:#e5f9ff;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
.tool-shell select,.tool-shell input[type=number],.tool-shell input[type=text]{background:#081827;color:#e7faff;border:1px solid #3b617c;border-radius:9px;padding:10px;width:100%;max-width:100%}
.tool-shell input[type=range]{width:100%;accent-color:#2ee7ee}
.tool-shell input[type=file]{padding:10px;border:1px dashed #3b617c;border-radius:10px;background:#081827}
.tool-shell input[type=checkbox]{accent-color:#1ccad6}
.tool-shell .tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tool-shell .tool-grid>div{min-width:0}
.tool-shell .field-row{display:flex;gap:14px;flex-wrap:wrap}
.tool-shell .field-row>div{flex:1 1 190px}
.tool-shell .panel>h2{font-size:21px;margin-top:0}
.tool-shell .toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:15px 0}
.tool-shell .toolbar button{min-height:40px}
.tool-shell .small-note{font-size:12px;color:#9ab5c7;line-height:1.6}
.tool-shell .status{min-height:22px;padding:9px 0}
.tool-shell .diff-entry{border:1px solid #284057;border-radius:9px;padding:11px 13px;margin:9px 0;background:#0a192b}
.tool-shell .diff-entry.added{border-left:3px solid #4dbf9c}.tool-shell .diff-entry.removed{border-left:3px solid #ec9e7b}.tool-shell .diff-entry.changed{border-left:3px solid #8cb7f7}
.tool-shell .diff-head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.tool-shell .diff-head code{overflow-wrap:anywhere;white-space:pre-wrap;color:#e2f1fd}
.tool-shell .diff-head strong{font-size:11px;color:#86cfe0}
.tool-shell .diff-values{font-size:12px;color:#a7c5d8;overflow-wrap:anywhere;line-height:1.65;margin-top:7px}
.tool-shell .results{margin-top:15px}
.tool-shell .result-card{padding:15px;margin-top:15px;background:#091a2b;border:1px solid #2e4b61;border-radius:13px}
.tool-shell .result-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tool-shell .result-header span{font-size:12px;color:#a0b7cb}
.tool-shell .preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.tool-shell .preview-grid figure{margin:0;min-width:0}
.tool-shell .preview-grid img{width:100%;height:195px;object-fit:contain;border-radius:9px;background:#04101c}
.tool-shell .preview-grid figcaption{font-size:12px;text-align:center;color:#a6d2df;padding:5px}
.tool-shell .pdf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tool-shell .pdf-field{border:1px solid #29465e;border-radius:10px;padding:12px;background:#0a1b2c;min-width:0}
.tool-shell .pdf-field label{display:flex;align-items:center;gap:8px;margin:0 0 10px;cursor:pointer}
.tool-shell .pdf-field input[type=text]{width:100%;margin:0}
.tool-shell .file-info{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.tool-shell [hidden]{display:none!important}
@media(max-width:700px){.tool-shell .tool-grid,.tool-shell .pdf-fields{grid-template-columns:1fr}.tool-shell .preview-grid img{height:145px}}

/* Mobile JSON editor containment: flex/grid children cannot force page width. */
html,body{max-width:100%;overflow-x:clip}
.tool-shell{width:100%;min-width:0;max-width:1080px}
.tool-shell .panel{min-width:0;max-width:100%}
.tool-shell .tool-grid{min-width:0}
.tool-shell .tool-grid>div{min-width:0;max-width:100%}
.tool-shell textarea{display:block;min-width:0;max-width:100%;box-sizing:border-box;overflow-x:auto;white-space:pre;overflow-wrap:normal}
.tool-shell .tool-grid input[type=file]{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.tool-shell .diff-entry{min-width:0;overflow-wrap:anywhere}
@media(max-width:740px){.tool-shell{padding-left:12px;padding-right:12px}.tool-shell .tool-grid{grid-template-columns:minmax(0,1fr)}}
.tool-shell .sortable-items{display:grid;gap:10px;margin:12px 0}
.tool-shell .sortable-item{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid #2e4b61;border-radius:10px;background:#081b2c}
.tool-shell .sortable-item .sort-info{flex:1 1 220px;min-width:0}
.tool-shell .sortable-item strong{display:block;overflow-wrap:anywhere}
.tool-shell .sortable-item small{color:#a1b6c9}
.tool-shell .sortable-item button{padding:7px 10px}
.tool-shell .sort-buttons{display:flex;gap:6px}
.tool-shell .preview-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:210px;overflow-y:auto;border:1px solid #2e4b61;border-radius:9px;background:#071522;color:#d7e9f9;padding:13px;font:13px/1.55 ui-monospace,monospace}
