/* Compact enterprise-mobile density baseline · 2026-09-16
   Loaded last so one coherent 4/8px rhythm wins over legacy page bundles. */
body[data-app-surface="mobile"] {
  --mobile-gutter: 10px;
  --mobile-section-gap: 9px;
  --mobile-card-padding: 12px;
  --mobile-control-height: 44px;
  --mobile-title-size: 16px;
  --mobile-body-size: 14px;
  --mobile-meta-size: 11px;
  font-size: var(--mobile-body-size);
  line-height: 1.45;
}

body[data-app-surface="mobile"] .mobile-app {
  font-size: var(--mobile-body-size);
  line-height: 1.45;
}

body[data-app-surface="mobile"] .phone-status {
  height: 24px;
  padding-inline: 16px;
  font-size: 10px;
}

body[data-app-surface="mobile"] .mobile-header {
  min-height: 54px;
  padding-inline: 6px;
}

body[data-app-surface="mobile"] .mobile-header strong {
  font-size: 16px;
  line-height: 1.25;
}

body[data-app-surface="mobile"] .mobile-header small {
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.25;
}

body[data-app-surface="mobile"] .mobile-header > button {
  width: 44px;
  height: 44px;
}

body[data-app-surface="mobile"] .mobile-header > .mobile-context-switch {
  min-width: 0;
  height: 36px;
  padding-inline: 8px;
  font-size: 12px;
}

body[data-app-surface="mobile"] .mobile-content {
  padding: var(--mobile-gutter) var(--mobile-gutter) calc(16px + var(--safe-bottom));
}

body[data-app-surface="mobile"] .mobile-app.has-bottom-nav .mobile-content {
  padding-bottom: calc(64px + var(--safe-bottom) + 10px);
}

body[data-app-surface="mobile"] .mobile-content[data-page-code]:not([data-page-code="M02"]):not([data-page-code="M03"])::before {
  height: 88px;
  margin: -10px -10px 9px;
  border-radius: 0 0 14px 14px;
}

body[data-app-surface="mobile"] :where(
  .mobile-section,
  .mobile-card,
  .mobile-form-card,
  .mobile-profile-card,
  .mobile-page-intro,
  .mobile-domain-overview,
  .mobile-domain-menu,
  .m-prg-form-section,
  .m-prg-card,
  .m-saf-task,
  .m-saf-check,
  .m-saf-requirement,
  .m-saf-candidate,
  .m-mat-card,
  .m-mat-form-section,
  .cg-card
) {
  padding: var(--mobile-card-padding);
  border-radius: 12px;
}

body[data-app-surface="mobile"] .mobile-section + .mobile-section,
body[data-app-surface="mobile"] .mobile-section + details.mobile-section,
body[data-app-surface="mobile"] details.mobile-section + .mobile-section {
  margin-top: var(--mobile-section-gap);
}

body[data-app-surface="mobile"] :where(.mobile-section > header, .m-prg-form-section > header, .m-mat-form-section > header) {
  min-height: 28px;
  margin-bottom: 8px;
}

body[data-app-surface="mobile"] .mobile-section > header::before,
body[data-app-surface="mobile"] .m-prg-form-section > header::before,
body[data-app-surface="mobile"] .m-mat-form-section > header::before {
  margin-right: 6px;
}

body[data-app-surface="mobile"] :where(
  .mobile-section h3,
  .mobile-form-card h2,
  .m-prg-form-section h2,
  .m-mat-form-section h2,
  .m-saf-form legend
) {
  margin-block: 0;
  font-size: var(--mobile-title-size);
  line-height: 1.4;
}

body[data-app-surface="mobile"] :where(.mobile-content p, .mobile-content dd, .mobile-content input, .mobile-content select, .mobile-content textarea, .mobile-content button) {
  font-size: var(--mobile-body-size);
}

body[data-app-surface="mobile"] :where(.mobile-content dt, .mobile-content small, .mobile-content time, .mobile-content label > span:first-child) {
  font-size: var(--mobile-meta-size);
  line-height: 1.4;
}

body[data-app-surface="mobile"] :where(
  .mobile-content input,
  .mobile-content select,
  .mobile-content .el-input,
  .mobile-content .el-select
) {
  min-height: var(--mobile-control-height);
  padding: 8px 10px;
  border-radius: 8px;
}

