      #appScreen .recording-primary-action { margin:18px 0 12px; }
      #appScreen .recording-primary-action #btnRecord {
        width:min(100%,520px);
        min-height:56px;
        border-radius:14px;
        font-size:16px;
        box-shadow:0 10px 24px color-mix(in srgb,var(--verde) 20%,transparent);
      }
      html[data-runtime="web"] #appScreen .recording-primary-action #btnRecord { box-shadow:0 10px 24px rgba(185,28,28,.20); }
      #appScreen .record-button-content { display:inline; }
      #appScreen .record-button-icon { display:none; }
      html[data-runtime="web"] #appScreen .record-button-content { display:inline-flex;align-items:center;justify-content:center;gap:10px; }
      html[data-runtime="web"] #appScreen .record-button-icon { width:13px;height:13px;display:inline-block;flex:0 0 13px;border:2px solid currentColor;border-radius:50%;background:#ef4444;box-shadow:0 0 0 3px rgba(255,255,255,.18); }
      #appScreen .recording-download-action {
        margin:14px 0 2px;
        padding-top:4px;
      }
      #appScreen .recording-download-action #btnDownload {
        width:min(100%,360px);
        min-height:46px;
        border-radius:12px;
      }
      #appScreen .history-item {
        padding:16px 48px 16px 16px;
        overflow:visible;
      }
      #appScreen .history-item::after { display:none; }
      #appScreen .history-menu-wrap {
        position:absolute;
        top:10px;
        right:10px;
        z-index:4;
      }
      #appScreen .history-menu-trigger {
        width:34px;
        height:34px;
        min-height:0;
        padding:0 0 7px;
        display:grid;
        place-items:center;
        border:1px solid transparent;
        border-radius:9px;
        background:transparent;
        color:#fff;
        font-size:25px;
        line-height:1;
      }
      #appScreen .history-menu-trigger:hover,
      #appScreen .history-menu-trigger[aria-expanded="true"] {
        border-color:rgba(255,255,255,.25);
        background:rgba(255,255,255,.10);
      }
      #appScreen .history-context-menu {
        position:absolute;
        top:40px;
        right:0;
        width:170px;
        padding:6px;
        border:1px solid #e6b7b7;
        border-radius:11px;
        background:#fff;
        box-shadow:0 14px 34px rgba(6,27,51,.24);
      }
      #appScreen .history-context-menu[hidden] { display:none; }
      #appScreen .history-delete-action {
        width:100%;
        min-height:40px;
        padding:9px 11px;
        border-radius:8px;
        background:#fff5f5;
        color:#b91c1c;
        text-align:left;
        font-size:12px;
      }
      #appScreen .history-delete-action:hover { background:#fee2e2; }
      @media (max-width:1300px) and (min-width:981px) {
        #appScreen .app-topbar {
          grid-template-columns:minmax(0,.7fr) minmax(300px,1.4fr) minmax(210px,.8fr);
          padding:26px 24px;
        }
        #appScreen .tenant-header-logo { width:min(100%,510px);max-height:165px; }
      }
      @media (max-width:980px) {
        #appScreen .app-topbar {
          display:flex;
          flex-direction:column;
          min-height:auto;
          padding:26px 22px;
        }
        #appScreen .tenant-header-identity { align-items:center;text-align:center; }
        #appScreen .app-topbar .top-actions { align-self:center;margin-top:18px; }
        #appScreen .tenant-header-logo { width:min(100%,500px);max-height:160px; }
      }
      @media (max-width:760px) {
        #masterScreen .master-sidebar { overflow:visible; }
        #masterScreen .master-layout.editing-client .master-editor-sidebar-nav {
          min-height:auto;
          overflow:visible;
          padding:0;
        }
        #masterScreen .master-sidebar-brand { min-height:74px;padding:7px 12px;overflow:hidden; }
        #appScreen .tenant-header-logo { width:min(100%,420px);max-height:135px; }
        #appScreen .app-user-badge { min-width:0;max-width:calc(100vw - 120px); }
        #appScreen .recording-primary-action #btnRecord,
        #appScreen .recording-download-action #btnDownload { width:100%; }
      }
      .attendance-type-field { margin-bottom: 18px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--azul-suave) 58%, white); border: 1px solid #d5e4ec; }
      .attendance-type-field select { font-weight: 750; }
      .clinical-field-error input, .clinical-field-error select { border-color: #c91d27 !important; box-shadow: 0 0 0 3px rgba(201,29,39,.12) !important; }
      .clinical-field-error label { color: #a4141c; }
      .transcription-disclosure { margin-bottom: 22px; border: 1px solid #d9e6ed; border-radius: 14px; background: #f8fbfc; }
      .transcription-disclosure summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: var(--azul); }
      .transcription-content { padding: 0 18px 18px; }
      .document-empty-state { padding: 34px; text-align: center; border: 1px dashed #b9ccd7; border-radius: 16px; color: #607087; }
      .clinical-type-panel > h2 { margin-bottom: 18px; }
      .ortho-subtabs { display: flex; gap: 10px; margin-bottom: 18px; }
      .ortho-subtab { border: 1px solid #cbdce5; background: #eef4f7; color: #17324d; border-radius: 12px; padding: 12px 18px; font-weight: 800; cursor: pointer; }
      .ortho-subtab.active { background: var(--azul); color: white; border-color: var(--azul); }
      .ortho-subpanel { display: none; }
      .ortho-subpanel.active { display: block; }
      .ortho-refinement { margin-top: 20px; padding: 18px; border-radius: 14px; background: #f4f8fa; border: 1px solid #d7e4ea; }
      .ortho-refinement textarea { margin-top: 8px; min-height: 90px; }
      .ortho-refinement-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
      @media (max-width: 850px) { .ortho-subtabs, .ortho-refinement-actions { flex-direction: column; } }
