/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */
:root[data-theme="pink"]{--blue:#c4477c;--soft:#fff7fa}:root[data-theme="green"]{--blue:#23805f;--soft:#f5fbf8}:root[data-theme="dark"]{--blue:#79a6ff;--soft:#202a37;--ink:#e7edf7;--muted:#a7b5c8;--line:#3a4657}.swatches{display:flex;gap:5px;margin-right:5px}.swatches button{width:15px;height:15px;border-radius:99px;border:1px solid #ffffff55;background:#3269e8}.swatches button[data-theme=pink]{background:#c4477c}.swatches button[data-theme=green]{background:#23805f}.swatches button[data-theme=dark]{background:#596677}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .panel{margin:0}.field label{display:block;font-size:12px;font-weight:600;margin:0 0 6px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fff;color:#182338}.tag-cloud{display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--line);padding:7px;border-radius:8px;background:#fff}.tag{background:#e6efff;color:#2455b8;border-radius:999px;padding:5px 8px;font-size:12px}.tag button{border:0;background:none;color:inherit;cursor:pointer}.rating{font-size:27px;color:#d4dbe6;letter-spacing:2px;cursor:pointer}.rating .on{color:#f3b522}.dialog-buttons{display:flex;gap:9px;margin-top:18px}.ai-launcher{position:fixed;right:25px;bottom:25px;width:54px;height:54px;border:0;border-radius:50%;background:var(--blue);color:#fff;font-size:23px;box-shadow:0 8px 25px #1d386477;cursor:pointer;z-index:5}.ai-popup{position:fixed;right:25px;bottom:91px;width:330px;background:#fff;color:#182338;border:1px solid var(--line);border-radius:14px;box-shadow:0 15px 50px #10243d44;z-index:6;overflow:hidden}.ai-popup-head{background:#10243d;color:#fff;padding:13px;display:flex;justify-content:space-between}.ai-popup-head button{border:0;background:none;color:#fff;font-size:19px;cursor:pointer}.mini-chat{height:190px;padding:12px;overflow:auto;font-size:13px}.mini-chat p{background:#edf2f9;padding:9px;border-radius:9px}.ai-popup form{display:flex;border-top:1px solid var(--line)}.ai-popup input{border:0;padding:11px;flex:1}.ai-popup form button{border:0;background:var(--blue);color:#fff;width:42px}@media(max-width:800px){.form-grid{grid-template-columns:1fr}}
/* Gallery sidebar layout (moved here from overlay.css: it belongs to the gallery shell, not to overlays) */
@media(min-width:801px){.sidebar{display:flex;flex-direction:column;overflow-y:auto}.side-bottom{position:static;margin-top:auto;padding-top:14px}}
