.app-header .header-actions{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:12px;min-width:0}
.studio-shortcut-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:38px;min-height:38px;padding:7px 10px;margin:0;border:1px solid #d8e1d4;border-radius:8px;background:#fff;color:#315b46;font:600 12px/1.2 system-ui,sans-serif;cursor:pointer}
.studio-shortcut-icon{font-size:19px;line-height:1}
.studio-shortcut-trigger:hover{background:#e1e9dc}
.studio-shortcut-trigger:focus-visible,.studio-shortcut-dialog :focus-visible{outline:3px solid #6ca483;outline-offset:2px}
.studio-shortcut-dialog{box-sizing:border-box;width:min(650px,calc(100% - 24px));max-height:85dvh;padding:24px;border:1px solid #d6dfd2;border-radius:18px;background:#fafcf8;color:#243b2c;box-shadow:0 24px 90px #14281b45;overflow:auto;font:14px/1.5 system-ui,sans-serif}
.studio-shortcut-dialog::backdrop{background:#12261d80}
.studio-shortcut-header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.studio-shortcut-header h2{margin:0;font-size:22px}
.studio-shortcut-header button{padding:8px 16px;border:0;border-radius:8px;background:#315b46;color:white;cursor:pointer}
.studio-shortcut-dialog p{color:#5a6b57}
.studio-shortcut-dialog input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #cbd8c7;border-radius:9px;background:white;color:inherit;font:inherit;margin-bottom:12px}
.studio-shortcut-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #e1e7de}
.studio-shortcut-row[hidden]{display:none}
.studio-shortcut-row kbd{flex-shrink:0;max-width:52%;text-align:right;font:12px/1.6 system-ui,sans-serif;color:#456b52}
.studio-shortcut-notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10000;max-width:calc(100% - 36px);padding:12px 18px;border-radius:10px;background:#243e2e;color:white;box-shadow:0 8px 30px #0002;font:14px/1.5 system-ui,sans-serif}
@media(max-width:600px){.app-header .mode-switch{width:min(100%,320px)}.app-header .mode-switch a{padding-inline:8px;gap:5px}.studio-shortcut-dialog{padding:18px}.studio-shortcut-row{gap:10px;font-size:12px}.studio-shortcut-row kbd{font-size:11px}}

@media(max-width:1000px){.studio-shortcut-label{display:none}.studio-shortcut-trigger{padding:7px;min-width:40px}}
@media(max-width:760px){body>.app-header{grid-template-columns:minmax(0,1fr) auto}.app-header .header-identity{grid-column:1;justify-self:start}.app-header .header-actions{grid-column:2;grid-row:1}.app-header .mode-switch{grid-column:1/-1;justify-self:center}}
@media(pointer:coarse){.studio-shortcut-trigger{min-width:44px;min-height:44px}}

/* Four tools share the same responsive navigation. */
.app-header .mode-switch a[href$="webp.html"]{--mode-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 6h13l-3-3M17 14H4l3 3' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media(max-width:760px){.app-header .mode-switch{width:min(100%,400px)}.app-header .mode-switch a{padding-inline:8px;gap:5px}}
@media(max-width:400px){.app-header .mode-switch a::before{display:none}}
