/* Shared capsule controls; loaded last across public, account and workspace pages. */
body
  :is(
    .button,
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"],
    .language-switcher label
  ) {
  border-radius: var(--radius-pill) !important;
  clip-path: none;
}
body
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(
    [type="range"]
  ):not([type="color"]):not([type="file"]),
body select {
  border-radius: var(--radius-pill) !important;
  padding-inline: 18px;
}
body textarea {
  border-radius: 20px !important;
}
body input[type="file"] {
  border-radius: 20px;
}
body input[type="file"]::file-selector-button {
  border-radius: var(--radius-pill);
}
/* Leave space for the existing accessible password visibility control. */
body .password-field input,
body .password-input input {
  padding-right: 52px;
}
/* Compact shared controls and pale menus, without scaling the page. */
body {
  font-size: var(--type-body-fontSize);
}
body
  :is(
    .button,
    button,
    input[type="submit"],
    input[type="button"],
    input[type="reset"]
  ) {
  min-height: 36px;
  font-size: 13px;
  line-height: 20px;
  padding: 7px 14px;
}
body
  :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not(
        [type="range"]
      ):not([type="color"]),
    select
  ) {
  min-height: 36px;
  font-size: 13px;
  line-height: 20px;
  padding-block: 7px;
}
body :is(label, .field-label) {
  font-size: 13px;
}
body .ui-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
body .avatar {
  width: 30px;
  height: 30px;
}
body .avatar .ui-icon {
  width: 19px;
  height: 19px;
}
body .language-switcher :is(button, label) {
  min-width: 36px;
  min-height: 36px;
  padding: 7px 9px;
  font-size: 12px;
}
body .workspace-shell .sidebar :is(a.nav-item, span.nav-item, nav > a) {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}
body .workspace-shell .sidebar-profile {
  font-size: 13px;
  padding-top: 12px;
}
body .workspace-shell .dashboard-topbar {
  padding: 10px 12px;
}
body .dashboard-main :is(h1, .section-heading h1) {
  font-size: 24px;
}
body .dashboard-main :is(h2, .metric-label h2) {
  font-size: 14px;
}
body .dashboard-main :is(.card, .notice) {
  font-size: 13px;
}
body .dashboard-main td {
  padding-block: 10px;
}
body .account-compact h1 {
  font-size: 22px;
}
body .account-compact :is(.account-intro, .account-links) {
  font-size: 13px;
}
body .telematics-home {
  font-size: 14px;
}
body .telematics-home h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
body .telematics-home h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}
body .telematics-home h3 {
  font-size: 16px;
}
body .tm-section {
  padding-block: 48px;
}
body .tm-hero {
  padding-block: 48px;
}
body .tm-hero-grid {
  gap: 36px;
}
body .tm-hero .tm-lead {
  font-size: 15px;
}
body .public-header {
  padding-block: 10px;
}
body .public-header .brand-wordmark {
  max-width: 156px;
}
body :is(.profile-dropdown, .notification-dropdown) {
  background: #f0f8f4;
  color: #174b40;
  border: 1px solid #c8e2d7;
  border-radius: 14px;
}
body :is(.profile-dropdown, .notification-dropdown) a:hover {
  background: #deeee5;
}
body select {
  background-color: #f0f8f4;
  color: #174b40;
  border-color: #c8e2d7;
}
body select option {
  background: #f0f8f4;
  color: #174b40;
}
.styled-select {
  position: relative;
  display: inline-block;
  min-width: 0;
  max-width: 100%;
}
body .styled-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: start;
  background: #f0f8f4;
  color: #174b40;
  border: 1px solid #c8e2d7;
  box-shadow: none;
}
.styled-select-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin: -3px 2px 0;
}
.styled-select-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .styled-select-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.styled-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}
.styled-select-menu {
  position: fixed;
  z-index: 2000;
  max-height: 260px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #c8e2d7;
  border-radius: 12px;
  background: #f0f8f4;
  color: #174b40;
  box-shadow: 0 10px 30px #123e3020;
  font-size: 13px;
}
.styled-select-menu[hidden] {
  display: none;
}
.styled-select-option {
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.styled-select-option[aria-selected="true"] {
  font-weight: 700;
}
.styled-select-option.is-active,
.styled-select-option:hover {
  background: #d5eadf;
  color: #123e33;
}
.styled-select-option[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.styled-select-group {
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 700;
}
.account-form .styled-select,
.registry-form .styled-select,
.customer-form .styled-select {
  width: 100%;
}
@media (pointer: coarse), (max-width: 767px) {
  body :is(.button, button, .styled-select-trigger, .language-switcher button) {
    min-height: 44px;
  }
  body
    :is(
      input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
      select,
      textarea
    ) {
    font-size: 16px;
  }
  body .styled-select-trigger {
    font-size: 16px;
  }
  .styled-select-option {
    min-height: 44px;
    align-content: center;
  }
}
@media (forced-colors: active) {
  .styled-select-option.is-active {
    outline: 2px solid Highlight;
  }
}
.styled-select-validation:not(:empty) {
  display: block;
  padding: 5px 10px;
  color: #a12622;
  font-size: 12px;
}
body .dashboard-topbar .styled-select {
  max-width: 180px;
}
body .public-main :is(.page-intro h1, .plans-hero h1) {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
/* Compact labels hide only their text, never the enhanced control wrapper. */
body .dashboard-topbar .tenant-form label > .styled-select,
body .topbar-context .field.compact > .styled-select {
  position: relative;
  width: 170px;
  min-width: 160px;
  height: auto;
  clip-path: none;
  overflow: visible;
}
