.lml-cards { display: flex; gap: 16px; margin: 20px 0; }
.lml-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 20px; min-width: 140px; text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lml-card h2 { font-size: 32px; margin: 0 0 6px; }
.lml-card p { margin: 0; color: #6b7280; }
.lml-translations-box details { background: #fafafa; }
.lml-translations-box summary { padding: 4px 0; }
.lml-switcher select { padding: 4px 8px; }
.lml-switcher.lml-style-inline ul { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; justify-content: center; }
.lml-switcher.lml-style-inline li.active a { font-weight: 700; text-decoration: underline; }
.lml-pending-count { display: inline-block; margin-left: 10px; color: #646970; }

.lml-settings-page .lml-brand {
  display: flex; align-items: center; gap: 8px; margin: 12px 0 18px;
  font-size: 46px; line-height: 1; font-weight: 300; color: #5460ac;
}
.lml-brand-g { color: #2c5bd7; font-weight: 700; font-family: Georgia, serif; }
.lml-settings-grid { display: grid; grid-template-columns: minmax(620px, 1fr) 340px; gap: 22px; max-width: 1180px; }
.lml-panel, .lml-side-card {
  background: #fff; border: 1px solid #ccd0d4; box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.lml-panel { margin-bottom: 18px; padding: 14px 16px 18px; }
.lml-panel h2, .lml-side-card h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.lml-compact-table.form-table th { width: 245px; padding: 9px 10px 9px 0; font-weight: 400; font-size: 12px; color: #3c434a; }
.lml-compact-table.form-table td { padding: 7px 10px; }
.lml-compact-table select, .lml-compact-table input[type="text"], .lml-compact-table input[type="password"] { min-width: 240px; }
.lml-language-box { display: grid; grid-template-columns: 245px 1fr; gap: 10px; margin-top: 8px; }
.lml-language-actions { font-size: 12px; color: #3c434a; padding-top: 2px; }
.lml-language-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 3px 14px; font-size: 12px; }
.lml-language-grid label, .lml-side-card label { display: block; line-height: 1.5; }
.lml-custom-css textarea { width: 100%; min-height: 110px; font-family: Consolas, Monaco, monospace; }
.lml-settings-side { display: flex; flex-direction: column; gap: 18px; }
.lml-side-card { padding: 14px 16px; }
.lml-side-card ul { margin: 0 0 0 18px; }
.lml-preview-box { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dcdcde; background: #fff; padding: 8px 12px; font-weight: 600; }
.lml-preview-flag { font-size: 20px; }

.lml-floating-switcher { position: fixed; z-index: 9999; background: #fff; border: 1px solid rgba(0,0,0,.16); border-radius: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.12); padding: 8px; }
.lml-pos-bottom-left { left: 18px; bottom: 18px; }
.lml-pos-bottom-right { right: 18px; bottom: 18px; }
.lml-pos-top-left { left: 18px; top: 18px; }
.lml-pos-top-right { right: 18px; top: 18px; }
.lml-floating-switcher .lml-switcher select { min-width: 110px; border: 1px solid #ccd0d4; background: #fff; color: #1d2327; }
.lml-floating-switcher .lml-style-inline ul { flex-direction: column; align-items: flex-start; gap: 6px; }
.lml-menu-switcher .lml-switcher { display: inline-block; }

@media (max-width: 1100px) {
  .lml-settings-grid { grid-template-columns: 1fr; }
  .lml-language-box { grid-template-columns: 1fr; }
  .lml-language-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
