/* EmioPage main website — visual owner editor, local TEST only. Site theme untouched outside editor. */
#emio-test-entry{position:fixed;bottom:18px;right:16px;z-index:490;background:#14243a;border:1px solid #c6a66b;border-radius:13px;color:#fff;padding:12px 16px;box-shadow:0 7px 28px #0008;font:700 13px system-ui;cursor:pointer}
html[dir=rtl] #emio-test-entry{right:auto;left:16px}
body.emio-edit-mode{--emio-editor-offset:0px;padding-top:var(--emio-editor-offset)}
body.emio-edit-mode .header{top:var(--emio-editor-offset)}
#emio-owner-bar{font:600 13px/1.35 system-ui,-apple-system,'Segoe UI',sans-serif;color:#f5f6f8;position:fixed;top:0;left:0;right:0;z-index:950;background:#14243a;border-bottom:2px solid #c6a66b;box-shadow:0 6px 30px #0006;padding:6px 9px 8px;direction:ltr}
#emio-owner-bar[hidden],#emio-dialog[hidden],#emio-project-panel[hidden]{display:none!important}
#emio-owner-bar .emio-head{display:flex;justify-content:space-between;gap:9px;align-items:center;margin:0 3px 7px}
#emio-owner-bar strong{font-size:13px;color:#c6a66b}
#emio-owner-bar .emio-status{font-size:10px;color:#b5c7db}
#emio-owner-bar .emio-actions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
#emio-owner-bar button,#emio-owner-bar select{border:1px solid #c6a66b88;background:#1d3047;color:#fff;border-radius:9px;min-height:37px;padding:4px 6px;font:700 11px/1.2 system-ui;cursor:pointer;white-space:normal}
#emio-owner-bar button.is-gold{background:#c6a66b;color:#14243a;border-color:#c6a66b}
#emio-owner-bar button.is-green{background:#079b68;color:#fff;border-color:#079b68}
#emio-owner-bar button:disabled{opacity:.55;cursor:not-allowed}
#emio-owner-bar button.is-active{border:2px solid #fff;color:#fff}
#emio-owner-bar .emio-sub{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:7px}
#emio-owner-bar .emio-sub.open{display:grid}
#emio-owner-bar .emio-warning{display:block;color:#e5d1ae;font-weight:500;font-size:10px;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.emio-edit-mode [data-t],body.emio-edit-mode [data-emio-edit],body.emio-edit-mode #main h1,body.emio-edit-mode #main h2,body.emio-edit-mode #main h3,body.emio-edit-mode #main p,body.emio-edit-mode #main img,body.emio-edit-mode footer img,body.emio-edit-mode .header img,body.emio-edit-mode #main .eyebrow{cursor:crosshair}
body.emio-edit-mode [data-t]:hover,body.emio-edit-mode [data-emio-edit]:hover,body.emio-edit-mode #main img:hover,body.emio-edit-mode footer img:hover,body.emio-edit-mode .header img:hover{outline:2px dashed #19c9ff!important;outline-offset:3px}
#emio-toast{position:fixed;z-index:9999;left:50%;bottom:14px;transform:translateX(-50%);background:#092138;color:#fff;border:1px solid #c6a66b;padding:12px 18px;border-radius:11px;font:600 13px system-ui;max-width:92vw;box-shadow:0 8px 24px #0008;pointer-events:none}
#emio-toast[hidden]{display:none}
#emio-dialog{position:fixed;z-index:1300;inset:0;background:#081220b8;display:flex;align-items:center;justify-content:center;padding:16px;font:14px system-ui,sans-serif;color:#14243a;direction:ltr}
#emio-dialog .emio-dialog-inner{width:min(620px,100%);max-height:85vh;overflow:auto;background:#f5f6f8;color:#14243a;border:2px solid #c6a66b;border-radius:17px;padding:17px;box-shadow:0 24px 70px #000a}
#emio-dialog h3{margin:0 0 10px;font-size:18px;color:#14243a}
#emio-dialog p{color:#42506a;font-size:12px}
#emio-dialog label{display:block;font-size:12px;font-weight:700;margin:12px 0 5px}
#emio-dialog textarea,#emio-dialog input,#emio-dialog select{width:100%;padding:10px;border:1px solid #aeb8c6;border-radius:9px;background:white;color:#14243a;font:14px system-ui}
#emio-dialog textarea{min-height:110px;resize:vertical;direction:auto}
#emio-dialog .emio-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
#emio-dialog button{border:1px solid #c6a66b;background:#14243a;color:#fff;padding:10px 13px;border-radius:9px;font:700 12px system-ui;cursor:pointer}
#emio-dialog button.secondary{background:#e7e8ec;color:#14243a;border-color:#b6bdc8}
#emio-dialog .emio-section-item{display:flex;align-items:center;gap:5px;justify-content:space-between;padding:6px 0;border-bottom:1px solid #e0e5ed}
#emio-dialog .emio-section-item label{margin:0;display:flex;align-items:center;gap:8px;flex:1}
#emio-dialog .emio-section-item input{width:18px;height:18px}
#emio-dialog .emio-section-item button{padding:6px 10px}
#emio-dialog .emio-color-field{display:flex;gap:14px;align-items:center;margin:9px 0}
#emio-dialog .emio-color-field label{min-width:112px;margin:0}
#emio-dialog input[type=color]{width:68px;height:38px;padding:2px}
#emio-project-panel{position:fixed;z-index:1200;inset:0;background:#071527;display:flex;flex-direction:column}
#emio-project-panel .emio-project-head{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#14243a;border-bottom:2px solid #c6a66b;padding:10px 16px;color:white;font:700 14px system-ui}
#emio-project-panel button{border:1px solid #c6a66b;border-radius:8px;padding:8px 12px;background:#c6a66b;color:#14243a;font-weight:700}
#emio-project-panel iframe{border:none;width:100%;flex:1;background:#fff}
@media(max-width:680px){#emio-owner-bar .emio-actions{grid-template-columns:repeat(4,minmax(0,1fr))}#emio-owner-bar .emio-sub{grid-template-columns:repeat(3,minmax(0,1fr))}#emio-owner-bar button{font-size:10px;min-height:38px}#emio-owner-bar strong{font-size:11px}#emio-owner-bar .emio-status{font-size:9px}#emio-dialog .emio-dialog-inner{padding:13px}#emio-test-entry{bottom:21px}}
@media(min-width:1000px){#emio-owner-bar{padding:9px 4vw 10px}#emio-owner-bar button{font-size:12px}}

/* v0.4 — richer controls, same V17 visual language. */
#emio-owner-bar .emio-actions{grid-template-columns:repeat(7,minmax(0,1fr))}
.emio-rich-editor{background:#fff;color:#15243a;border:1px solid #aeb9c6;border-radius:11px;min-height:110px;max-height:210px;overflow:auto;padding:12px;font-size:15px;line-height:1.6;outline-offset:2px;white-space:pre-wrap;overflow-wrap:anywhere}
.emio-rich-editor:focus{outline:2px solid #c6a66b}
.emio-rich-tools{display:flex;gap:7px;margin:7px 0 15px}
.emio-rich-tools button{border:1px solid #c6a66b;background:#eef1f4;color:#14243a;border-radius:8px;padding:7px 12px;font-weight:700}
.emio-field{display:flex;flex-direction:column;gap:6px;color:#14243a;font-weight:700;margin:10px 0}
.emio-field input,.emio-field select,.emio-field textarea{width:100%;box-sizing:border-box;padding:10px;font:500 14px system-ui;border:1px solid #b1baca;border-radius:9px;min-height:38px;color:#14243a;background:white}
.emio-field textarea{min-height:80px;resize:vertical}
.emio-toggle{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:700;margin:9px 0}
.emio-toggle input{width:18px;height:18px;flex:none}
#emio-dialog .emio-dialog-inner{max-height:89vh}
#emio-dialog .emio-color-field{gap:10px}
#marquee[hidden]{display:none!important}
#contact .contact-channel{cursor:pointer;text-decoration:none}
#contact .contact-channel.emio-contact-pending{cursor:default}
#contact .contact-channel small{overflow-wrap:anywhere}
body.emio-edit-mode #marquee,body.emio-edit-mode .contact-channel,body.emio-edit-mode a,body.emio-edit-mode button.service-card{cursor:crosshair}
@media(max-width:900px){#emio-owner-bar .emio-actions{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:430px){#emio-owner-bar .emio-actions{grid-template-columns:repeat(3,minmax(0,1fr))}#emio-owner-bar button{font-size:10px;padding:4px 2px}}


/* v0.4.1 — Studio iframe stays viewport-wide; gestures keep pinch zoom enabled. */
#emio-project-panel{width:100%;max-width:100%;height:100%;max-height:100dvh;min-width:0;overflow:hidden;touch-action:manipulation}
#emio-project-panel .emio-project-head{flex:0 0 auto;min-width:0;max-width:100%;}
#emio-project-panel .emio-project-head span{min-width:0;overflow-wrap:anywhere}
#emio-project-panel .emio-project-head button{flex:0 0 auto;touch-action:manipulation}
#emio-project-panel iframe{display:block;width:100%;max-width:100%;min-width:0;min-height:0;height:100%;flex:1 1 auto;touch-action:manipulation}
@supports not (height:100dvh){#emio-project-panel{max-height:100vh}}

/* v0.4.2 — explicit independent marquee color pickers. */
#emio-dialog .emio-marquee-color-heading{font:800 15px/1.4 system-ui;margin:16px 0 8px;color:#14243a}
#emio-dialog .emio-marquee-colors{display:grid;gap:9px}
#emio-dialog .emio-marquee-color-row{display:grid;grid-template-columns:minmax(0,1fr) auto 52px auto;align-items:center;gap:8px;padding:9px;border:1px solid #d3dbe4;border-radius:11px;background:#fff;min-width:0}
#emio-dialog .emio-marquee-color-row label{font:700 13px/1.3 system-ui;margin:0;overflow-wrap:anywhere}
#emio-dialog .emio-marquee-color-button,#emio-dialog .emio-marquee-color-reset{min-height:38px;border:1px solid #c6a66b;border-radius:9px;padding:7px 9px;background:#14243a;color:white;font:700 12px system-ui;cursor:pointer}
#emio-dialog .emio-marquee-color-reset{background:#edf0f4;color:#14243a;border-color:#b7c0cf}
#emio-dialog .emio-marquee-color-picker{display:block;width:52px;height:42px;padding:3px;border:1px solid #a8b7c8;border-radius:9px;background:#fff;cursor:pointer;box-sizing:border-box;min-width:0;touch-action:manipulation}
#emio-dialog .emio-marquee-color-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:57px;margin-top:12px;padding:10px 14px;border-radius:10px;overflow:hidden}
#emio-dialog .emio-marquee-color-preview strong{font:800 17px Georgia,serif;letter-spacing:1px}
#emio-dialog .emio-marquee-color-preview span{font:800 12px system-ui;letter-spacing:1px}
@media(max-width:560px){#emio-dialog .emio-marquee-color-row{grid-template-columns:minmax(0,1fr) 52px;gap:6px}#emio-dialog .emio-marquee-color-row label{grid-column:1/-1}#emio-dialog .emio-marquee-color-button{grid-column:1;grid-row:auto}#emio-dialog .emio-marquee-color-reset{grid-column:1/-1;justify-self:start}#emio-dialog .emio-marquee-color-picker{grid-column:2;grid-row:2}#emio-dialog .emio-marquee-color-row input{font-size:16px}}

/* v0.7: iOS Safari input focus must not trigger viewport auto-zoom. Pinch zoom remains enabled. */
@media (max-width: 900px){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select{font-size:16px!important;}}
html,body{max-width:100%;overflow-x:clip;}

/* v0.8: iPhone Safari modal geometry; no disabling user pinch zoom. */
#emio-dialog,#emio-project-panel{inset:0!important;width:100%!important;max-width:100vw!important;overflow-x:hidden!important;}
#emio-dialog .emio-dialog-inner,#emio-project-panel .emio-dialog-inner{box-sizing:border-box!important;width:min(100%,720px)!important;max-width:calc(100vw - 20px)!important;min-width:0!important;margin-inline:auto!important;overflow-x:hidden!important;}
#emio-dialog input:not([type=checkbox]):not([type=radio]):not([type=color]),#emio-dialog textarea,#emio-dialog select,#emio-project-panel input,#emio-project-panel textarea,#emio-project-panel select{font-size:16px!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
#emio-dialog label,#emio-dialog .emio-field,#emio-dialog .emio-dialog-inner>*{min-width:0;max-width:100%;overflow-wrap:anywhere;}
#contact .contact-channel small[hidden]{display:none!important;}
#contact .contact-channel-icon svg{display:block;color:#c6a66b;}
