/* v110: button feedback, toast, and the layout editor */

/* every button shows it was pressed */
button, .sk-menu a, .sk-ptabs a, [role=button] { transition: transform .08s ease, filter .12s ease, box-shadow .2s ease; }
button:active:not(:disabled), .sk-menu a:active, .sk-ptabs a:active, [role=button]:active { transform: translateY(1px) scale(.975); filter: brightness(.88); }
@keyframes m110ring { 0% { box-shadow: 0 0 0 0 var(--acc, #2B59FF); } 100% { box-shadow: 0 0 0 9px rgba(43, 89, 255, 0); } }
.m110-pressed { animation: m110ring .6s ease-out; }
button:focus-visible, .sk-menu a:focus-visible, .sk-ptabs a:focus-visible { outline: 2px solid var(--acc, #2B59FF); outline-offset: 2px; }

.m110-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; z-index: 100000;
  background: var(--sk-ink, #111); color: var(--sk-bg, #fff); padding: 11px 20px; font-size: 13px; letter-spacing: .01em; max-width: min(560px, 90vw);
  border-left: 3px solid var(--acc, #2B59FF); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .2s ease, transform .2s ease; }
.m110-toast.show { opacity: 1; transform: translate(-50%, 0); }
.m110-toast.bad { border-left-color: #e5484d; }

/* layout geometry (desktop only) */
@media (min-width: 901px) {
  html.m110-lay .app { grid-template-columns: var(--m110-cols) !important; }
  html.m110-swap .topbar { order: 0; }
  html.m110-swap .sidebar { order: 3; border-right: 0 !important; border-left: 1px solid var(--sk-line, rgba(128,128,128,.25)); }
  html.m110-swap .chart-area { order: 2; }
  html.m110-swap .macro-panel { order: 1; border-left: 0 !important; border-right: 1px solid var(--sk-line, rgba(128,128,128,.25)); }
  html.m110-noright .macro-panel { display: none; }
}

/* hidden items (still shown, dimmed, while editing) */
.m110-hid { display: none !important; }
html.m110-editing .m110-hid { display: flex !important; opacity: .38; }
html.m110-editing .sidebar-section-body.m110-hid { display: none !important; }
html.m110-editing .sk-ptabs a.m110-hid { display: flex !important; }

/* editing handles */
html.m110-editing [data-m110] { position: relative; cursor: grab; outline: 1px dashed rgba(128, 128, 128, .55); outline-offset: -2px; }
html.m110-editing [data-m110].m110-drag { opacity: .4; }
html.m110-editing [data-m110].m110-over { box-shadow: 0 -3px 0 0 var(--acc, #2B59FF); }
html.m110-editing [data-m110].m110-over-b { box-shadow: 0 3px 0 0 var(--acc, #2B59FF); }
.m110-eye, .m110-ab { font-size: 11px; line-height: 1; padding: 4px 7px; border: 1px solid rgba(128, 128, 128, .6); background: var(--sk-bg, #fff); color: var(--sk-ink, #111); cursor: pointer; letter-spacing: .02em; }
.m110-eye { margin-left: 8px; flex: none; }
.m110-eye.off { background: var(--acc, #2B59FF); color: #fff; border-color: transparent; }
.m110-arr { margin-left: auto; display: inline-flex; gap: 3px; flex: none; }
.m110-ab { padding: 4px 6px; }
.sk-menu a[data-m110], .sk-ptabs a[data-m110], .sidebar-section-header[data-m110] { display: flex; align-items: center; }

/* editor panel */
.m110-panel { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 99990; width: min(640px, 94vw);
  background: var(--sk-bg, #fff); color: var(--sk-ink, #111); border: 1px solid rgba(128, 128, 128, .45); border-top: 3px solid var(--acc, #2B59FF);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .4); padding: 16px 20px 16px; max-height: 70vh; overflow: auto; }
.m110-t { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.m110-n { font-size: 12px; opacity: .75; margin-bottom: 12px; line-height: 1.5; }
.m110-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 13px; }
.m110-row > span:first-child { min-width: 150px; }
.m110-row input[type=range] { flex: 1; accent-color: var(--acc, #2B59FF); }
.m110-val { width: 60px; text-align: right; font-variant-numeric: tabular-nums; opacity: .8; }
.m110-chk > span { min-width: 0 !important; }
.m110-sel { flex: 1; background: transparent; color: inherit; border: 1px solid rgba(128, 128, 128, .5); padding: 6px 8px; font-size: 13px; }
.m110-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.m110-b { background: var(--acc, #2B59FF); color: #fff; border: 0; padding: 9px 20px; font-size: 13px; cursor: pointer; }
.m110-b.ghost { background: transparent; color: inherit; border: 1px solid rgba(128, 128, 128, .55); }
