/* =========================================================
   OSBEATS GLOBAL BUTTON + TAB CLEANUP
   PRODUCTION RECONCILIATION V58.1P1

   Based on staging V58.1E / V58.1E1.

   Purpose:
   - Remove old pale-red / pink outlines.
   - Preserve existing fills, typography and behavior.
   - Protect newer production-specific interfaces.
   ========================================================= */


/* ---------------------------------------------------------
   STANDARD BUTTONS
   --------------------------------------------------------- */

html body button:not(
  .osb-draft-control
):not(
  .md-account-button
):not(
  .md-agreement-secondary-button
):not(
  .term-template-button
),

html body input[type="button"],
html body input[type="submit"],
html body input[type="reset"],

html body a.btn:not(
  .settings-view-profile
),

html body a.button,

html body [role="button"]{
  border-color:
    rgba(255,255,255,.12) !important;

  box-shadow:none;
}


/* ---------------------------------------------------------
   STANDARD TABS
   --------------------------------------------------------- */

html body [role="tab"],
html body [data-tab],
html body [data-studio-view],

html body .tabs button,
html body .tabs a,

html body .tab,
html body .tab-button,
html body .tab-btn,

html body .studio-tabs a,
html body .studio-tabs button,

html body .creator-tabs a,
html body .creator-tabs button{
  border-color:
    rgba(255,255,255,.10) !important;

  box-shadow:none;
}


/* ---------------------------------------------------------
   ACTIVE / HOVER STATES
   Keep the existing background or red active fill.
   --------------------------------------------------------- */

html body button.active,
html body a.active,

html body [role="tab"].active,
html body [role="tab"][aria-selected="true"],

html body [data-tab].active,
html body [data-studio-view].active,

html body .tabs .active,
html body .studio-tabs .active,
html body .creator-tabs .active{
  box-shadow:none;
}


html body button:hover,
html body button:active,

html body input[type="button"]:hover,
html body input[type="submit"]:hover,
html body input[type="reset"]:hover,

html body a.btn:hover,
html body a.btn:active,

html body a.button:hover,
html body a.button:active,

html body [role="button"]:hover,
html body [role="button"]:active,

html body [role="tab"]:hover,
html body [role="tab"]:active,

html body [data-tab]:hover,
html body [data-studio-view]:hover{
  box-shadow:none;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
   Neutral visible keyboard focus instead of the old pink ring.
   --------------------------------------------------------- */

html body button:focus-visible,
html body input[type="button"]:focus-visible,
html body input[type="submit"]:focus-visible,
html body input[type="reset"]:focus-visible,
html body input[type="file"]:focus-visible,

html body a.btn:focus-visible,
html body a.button:focus-visible,

html body [role="button"]:focus-visible,
html body [role="tab"]:focus-visible,

html body [data-tab]:focus-visible,
html body [data-studio-view]:focus-visible{
  outline:
    2px solid #737d8c !important;

  outline-offset:
    2px !important;
}


/* ---------------------------------------------------------
   CREATOR STUDIO

   The production Creator Studio reconciliation remains
   authoritative for tab proportions and Distribution UI.
   --------------------------------------------------------- */

html body
.osb-top-tabs-reconciled
[data-studio-view]{
  box-shadow:none !important;
}


/* ---------------------------------------------------------
   SETTINGS

   V58.1P1 Settings reconciliation remains authoritative.
   --------------------------------------------------------- */

html[data-settings-scope]
.tabs > .tab{
  border-color:
    rgba(255,255,255,.10) !important;
}


/* ---------------------------------------------------------
   IMPORTANT PRODUCTION EXCLUSIONS

   Admin and Library have newer production-only visual work.
   They are intentionally not globally flattened here.
   --------------------------------------------------------- */

.admin-shell button,
.admin-shell a,
.admin-nav button,
.admin-nav a,

.library-shell button,
.library-shell a,
.library-dashboard button,
.library-dashboard a{
  box-shadow:
    revert;
}


/* END OSBEATS GLOBAL BUTTON + TAB CLEANUP PRODUCTION V58.1P1 */
