.mobile-setting-group.mf-menu-group {
  margin: 0 0 15px;
}

.mf-menu-heading {
  margin: 0 0 7px;
  padding: 0 3px;
  color: #73737a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.mobile-setting-rows.mf-menu-rows {
  overflow: hidden;
  border: 1px solid #e5e5ea;
  border-radius: 15px;
  background: #fff;
}

.mf-menu-row {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #202126;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mf-menu-row:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: -3px;
}

.mf-menu-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 9px;
  background: #007aff;
  color: #fff;
}

.mf-menu-icon svg {
  width: 20px;
  height: 20px;
}

.mf-menu-label {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 550;
}

.mf-menu-badge,
.mf-ticket-row__unread {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mf-menu-badge[hidden] {
  display: none !important;
}

.mf-menu-arrow {
  color: #b5b5bb;
  font-size: 23px;
  line-height: 1;
}

.mobile-feedback[hidden],
.mobile-feedback [hidden] {
  display: none !important;
}

.mobile-feedback {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  justify-content: center;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.mobile-feedback,
.mobile-feedback * {
  box-sizing: border-box;
}

.mf-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(15 23 42 / 36%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.mf-sheet {
  position: relative;
  display: flex;
  width: min(100%, 560px);
  height: 100%;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
  background: #f2f2f7;
  box-shadow: 0 20px 70px rgb(0 0 0 / 18%);
  outline: none;
}

.mf-header {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 54px;
  flex: 0 0 auto;
  grid-template-columns: minmax(72px, 1fr) minmax(0, 2fr) minmax(48px, 1fr);
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgb(60 60 67 / 12%);
  background: rgb(249 249 251 / 96%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mf-header-title {
  overflow: hidden;
  margin: 0;
  color: #1c1c1e;
  font-size: 16px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-back,
.mf-close {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #007aff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.mf-close {
  width: 40px;
  height: 40px;
  justify-self: end;
  justify-content: center;
  border-radius: 50%;
  background: #e5e5ea;
  color: #3a3a3c;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.mf-back:focus-visible,
.mf-close:focus-visible,
.mf-primary:focus-visible,
.mf-refresh:focus-visible,
.mf-ticket-row:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: 2px;
}

.mf-content {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 14px max(22px, env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.mf-card,
.mf-ticket-list {
  overflow: hidden;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(24 31 45 / 3%);
}

.mf-intro {
  margin-bottom: 12px;
  padding: 14px 15px;
}

.mf-intro__title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 650;
}

.mf-muted,
.mf-intro .mf-muted {
  margin: 0;
  color: #73737a;
  font-size: 12px;
  line-height: 1.55;
}

.mf-sync-note {
  margin: 8px 0 0;
  color: #167c45;
  font-size: 12px;
  line-height: 1.5;
}

.mf-sync-note--detail {
  margin: 12px 2px 0;
}

.mf-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #cfe8d6;
  border-radius: 12px;
  background: #effaf2;
  color: #176a39;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mf-status--error {
  border-color: #f2c7c4;
  background: #fff3f2;
  color: #a12620;
}

.mf-list-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 9px;
  margin: 0 0 21px;
}

.mobile-feedback .mf-list-actions > button { width:100%; min-width:0; height:44px; min-height:44px; margin:0; padding:0 12px; white-space:nowrap; flex:none; }
.mobile-feedback .mf-header { grid-template-columns:72px minmax(0,1fr) 44px; }
.mobile-feedback .mf-header .mf-back { grid-column:1; grid-row:1; }
.mobile-feedback .mf-header .mf-header-title { grid-column:2; grid-row:1; }
.mobile-feedback .mf-header .mf-close { grid-column:3; grid-row:1; }
.mobile-feedback .mf-header .mf-close { width:44px; min-width:44px; height:44px; min-height:44px; padding:0; margin:0; }

.mf-primary,
.mf-refresh {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.mf-primary {
  flex: 1;
  padding: 0 16px;
  background: #007aff;
  color: #fff;
  box-shadow: 0 3px 9px rgb(0 122 255 / 20%);
}

.mf-primary:disabled {
  background: #a9cafa;
  box-shadow: none;
  cursor: not-allowed;
}

.mf-refresh {
  min-width: 66px;
  padding: 0 13px;
  border: 1px solid #d8d8de;
  background: #fff;
  color: #007aff;
}

.mf-section-title {
  margin: 0 2px 8px;
  color: #6d6d72;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
}

.mf-ticket-list {
  margin-bottom: 12px;
}

.mf-ticket-row {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #ededf0;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mf-ticket-row:last-child {
  border-bottom: 0;
}

.mf-ticket-row__main {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.mf-ticket-row__message {
  overflow: hidden;
  color: #202126;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-ticket-row__meta,
.mf-message-time {
  color: #8e8e93;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mf-ticket-row__arrow {
  color: #b5b5bb;
  font-size: 22px;
}

.mf-empty {
  padding: 19px 15px;
  color: #77777d;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.mf-compose-intro {
  margin-bottom: 13px;
  padding: 12px 14px;
  color: #626269;
  font-size: 12px;
  line-height: 1.5;
}

.mf-compose-intro p {
  margin: 0;
}

.mf-compose-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mf-field-label {
  margin: 2px 2px 0;
  color: #343438;
  font-size: 13px;
  font-weight: 650;
}

.mf-message-input {
  display: block;
  width: 100%;
  min-height: 128px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid #dedee4;
  border-radius: 14px;
  outline: none;
  background: #fff;
  color: #1c1c1e;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.mf-message-input:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgb(0 122 255 / 14%);
}

.mf-counter {
  align-self: flex-end;
  margin: -3px 3px 3px;
  color: #8e8e93;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mf-diagnostics-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  padding: 0 11px;
  border: 1px solid #e2e2e7;
  border-radius: 12px;
  background: #fff;
  color: #303035;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mf-diagnostics-toggle input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: #007aff;
}

.mf-diagnostics-hint {
  margin: 0 3px 3px;
  color: #77777d;
  font-size: 11px;
  line-height: 1.45;
}

.mf-diagnostics-preview {
  overflow: hidden;
  padding: 12px;
  border: 1px solid #cfe1f8;
  border-radius: 13px;
  background: #f5f9ff;
}

.mf-diagnostics-preview__title {
  margin: 0 0 8px;
  color: #2e4e73;
  font-size: 12px;
  font-weight: 650;
}

.mf-diagnostics-list {
  margin: 0;
}

.mf-diagnostics-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid #e2edf9;
  font-size: 12px;
  line-height: 1.4;
}

.mf-diagnostics-row dt {
  color: #6d7784;
}

.mf-diagnostics-row dd {
  min-width: 0;
  margin: 0;
  color: #222a33;
  overflow-wrap: anywhere;
}

.mf-diagnostics-safe {
  margin: 8px 0 0;
  color: #68788b;
  font-size: 10px;
  line-height: 1.45;
}

.mf-submit {
  width: 100%;
  margin-top: 6px;
}

.mf-original-message,
.mf-reply {
  margin-bottom: 12px;
  padding: 13px 14px;
}

.mf-message-role {
  margin: 0 0 3px;
  color: #4d4d53;
  font-size: 12px;
  font-weight: 650;
}

.mf-message-time {
  margin: 0 0 9px;
}

.mf-message-body {
  margin: 0;
  color: #252529;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mf-reply {
  border-color: #d9e8fa;
  background: #f7faff;
}

@media (min-width: 600px) {
  .mobile-feedback {
    align-items: center;
    padding: 24px;
  }

  .mf-sheet {
    height: min(760px, calc(100dvh - 48px));
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 22px;
  }
}

@media (max-width: 350px) {
  .mf-content {
    padding-right: 11px;
    padding-left: 11px;
  }

  .mf-header {
    grid-template-columns: minmax(64px, 1fr) minmax(0, 2fr) minmax(42px, 1fr);
    padding-right: 9px;
    padding-left: 9px;
  }

  .mf-back {
    font-size: 13px;
  }

  .mf-diagnostics-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mf-sheet {
    animation: mf-sheet-in 160ms ease-out;
  }

  @keyframes mf-sheet-in {
    from { opacity: .85; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