body[data-app-surface="mobile"] .mobile-content textarea {
  min-height: 88px;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.5;
}

/* M02 workbench: more information above the fold without shrinking tap areas. */
body[data-app-surface="mobile"] .mobile-project-card {
  border-radius: 13px;
}

body[data-app-surface="mobile"] .mobile-project-summary {
  min-height: 112px;
  padding: 15px 14px;
}

body[data-app-surface="mobile"] .mobile-project-summary h2 {
  max-width: 250px;
  font-size: 18px;
  line-height: 1.35;
}

body[data-app-surface="mobile"] .mobile-project-summary p {
  margin-top: 4px;
  font-size: 12px;
}

body[data-app-surface="mobile"] .mobile-project-summary > div > span {
  padding: 3px 7px;
  font-size: 11px;
}

body[data-app-surface="mobile"] .mobile-project-metrics a {
  min-height: 68px;
  padding: 9px 5px 8px;
}

body[data-app-surface="mobile"] .mobile-project-metrics span {
  padding: 0;
  font-size: 11px;
}

body[data-app-surface="mobile"] .mobile-project-metrics b {
  margin-top: 3px;
  font-size: 24px;
  line-height: 1;
}

body[data-app-surface="mobile"] .mobile-project-metrics em {
  margin-left: 3px;
  font-size: 10px;
}

body[data-app-surface="mobile"] .mobile-quick-grid {
  margin-top: 5px;
  gap: 4px;
}

body[data-app-surface="mobile"] .mobile-quick-grid > a {
  min-height: 68px;
  padding: 6px 3px;
  gap: 5px;
  border-radius: 10px;
}

body[data-app-surface="mobile"] .mobile-quick-grid > a .ui-icon {
  width: 40px;
  height: 40px;
  font-size: 20px;
  border-radius: 11px;
}

body[data-app-surface="mobile"] .mobile-quick-grid > a span {
  font-size: 12px;
}

body[data-app-surface="mobile"] .mobile-task-list > :where(a, button) {
  min-height: 62px;
  padding-block: 8px;
}

body[data-app-surface="mobile"] .mobile-task-list b {
  font-size: 13px;
  line-height: 1.4;
}

body[data-app-surface="mobile"] .mobile-task-list small {
  margin-top: 2px;
  font-size: 10px;
}

body[data-app-surface="mobile"] .mobile-task-section > header button {
  min-height: 32px;
  font-size: 12px;
}

/* M04 task list: compact cards with clear labels and 44px actions. */
body[data-app-surface="mobile"] .mobile-filter-tabs {
  margin-bottom: 8px;
}

body[data-app-surface="mobile"] .mobile-filter-tabs button {
  min-height: 40px;
  padding-inline: 3px;
  font-size: 13px;
}

/* M04 task detail: task context first, specialist form stays in the source module. */
body[data-app-surface="mobile"] .mobile-task-card-summary {
  margin: 5px 0 10px;
  color: var(--el-text-color-secondary);
  font-size: 12px;
  line-height: 1.55;
}

body[data-app-surface="mobile"] .mobile-task-detail {
  display: grid;
  gap: 10px;
  padding-bottom: 76px;
}

body[data-app-surface="mobile"] .mobile-task-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-height: 36px;
  padding: 0 4px;
  color: var(--el-color-primary);
  background: transparent;
  font-size: 13px;
}

