/* HM v192 — readable Persian typography on phones/tablets.
   Loaded after route styles, screen only: no print, data, form, or calendar logic changes.
   Font families are intentionally inherited from v186 (Yekan for text, Titr for titles).
   Labels and secondary copy are enlarged selectively; dense calendar cells, split-flap
   numeric tiles, and narrow tabular grids retain their own geometry. */
@media screen and (max-width:900px) {
  body.hm185-app {
    --hm192-body: max(16px, calc(16px * var(--ds-body-scale, 1)));
    --hm192-meta: max(14px, calc(14px * var(--ds-meta-scale, 1)));
    --hm192-action: max(15px, calc(15px * var(--ds-body-scale, 1)));
    --hm192-card-title: max(18px, calc(18px * var(--ds-title-scale, 1)));
  }
  body.hm185-app .app-shell .page-content {
    font-size:var(--hm192-body)!important;
    line-height:1.85;
    overflow-wrap:break-word;
  }
  /* Preserve the heading hierarchy instead of bolding all copy. */
  body.hm185-app .app-shell .page-content :is(.panel-head h2,.settings-section-head h2,.section-title b,.compact-section-head h2,.settings-clean-group h2) {
    font-size:var(--hm192-card-title)!important;line-height:1.6!important;
  }
  body.hm185-app .app-shell .page-content :is(.page-heading,.report-page-head,.acct-v48-head,.settings-hero,.smart-accounting-head-v52,.message-center-head) p,
  body.hm185-app .app-shell .page-content :is(.panel-head,.settings-section-head) p,
  body.hm185-app .app-shell .page-content :is(.home-command-v44,.calendar-command-heading,.pmv117-hero-content,.acct-v48-chart-card,.hm143-center__head) p,
  body.hm185-app .app-shell .page-content .settings-clean-copy small,
  body.hm185-app .app-shell .page-content .section-hub-card small,
  body.hm185-app .app-shell .page-content .hm185-filter>summary small {
    font-size:var(--hm192-meta)!important;line-height:1.75!important;
    font-weight:500!important;overflow-wrap:anywhere;
  }
  body.hm185-app .app-shell .page-content :is(.eyebrow,.hm143-center__eyebrow,.compact-section-head>span,.hm143-center__badge,.hm143-center__item em,.settings-clean-copy small) {
    font-size:var(--hm192-meta)!important;line-height:1.7!important;
  }
  body.hm185-app .app-shell .page-content :is(.quick-action-grid-v44,.owner-primary-actions-v44) b,
  body.hm185-app .app-shell .page-content :is(.settings-clean-copy strong,.section-hub-card strong,.message-card-copy h3) {
    font-size:max(16px, calc(16px * var(--ds-body-scale,1)))!important;line-height:1.55!important;
  }
  body.hm185-app .app-shell .page-content :is(.quick-action-grid-v44,.owner-primary-actions-v44) small,
  body.hm185-app .app-shell .page-content :is(.dashboard-kpi,.hm143-center__item,.hm148-financial-status__amount) small,
  body.hm185-app .app-shell .page-content :is(.dashboard-kpi,.acct-v48-chart-card) p,
  body.hm185-app .app-shell .page-content :is(.timeline-copy,.timeline-date) small,
  body.hm185-app .app-shell .page-content :is(.owner-name-v26,.owner-usage-v26) :is(p,small),
  body.hm185-app .app-shell .page-content :is(.owner-summary-v26,.history-record-facts) small,
  body.hm185-app .app-shell .page-content .history-record-facts b,
  body.hm185-app .app-shell .page-content .message-card-meta>*,
  body.hm185-app .app-shell .page-content .app-status-grid-v42 b {
    font-size:var(--hm192-meta)!important;line-height:1.7!important;
  }
  /* Dense menus and cards must grow with text, never cover adjacent content. */
  body.hm185-app .app-shell .page-content :is(.quick-action-grid-v44>a,.owner-primary-actions-v44>a,.section-hub-card,.dashboard-kpi,.owner-card-v26,.hm143-center__item) {
    min-width:0;height:auto!important;max-height:none;
  }
  body.hm185-app .app-shell .page-content :is(.quick-action-grid-v44,.owner-primary-actions-v44) a,
  body.hm185-app .app-shell .page-content :is(.owner-card-v26,.history-record,.section-hub-card) {
    overflow-wrap:anywhere;
  }
  body.hm185-app .app-shell .page-content :is(.dashboard-kpi,.hm143-center__item) :is(strong,b) {
    font-size:max(19px,calc(19px * var(--ds-body-scale,1)))!important;font-weight:800!important;
  }
  body.hm185-app .app-shell .page-content .timeline-date b {font-size:var(--hm192-action)!important;font-weight:800!important}
  body.hm185-app .app-shell .page-content .quick-action-grid-v44>a {
    grid-template-columns:36px minmax(0,1fr);row-gap:4px!important;
  }
  body.hm185-app .app-shell .page-content :is(.owner-actions-v26 .button,.owner-detail-v26>summary,.owner-form-shell .owner-tab,.owner-shortcut-v81,.owner-toolbar-controls-v26 button) {
    font-size:var(--hm192-action)!important;line-height:1.6!important;
  }
  body.hm185-app .app-shell .page-content :is(.owner-modal-card .wizard-progress,.owner-modal-card>header p) {
    font-size:var(--hm192-meta)!important;line-height:1.65!important;
  }
  /* Financial summaries, controls, settings, notifications and direct messages. */
  body.hm185-app .app-shell .page-content :is(.button,.report-tabs>a,.acct-v48-tabs>a,.calendar-view-tabs>a,.message-filter>a,.receipt-stepper-v68 button,.calendar-nav-button,.pmv117-hero-actions .button,.stay-v58-mode,.hm185-filter>summary) {
    font-size:var(--hm192-action)!important;line-height:1.6!important;
  }
  body.hm185-app .app-shell .page-content :is(.acct-v48-table,.table-wrap table) :is(th,td) {
    font-size:var(--hm192-action)!important;line-height:1.7!important;
  }
  body.hm185-app .app-shell .page-content :is(.calendar-mini-stats,.hm157-calendar-mobile-hint,.stay155-new-entry-toggle,.history-record-facts) small,
  body.hm185-app .app-shell .page-content :is(.hm157-calendar-mobile-hint,.message-card-copy p,.hm185-settings-search p,.stay155-new-entry-toggle small) {
    font-size:var(--hm192-meta)!important;line-height:1.7!important;
  }
  body.hm185-app .app-shell .page-content .calendar-mini-stats b {font-weight:800!important}
  body.hm185-app .app-shell .page-content :is(.hm185-filter>summary,.owner-detail-v26>summary,.stay155-manual-exit>summary) {
    flex-wrap:wrap;gap:6px;overflow-wrap:anywhere;
  }
  body.hm185-app .app-shell .page-content :is(.form-grid,.owner-fields,.user-fields,.settings-fields-grid,.receipt-grid-v68,.account-field-grid,.smart-entry-grid-v52) :is(label,small,.field-hint,.form-hint,.form-help) {
    font-size:var(--hm192-action)!important;line-height:1.7!important;
  }
  body.hm185-app .app-shell .page-content :is(input,select,textarea) {font-size:max(16px,calc(16px * var(--ds-body-scale,1)))!important}
  body.hm185-app .app-shell .page-content :is(.hm185-table-hint,.hm185-filter>summary small,.calendar-filter-panel>summary small) {
    font-size:var(--hm192-meta)!important;line-height:1.75!important;
  }
  body.hm185-app .app-shell .page-content :is(.owner-usage-v26,.history-record-facts) :is(b,strong) {font-weight:800!important}

  /* Navigation — comfortable labels without adding horizontal scrolling. */
  body.hm185-app .app-shell .hm-header-v182 .topbar-title>b {font-size:16px!important}
  body.hm185-app .app-shell .hm-header-v182 .topbar-meta small {font-size:12px!important;font-weight:600!important}
  body.hm185-app .mobile-dock :is(a,button) {
    min-width:0;white-space:normal;overflow-wrap:break-word;
    font-size:clamp(12.5px,3.5vw,14px)!important;font-weight:750!important;line-height:1.4!important;
  }
  body.hm185-app .sidebar .sidebar-nav a {font-size:16px!important;line-height:1.65!important}
  body.hm185-app .sidebar :is(.hm185-nav-search label,.hm185-nav-search small,.sb84-nav-group) {font-size:14px!important}
  body.hm185-app .sidebar .brand-copy span {font-size:13px!important}
  body.hm185-app :is(.hm185-banner>summary,.hm185-banner-caption) {
    font-size:var(--hm192-meta)!important;line-height:1.65!important;
  }
  /* Day details are in a popover; do not enlarge the constrained header row. */
  body.hm185-app .hm182-dialog {font-size:var(--hm192-action)!important;line-height:1.75!important}
  body.hm185-app .hm182-dialog :is(.hm182-note,.hm182-panel-dates>.hm182-note,.hm182-section-meta,.hm182-weather-card p,.hm182-weather-card small,.hm182-dialog-footer) {
    font-size:var(--hm192-meta)!important;line-height:1.7!important;
  }
  body.hm185-app .hm182-dialog :is(.hm182-panel-section h3,.hm182-panel-dates strong) {font-size:var(--hm192-action)!important}
  body.hm185-app .hm182-dialog :is(.hm182-occasion-list,.hm182-sources,.hm182-settings-link) {font-size:var(--hm192-meta)!important}

  /* Owner's split-flap: enlarge surrounding text, keep date tiles fitted to 320px. */
  body.hm185-app.owner-interface-v80 .hm191-next-eyebrow,
  body.hm185-app.owner-interface-v80 .hm191-board-caption,
  body.hm185-app.owner-interface-v80 .hm191-next-status,
  body.hm185-app.owner-interface-v80 .hm191-flap-label,
  body.hm185-app.owner-interface-v80 .hm191-board-footer,
  body.hm185-app.owner-interface-v80 .hm191-stay-facts span,
  body.hm185-app.owner-interface-v80 .hm191-next-empty p,
  body.hm185-app.owner-interface-v80 .hm191-credit-chip,
  body.hm185-app.owner-interface-v80 .hm191-credit-chip strong small,
  body.hm185-app.owner-interface-v80 .hm191-owner-home :is(.owner-alert-content-v81 small,.owner-primary-actions-v44 small,.hm148-owner-summary__item span,.hm148-owner-summary__item small) {
    font-size:var(--hm192-meta)!important;line-height:1.65!important;
  }
  body.hm185-app.owner-interface-v80 .hm191-next-empty strong,
  body.hm185-app.owner-interface-v80 .hm191-countdown strong,
  body.hm185-app.owner-interface-v80 .hm191-stay-facts b,
  body.hm185-app.owner-interface-v80 .hm191-owner-home :is(.owner-alert-content-v81 b,.owner-primary-actions-v44 b) {
    font-size:var(--hm192-body)!important;line-height:1.6!important;font-weight:750!important;
  }
  body.hm185-app.owner-interface-v80 .hm191-owner-home .owner-alert-action-v81,
  body.hm185-app.owner-interface-v80 .hm191-calendar-link {
    font-size:var(--hm192-action)!important;min-height:44px!important;line-height:1.5!important;
  }
  body.hm185-app.owner-interface-v80 .hm191-owner-home .hm148-owner-summary__item strong {
    font-size:21px!important;font-weight:850!important;line-height:1.3!important;
  }
  body.hm185-app.owner-interface-v80 .hm191-next-status {white-space:normal;overflow-wrap:anywhere}
  body.hm185-app.owner-interface-v80 .hm191-next-card {height:auto!important;max-height:none}
  body.hm185-app.owner-interface-v80 .hm191-next-body,
  body.hm185-app.owner-interface-v80 .hm191-stay-facts {min-width:0;grid-auto-rows:auto}
  body.hm185-app.owner-interface-v80 .hm191-next-info {min-width:0}
  body.hm185-app.owner-interface-v80 .hm191-flap-value {font-weight:900!important}
  body.hm185-app.owner-interface-v80 .hm191-flap-month .hm191-flap-value {font-size:clamp(16px,4.4vw,27px)}
}
@media screen and (max-width:359px) {
  /* A 320px phone must show five dock items and long Persian month names. */
  body.hm185-app .mobile-dock :is(a,button) {font-size:12.5px!important;padding-inline:1px!important}
  body.hm185-app .app-shell .hm-header-v182 .topbar-title>b {font-size:14px!important}
  body.hm185-app.owner-interface-v80 .hm191-next-card {padding:11px}
  body.hm185-app.owner-interface-v80 .hm191-stay-facts>div {padding-inline:7px}
}
