/* apps/regi の新規会計。PCで変更するのはこの画面だけ。 */
.regi-create-view .regi-client-selection {
  display: flex;
  align-items: center;
  gap: 8px;
}
.regi-create-view .regi-client-selection > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  max-width: 100%;
  height: 44px;
  padding: 8px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
}
.regi-create-view .regi-client-selection > span > span {
  color: #777;
  font-size: 13px;
}
.regi-create-view .regi-staff-and-flags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.regi-create-view .regi-staff-trigger {
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  padding: 9px 10px;
  white-space: nowrap;
  font-size: 12px;
  min-width: 120px;
}
.regi-create-view .regi-menu-flags {
  display: flex;
  gap: 5px;
}
.regi-create-view .regi-menu-flags span {
  display: inline-block;
  border: 1px solid #c4c4c4;
  border-radius: 18px;
  padding: 6px 10px;
  color: #777;
  font-size: 12px;
  white-space: nowrap;
}
.regi-create-view .regi-menu-flags .selected {
  border-color: #42d0c4;
  color: #279f96;
}
.regi-create-view .regi-discount-chip {
  display: inline-block;
  color: #ff0061;
  border: 1px solid #ff0061;
  border-radius: 18px;
  padding: 6px 10px;
  margin-right: 10px;
  font-size: 12px;
}
.regi-create-view .regi-remove-chip {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: white;
  background: #bbb;
  border-radius: 50%;
}
.regi-create-view .regi-discount-text {
  color: #ff0061;
  font-size: 12px;
}
.regi-create-view .regi-adjustment {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
}
.regi-create-view .regi-adjustment label {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}
.regi-create-view .regi-adjustment input[type="radio"] {
  accent-color: #42d0c4;
}
.regi-create-view .regi-adjustment > input {
  min-width: 0;
  width: 84px;
  margin-left: auto;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  padding: 8px;
  text-align: right;
}
.regi-create-view .regi-sales-table {
  min-width: 850px;
}
.regi-create-view .regi-sales-table td:last-child {
  white-space: nowrap;
}

