.sm { --sm-line: #c9ced2; max-width: 120rem; }
.sm .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-help { max-width: 52rem; margin: 0 0 .7rem; color: var(--muted); }
.sm-top, .sm-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .5rem .6rem; background: #fff; border: 1px solid var(--sm-line); border-radius: 6px; margin-bottom: .5rem; }
.sm-grp { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sm-sep { width: 1px; align-self: stretch; background: var(--sm-line); margin: 0 .2rem; }
.sm .btn { padding: .35rem .65rem; font-size: .88rem; min-height: 2.4rem; min-width: 2.4rem; }
.sm .btn:disabled { opacity: .45; cursor: default; }
.sm-inline { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; color: var(--muted); }
.sm select, .sm input[type=text], .sm input[type=number], .sm textarea { width: 100%; padding: .3rem .4rem; font: inherit; font-size: .9rem; border: 1px solid #8b9298; border-radius: 3px; background: #fff; color: var(--ink); box-sizing: border-box; }
.sm .sm-top select, .sm .sm-top input[type=text] { width: auto; min-width: 11rem; }
.sm input[type=color] { width: 100%; height: 2rem; padding: 0 .1rem; border: 1px solid #8b9298; border-radius: 3px; background: #fff; }
.sm input[type=checkbox] { width: 1.05rem; height: 1.05rem; margin: 0; }
.sm-check { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--ink); }
.sm-zoom { min-width: 3rem; text-align: center; font-size: .88rem; color: var(--muted); }
.sm-layout { display: grid; grid-template-columns: 18.5rem minmax(0, 1fr) 16rem; gap: .7rem; align-items: start; }
.sm-card { background: #fff; border: 1px solid var(--sm-line); border-radius: 6px; padding: .6rem .7rem; margin-bottom: .6rem; }
.sm-card > summary { font: 600 1.05rem/1.2 var(--font-display); cursor: pointer; }
.sm-h { font: 600 1.05rem/1.2 var(--font-display); margin: 0 0 .5rem; }
.sm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .5rem; margin-top: .5rem; }
.sm-fields label { display: grid; gap: .15rem; font-size: .8rem; color: var(--muted); }
.sm-fields label.sm-check { display: inline-flex; color: var(--ink); }
.sm-fields .wide, .sm-fields hr { grid-column: 1 / -1; }
.sm-fields hr { border: 0; border-top: 1px solid var(--sm-line); margin: .1rem 0; width: 100%; }
.sm-seg { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.sm-muted { color: var(--muted); font-size: .85rem; margin: .4rem 0 0; } .sm-muted code { background: #eef0f2; padding: 0 .25rem; border-radius: 3px; }
.sm-layers { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; max-height: 15rem; overflow: auto; }
.sm-layers li { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem; }
.sm-layers li.is-sel .sm-lname { background: var(--blue-tint); border-color: var(--blue); font-weight: 600; }
.sm-lname { text-align: left; padding: .3rem .5rem; font: inherit; font-size: .85rem; background: #fff; border: 1px solid var(--sm-line); border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: var(--ink); }
.sm-mini { width: 1.9rem; background: #fff; border: 1px solid var(--sm-line); border-radius: 3px; cursor: pointer; color: var(--ink); font-size: .95rem; }
.sm-lname:hover, .sm-mini:hover { background: var(--blue-tint); }
.sm-stage { position: relative; overflow: auto; background: #d9dde0; border: 1px solid var(--sm-line); border-radius: 6px; max-height: calc(100dvh - 15rem); min-height: 22rem; display: flex; }
.sm-stage:focus-visible { outline: 3px solid var(--bolt); outline-offset: 1px; }
.sm-svg { display: block; margin: auto; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.sm-hit { cursor: move; } .sm-guide { stroke: #d6336c; stroke-dasharray: 3 2; pointer-events: none; }
.sm-edit { position: absolute; z-index: 5; padding: 0; border: 2px solid #0b5cab; background: rgba(255,255,255,.9); color: #000; resize: none; font-family: Arial, sans-serif; line-height: 1.15; box-sizing: border-box; }
.sm-keys { font-size: .82rem; color: var(--muted); margin: .4rem 0 0; }
@media (max-width: 1180px) { .sm-layout { grid-template-columns: 17rem minmax(0, 1fr); } .sm-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .6rem; } }
@media (max-width: 760px) { .sm-layout { grid-template-columns: minmax(0, 1fr); } .sm-stage { order: -1; } }
/* print: only the sheet */
#ww-print { display: none; }
@media print {
  html.printing-stickers body > *:not(#ww-print) { display: none !important; }
  html.printing-stickers #ww-print { display: block; }
  html.printing-stickers body { background: #fff; }
  #ww-print .page { box-sizing: border-box; page-break-after: always; break-after: page; overflow: hidden; }
  #ww-print .page:last-child { page-break-after: auto; break-after: auto; }
  #ww-print .grid { display: grid; }
  #ww-print .cell { line-height: 0; } #ww-print .cell svg { display: block; }
  #ww-print .cell.cut { outline: 0.1mm solid #9aa0a6; }
}
.sm-edit-b { position: absolute; z-index: 6; min-height: 28px; padding: 2px 10px; background: #fff; border: 1px solid #0b5cab; }
.sm-textbar { margin-bottom: .25rem; }