body[data-app-surface="mobile"] .mobile-task-detail__back .ui-icon {
  width: 15px;
  height: 15px;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero,
body[data-app-surface="mobile"] .mobile-task-detail__section {
  margin: 0;
  padding: 15px;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero > header,
body[data-app-surface="mobile"] .mobile-task-detail__section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero > header > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero > header > em,
body[data-app-surface="mobile"] .mobile-task-detail__section > header > span {
  color: var(--el-text-color-secondary);
  font-size: 12px;
  font-style: normal;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero h2 {
  margin: 0;
  color: var(--el-text-color-primary);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero > p,
body[data-app-surface="mobile"] .mobile-task-detail__section > p {
  margin: 6px 0 0;
  color: var(--el-text-color-regular);
  font-size: 13px;
  line-height: 1.65;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero > dl,
body[data-app-surface="mobile"] .mobile-task-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--el-border-color-lighter);
}

body[data-app-surface="mobile"] .mobile-task-detail__hero dl div,
body[data-app-surface="mobile"] .mobile-task-detail__facts div {
  min-width: 0;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero dt,
body[data-app-surface="mobile"] .mobile-task-detail__facts dt {
  margin-bottom: 4px;
  color: var(--el-text-color-secondary);
  font-size: 11px;
}

body[data-app-surface="mobile"] .mobile-task-detail__hero dd,
body[data-app-surface="mobile"] .mobile-task-detail__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--el-text-color-primary);
  font-size: 13px;
  line-height: 1.5;
}

body[data-app-surface="mobile"] .mobile-task-detail__section h3 {
  margin: 0;
  color: var(--el-text-color-primary);
  font-size: 15px;
  font-weight: 650;
}

body[data-app-surface="mobile"] .mobile-task-detail__verifier {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--el-border-color-lighter);
  font-size: 12px;
}

body[data-app-surface="mobile"] .mobile-task-detail__verifier span {
  color: var(--el-text-color-secondary);
}

body[data-app-surface="mobile"] .mobile-task-detail__verifier b {
  color: var(--el-text-color-primary);
  font-weight: 600;
  text-align: right;
}

body[data-app-surface="mobile"] .mobile-task-detail__evidence {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-app-surface="mobile"] .mobile-task-detail__evidence li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--el-fill-color-light);
  color: var(--el-text-color-regular);
  font-size: 12px;
}

body[data-app-surface="mobile"] .mobile-task-detail__evidence .ui-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--el-color-primary);
}

body[data-app-surface="mobile"] .mobile-card-list {
  gap: 8px;
}

body[data-app-surface="mobile"] .mobile-card-list > article {
  padding: 11px;
  border-radius: 11px;
}

body[data-app-surface="mobile"] .mobile-card-list h3 {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
}

body[data-app-surface="mobile"] .mobile-card-list dl {
  margin-top: 8px;
  gap: 5px 10px;
}

body[data-app-surface="mobile"] .mobile-card-list dt {
  font-size: 10px;
}

body[data-app-surface="mobile"] .mobile-card-list dd {
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.4;
}

body[data-app-surface="mobile"] .mobile-card-list article > button {
  min-height: 44px;
  margin-top: 9px;
  font-size: 13px;
}

/* Safety rectification: remove nested-card padding and keep one visual layer. */
body[data-app-surface="mobile"] .m-saf-context,
body[data-app-surface="mobile"] .m-saf-requirement,
body[data-app-surface="mobile"] .m-saf-task,
body[data-app-surface="mobile"] .m-saf-check,
body[data-app-surface="mobile"] .m-saf-candidate {
  margin: 8px 0;
}

body[data-app-surface="mobile"] .m-saf-form {
  margin: 8px 0 0;
  padding: 0 0 76px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-app-surface="mobile"] .m-saf-form fieldset {
  padding: 11px;
  margin: 0 0 8px;
  border-radius: 11px;
}

body[data-app-surface="mobile"] .m-saf-form fieldset > label {
  gap: 5px;
}

body[data-app-surface="mobile"] .m-saf-form fieldset > label + label {
  margin-top: 10px;
}

body[data-app-surface="mobile"] .m-saf-form input,
body[data-app-surface="mobile"] .m-saf-form select {
  min-height: var(--mobile-control-height);
  padding: 8px 10px;
  font-size: 14px;
}

body[data-app-surface="mobile"] .m-saf-form textarea {
  min-height: 86px;
  padding: 9px 10px;
  font-size: 14px;
  line-height: 1.5;
}

body[data-app-surface="mobile"] .m-saf-upload {
  min-height: 88px;
  margin-top: 8px;
  padding: 10px;
  text-align: center;
}

body[data-app-surface="mobile"] .m-saf-sticky,
body[data-app-surface="mobile"] :where(.mobile-page-actionbar, .mobile-sticky-actions, .mobile-sticky-action) {
  padding: 9px 10px calc(9px + var(--safe-bottom));
  gap: 8px;
}

body[data-app-surface="mobile"] .m-saf-sticky .el-button,
body[data-app-surface="mobile"] .m-saf-sticky button,
body[data-app-surface="mobile"] :where(.mobile-page-actionbar, .mobile-sticky-actions, .mobile-sticky-action) .el-button {
  min-height: 44px;
  height: 44px;
  font-size: 14px;
  border-radius: 9px;
}

