:root {
  --bg: #07111f;
  --bg-strong: #0b1e34;
  --surface: rgba(10, 24, 42, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(139, 233, 255, 0.2);
  --text: #f4fbff;
  --text-dark: #0d2234;
  --muted: #9cc0d1;
  --brand: #45f3ff;
  --brand-deep: #127aff;
  --teal: #1ee6a8;
  --sun: #ffb000;
  --whatsapp: #22d46b;
  --shadow: 0 24px 70px rgba(0, 9, 24, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 243, 255, 0.32), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255, 176, 0, 0.2), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(30, 230, 168, 0.22), transparent 34%),
    linear-gradient(180deg, #06101f 0%, #0b1e34 48%, #07111f 100%);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

button,
textarea,
select,
input {
  font: inherit;
  font-size: 16px;
}

button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bg-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.32;
  pointer-events: none;
}

.orb-left {
  left: -90px;
  top: 120px;
  background: #45f3ff;
}

.orb-right {
  right: -110px;
  bottom: 200px;
  background: #1ee6a8;
}

.app-shell {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 120px;
  overflow-x: hidden;
}

.hero-top > div,
.panel-head > div,
.sheet-title-row > div,
.language-sheet-head > div {
  min-width: 0;
}

.hero-card,
.panel,
.info-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(69, 243, 255, 0.16), rgba(255, 176, 0, 0.08)),
    rgba(8, 22, 38, 0.82);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -88px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(69, 243, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px rgba(69, 243, 255, 0.04);
  pointer-events: none;
}

.hero-top,
.panel-head,
.action-row,
.language-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-top {
  padding-top: 34px;
}

.global-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(69, 243, 255, 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: #06101f;
  font-weight: 900;
  background: linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 14px 28px rgba(30, 230, 168, 0.22);
}

.global-btn strong {
  font-size: 1rem;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.hero-copy {
  margin-top: 16px;
  max-width: 760px;
  line-height: 1.7;
  color: var(--muted);
}

.float-chip {
  border: 1px solid rgba(69, 243, 255, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.float-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 0 0 6px rgba(69, 243, 255, 0.16);
}

.stats-grid,
.quick-grid,
.shortcut-grid,
.editor-grid,
.settings-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  gap: 10px;
}

.stat-card,
.quick-card,
.editor-card {
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(69, 243, 255, 0.14);
  color: var(--text-dark);
}

.stat-card {
  padding: 12px 14px;
  border-radius: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(69, 243, 255, 0.05)),
    rgba(9, 23, 40, 0.78);
}

.translator-panel .panel-head,
.history-panel .panel-head,
.roadmap-panel .panel-head,
.settings-panel .panel-head {
  margin-bottom: 18px;
}

.language-row {
  margin-bottom: 16px;
}

.field,
.editor-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.field {
  flex: 1;
  width: 100%;
}

.field span,
.editor-card span {
  font-weight: 700;
}

select,
textarea,
input {
  width: 100%;
  border: 1px solid rgba(69, 243, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
}

select,
input {
  height: 52px;
  padding: 0 16px;
}

.editor-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.editor-card {
  padding: 12px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(225, 250, 255, 0.86)),
    var(--surface-strong);
}

textarea {
  resize: none;
  min-height: 92px;
  max-height: 320px;
  overflow-y: auto;
  padding: 12px 14px;
  line-height: 1.55;
  border-radius: 18px;
}

#source-text {
  background: #fff;
}

#translated-text {
  background:
    linear-gradient(135deg, rgba(223, 255, 242, 0.96), rgba(226, 248, 255, 0.94)),
    #e9fff6;
  border-color: rgba(30, 230, 168, 0.34);
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-wide {
  grid-column: span 2;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 600;
}

.switch-row input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.action-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-target-wrap {
  margin-bottom: 16px;
}

.quick-target-head,
.scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.quick-target-head span,
.quick-target-head strong {
  display: block;
}

.quick-target-head span {
  font-weight: 800;
  color: #dffaff;
}

.quick-target-head strong {
  font-size: 0.82rem;
  color: var(--muted);
}

