/* SURF1 (Hugo 11-01): text fits its box on the surfaces the overflow gate never opened before (tools/check_surfaces.py).
   Loaded after app.css and its companions, so these win over the rules they adjust; app.css is at its file size limit */

/* the typed delete dialog has three buttons; in Spanish they wrap to a second row instead of squeezing their words */
.dlg-acts { flex-wrap: wrap; }
/* 儲存中 / Guardando keeps its slot next to the find bar instead of being squeezed by it */
.save-st { flex: none; white-space: nowrap; }
/* 改了什麼: the field label column grows to its longest word (Conclusión), and the count beside a term may take two
   lines rather than spill; CI's Linux fonts run 2 to 5 px wider than a Mac */
.df-pt { grid-template-columns: minmax(72px, max-content) minmax(0, 1fr); }
.df-term .df-n { white-space: normal; text-align: right; }

@media (max-width: 600px) {
  /* the recording ⋯ sits at the right edge on a phone, so its menu opens leftwards */
  .rec-menu { left: auto; right: 0; }
  /* 3 times · Applied from the dictionary goes on its own line under the term */
  .df-term .df-n { grid-column: 1 / -1; white-space: normal; }
}