/* M70 AI: reduce portrait dominance and restore readable result hierarchy. */
body[data-app-surface="mobile"] .mobile-content[data-page-code="M70"]::before {
  height: 112px;
  flex-basis: 112px;
  margin-bottom: 8px;
  background-size: 100% 100%, 138px 138px;
}

body[data-app-surface="mobile"] .m-ai-tabs {
  padding: 3px;
}

body[data-app-surface="mobile"] .m-ai-tabs button {
  min-height: 40px;
  font-size: 13px;
}

body[data-app-surface="mobile"] .m-ai-context {
  margin: 8px 0 0;
  padding: 10px;
  gap: 8px;
}

body[data-app-surface="mobile"] .m-ai-context label {
  gap: 4px;
  font-size: 11px;
}

body[data-app-surface="mobile"] .m-ai-context select {
  min-height: 40px;
  font-size: 13px;
}

body[data-app-surface="mobile"] .m-ai-chat {
  gap: 8px;
  padding: 9px 1px 8px 0;
}

body[data-app-surface="mobile"] .m-ai-chat .is-user {
  padding: 8px 10px;
}

body[data-app-surface="mobile"] .m-ai-chat .is-user p,
body[data-app-surface="mobile"] .m-ai-answer-lead {
  font-size: 13px;
  line-height: 1.5;
}

body[data-app-surface="mobile"] .m-ai-chat .is-ai > header {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
  gap: 8px;
}

body[data-app-surface="mobile"] .m-ai-answer-lead {
  padding: 10px;
}

body[data-app-surface="mobile"] .m-ai-chat .is-ai > footer {
  margin-top: 8px;
  padding: 7px 10px;
}

/* M80 profile: smaller identity card and denser settings rows. */
body[data-app-surface="mobile"] .mobile-content[data-page-code="M80"]::before {
  height: 84px;
}

body[data-app-surface="mobile"] .mobile-profile-card {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 9px;
}

body[data-app-surface="mobile"] .mobile-profile-card img {
  width: 48px;
  height: 48px;
}

body[data-app-surface="mobile"] .mobile-profile-card h2 {
  font-size: 17px;
  line-height: 1.35;
}

body[data-app-surface="mobile"] .mobile-profile-card p {
  margin-top: 2px;
  font-size: 11px;
}

body[data-app-surface="mobile"] .mobile-profile-card > button {
  grid-column: 1 / -1;
  min-height: 44px;
  margin-top: 2px;
  font-size: 13px;
}

body[data-app-surface="mobile"] .mobile-settings-list {
  padding: 0;
}

body[data-app-surface="mobile"] .mobile-settings-list > button {
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  min-height: 56px;
  padding: 7px 10px;
  gap: 8px;
}

body[data-app-surface="mobile"] .mobile-settings-list > button > .ui-icon:first-child {
  font-size: 19px;
}

body[data-app-surface="mobile"] .mobile-settings-list b {
  font-size: 14px;
  line-height: 1.35;
}

body[data-app-surface="mobile"] .mobile-settings-list small {
  margin-top: 1px;
  font-size: 10px;
}

body[data-app-surface="mobile"] .mobile-bottom-nav button {
  min-height: 52px;
  gap: 1px;
}

body[data-app-surface="mobile"] .mobile-bottom-nav button span {
  font-size: 10px;
}

/* Density v2: targeted component repairs from the mobile visual review. */
body[data-app-surface="mobile"] .mobile-field-actions > header,
body[data-app-surface="mobile"] .mobile-task-section > header {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 32px;
  gap: 8px;
}

body[data-app-surface="mobile"] .mobile-field-actions > header {
  grid-template-columns: 3px minmax(0, 1fr);
}

body[data-app-surface="mobile"] .mobile-field-actions > header::before,
body[data-app-surface="mobile"] .mobile-task-section > header::before {
  align-self: center;
  width: 3px;
  height: 24px;
  margin: 0;
}

body[data-app-surface="mobile"] .mobile-field-actions > header h3,
body[data-app-surface="mobile"] .mobile-task-section > header h3 {
  justify-self: start;
  text-align: left;
}

body[data-app-surface="mobile"] .mobile-task-section > header button {
  justify-self: end;
  padding: 0 2px;
  gap: 4px;
}