.quick-target-list,
.scene-category-list,
.scene-phrase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-target-btn,
.scene-category-btn,
.scene-phrase-btn,
.history-action-btn {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
}

.quick-target-btn,
.scene-category-btn {
  color: #e8fbff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(69, 243, 255, 0.16);
}

.quick-target-btn.is-selected,
.scene-category-btn.is-selected {
  color: #06101f;
  background: linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 12px 26px rgba(30, 230, 168, 0.2);
}

.mode-panel {
  padding: 16px;
}

.mode-entry-btn {
  width: 100%;
  border: 1px solid rgba(69, 243, 255, 0.18);
  border-radius: 24px;
  padding: 18px 20px;
  text-align: left;
  color: #eafcff;
  background:
    linear-gradient(135deg, rgba(69, 243, 255, 0.14), rgba(30, 230, 168, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.mode-entry-btn span,
.mode-entry-btn strong {
  display: block;
}

.mode-entry-btn span {
  font-size: 1.04rem;
  font-weight: 900;
}

.mode-entry-btn strong {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.full-btn {
  border-radius: 999px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  font-weight: 700;
}

.secondary-btn[disabled],
.ghost-btn[disabled],
.primary-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.primary-btn {
  color: #06101f;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 16px 26px rgba(30, 230, 168, 0.24);
}

.secondary-btn {
  color: #eaffff;
  background: rgba(69, 243, 255, 0.14);
  border: 1px solid rgba(69, 243, 255, 0.16);
}

.ghost-btn {
  color: #d8f8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(69, 243, 255, 0.18);
}

.status-text {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.result-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.result-meta-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(69, 243, 255, 0.12);
}

.result-meta-chip span,
.result-meta-chip strong {
  display: block;
}

.result-meta-chip span {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-meta-chip strong {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #effcff;
}

.center-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: min(320px, calc(100% - 42px));
  z-index: 40;
  padding: 18px 20px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  font-weight: 900;
  line-height: 1.45;
  background: rgba(23, 50, 74, 0.88);
  box-shadow: 0 24px 58px rgba(23, 50, 74, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.center-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.android-onboarding-sheet {
  width: min(620px, calc(100% - 28px));
}

.android-onboarding-sheet::before {
  display: none;
}

.android-onboarding-head {
  margin-bottom: 6px;
}

.android-onboarding-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
}

.android-step-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(69, 243, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(69, 243, 255, 0.1), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
}

.android-step-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 900;
  color: #06101f;
  background: linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 14px 28px rgba(30, 230, 168, 0.18);
}

.android-step-card strong,
.android-step-card p,
.android-step-card em {
  display: block;
}

.android-step-card strong {
  font-size: 1rem;
  margin-bottom: 4px;
}

.android-step-card p {
  color: var(--muted);
  line-height: 1.55;
}

.android-step-card em {
  font-style: normal;
  white-space: nowrap;
  font-weight: 900;
  color: #b7d1dd;
}

.android-step-card.is-active {
  border-color: rgba(255, 176, 0, 0.4);
  box-shadow: 0 16px 34px rgba(255, 176, 0, 0.12);
}

.android-step-card.is-active em {
  color: #ffcf5a;
}

.android-step-card.is-done {
  border-color: rgba(30, 230, 168, 0.34);
  background:
    linear-gradient(135deg, rgba(30, 230, 168, 0.18), rgba(69, 243, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.android-step-card.is-done em {
  color: #7ff5c9;
}

.shortcut-footer {
  margin-top: 14px;
  padding: 2px 4px 12px;
}

.shortcut-footer-head {
  margin-bottom: 8px;
  color: rgba(225, 247, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.shortcut-footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-link-btn {
  border: 0;
  background: transparent;
  color: rgba(225, 247, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 8px;
}

.phrase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.phrase-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(69, 243, 255, 0.16);
  color: #dfffff;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-empty,
.history-item {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(69, 243, 255, 0.14);
  color: var(--text-dark);
}

.history-empty {
  padding: 20px;
  color: var(--muted);
}

.history-item {
  padding: 18px;
}

.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.history-text {
  line-height: 1.65;
  margin-bottom: 14px;
}

.history-text strong {
  display: block;
  margin-bottom: 6px;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-action-btn {
  min-height: 38px;
  color: #0d2234;
  background: rgba(69, 243, 255, 0.18);
  border: 1px solid rgba(69, 243, 255, 0.14);
}

.roadmap-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: var(--muted);
}

.floating-ball {
  position: fixed;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), transparent 12%),
    linear-gradient(135deg, #45f3ff, #1ee6a8 52%, #127aff);
  color: #06101f;
  box-shadow: 0 20px 38px rgba(30, 230, 168, 0.34);
  font-size: 1.35rem;
  font-weight: 900;
  z-index: 20;
  transition: transform 180ms ease, opacity 180ms ease;
}

.floating-ball.is-hidden {
  transform: scale(0.88);
  opacity: 0.58;
}

.floating-ball.is-sleeping {
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.84), transparent 12%),
    linear-gradient(135deg, rgba(69, 243, 255, 0.76), rgba(30, 230, 168, 0.66) 52%, rgba(18, 122, 255, 0.78));
  box-shadow: 0 10px 26px rgba(18, 122, 255, 0.22);
  filter: saturate(0.88);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 16, 0.62);
  z-index: 29;
}

.info-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 20px));
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px 24px;
  z-index: 30;
}

.center-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 34px));
  max-height: min(78vh, 640px);
  overflow-y: auto;
  z-index: 31;
  padding: 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 243, 255, 0.24), transparent 32%),
    radial-gradient(circle at 100% 18%, rgba(255, 176, 0, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(11, 28, 48, 0.98), rgba(7, 17, 31, 0.96));
  border: 1px solid rgba(69, 243, 255, 0.24);
  box-shadow: 0 30px 86px rgba(0, 9, 24, 0.46);
  backdrop-filter: blur(18px);
}

