/* The common visual system for the redesigned ОКО52 website. */
dialog.native-confirm-shell { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; color:var(--ink); }
dialog.native-confirm-shell::backdrop { background:transparent; }
:root {
  --bg: #0a0f15;
  --surface: #131c26;
  --surface-raised: #1c2934;
  --surface-hover: #273947;
  --panel: var(--surface);
  --line: #2d4250;
  --line-soft: #20313e;
  --ink: #f3f5f8;
  --muted: #adbfca;
  --subtle: #869eaf;
  --danger: #ffaca1;
  --warning: #f4cf8b;
  --font: "OKO Text", "LINE Seed JP", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --experience-ease: var(--ease);
  --detail-motion: var(--ease);
  --next-duration: 220ms;
  --next-gutter: clamp(18px, 4.1vw, 72px);
  --next-width: 1520px;
  --next-radius: 12px;
  --oko-control-radius: 8px;
  --oko-header-height: 92px;
  --next-shadow: 0 24px 80px #0006, 0 2px 10px #0004;
  --oko-edge: color-mix(in srgb, var(--accent) 24%, var(--line));
  --oko-focus: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --accent-ink: #111607;
  --accent-wash: color-mix(in srgb, var(--accent) 5%, transparent);
}

html { background: var(--bg); scrollbar-gutter: stable; }
body.oko-next {
  background: radial-gradient(ellipse at 84% 0, #31504c38, transparent 700px),
              radial-gradient(ellipse at 0 650px, #2b405828, transparent 900px), var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.oko-next *, body.oko-next *::before, body.oko-next *::after { box-sizing: border-box; }
body.oko-next [hidden] { display: none !important; }
body.oko-next :is(h1,h2,h3,h4) { color: var(--ink); text-wrap: balance; }
body.oko-next :is(h1,h2) { font-weight: 600; letter-spacing: -.045em; }
body.oko-next h1 { line-height: 1.04; }
body.oko-next :is(h3,h4) { font-weight: 500; letter-spacing: -.025em; }
body.oko-next p { text-wrap: pretty; }
body.oko-next :is(time,output,.badge,.metric-value,.status-pill) { font-variant-numeric: tabular-nums; }
body.oko-next .icon { display: block; width: 20px; height: 20px; flex: none; }
body.oko-next .eyebrow { font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .09em; }
body.oko-next :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.oko-next a { text-underline-offset: .22em; }
body.oko-next ::selection { background: var(--accent); color: var(--accent-ink); }

/* Balanced header tracks keep the public navigation centered. */
body.oko-next .site-header,
body.oko-next.workspace-body .site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr);
  align-items: center;
  gap: 14px;
  height: 72px;
  margin: 14px clamp(12px, 2vw, 32px) 6px;
  padding-inline: 22px;
  border: 1px solid #dcecf72d;
  border-radius: 14px;
  background: linear-gradient(115deg,#23384a80,transparent 52%), #111b24f5;
  box-shadow: inset 0 1px 0 #ffffff12, 0 14px 42px #0004;
  z-index: 40;
}
body.oko-next .site-header .brand {
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink);
}
body.oko-next .brand::before { display: none; }
body.oko-next .site-header .brand > img[src] {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
}
body.oko-next .next-brand-mark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--accent);
  mask: url("/assets/oko-logo.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/oko-logo.svg") center / contain no-repeat;
}
body.oko-next .site-header .brand-number { margin-left: 3px; color: var(--accent); }
body.oko-next .site-header .experience-location { display: none; }
body.oko-next .site-header .desktop-nav {
  grid-area: 1 / 2;
  justify-self: center;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
body.oko-next .site-header .desktop-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
body.oko-next .site-header .desktop-nav > a::after { display: none; }
body.oko-next .site-header .desktop-nav > a[aria-current] {
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px #ffffff0e;
}
body.oko-next .site-header .brand-number { text-shadow: 0 0 26px color-mix(in srgb,var(--accent) 24%,transparent); }
body.oko-next .site-header .header-actions {
  grid-area: 1 / 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  min-width: 0;
}
body.oko-next .site-header :is(.icon-button,.header-login) { height: 44px; min-height: 44px; border-radius: 8px; }
body.oko-next .site-header .icon-button { width: 44px; min-width: 44px; padding: 11px; }
body.oko-next .site-header .header-login {
  min-height: 44px;
  padding: 10px 13px;
  border-color: var(--line);
  background: var(--surface-raised);
  font-size: 13px;
  gap: 8px;
  white-space: nowrap;
}
body.oko-next .site-header .workspace-account { margin: 0; padding-left: 8px; gap: 4px; }
body.oko-next .site-header .workspace-profile { gap: 8px; }
body.oko-next .workspace-profile-copy > strong { max-width: 110px; font-size: 12px; }
body.oko-next .workspace-profile-copy > small { font-size: 10px; }
body.oko-next .workspace-avatar { display: grid; place-items: center; width: 33px; height: 33px; min-width: 33px; min-height: 33px; max-width: 33px; max-height: 33px; aspect-ratio: 1; flex: 0 0 33px; align-self: center; overflow: hidden; border-radius: 9px; }
body.oko-next .workspace-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.oko-next .menu-toggle { display: none; }
body.oko-next .mobile-nav {
  position: absolute;
  inset: 92px 12px auto;
  z-index: 50;
  padding: 7px;
  border-radius: 12px;
  border-color: var(--line);
  background: var(--surface-raised);
  box-shadow: var(--next-shadow);
  max-height: calc(100svh - 108px);
  overflow-y: auto;
}
body.oko-next .mobile-nav > a { min-height: 46px; border-radius: 7px; }

/* Every authorized workspace section is visible in one wrapping navigation. */
body.oko-next .workspace-topbar {
  border: 0;
  background: transparent;
  padding-inline: var(--next-gutter);
  margin-block: 18px 0;
}
body.oko-next .workspace-topbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
  max-width: var(--next-width);
  padding: 0 0 14px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  position: relative;
}
body.oko-next .workspace-topbar .workspace-topbar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
body.oko-next .workspace-topbar .workspace-topbar-item::after { display: none; }
body.oko-next .workspace-topbar-item > svg { width: 17px; height: 17px; flex: none; }
body.oko-next .workspace-topbar .workspace-topbar-item[aria-current] {
  border-color: var(--oko-edge);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 #ffffff12, 0 3px 14px #0002;
}
.next-nav-signal {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb,var(--accent) 35%,transparent);
  transform-origin: left center;
  transition: transform 260ms var(--ease), opacity 160ms ease;
}
.next-nav-signal[hidden] { opacity: 0; }
body.oko-next .workspace-topbar .cabinet-logout { margin-left: auto; }
body.oko-next :is(.workspace-layout,.cabinet-dashboard) {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  grid-template-rows: auto 1fr;
  min-height: calc(100svh - var(--oko-header-height));
}
body.oko-next .workspace-main {
  width: 100%;
  max-width: calc(var(--next-width) + var(--next-gutter) * 2);
  min-width: 0;
  padding: 36px var(--next-gutter) 72px;
  margin-inline: auto;
  background: transparent;
}
body.oko-next.account-page .cabinet-shell[data-view="dashboard"] { width: 100%; max-width: none; }

