@media (max-width: 600px) {
  body {
    background: #efefef;
  }

  .page {
    padding: 8px;
  }

  .toolbar {
    border-radius: 14px;
    padding: 10px;
    gap: 10px;
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
  }

  .right-tools {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand {
    margin: 0;
    gap: 8px;
  }

  .brand-name {
    display: inline;
    font-size: 22px;
    font-weight: 700;
    color: #1f3f69;
  }

  .brand-logo {
    height: 44px;
  }

  .left-tools {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 46px 1fr;
    align-items: center;
    gap: 8px;
  }

  .lang-select {
    min-width: 0;
  }

  .lang-trigger {
    height: 46px;
    border-radius: 14px;
    background: #f6f6f8;
    border: 1px solid #e9e9ef;
    font-size: 18px;
    padding-inline: 14px;
  }

  .ghost-btn {
    height: 46px;
    border-radius: 14px;
    font-size: 24px;
    padding: 0;
    border: 1px solid #e9e9ef;
    background: #f6f6f8;
  }

  .workspace {
    margin-top: 8px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-translate-wrap {
    display: block;
    padding: 0 4px;
  }

  .panel {
    border-radius: 14px;
  }

  /* output panel visibility is controlled by style.css (has-output) */

  .panel-actions {
    display: none;
  }

  .primary-btn {
    width: 100%;
    border-radius: 22px;
    font-size: 16px;
    padding: 12px 18px;
  }

  .input-clear-icon,
  .input-tools {
    display: none !important;
  }
}