.center-modal::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 16px 34px rgba(30, 230, 168, 0.26);
}

.center-modal .panel-kicker {
  color: var(--brand);
}

.center-modal h2 {
  color: #f4fbff;
}

.center-modal .sheet-body {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  color: #cfeaf5;
  background:
    linear-gradient(135deg, rgba(69, 243, 255, 0.1), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(69, 243, 255, 0.16);
}

.center-modal .primary-btn {
  background: linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 16px 26px rgba(30, 230, 168, 0.24);
}

.sheet-handle {
  width: 68px;
  height: 6px;
  border-radius: 999px;
  background: rgba(54, 126, 171, 0.18);
  margin: 0 auto 16px;
}

.sheet-body {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}

.full-btn {
  width: 100%;
}

.tutorial-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.tutorial-list article {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(54, 126, 171, 0.1);
}

.tutorial-list strong {
  display: block;
  margin-bottom: 8px;
}

.tutorial-list p,
.history-note {
  color: var(--muted);
  line-height: 1.65;
}

.sheet-actions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.sheet-actions .secondary-btn,
.sheet-actions .ghost-btn,
.sheet-actions .primary-btn {
  width: 100%;
}

.sheet-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.compact-btn {
  min-height: 40px;
  padding: 0 14px;
}

.history-sheet .history-list {
  margin: 14px 0;
}

.language-sheet {
  width: min(680px, calc(100% - 28px));
}

.language-sheet::before {
  display: none;
}

.language-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(69, 243, 255, 0.24);
  border-radius: 50%;
  color: #f4fbff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
  line-height: 1;
}

.language-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
}