/* Controls share a precise silhouette and predictable states. */
body.oko-next :is(button,input,select,textarea) { font-family: var(--font); }
body.oko-next :is(.button,.icon-button,.workspace-exit) {
  border-radius: var(--oko-control-radius);
  min-height: 44px;
  border-color: var(--line);
  font-weight: 500;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease,
              box-shadow 140ms ease, transform 140ms var(--ease);
}
body.oko-next .button { gap: 9px; padding: 11px 17px; font-size: 14px; line-height: 1.3; }
body.oko-next .button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  background: linear-gradient(165deg, color-mix(in srgb,var(--accent) 85%,white), var(--accent));
  box-shadow: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #293c1740, 0 5px 18px #0003;
}
body.oko-next .button-primary .icon { width: 18px; height: 18px; }
body.oko-next :is(.button-quiet,.button-ghost) {
  background: linear-gradient(165deg, #ffffff06, transparent 55%), var(--surface-raised);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #ffffff0b, 0 2px 8px #0002;
}
body.oko-next :is(button,a)[aria-disabled="true"], body.oko-next button:disabled { opacity: .5; cursor: default; }
body.oko-next :is(input,textarea,select):not([type="checkbox"],[type="radio"],[type="range"],[type="color"]) {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--oko-control-radius);
  background: #0c141d;
  color: var(--ink);
  box-shadow: inset 0 2px 5px #0003;
  line-height: 1.45;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
body.oko-next :is(input,textarea)::placeholder { color: var(--subtle); }
body.oko-next :is(input,textarea,select):focus:not([type="checkbox"],[type="radio"],[type="range"]) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
body.oko-next select {
  appearance: none;
  padding-inline-end: 36px !important;
  background-image: url("/assets/chevron-down.svg") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
}
body.oko-next :is(input,textarea,select):disabled { opacity: .5; cursor: not-allowed; }
body.oko-next input[type="checkbox"], body.oko-next input[type="radio"] { accent-color: var(--accent); }
body.oko-next label { line-height: 1.5; }
body.oko-next :is(.form-error,.form-message,.notice,.empty-state) { border-radius: 9px; }
body.oko-next .form-error { color: var(--danger); border-color: color-mix(in srgb,var(--danger) 25%,transparent); }
body.oko-next :is(.profile-avatar,.user-avatar) { border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
body.oko-next :is(.status-pill,.profile-state-chip) { border-radius: 5px; }
body.oko-next code { font-family: ui-monospace, "Cascadia Mono", monospace; }
body.oko-next :is(.forum-rich-editor,.editor-toolbar,.editor-content,.forum-editor-toolbar) { border-color: var(--line); }
body.oko-next .forum-editor-toolbar { background: var(--surface-raised); }
body.oko-next :is(dialog,.session-security-card) {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg,#2e495966,transparent 55%), var(--surface);
  box-shadow: 0 34px 110px #0009, 0 8px 24px #0004, inset 0 1px 0 #ffffff1a;
}
body.oko-next dialog::backdrop { background: #010604cf; }
body.oko-next :is(.dialog-close,.activation-dialog-close) { border-radius: 7px; }
body.oko-next .loading-spinner { border-color: var(--line); border-top-color: var(--accent); }
body.oko-next .toast {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: var(--next-shadow);
}

/* Theme and notifications panels belong to the same material system. */
body.oko-next :is(.oko-accent-panel,.oko-notification-panel) {
  border-color: var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg,#c4e5ff08,transparent 48%),var(--surface-raised);
  box-shadow: var(--next-shadow);
}
body.oko-next .oko-notification-head { padding: 22px; background: transparent; }
body.oko-next .oko-notification-head h2 { font-size: 24px; }
body.oko-next .oko-notification-item { padding: 15px 11px; border-radius: 9px; }
body.oko-next .oko-notification-kind { border: 1px solid var(--line); border-radius: 8px; }
body.oko-next .oko-notification-copy > strong { font-size: 14px; font-weight: 500; }
body.oko-next .oko-notification-copy > p { font-size: 13px; }
body.oko-next .oko-notification-item.is-unread { border-color: var(--oko-edge); background: var(--accent-soft); }
body.oko-next .oko-accent-options > button { border-radius: 8px; }

/* A quiet, information-led closing section replaces a tiny link strip. */
body.oko-next .site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px 60px;
  width: calc(100% - var(--next-gutter) * 2);
  max-width: var(--next-width);
  margin: 0 auto;
  padding: clamp(36px,6vw,78px) 0 28px;
  border-top: 1px solid var(--line);
}
body.oko-next .footer-identity { min-width: 0; }
body.oko-next .footer-identity .brand { display: inline-flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 600; }
body.oko-next .footer-identity .brand img[src] { display: block; width: 40px; height: 40px; }
body.oko-next .footer-identity .next-brand-mark { width: 40px; height: 40px; }
body.oko-next .footer-identity p { max-width: 380px; font-size: 15px; margin: 17px 0 0; color: var(--muted); }
body.oko-next .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 5px 24px; font-size: 14px; }
body.oko-next .site-footer nav a { min-height: 40px; padding-block: 6px; }
body.oko-next .footer-baseline {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 15px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--subtle);
  font-size: 12px;
}
body.oko-next .footer-baseline a { color: var(--muted); }

