/* MedaShot v0.7 brand system: teal ink + mustard yellow, light RTL UI. */
:root{--primary:#0f7476;--primary-pale:#e8f5f3;--teal:#0f7476;--mustard:#dfaf34;--ink:#233f46;--muted:#81969b;--bg:#f6faf9;--line:#e1eae8;--shadow:0 6px 24px #1d5a5410}
body,.stage-section{background:#f6faf9;color:var(--ink)}
.topbar,.toolrail,.inspector,.statusbar,.slides-nav{background:#fff;border-color:#e0ece8}
.brand{gap:7px}
.brand-mark{display:none!important}
.brand-copy{gap:0}
.brand-copy strong{font-size:25px!important;color:var(--primary);letter-spacing:-1px;display:flex;direction:ltr;align-items:center;line-height:1;font-weight:800}
.brand-copy .brand-o{width:23px;height:23px;display:inline-grid;place-items:center;margin:0 1px;transform:rotate(10deg)}
.brand-copy .brand-o svg{width:23px;height:23px;stroke:#dfaf34;stroke-width:2.7}
.brand-copy .brand-end{color:#0f7476}
.brand-copy small{font-size:9.5px!important;color:#859b9e}
.beta{background:#eaf6f0!important;color:#0c7770!important}
.btn-primary{background:#0f7476!important;box-shadow:0 3px 11px #0f747622!important;color:#fff!important}
.btn-primary:hover{background:#095b5e!important}
#export-button{background:linear-gradient(130deg,#e8b845,#ce9926)!important;color:#fff!important;border:0!important;box-shadow:0 5px 15px #c6983550!important}
#export-button:hover{filter:brightness(1.04)}
.btn-light{border-color:#dceae7;color:#36575c}
.btn-light:hover,.btn-quiet:hover,.icon-btn:hover,.tool:hover{background:#f1f9f7;color:#0c676a;border-color:#d5ebe6}
.tool.active{background:#e5f3f1!important;color:#0f7476!important}
.inspector-tab.active{color:#0f7476!important;border-bottom-color:#0f7476!important}
.title-note,.slide-stage-actions,.slides-stage-actions{background:#eaf6f2!important;color:#0f7476!important}
.doc-badge,.empty-sparkle{background:#eaf6f2;color:#0f7476}
.inspector .setting-title,.doc-title-line{color:#234a4b}
#style-section input[type=range],.setting-section input[type=range],input[type=range]{accent-color:#0f7476}
.swatch[data-color="#0f7476"]{--swatch:#0f7476}
.swatch[data-color="#dfaf34"]{--swatch:#dfaf34}
.toggle-row input:checked+.toggle-ui{background:#0f7476}
.status-group svg{color:#0f7476!important}
.status-dot{background:#10a17c;box-shadow:0 0 0 3px #e4f6ec}
.dropdown button:hover{background:#eaf6f2}
.dropdown svg,.feature-filter.active,.feature-library-buttons button:hover{color:#0f7476}
.feature-step-icon{background:#0f7476!important;box-shadow:0 2px 6px #0f747644}
.feature-step-choice.is-active{border-color:#0f7476!important;background:#e9f7f3!important}
.slides-card.active{background:#eaf5f1!important;border-color:#a8cfc6!important}
.slides-card.active .slides-caption{color:#0f7476!important}
.slides-bottom button{background:#eaf5f1!important;color:#0f7476!important}
.slides-stage-actions button{color:#0f7476!important}
.slides-mini:hover{color:#0f7476!important;background:#e8f4f1!important}
.master-tabs button.active{color:#0f7476!important;border-color:#b9dcd2!important;background:#ecf8f4!important}
.master-insert,.master-open,.rich-grid-tools button:hover{color:#0f7476!important}
.master-field input[type=range],.rich-grid-modal input[type=range]{accent-color:#0f7476!important}
.master6-item.active{outline-color:#0f7476!important}
.master6-tools .master6-toolbar button:hover{color:#0f7476;background:#e9f6f3}
.master6-stage,.exp6-image{border-color:#d8e7e3}
.exp6-body{background:#f3f9f7}
.rich-inline{outline-color:#0f7476!important;border-color:#78bdb3!important}
.rich-toolbar button{background:#0f7476!important}
.rich-grid td input:focus{background:#eaf8f4;box-shadow:inset 0 0 0 2px #85bcb2}
.rich-grid th{background:#eef6f2}
.feature-library-thumb{background:repeating-conic-gradient(#e7efed 0% 25%,#fff 0% 50%) 50%/22px 22px}
.stage-viewport{background-color:#f6f9f9;background-image:linear-gradient(45deg,#ebf0ef 25%,transparent 25%),linear-gradient(-45deg,#ebf0ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ebf0ef 75%),linear-gradient(-45deg,transparent 75%,#ebf0ef 75%)}
.shot-bg-btn{background:#0f7476!important;color:white!important;box-shadow:0 4px 13px #0f747631;border-color:#0f7476!important}
.shot-bg-btn:hover{background:#0a5f62!important}
.shot-arrow-pop{position:fixed;z-index:55;width:min(350px,calc(100vw - 95px));max-height:min(610px,80dvh);overflow:auto;padding:14px;background:#fff;border:1px solid #d8e6e2;border-radius:17px;box-shadow:0 20px 60px #153b4433;direction:rtl}
.shot-pop-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 10px;color:#175f62;font-weight:800}
.shot-pop-close{background:#eff5f4;border:0;border-radius:8px;color:#45636a;padding:5px 10px}
.shot-arrow-tabs{display:flex;gap:4px;margin-bottom:12px;flex-wrap:wrap}
.shot-arrow-tabs button{border:0;border-radius:7px;padding:6px 9px;background:#f3f7f6;color:#6e8488;font:10px var(--font)}
.shot-arrow-tabs button.active{background:#dff0e9;color:#0f7476;font-weight:800}
.shot-arrow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.shot-arrow-choice{display:grid;place-items:center;height:62px;gap:0;background:white;border:1px solid #e3ece9;border-radius:11px;color:#1d3c3d;cursor:pointer}
.shot-arrow-choice svg{width:68px;height:40px;fill:none;stroke:#193c40;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.shot-arrow-choice small{font:9px var(--font);color:#849495}
.shot-arrow-choice.active{border:2px solid #0f7476;background:#ecf8f5}
.shot-bg-dialog{direction:rtl;font:12px var(--font);max-width:min(1000px,calc(100vw - 20px));width:970px;max-height:92dvh;border:1px solid #dceae6;border-radius:17px;padding:0;box-shadow:0 22px 80px #193f4739;color:#274c51}
.shot-bg-dialog::backdrop{background:#173b446e}
.shot-bg-head,.shot-bg-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 20px;border-bottom:1px solid #e6efec}
.shot-bg-head h2{font-size:16px;margin:0}.shot-bg-head p{font-size:10px;color:#809597;margin:4px 0 0}
.shot-bg-foot{border-bottom:0;border-top:1px solid #e6efec;justify-content:flex-end}
.shot-bg-body{display:grid;grid-template-columns:1fr 260px;max-height:72dvh;min-height:320px}
.shot-bg-preview{background:repeating-conic-gradient(#dfe8e6 0% 25%,white 0% 50%) 50%/22px 22px;padding:16px;display:grid;place-items:center;min-height:250px;overflow:auto}
.shot-bg-preview canvas{max-width:100%;max-height:62dvh;cursor:crosshair;object-fit:contain;box-shadow:0 9px 35px #1f46501e}
.shot-bg-settings{padding:17px;display:flex;flex-direction:column;gap:12px;border-right:1px solid #e6eeeb}
.shot-bg-settings label{font-size:11px;color:#526b6b}
.shot-bg-settings input[type=range]{width:100%}
.shot-bg-actions{display:flex;gap:7px;flex-wrap:wrap}
.shot-bg-actions button{border:1px solid #dceae6;border-radius:8px;background:#fff;padding:8px;color:#315a5c;font:11px var(--font)}
.shot-bg-sample{display:inline-block;vertical-align:middle;width:21px;height:21px;border:1px solid #aabbc0;border-radius:6px;background:var(--sample)}
.shot-bg-warning{color:#9c7723;background:#fff7df;border-radius:8px;padding:9px;font-size:10px;line-height:1.8}
@media(max-width:850px){.brand-copy strong{font-size:20px!important}.shot-bg-body{grid-template-columns:1fr}.shot-bg-settings{border-right:0;border-top:1px solid #e6eeeb}.shot-bg-preview{min-height:150px}.shot-arrow-pop{max-height:65dvh}.shot-bg-dialog{max-height:93dvh}.shot-bg-body{overflow:auto}}