.language-option {
  min-height: 78px;
  border: 1px solid rgba(69, 243, 255, 0.16);
  border-radius: 20px;
  padding: 12px;
  text-align: left;
  color: #f4fbff;
  background:
    linear-gradient(135deg, rgba(69, 243, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.05);
}

.language-option strong,
.language-option span {
  display: block;
}

.language-option strong {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.language-option span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.language-option.is-selected {
  color: #06101f;
  background: linear-gradient(135deg, #45f3ff, #1ee6a8);
  box-shadow: 0 14px 30px rgba(30, 230, 168, 0.2);
}

.language-option.is-selected span {
  color: rgba(6, 16, 31, 0.72);
}

@media (max-width: 860px) {
  .stats-grid,
  .quick-grid,
  .shortcut-grid,
  .editor-grid,
  .settings-grid,
  .result-meta-bar,
  .language-option-grid {
    grid-template-columns: 1fr;
  }

  .settings-wide {
    grid-column: span 1;
  }

  .hero-top,
  .panel-head,
  .language-row {
    flex-direction: column;
    align-items: stretch;
  }

  .float-chip,
  .ghost-btn {
    align-self: stretch;
    justify-content: center;
  }

  .quick-card p {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  body {
    padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 8px);
  }

  .bg-orb {
    width: 180px;
    height: 180px;
    filter: blur(14px);
  }

  .orb-left {
    left: -78px;
    top: 54px;
  }

  .orb-right {
    right: -72px;
    bottom: 88px;
  }

  .app-shell {
    width: 100%;
    padding: 10px 10px 102px;
  }

  .hero-card,
  .panel {
    border-radius: 22px;
    padding: 14px;
  }

  h1 {
    font-size: clamp(1.85rem, 9.6vw, 2.7rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.02rem, 5vw, 1.28rem);
    line-height: 1.28;
  }

  .eyebrow,
  .panel-kicker {
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-top {
    padding-top: 46px;
    gap: 10px;
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .float-chip {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    justify-content: center;
    font-size: 0.88rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .stats-grid .stat-card:last-child {
    grid-column: span 2;
  }

  .stat-card,
  .editor-card,
  .quick-card,
  .shortcut-card {
    border-radius: 18px;
  }

  .stat-card {
    padding: 10px 9px;
  }

  .stat-card strong {
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .stat-card span {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .panel {
    margin-top: 14px;
    padding: 14px;
  }

  .translator-panel .panel-head,
  .history-panel .panel-head,
  .roadmap-panel .panel-head,
  .settings-panel .panel-head {
    margin-bottom: 14px;
  }

  .language-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  select,
  input {
    height: 48px;
    border-radius: 16px;
    padding: 0 14px;
  }

  .editor-card {
    padding: 10px;
  }

  textarea {
    min-height: 92px;
    max-height: 260px;
    padding: 11px 12px;
    border-radius: 16px;
    line-height: 1.48;
    font-size: 0.95rem;
  }

  .action-row {
    grid-template-columns: 1fr;
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .quick-target-head,
  .scene-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-target-btn,
  .scene-category-btn,
  .scene-phrase-btn,
  .history-action-btn {
    width: 100%;
    justify-content: center;
  }

  .scene-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.94rem;
  }

  .global-btn {
    top: 10px;
    right: 10px;
    min-height: 34px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.82rem;
  }

  .switch-row {
    width: 100%;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .shortcut-grid {
    gap: 10px;
  }

  .shortcut-card {
    min-height: 96px;
    padding: 14px;
  }

  .shortcut-card span {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .shortcut-card strong {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .status-text,
  .history-note,
  .roadmap-list,
  .sheet-body,
  .tutorial-list p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .language-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 50vh;
    gap: 8px;
  }

  .language-option {
    min-height: 72px;
    padding: 10px;
    border-radius: 16px;
  }

  .language-option strong {
    font-size: 0.9rem;
  }

  .language-option span {
    font-size: 0.74rem;
  }

  .floating-ball {
    width: 62px;
    height: 62px;
    right: 14px;
  }

  .info-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .center-modal {
    width: calc(100% - 28px);
    max-height: min(82vh, 640px);
    padding: 16px;
    border-radius: 24px;
  }

  .center-modal::before {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .center-toast {
    width: min(284px, calc(100% - 32px));
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.92rem;
  }

  .android-step-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .android-step-card em {
    grid-column: 2;
  }

  .sheet-title-row,
  .language-sheet-head {
    gap: 10px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1.24rem;
  }
}