@media (hover: hover) and (pointer: fine) {
  body.oko-next .site-header .desktop-nav > a:hover { color: var(--ink); background: var(--surface-raised); }
  body.oko-next .workspace-topbar .workspace-topbar-item:not([aria-current]):hover { color: var(--ink); background: var(--surface-raised); }
  body.oko-next .button-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 26px color-mix(in srgb,var(--accent) 19%,transparent); }
  body.oko-next :is(.button-quiet,.button-ghost,.icon-button):hover { color: var(--ink); border-color: var(--oko-edge); background: var(--surface-hover); }
  body.oko-next .button:not(:disabled):not([aria-disabled="true"]):active { transform: scale(.96); }
  body.oko-next .icon-button:not(:disabled):active { transform: scale(.96); }
  body.oko-next .site-header .brand .next-brand-mark { transition: transform 180ms var(--ease); }
  body.oko-next .site-header .brand:hover .next-brand-mark { transform: rotate(-6deg) scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  body.oko-next .next-reveal { animation: next-arrival 600ms var(--ease) both; }
  body.oko-next .next-reveal-group > :nth-child(2) { animation-delay: 60ms; }
  body.oko-next .next-reveal-group > :nth-child(3) { animation-delay: 120ms; }
  body.oko-next .next-reveal-group > :nth-child(4) { animation-delay: 180ms; }
  body.oko-next .dashboard-tab.active { animation: next-panel-arrival 220ms var(--ease) both; }
  body.oko-next dialog[open]:not(#playerDialog) { animation: none; }
  @keyframes next-arrival { from { opacity: .18; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes next-panel-arrival { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1100px) {
  body.oko-next .site-header, body.oko-next.workspace-body .site-header { grid-template-columns: minmax(0,1fr) max-content; }
  body.oko-next .site-header .desktop-nav { display: none; }
  body.oko-next .site-header .header-actions { grid-area: 1 / 2; }
  body.oko-next .menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --oko-header-height: 84px; --next-gutter: 22px; }
  body.oko-next .site-header, body.oko-next.workspace-body .site-header { height: 64px; margin: 10px 10px; padding-inline: 14px; gap: 8px; }
  body.oko-next .site-header .brand { gap: 7px; font-size: 20px; }
  body.oko-next .site-header .brand > img[src] { width: 29px; height: 29px; }
  body.oko-next .site-header .next-brand-mark { width: 29px; height: 29px; }
  body.oko-next .site-header .header-actions { gap: 2px; }
  body.oko-next .site-header .workspace-account { padding: 0; }
  body.oko-next .mobile-nav { top: 84px; }
  body.oko-next .workspace-topbar { margin-top: 10px; }
  body.oko-next .workspace-topbar-inner { gap: 3px; padding-bottom: 10px; }
  body.oko-next .workspace-topbar .workspace-topbar-item { padding: 9px 10px; gap: 6px; font-size: 12px; }
  body.oko-next .workspace-main { padding-top: 28px; }
  body.oko-next .site-footer { grid-template-columns: 1fr; gap: 30px; }
  body.oko-next .footer-baseline { margin-top: 0; }
  body.oko-next :is(input,select,textarea):not([type="checkbox"],[type="radio"],[type="range"]) { font-size: 16px; }
}
@media (max-width: 440px) {
  :root { --next-gutter: 16px; }
  body.oko-next .site-header .brand > span { display: none; }
  body.oko-next .site-header .workspace-profile-copy { display: none; }
  body.oko-next .site-header .workspace-profile { padding: 0; }
  body.oko-next .site-header .workspace-account > #workspaceLogout:not([hidden]) { display: inline-flex; }
  body.oko-next .site-header .header-login { width: 40px; min-width: 40px; padding: 10px; font-size: 0; gap: 0; }
  body.oko-next .workspace-topbar-item > svg { width: 16px; height: 16px; }
  body.oko-next .workspace-topbar .cabinet-logout { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.oko-next *, body.oko-next *::before, body.oko-next *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
.next-motion-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #101713cc;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
body.oko-next .np-hero-top .np-hero-platform { margin-inline-start: auto; }
.next-motion-toggle > svg { width: 18px; height: 18px; }
.next-motion-toggle:hover { background: var(--surface-raised); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  body.oko-next .np-optics img {
    animation: next-optic-focus 14s ease-in-out infinite alternate;
    transform-origin: 76% 55%;
  }
  body.oko-next .np-optics::before {
    content: "";
    position: absolute;
    inset: 8% auto -4% 45%;
    width: 16%;
    z-index: 1;
    background: linear-gradient(90deg, transparent, #f0ffa813, transparent);
    transform: rotate(18deg) translateX(-200%);
    animation: next-optic-light 12s linear infinite;
    pointer-events: none;
  }
  body.oko-next .np-hero:is([data-motion-paused="true"],[data-motion-visible="false"]) .np-optics::before,
  body.oko-next .np-hero:is([data-motion-paused="true"],[data-motion-visible="false"]) .np-optics img {
    animation-play-state: paused;
  }
  @keyframes next-optic-focus { from { transform: scale(1); } to { transform: scale(1.045) rotate(.65deg); } }
  @keyframes next-optic-light {
    0%, 40% { transform: rotate(18deg) translateX(-240%); opacity: 0; }
    50% { opacity: 1; }
    75%, 100% { transform: rotate(18deg) translateX(380%); opacity: 0; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  body.oko-next .site-header { view-transition-name: next-header; }
  body.oko-next .workspace-topbar { view-transition-name: next-navigation; }
  ::view-transition-old(root) { animation: next-page-exit 180ms var(--ease) both; }
  ::view-transition-new(root) { animation: next-page-enter 280ms var(--ease) both; }
  ::view-transition-group(next-header), ::view-transition-group(next-navigation) {
    animation-duration: 280ms;
    animation-timing-function: var(--ease);
  }
  @keyframes next-page-exit { to { opacity: 0; } }
  @keyframes next-page-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Native display/overlay transitions keep dialogs' own focus and close behavior. */
@supports (transition-behavior: allow-discrete) {
  @media (prefers-reduced-motion: no-preference) {
    body.oko-next :is(#mobileNav,.oko-accent-panel,.oko-notification-panel) {
      animation: none;
      opacity: 0;
      transform: translateY(-8px) scale(.98);
      transform-origin: right top;
      transition: opacity 180ms var(--ease), transform 240ms var(--ease),
                  display 240ms allow-discrete;
    }
    body.oko-next :is(#mobileNav,.oko-accent-panel,.oko-notification-panel):not([hidden]) {
      opacity: 1;
      transform: none;
    }
    body.oko-next dialog:not(#playerDialog) {
      animation: none;
      opacity: 0;
      transform: translateY(14px) scale(.975);
      pointer-events: none;
      transition: opacity 180ms var(--ease), transform 260ms var(--ease),
                  overlay 260ms allow-discrete, display 260ms allow-discrete;
    }
    body.oko-next dialog[open]:not(#playerDialog) {
      opacity: 1;
      transform: none;
      pointer-events: auto;
      animation: none;
    }
    body.oko-next dialog:not(#playerDialog)::backdrop {
      background: #01060b00;
      transition: background-color 200ms ease, overlay 260ms allow-discrete,
                  display 260ms allow-discrete;
    }
    body.oko-next dialog[open]:not(#playerDialog)::backdrop { background: #01060bd9; }
    body.oko-next :is(.forum-compose,.chat-channel-modal) {
      opacity: 0;
      transition: opacity 180ms var(--ease), display 240ms allow-discrete;
    }
    body.oko-next :is(.forum-compose,.chat-channel-modal).open { opacity: 1; }
    body.oko-next :is(.compose-window,.chat-channel-dialog) {
      animation: none;
      transform: translateY(14px) scale(.98);
      transition: transform 260ms var(--ease);
    }
    body.oko-next :is(.forum-compose,.chat-channel-modal).open :is(.compose-window,.chat-channel-dialog) { transform: none; }
    body.oko-next #securityInfo {
      animation: none;
      opacity: 0;
      transform: translateY(12px) scale(.98);
      pointer-events: none;
      transition: opacity 180ms var(--ease), transform 260ms var(--ease), display 260ms allow-discrete;
    }
    body.oko-next #securityInfo:not([hidden]) { opacity: 1; transform: none; pointer-events: auto; }
    @starting-style {
      body.oko-next :is(#mobileNav,.oko-accent-panel,.oko-notification-panel):not([hidden]) {
        opacity: 0;
        transform: translateY(-8px) scale(.98);
      }
      body.oko-next dialog[open]:not(#playerDialog) { opacity: 0; transform: translateY(14px) scale(.975); }
      body.oko-next dialog[open]:not(#playerDialog)::backdrop { background: #01060b00; }
      body.oko-next :is(.forum-compose,.chat-channel-modal).open { opacity: 0; }
      body.oko-next :is(.forum-compose,.chat-channel-modal).open :is(.compose-window,.chat-channel-dialog) { transform: translateY(14px) scale(.98); }
      body.oko-next #securityInfo:not([hidden]) { opacity: 0; transform: translateY(12px) scale(.98); }
    }
  }
}
body.oko-next.next-keyboard-motion :is(dialog:not(#playerDialog),#securityInfo,#mobileNav,.oko-accent-panel,.oko-notification-panel,.forum-compose,.chat-channel-modal,.compose-window,.chat-channel-dialog) {
  transition-duration: 0ms !important;
  animation: none !important;
}