body[data-app-surface="mobile"] .mobile-task-section > header button .ui-icon,
body[data-app-surface="mobile"] .mobile-task-list > :where(a, button) > .ui-icon,
body[data-app-surface="mobile"] .mobile-all-apps > summary > .ui-icon {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  color: #7d8da2;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}

body[data-app-surface="mobile"] .mobile-task-list > :where(a, button) {
  grid-template-columns: minmax(0, 1fr) auto 16px;
  column-gap: 8px;
}

body[data-app-surface="mobile"] .mobile-all-apps > summary {
  grid-template-columns: minmax(0, 1fr) auto 16px;
  min-height: 52px;
  padding: 0 12px;
  gap: 8px;
}

body[data-app-surface="mobile"] .mobile-profile-card + .mobile-settings-list {
  margin-top: 10px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-card {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-card > header {
  margin-bottom: 10px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form {
  margin: 10px 0 0;
  gap: 12px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-error:empty {
  display: none;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-table {
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #fff;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-table + .cg-table,
body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-table + .cg-form,
body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form + .cg-form,
body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form + .cg-table {
  margin-top: 12px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-table th,
body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-table td {
  padding: 9px 10px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form label:has(> select) {
  position: relative;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form label:has(> select)::after {
  content: "\f078";
  position: absolute;
  right: 13px;
  bottom: 14px;
  color: #334155;
  font-family: "Font Awesome 5 Free";
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form select {
  min-height: 44px;
  padding: 9px 40px 9px 11px;
  border-radius: 9px;
  appearance: none;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form input,
body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form textarea {
  border-radius: 9px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-file input[type="file"] {
  min-height: 44px;
  padding: 5px;
  color: #667085;
  background: #f8fafc;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-file input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 9px;
  padding: 0 11px;
  border: 1px solid #b8cadd;
  border-radius: 7px;
  color: #12558f;
  background: #fff;
  font: inherit;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form footer {
  padding-top: 10px;
  gap: 8px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-form footer button {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox > span {
  color: #475467;
  font-size: 13px;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  gap: 8px;
  border: 1px solid #b8c4d3;
  border-radius: 9px;
  color: #172033;
  background: #fff;
  text-align: left;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-trigger b {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-trigger .ui-icon {
  width: 14px;
  height: 14px;
  justify-self: end;
  color: #334155;
  font-size: 14px;
  transition: transform 120ms ease;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-trigger[aria-expanded="true"] {
  border-color: #1687ff;
  box-shadow: 0 0 0 2px rgb(22 135 255 / 14%);
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-trigger[aria-expanded="true"] .ui-icon {
  transform: rotate(180deg);
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #cbd8e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(16 38 62 / 16%);
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-menu[hidden] {
  display: none;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-menu button {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #26364a;
  background: #fff;
  text-align: left;
}

body[data-app-surface="mobile"] .mobile-content[data-page-code="M50"] .cg-combobox-menu button[aria-selected="true"] {
  color: #086ddd;
  background: #edf6ff;
  font-weight: 600;
}

body[data-app-surface="mobile"] .m-saf-form fieldset {
  position: relative;
  padding-top: 44px;
}

body[data-app-surface="mobile"] .m-saf-form fieldset > legend {
  position: absolute;
  top: 12px;
  left: 12px;
  width: calc(100% - 24px);
  padding: 0 0 8px;
  border-bottom: 1px solid #edf1f5;
}

body[data-app-surface="mobile"] .m-ai-context {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

body[data-app-surface="mobile"] .m-ai-trust {
  min-height: 32px;
  padding: 8px 0 0;
  border-top: 1px solid #edf1f5;
}

body[data-app-surface="mobile"] .m-ai-trust small {
  white-space: normal;
}

body[data-app-surface="mobile"] .m-ai-chat .is-user {
  max-width: 84%;
  margin-top: 2px;
}

body[data-app-surface="mobile"] .m-ai-composer-v5 {
  align-items: center;
  padding-top: 8px;
  gap: 7px;
}

body[data-app-surface="mobile"] .m-ai-composer-v5 textarea {
  height: 44px;
  min-height: 44px;
  max-height: 64px;
  padding: 11px 12px;
  line-height: 20px;
}

body[data-app-surface="mobile"] .m-ai-composer-v5 button {
  min-height: 44px;
  height: 44px;
}