/* スマホ専用の部品。本体の md=900/sm=600 の分岐を、デモのスマホ幅1023px以下で表示する。 */
@media (max-width: 1023px) {
  body:not(.salon-comparison) #stage .salon-mobile {
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    width: 100%;
  }
  body:not(.salon-comparison) #stage .shop-mobile-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    height: 64px;
    padding: 0 12px;
    gap: 8px;
    box-shadow: none;
    background: #fff;
  }
  .shop-mobile-header .shop-mobile-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .shop-mobile-identity > img {
    width: 43px;
    height: 30px;
    flex-shrink: 0;
  }
  .shop-mobile-identity > strong {
    color: #212b36;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .salon-home .shop-mobile-identity > strong,
  .salon-schedule .shop-mobile-identity > strong {
    color: #777;
    font-size: 13px;
  }
  .shop-mobile-header > nav,
  .regi-mobile-header > nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    flex-shrink: 0;
  }
  #stage .shop-mobile-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 7px;
    background: #f4f4f4;
    color: #777;
    border: 0;
    border-radius: 50%;
  }
  #stage .shop-mobile-icon .salon-icon {
    width: 22px;
    height: 22px;
    color: inherit;
  }
  #stage .shop-mobile-icon.primary {
    background: #42d0c4;
    color: #fff;
  }
  body:not(.salon-comparison) #stage .salon-mobile .salon-layout {
    display: block;
    padding: 0;
    min-height: 0;
  }
  body:not(.salon-comparison) #stage .salon-mobile .salon-clients {
    width: 100%;
    min-height: 0;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  body:not(.salon-comparison) #stage .salon-mobile .salon-client-filter {
    padding: 0 12px 12px;
  }
  .salon-mobile .salon-client-tabs {
    margin-top: 8px;
  }
  .salon-mobile .salon-client-rows {
    padding: 0 12px;
  }
  .salon-mobile .salon-client-item {
    min-height: 88px;
    gap: 8px;
    padding: 14px 0;
  }
  .salon-mobile .salon-client-name strong {
    font-size: 15px;
  }
  .salon-mobile .salon-client-name time {
    font-size: 10px;
  }
  .salon-mobile .salon-client-excerpt {
    font-size: 11px;
  }
  .salon-mobile .salon-client-meta {
    font-size: 10px;
    gap: 8px;
  }
  .salon-mobile .salon-guest-register {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding: 12px;
  }
  body:not(.salon-comparison) #stage .salon-mobile .salon-main {
    width: 100%;
    padding: 0 12px 24px;
  }
  .salon-mobile .salon-chat {
    border-radius: 0;
    box-shadow: none;
  }
  body:not(.salon-comparison) #stage .salon-mobile .salon-chat-scroll {
    padding: 12px 0 16px;
  }
  .salon-mobile .salon-chat-composer {
    padding: 12px 0;
    gap: 8px;
  }
  .salon-mobile .salon-chat-composer > button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 8px;
    font-size: 0;
    background: #42d0c4;
  }
  .salon-mobile .salon-chat-composer > button > svg {
    color: white;
    width: 24px;
    height: 24px;
  }
  .shop-mobile-menu {
    background: white;
    min-height: 560px;
    padding: 12px;
    color: #212b36;
  }
  .shop-mobile-menu > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .shop-mobile-menu > header h2 {
    font-size: 20px;
  }
  #stage .shop-mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 8px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    text-align: left;
    background: white;
    color: #212b36;
    font-size: 15px;
    font-weight: 700;
  }
  .shop-mobile-menu-item .salon-icon {
    color: #777;
  }

  /* dayTimelineAll/MobileContent: 30分27.5px、時刻列＋折り畳み集計＋スタッフ列。 */
  .salon-mobile .cy-schedule-card {
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .sp-schedule-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 16px;
    font-size: 15px;
  }
  .sp-schedule-date > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f4f4;
    color: #777;
    font-size: 24px;
  }
  .sp-schedule-date > strong {
    font-size: 15px;
  }
  .sp-calendar-scroll {
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sp-calendar-timeline {
    display: flex;
    align-items: stretch;
    width: max-content;
    min-width: 100%;
    color: #212b36;
    background: white;
  }
  .sp-time-labels {
    position: sticky;
    left: 0;
    z-index: 4;
    width: 27px;
    flex-shrink: 0;
    background: white;
  }
  .sp-time-labels > header {
    height: 72px;
  }
  .sp-time-labels > span {
    display: block;
    text-align: right;
    padding: 5px 4px 0 0;
    font-size: 12px;
  }
  .sp-summary-toggle {
    position: sticky;
    left: 27px;
    z-index: 4;
    width: 20px;
    flex-shrink: 0;
    background: #eee;
    border: 1px solid #ddd;
  }
  .sp-summary-toggle > button {
    padding: 22px 0 0;
    width: 18px;
    background: transparent;
    color: #777;
    font-size: 18px;
  }
  .sp-calendar-summary {
    position: sticky;
    left: 27px;
    z-index: 4;
    background: white;
    flex-shrink: 0;
    width: 144px;
  }
  .sp-calendar-summary + .sp-summary-toggle {
    left: 171px;
  }
  .sp-calendar-summary > header {
    height: 72px;
    display: flex;
    background: #fafafa;
    font-size: 10px;
  }
  .sp-calendar-summary > header span {
    flex: 1;
    text-align: center;
    padding-top: 14px;
    border: 1px solid #eee;
  }
  .sp-calendar-summary > div {
    display: flex;
    height: 27.5px;
  }
  .sp-calendar-summary > div span {
    width: 48px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 11px;
    padding-top: 6px;
  }
  .sp-staff-column {
    width: 184px;
    flex-shrink: 0;
  }
  .sp-staff-column > header {
    height: 72px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #fff;
  }
  .sp-staff-column > header strong {
    font-size: 12px;
    font-weight: 500;
  }
  .sp-staff-column > header span {
    font-size: 12px;
    color: #777;
  }
  .sp-staff-time {
    position: relative;
    display: flex;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 26.5px,
      #eee 26.5px,
      #eee 27.5px
    );
    border-bottom: 1px solid #ddd;
  }
  .sp-shift-column {
    width: 40px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    position: relative;
  }
  .sp-shift-event {
    position: absolute;
    left: 2px;
    right: 2px;
    background: #42d0c4;
    color: white;
    font-size: 12px;
    padding: 4px 2px;
    border-radius: 4px;
  }
  .sp-booking-column {
    position: relative;
    width: 144px;
    background: linear-gradient(
      to right,
      transparent 71px,
      #eee 71px,
      #eee 72px,
      transparent 72px
    );
  }
  #stage .sp-reserve-event {
    position: absolute;
    left: 3px;
    width: 66px;
    min-height: 0;
    max-height: none;
    padding: 4px 3px;
    border: 0;
    border-radius: 4px;
    text-align: left;
    color: white;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
  }
  .sp-reserve-event > strong {
    font-size: 12px;
    font-weight: 500;
    white-space: normal;
  }
  .sp-reserve-event .reserve-event-icons {
    margin-top: 3px;
  }
  .sp-schedule-controls {
    padding: 16px 0;
    background: white;
    font-size: 12px;
  }
  .sp-schedule-controls > div {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .sp-schedule-controls select {
    min-width: 0;
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px;
    width: 150px;
    font-size: 14px;
    background: white;
  }
  .sp-schedule-controls > label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 4px;
    color: #777;
  }

  /* MemoList / Item.MobileContent: Figmaの古い2列カードではなく現在の1列。 */
  .salon-mobile .karte-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .salon-mobile .karte-filter {
    padding: 8px 0 12px;
  }
  #stage .salon-mobile .sp-memo-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    width: 100%;
    min-height: 0;
    height: auto;
    background: white;
    color: #212b36;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 0 24px #919eab22;
    text-align: left;
  }
  .sp-memo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 8px;
    color: #777;
    font-size: 12px;
    width: 100%;
  }
  .sp-memo-meta small {
    font-size: 12px;
    font-weight: 700;
  }
  .sp-memo-body {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    min-width: 0;
  }
  #stage .sp-memo-body > img {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 8px;
    object-fit: cover;
  }
  .sp-memo-body > div {
    min-width: 0;
    flex: 1;
  }
  .sp-memo-body strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
  }
  .sp-memo-body .karte-category-row {
    margin-top: 8px;
  }
  .sp-memo-body .karte-category {
    font-size: 10px;
    padding: 4px 6px;
  }
  #stage .sp-memo-item .karte-card-memo {
    background: #f3fcfb;
    display: block;
    padding: 6px;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    width: 100%;
  }
  .sp-memo-more {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #42bfb5;
  }
  .salon-mobile .memo-card {
    border-radius: 0;
    padding: 12px 0;
    box-shadow: none;
    margin: 0 0 24px;
  }
  .salon-mobile .karte-result > .sub,
  .salon-mobile .memo-edit-card > .sub {
    font-size: 14px;
    font-weight: 700;
  }
  body:not(.salon-comparison)
    #stage
    .salon-mobile
    :is(.karte-detail-photos, .memo-edit-photos) {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
  }
  .salon-mobile .karte-detail-photos > button {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
  }
  .salon-mobile .karte-detail-photos > button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }
  .salon-mobile .memo-edit-photo,
  .salon-mobile .memo-photo-add {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 16px;
  }
  .salon-mobile .karte-title-row {
    margin: 24px 0 12px;
  }
  .salon-mobile .karte-title-row h3 {
    font-size: 18px;
  }
  .salon-mobile .karte-detail-memo {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
  }
  .salon-mobile .karte-result > .gray-pill {
    width: 100%;
    margin-top: 24px;
  }
  .salon-mobile .memo-edit-actions,
  .salon-mobile .memo-edit-actions > div {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 16px;
  }
  .salon-mobile .memo-edit-actions {
    gap: 40px;
  }
  .salon-mobile .memo-edit-actions button {
    width: 100%;
    height: 40px;
  }
  .salon-mobile .memo-edit-title,
  .salon-mobile .memo-edit-content {
    font-size: 16px;
  }
  .salon-mobile .memo-edit-content {
    min-height: 140px;
  }
  .salon-mobile .karte-transaction table {
    min-width: 620px;
  }

  /* DialogのfullScreen分岐。ページ内の展示なので、ページ1本の縦スクロールを使う。 */
  body:not(.salon-comparison) #stage .demo-modal-layer {
    padding: 0;
    background: white;
  }
  body:not(.salon-comparison) #stage .demo-modal-shell {
    padding: 12px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
  #stage .demo-modal-shell > header {
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding-bottom: 0;
    margin-bottom: 24px;
  }
  #stage .demo-modal-shell > header h2 {
    font-size: 24px;
    line-height: 1.4;
  }
  #stage .demo-modal-shell > header .modal-close {
    width: 40px;
    height: 40px;
  }
  body:not(.salon-comparison) #stage .demo-modal-scroll {
    padding: 0;
    overflow: visible;
  }
  .reserve-detail-modal .reserve-customer {
    position: relative;
    flex-wrap: nowrap;
    padding-right: 0;
    gap: 12px;
  }
  .reserve-detail-modal .reserve-customer > .salon-client-avatar {
    width: 48px;
    height: 48px;
  }
  .reserve-detail-modal .reserve-customer > div {
    min-width: 0;
    flex: 1;
  }
  .reserve-detail-modal .reserve-customer > .outline-pill {
    position: absolute;
    right: 0;
    top: 48px;
    font-size: 10px;
    padding: 4px 8px;
  }
  .reserve-detail-modal .reserve-customer strong {
    padding-right: 0;
    font-size: 14px;
  }
  .reserve-detail-modal .reserve-customer dl {
    margin-top: 16px;
    font-size: 12px;
  }
  .reserve-detail-modal .reserve-customer dl dd {
    overflow-wrap: anywhere;
  }
  .reserve-modal-actions {
    display: flex;
    gap: 16px;
  }
  .reserve-modal-actions > button {
    flex: 1;
    min-width: 0;
  }
  #stage .karte-wizard-modal > header h2 {
    font-size: 22px;
  }
  #stage .karte-wizard-modal .wizard-step-count {
    top: 17px;
    left: 244px;
    padding: 3px 7px;
    font-size: 11px;
  }
  #stage .karte-wizard-modal .wizard-step-content {
    min-height: 0;
    gap: 16px;
  }
  #stage .karte-wizard-modal .wizard-step-content h3 {
    font-size: 18px;
  }
  .karte-wizard-modal .wizard-actions {
    position: static;
    padding-top: 24px;
  }
  .karte-wizard-modal .wizard-actions > button {
    flex: 1;
    min-width: 0;
  }
  .karte-wizard-modal .suggested-menu-preview {
    display: flex;
    flex-direction: column;
  }
  .karte-wizard-modal .suggested-menu-preview img {
    width: 100%;
    max-height: 170px;
    object-fit: cover;
  }
  .karte-wizard-modal .suggested-menu-values {
    flex-wrap: wrap;
  }
  .karte-wizard-modal .suggested-menu-preview > div {
    min-width: 0;
    width: 100%;
  }
  .karte-wizard-modal .suggested-menu-preview select {
    max-width: 100%;
  }
  .sp-auto-message {
    position: relative;
  }
  .sp-auto-message > h3:first-child {
    padding-right: 48px;
    font-size: 18px;
  }
  .sp-auto-switch {
    position: absolute;
    right: 0;
    top: 0;
  }
  .sp-auto-switch input {
    accent-color: #42d0c4;
    width: 22px;
    height: 22px;
  }
  .sp-auto-message textarea {
    margin-top: 24px;
  }
  .sp-auto-date {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 24px;
  }
  .sp-auto-date label {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    font-size: 14px;
  }
  .sp-auto-date select {
    min-width: 0;
    width: 68px;
    padding: 10px 4px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
  }
  .satisfaction-modal .satisfaction-table {
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }
  .satisfaction-modal .satisfaction-table th,
  .satisfaction-modal .satisfaction-table td {
    padding: 12px 8px;
    white-space: normal;
  }
  .satisfaction-modal .wizard-date {
    font-size: 15px;
  }

  /* apps/regi AppHeader / Page / TransactionTwoColumnLayout のxs分岐。 */
  body:not(.salon-comparison) #stage .regi-app {
    min-height: 0;
    background: #fafafa;
  }
  #stage .regi-mobile-header {
    min-height: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 8px;
  }
  #stage .regi-mobile-header > div {
    display: flex;
    gap: 8px;
    min-width: 0;
    align-items: center;
  }
  #stage .regi-mobile-header img {
    width: 43px;
    height: 30px;
    flex-shrink: 0;
  }
  #stage .regi-mobile-header > div > span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }
  #stage .regi-mobile-header strong {
    font-size: 18px;
    font-weight: 400;
    white-space: nowrap;
  }
  #stage .regi-mobile-header small {
    display: block;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 116px;
  }
  #stage .regi-mobile-header > nav {
    gap: 4px;
  }
  #stage .regi-mobile-header .shop-mobile-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 6px;
  }
  #stage .regi-full-card {
    margin: 24px 16px;
    padding: 12px;
    border-radius: 16px;
    min-height: 0;
  }
  #stage .regi-two-columns {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  #stage .regi-two-columns > .regi-left,
  #stage .regi-two-columns > .regi-payment-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  #stage .regi-basic-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
  }
  #stage .regi-basic-info > label {
    margin: 0 0 0 auto;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  #stage .regi-basic-info > label > span {
    width: 150px;
    padding: 8px;
    font-size: 12px;
  }
  #stage .regi-create-view .regi-client-selection > span {
    width: 200px;
  }
  #stage .regi-detail-basic {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }
  #stage .regi-detail-basic > strong {
    font-size: 18px;
  }
  #stage .regi-detail-basic > div {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }
  #stage .regi-detail-basic dl {
    font-size: 12px;
  }
  #stage .regi-sales-heading {
    gap: 8px;
    margin-bottom: 16px;
  }
  #stage .regi-sales-heading h2 {
    font-size: 18px;
  }
  #stage .regi-sales-heading > span {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
  }
  #stage .regi-sales-table {
    min-width: 696px;
  }
  #stage .regi-sales-table th,
  #stage .regi-sales-table td {
    font-size: 12px;
  }
  #stage .regi-create-view .regi-staff-and-flags {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 32px;
  }
  #stage .regi-create-view .regi-menu-flags {
    position: absolute;
    top: 41px;
    left: 0;
  }
  #stage .regi-create-view .regi-menu-row td {
    padding-bottom: 56px;
  }
  #stage .regi-payment-panel {
    padding: 24px 16px 35px;
    border-radius: 10px;
  }
  #stage .regi-adjustment {
    flex-wrap: wrap;
  }
  #stage .regi-adjustment > input {
    width: 70px;
  }
  #stage .regi-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 24px;
    padding: 0;
  }
  #stage .regi-form-actions > button {
    width: 100%;
    min-width: 0;
    height: 40px;
    font-size: 14px;
  }
  #stage .regi-form-actions > button:last-child {
    grid-column: 1 / -1;
  }
  #stage .regi-detail-actions {
    flex-wrap: wrap;
    margin: 16px;
    gap: 12px;
  }
  #stage .regi-list-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  #stage .regi-list-filter > div:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #stage .regi-list-filter > div:last-child {
    justify-content: flex-end;
  }
  #stage .regi-list-table {
    min-width: 850px;
  }
}

