/* OZS v1.6: structure and readability corrections, keeping the original design language. */
/* On desktop, editorial and form pages intentionally use narrower centered rails. */
.content[data-view="custom"]{width:100%!important;max-width:var(--ozs-custom-max,1120px)!important;min-width:0;margin-inline:auto!important}
.content[data-view="updates"]{width:100%!important;max-width:var(--ozs-updates-max,1160px)!important;min-width:0;margin-inline:auto!important}
.content[data-view="custom"] .ozs-custom-page,.content[data-view="updates"] .ozs-updates-page{max-width:100%!important;width:100%;margin:0 auto}
.content[data-view="custom"] .ozs-custom-shell{max-width:100%!important;padding-inline:0!important}
.ozs-custom-page .ozs-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:20px 22px!important}
.ozs-custom-page .ozs-form-grid>label.ozs-field-unit{min-width:0;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin:0!important;line-height:1.45!important}
.ozs-custom-page .ozs-form-grid .ozs-form-label-text{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:5px;white-space:normal;min-height:18px;font-size:12px;font-weight:750;color:#334f3d}
.ozs-custom-page .ozs-form-grid .ozs-form-label-text em{display:inline!important;position:static!important;font-size:12px;line-height:1!important;order:initial!important;white-space:nowrap!important;margin:0!important;color:#a86352!important}
.ozs-custom-page .ozs-form-grid>label.ozs-span{grid-column:1/-1}
.ozs-custom-page .ozs-form-grid>label.ozs-hidden-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}
.ozs-custom-page .ozs-form-grid input,.ozs-custom-page .ozs-form-grid select,.ozs-custom-page .ozs-form-grid textarea{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important}
.ozs-custom-page .ozs-custom-panel{overflow:visible;min-width:0}
/* Updates: rail, timeline badge and note body are separate grid items, never overlapping. */
.ozs-updates-page .ozs-timeline{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:20px!important;max-width:100%;width:100%}
.ozs-updates-page .ozs-release{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:18px!important;padding:0!important;margin:0!important;overflow:visible!important;align-items:start}
.ozs-updates-page .ozs-release-index{position:relative!important;inset:auto!important;transform:none!important;width:42px!important;height:42px!important;flex:none!important;grid-column:1!important;margin:9px auto 0!important}
.ozs-updates-page .ozs-release-index:after{content:none!important}
.ozs-updates-page .ozs-release-body{grid-column:2!important;min-width:0!important;max-width:100%;width:100%;margin:0!important}
.ozs-updates-page .ozs-release-target{flex-wrap:wrap;gap:12px}
.ozs-updates-page .ozs-release-target>div{flex:1;min-width:100px}
.ozs-updates-page .ozs-release-category{margin-left:auto}
.ozs-updates-page .ozs-release-html,.ozs-updates-page .ozs-release-demo{width:100%;min-width:0;max-width:100%}
.ozs-update-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0 0 4px}
.ozs-update-filters button{border:1px solid #52715b;background:rgba(255,255,255,.05);border-radius:28px;padding:9px 16px;color:#e0ebdd;font-size:12px;font-weight:750;cursor:pointer;transition:background .2s,border-color .2s}
.ozs-update-filters button.active,.ozs-update-filters button:hover{background:#dbe6d0;color:#1c3628;border-color:#dbe6d0}
.ozs-updates-page:not(.ozs-updates-dark) .ozs-update-filters button{color:#355541;background:#f6f8f1;border-color:#d3e0d1}
.ozs-updates-page:not(.ozs-updates-dark) .ozs-update-filters button.active{background:#315741;color:#fff}
/* Bigger brand state indicator, same bar geometry. */
.site-announcement .announce-pill i{background:#4f9250!important;width:9px!important;height:9px!important;box-shadow:0 0 0 3px rgba(66,133,73,.18)!important}
.site-announcement .announce-pill i:after{border-color:#438d50!important;inset:-6px!important;opacity:.75}
.site-announcement .announce-pill.is-update i{background:#c58040!important;box-shadow:0 0 0 3px #c5804029!important}
.site-announcement .announce-pill.is-notice i{background:#ad6255!important;box-shadow:0 0 0 3px #ad625529!important}
/* Guest avatar is always a neutral outline, aligned to other header controls. */
.site-header .site-header-actions{display:flex;align-items:center;gap:10px;min-width:0}
.site-header .site-account{display:inline-flex;align-items:center;justify-content:center;align-self:center;margin:0;vertical-align:middle}
.site-header .site-account-avatar{display:grid;place-items:center;width:38px!important;height:38px!important;flex:0 0 38px!important;line-height:1}
.site-header .site-account-avatar .ozs-avatar-guest{background:transparent!important;border:0!important}
.site-header .site-account-avatar .ozs-avatar-guest svg{width:27px;height:27px}
/* Login: keep dark premium artwork on left, light clean form on right, including dark OS mode. */
.ozs-auth-page,.ozs-login-dialog{background:#f8faf5!important;border:1px solid #dfe7dc!important;overflow:hidden!important}
.ozs-auth-page .ozs-auth-art,.ozs-login-dialog .ozs-auth-art{background-color:#172b22!important}
.ozs-auth-fields,.ozs-auth-page .ozs-auth-fields,.ozs-login-dialog .ozs-auth-fields,
html[data-ozs-theme="dark"] .ozs-auth-fields,html[data-ozs-theme="system"] .ozs-auth-fields{
  background:linear-gradient(148deg,#fffefa 0%,#f4f7ef 100%)!important;color:#24402e!important;padding:clamp(28px,4.4vw,51px)!important}
.ozs-auth-fields h1{color:#203a2a!important}
.ozs-auth-fields>p{color:#728678!important}
.ozs-auth-fields .eyebrow{color:#8a734d!important}
.ozs-auth-fields form label{color:#365440!important}
.ozs-auth-fields input:not([type=checkbox]),.ozs-auth-fields select{background:#fff!important;border:1px solid #d8e2d7!important;color:#254132!important;border-radius:12px!important}
.ozs-auth-fields input::placeholder{color:#849787!important}
.ozs-auth-fields input:focus{border-color:#76a580!important;box-shadow:0 0 0 3px #78a98222!important}
.ozs-auth-fields .btn-primary{background:#244333!important;color:#fff!important;border-color:#244333!important;box-shadow:0 4px 0 #152e21!important}
.ozs-auth-fields .ozs-auth-alt button{color:#416a4b!important}
.ozs-auth-fields .ozs-oauth a{color:#2d503b!important;background:#f7faf6!important;border-color:#dbe7dc!important}
.ozs-login-form-brand{color:#244433!important}
.ozs-popup-close{background:#f6f9f4!important;color:#365441!important;border:1px solid #d8e3d9!important}
.ozs-auth-art:before,.ozs-auth-art:after{pointer-events:none}
/* Pure execution optimization: no visual change while cards are in view. */
html.ozs-page-hidden #page *,html.ozs-page-hidden .site-announcement .announce-pill i:after{animation-play-state:paused!important}
.ozs-offscreen-motion,.ozs-offscreen-motion *{animation-play-state:paused!important}
@media(max-width:820px){
  .content[data-view="custom"],.content[data-view="updates"]{max-width:100%!important;width:100%;padding-inline:14px!important}
  .ozs-custom-page .ozs-custom-panel{padding:22px 18px!important}
  .ozs-auth-page,.ozs-login-dialog{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:720px){
  .ozs-custom-page .ozs-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .ozs-custom-page .ozs-form-grid>label.ozs-span{grid-column:1!important}
  .ozs-updates-page .ozs-release{grid-template-columns:32px minmax(0,1fr)!important;gap:9px!important}
  .ozs-updates-page .ozs-release-index{width:30px!important;height:30px!important;font-size:10px!important;border-radius:9px!important}
  .ozs-updates-page .ozs-release-body{padding:19px 15px!important}
  .ozs-login-dialog .ozs-auth-fields,.ozs-auth-page .ozs-auth-fields{padding:24px 20px!important}
}
@media(max-width:390px){
  .content[data-view="custom"],.content[data-view="updates"]{padding-inline:12px!important}
  .ozs-updates-page .ozs-updates-surface{padding:18px 12px!important}
  .ozs-custom-page .ozs-custom-panel{padding:17px 13px!important}
}
@media(prefers-reduced-motion:reduce){.site-announcement .announce-pill i:after{animation:none!important}}
.ozs-test-mode-banner{padding:11px 16px;background:#fff0cc;border:1px solid #d8ab69;border-radius:10px;color:#784b20;font-size:12px;font-weight:700;margin-bottom:14px}
