
.sp_tabs { display: none; }

.dir-sp { display: none; }
@media (max-width: 767px) {
  .dir-pc { display: none; }
  .dir-sp { display: inline; }
  .app { grid-template-rows: auto minmax(0, 1fr); }
  html.embed .app { grid-template-rows: auto minmax(0, 1fr); }
  html.embed .bar { display: flex; flex-wrap: nowrap; gap: 6px; padding: 6px 8px; }
  html.embed .bar_tag, html.embed .bar_step, html.embed .bar_dots { display: none; }
  .bar_btns { margin-left: auto; display: flex; gap: 6px; flex: none; }
  .bar_btn { min-height: 44px; padding: 0 11px; font-size: 14px; }

  .sp_tabs { display: flex; flex: 0 1 auto; min-width: 0; padding: 2px; gap: 2px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); }
  .sp_tabs button { position: relative; flex: 1 1 auto; min-width: 58px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
    color: var(--ink2); font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; transition: background .2s, color .2s; }
  .sp_tabs button[aria-selected="true"] { background: var(--sc); color: #fff; }
  
  .sp_tabs button i { display: none; position: absolute; top: 7px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 2px #fff; }
  .sp_tabs button.new i { display: block; }
  
  html:not(.embed) .sp_tabs { order: 9; flex-basis: 100%; }

  
  .split { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .split > .pane { grid-area: 1 / 1; }
  html:not([data-sp-tab="result"]) .split > .pane:last-child,
  html[data-sp-tab="result"] .split > .pane:first-child { visibility: hidden; pointer-events: none; }

  
  .bub { font-size: 15px; line-height: 1.75; }
  .cha_txt { font-size: 15px; }
}
