/* Invisible for visitors. The authenticated owner script adds .sm-owner. */
.sm-owner-bar,.sm-owner-modal,.sm-floating-edit,.sm-inline-actions,.sm-inline-add,.sm-owner-hint,.sm-inline-toast{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;box-sizing:border-box}
.sm-owner-bar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 20px);width:max-content;z-index:2147480000;display:flex;gap:7px;flex-wrap:wrap;align-items:center;background:#40291c;color:white;padding:10px 13px;border-radius:17px;box-shadow:0 14px 50px rgba(33,18,9,.28);font-size:13px}
.sm-owner-brand{font-weight:800;white-space:nowrap;margin-right:5px}
.sm-owner-bar button,.sm-owner-bar .sm-owner-link{background:#fff7ed;color:#442c1e;border:0;border-radius:10px;padding:9px 12px;font:600 12px system-ui;cursor:pointer;text-decoration:none;white-space:nowrap;line-height:1.3}
.sm-owner-bar button:hover,.sm-owner-bar .sm-owner-link:hover{background:#e9d1b8}
.sm-owner.sm-editing .sm-inline-actions{display:flex!important}
.sm-inline-actions{display:none;gap:7px;align-items:center;justify-content:flex-start;padding:10px 0 2px;flex-wrap:wrap}
.sm-inline-actions button,.sm-inline-add{font:600 12px system-ui;color:#52341f;background:#fffbf5;border:1px solid #caad8d;border-radius:9px;padding:7px 11px;cursor:pointer;line-height:1.3}
.sm-inline-actions button.danger{color:#b03725;border-color:#e6c4bc}
.sm-inline-actions button:hover,.sm-inline-add:hover{background:#f1e0cd}
.sm-inline-add{display:block;margin:15px 0 10px;max-width:max-content;border-style:dashed}
.sm-inline-add[hidden]{display:none}
.sm-inline-actions[data-sm-card-actions]{padding:10px 13px 12px;position:relative;z-index:2}
.sm-inline-actions[data-sm-card-actions] button{flex:1;max-width:180px}
.sm-owner.sm-editing .sm-added-block{position:relative;border:1px dashed #d2b79c;padding:14px;border-radius:12px;margin:10px 0;background:#fffdfa}
.sm-added-block p{margin:0;white-space:pre-wrap}
.sm-floating-edit{display:none;position:fixed;z-index:2147480001;background:#4d321f;color:white;border:0;padding:7px 10px;border-radius:8px;font:700 12px system-ui;box-shadow:0 5px 16px rgba(0,0,0,.23);cursor:pointer;white-space:nowrap}
.sm-floating-edit.sm-visible{display:block}
.sm-owner-dialog button,.sm-owner-dialog input,.sm-owner-dialog select,.sm-owner-dialog textarea{font-family:system-ui,sans-serif}
.sm-owner-modal{position:fixed;inset:0;background:rgba(22,13,7,.65);display:flex;align-items:center;justify-content:center;padding:18px;z-index:2147482000;overflow:auto}
.sm-owner-dialog{background:#fffaf5;border-radius:20px;width:min(600px,100%);max-height:90vh;overflow:auto;box-shadow:0 24px 80px rgba(0,0,0,.32);padding:23px;color:#3b281e}
.sm-owner-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sm-owner-dialog h2{font-size:23px;line-height:1.3;margin:0}
.sm-owner-dialog .sm-owner-close{background:transparent;border:1px solid #ded0c5;border-radius:9px;color:#493a2d;font-size:20px;padding:4px 10px;cursor:pointer}
.sm-owner-muted{color:#736153;line-height:1.5;font-size:14px;margin:9px 0 17px}
.sm-owner-form{display:flex;flex-direction:column;gap:13px}
.sm-owner-field{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:13px}
.sm-owner-field input,.sm-owner-field textarea{width:100%;border:1px solid #d4bfae;border-radius:10px;background:white;color:#2c241d;padding:11px 12px;font-size:15px;min-width:0;max-width:100%;box-sizing:border-box}
.sm-owner-field textarea{min-height:88px;resize:vertical}
.sm-owner-field input[type=file]{font-size:12px;background:#f8f0e8}
.sm-owner-field input:focus,.sm-owner-field textarea:focus{outline:2px solid #b28a67;outline-offset:1px}
.sm-owner-dialog-buttons{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:8px}
.sm-owner-save{background:#70472f;border:0;color:#fff;border-radius:11px;padding:11px 21px;font-weight:750;cursor:pointer}
.sm-owner-save:disabled{opacity:.5;cursor:wait}
.sm-owner-cancel{background:#f0e4d8;color:#503624;border:0;border-radius:11px;padding:11px 18px;cursor:pointer}
.sm-owner-danger-link{background:transparent;color:#ae2e25;border:0;cursor:pointer;font-size:13px;margin-right:auto}
.sm-owner-hidden-list{display:flex;flex-direction:column;gap:10px;margin:10px 0;max-height:43vh;overflow:auto}
.sm-owner-hidden-item,.sm-owner-user-row{padding:10px 11px;border:1px solid #dfd0c5;border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;flex-wrap:wrap;overflow-wrap:anywhere}
.sm-owner-hidden-item button,.sm-owner-user-row button{border:1px solid #795540;background:#f7eee5;color:#50331d;padding:7px 10px;border-radius:8px;cursor:pointer}
.sm-owner-user-row select{min-width:120px;border:1px solid #795540;border-radius:7px;padding:7px}
.sm-inline-toast{position:fixed;top:18px;left:50%;transform:translate(-50%,-10px);z-index:2147483000;background:#2d654b;color:white;border-radius:10px;padding:12px 18px;opacity:0;pointer-events:none;max-width:90vw;box-shadow:0 8px 25px rgba(0,0,0,.2);transition:opacity .2s,transform .2s;font-size:14px}
.sm-inline-toast.sm-visible{opacity:1;transform:translate(-50%,0)}
.sm-inline-toast.sm-inline-error{background:#a53b33}
.sm-owner-hint{position:fixed;bottom:92px;left:50%;transform:translateX(-50%);background:#fff7ed;color:#4a3321;border:1px solid #d0b8a0;z-index:2147480000;padding:9px 15px;border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.12);font-size:12px}
.sm-owner.sm-editing .price-card,.sm-owner.sm-editing .solution-card{overflow:visible}
@media(max-width:820px){.sm-owner-bar{bottom:7px;width:calc(100vw - 14px);justify-content:center;padding:8px;border-radius:12px}.sm-owner-bar button,.sm-owner-bar .sm-owner-link{padding:7px;font-size:11px}.sm-owner-brand{width:100%;text-align:center}.sm-owner-modal{padding:8px}.sm-owner-dialog{padding:16px;max-height:94vh}.sm-owner-hint{display:none}.sm-inline-actions[data-sm-card-actions] button{flex:1}}
.sm-owner-field[hidden]{display:none!important}
.sm-owner-select{border:1px solid #d4bfae;border-radius:10px;background:#fff;color:#32251d;padding:11px;font:500 15px system-ui;min-height:44px}
.sm-added-block .sm-added-image{width:min(100%,700px);height:auto;max-height:450px;object-fit:contain;display:block;margin:auto;border-radius:12px}
.sm-added-block .btn{display:inline-flex;text-decoration:none}
