.sq-root .sqmix-entry { margin-top: 14px; }
.sq-root .sqmix-body { width:min(100%,740px); }
.sqmix-overview, .sqmix-lead { margin: 12px 0 16px; }
.sq-root .sqmix-overview > p, .sq-root .sqmix-lead { margin-bottom: 10px; color: var(--sq-muted); }
.sq-root .sqmix-count { font-weight: 800; }
.sqmix-levels, .sqmix-rows { list-style: none; margin: 0; padding: 0; }
.sqmix-levels {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
}
.sq-root .sqmix-level {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 7px;
  width: 100%; height: 100%; padding: 9px; text-align: start; font-weight: 750;
  border-radius: 10px; border: 1px solid var(--sq-line); background: var(--sq-white);
}
.sqmix-level small { color: var(--sq-green); white-space: nowrap; }
.sqmix-row {
  display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; align-items: start;
  padding: 10px; margin-bottom: 8px; border: 1px solid var(--sq-line);
  background: var(--sq-white); border-radius: 12px;
}
.sqmix-row-number {
  display: grid; place-items: center; width: 24px; height: 24px; margin-top: 9px;
  border-radius: 5px; background: var(--sq-light); color: var(--sq-green); font-weight: 850;
}
.sqmix-sentence { font-size: clamp(17px, 4.7vw, 21px); font-weight: 700; overflow-wrap: anywhere; }
.sq-root .sqmix-slot {
  display: inline-flex; vertical-align: middle; align-items: center; justify-content: center;
  min-width: 46px; min-height: 44px; max-width: 100%; padding: 3px 7px; white-space: normal;
  scroll-margin-block-end: 135px; margin: 2px; border-radius: 6px; border: 2px dashed #68826d; background: #f3f7ed;
  color: var(--sq-green); font-weight: 800; line-height: 1.3;
}
.sqmix-slot span + span { margin-inline-start: 4px; }
.sq-root .sqmix-slot.right { border-style: solid; border-color: #4e7759; background: #e1efda; }
.sq-root .sqmix-slot.retry { border-color: #9b5226; color: #703e23; background: #fff0d8; }
.sqmix-hint { color: var(--sq-muted); font-size: 14px; padding: 5px 0 0; }
.sqmix-hint summary { min-height: 44px; display: list-item; cursor: pointer; padding: 9px 0; font-weight: 750; }
.sqmix-sentence mark { background: #dcebd8; color: var(--sq-ink); border-radius: 4px; padding: 2px; }
.sqmix-toolbar {
  position: sticky; bottom: 0; z-index: 2; padding: 9px 10px max(10px,env(safe-area-inset-bottom));
  background: #fbf6e9; border: 1px solid var(--sq-line); border-radius: 10px; box-shadow: 0 -3px 14px #4b3e2418;
}
.sq-root .sqmix-status { color: var(--sq-green); font-weight: 800; margin-bottom: 5px; }
.sqmix-status small { display: block; font-size: 13px; line-height: 1.35; font-weight: 650; }
.sqmix-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.sqmix-toolbar > .sq-nav-button { margin-top: 7px; }
.sq-root .sqmix-storage { font-size: 13px; color: #7a361d; margin-top: 8px; }
.sqmix-storage:empty { display: none; }
.sqmix-next { padding-top: 9px; }

.sq-root .sqmix-dialog {
  position: fixed; box-sizing: border-box; width: min(580px,calc(100vw - 22px)); max-width: none;
  max-height: min(80vh, 680px); max-height: min(80dvh, 680px); padding: 0;
  color: var(--sq-ink); background: var(--sq-white); border: 1px solid #929e83;
  border-radius: 15px; overscroll-behavior: contain; box-shadow: 0 18px 45px #18271657;
}
.sqmix-dialog::backdrop { background: #16241cb1; }
.sqmix-dialog-inner { padding: 13px; }
.sqmix-dialog-head { display:flex; gap: 8px; justify-content: space-between; align-items: center; }
.sqmix-dialog-head h2 { font-size: 20px; }
.sq-root .sqmix-dialog p { color: var(--sq-muted); font-size: 14px; margin: 6px 0 10px; }
.sqmix-tiles { display:grid; grid-template-columns: repeat(auto-fit,minmax(111px,1fr)); gap: 7px; margin-top: 8px; }
.sq-root .sqmix-tiles .sq-chip { padding: 5px 6px; min-width: 0; overflow-wrap: anywhere; }

.sqmix-row { scroll-margin-block-end: 135px; }