@media (max-width: 1023px) {
  body.mobile-comparison {
    background: white;
    padding: 0;
  }
  body.mobile-comparison > :is(.site-header, .journey, .site-footer),
  body.mobile-comparison :is(.stage-toolbar, .operation-guide, .stage-bottom) {
    display: none;
  }
  body.mobile-comparison .workspace > .experience {
    padding: 0;
  }
  body.mobile-comparison #stage {
    margin: 0;
  }
}
@media (max-width: 1023px) {
  #stage .regi-mobile-header .regi-back {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  #stage .regi-app:has(.regi-mobile-menu) > :is(main, .regi-detail-actions) {
    display: none;
  }
  #stage .regi-mobile-menu {
    min-height: 0;
    margin: 16px 12px;
    border-radius: 24px;
    box-shadow: 0 12px 40px #0002;
    padding: 20px 16px;
  }
  .sp-memo-meta small {
    margin: 0;
  }
}
@media (max-width: 1023px) {
  #stage .karte-wizard-modal .wizard-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  #stage .sp-auto-message .wizard-actions {
    flex-direction: row;
  }
  #stage .salon-mobile .memo-photo-add {
    font-size: 12px;
    padding: 12px;
  }
}
@media (max-width: 1023px) {
  #stage .shop-mobile-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 8px;
  }
  #stage .shop-mobile-icon .salon-icon {
    width: 24px;
    height: 24px;
  }
  #stage .regi-mobile-header .shop-mobile-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 8px;
  }
  #stage .regi-mobile-header .regi-back {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }
  #stage .regi-mobile-header .regi-back .salon-icon {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 1023px) {
  .sp-auto-switch {
    width: 42px;
    height: 26px;
  }
  .sp-auto-switch input {
    position: absolute;
    inset: 0;
    width: 42px;
    height: 26px;
    opacity: 0;
    margin: 0;
  }
  .sp-auto-switch > span {
    display: block;
    width: 42px;
    height: 26px;
    border-radius: 13px;
    background: #42d0c4;
  }
  .sp-auto-switch > span::after {
    content: "";
    display: block;
    position: absolute;
    width: 22px;
    height: 22px;
    top: 2px;
    right: 2px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 2px #0002;
  }
}
