:root {
  --q-space: clamp(14px, 2.1vw, 28px);
  --q-radius: 16px;
  --q-ink: #eaf4ff;
  --q-muted: #b9cbe4;
  --q-link: #a3ebff;
  --q-dark: #0b1529;
  --q-panel: #11213a;
  --q-border: #405875;
  --q-safe: max(14px, env(safe-area-inset-right));
}
html:has(body.q-theme), html:has(link[data-ay-quantum]) { background: #0b1529; }
body.q-theme, html:has(link[data-ay-quantum]) body {
  min-height: 100dvh;
  isolation: isolate;
  background: transparent !important;
}
body.q-theme::before, html:has(link[data-ay-quantum]) body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #0b1529 url("../svg/ayimf-uzay.svg?v=4") center / cover no-repeat;
}
body.q-theme::after, html:has(link[data-ay-quantum]) body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: -1;
  inset: -8%;
  background: url("../svg/ayimf-yildizlar.svg?v=4") center / cover no-repeat;
  opacity: .5;
  animation: q-orbit 32s ease-in-out infinite alternate;
}
@keyframes q-orbit {
  from { transform: translate3d(-2%, -2%, 0) scale(1); opacity: .3; }
  to { transform: translate3d(2%, 2%, 0) scale(1.08); opacity: .7; }
}
html[data-ah-motion="reduced"] body::after,
body.q-calm::after, body.q-background-hidden::after, body.q-background-hidden::before {
  animation: none !important;
}
body.q-background-hidden::after, body.q-background-hidden::before { background: #101c31 !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  body::after { animation: none !important; }
}
body.q-calm *, body.q-calm *::before, body.q-calm *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
:where(.q-theme a,.q-theme button,.q-theme input,.q-theme select,.q-theme textarea):focus-visible {
  outline: 3px solid #518ffc;
  outline-offset: 3px;
}
.q-theme :where(main,article,section,aside,form) { min-inline-size: 0; }
.q-theme :where(img,video,iframe) { max-inline-size: 100%; }
.q-theme :where(h1,h2,h3) { text-wrap: balance; overflow-wrap: break-word; }
.q-theme [hidden].q-tool-toggle, .q-theme [hidden].q-progress, .q-theme [hidden].q-reading-line { display: none; }
body.q-theme > :is(.container,.wrap,.box,.auth):not(.q-install) {
  background-color: #f4f7fc;
  border-radius: var(--q-radius);
}
body.q-theme > :is(main.container,main.wrap,main.auth,div.container,div.box) {
  max-inline-size: min(100% - 24px, var(--q-content-width, 1280px));
}
.q-theme .ay-site-header {
  background: linear-gradient(108deg,#0c162e,#15254b 66%,#104052);
  border-bottom: 1px solid var(--q-border);
}
.q-theme .ay-footer { border-top-color: var(--q-border); }
.ay-install-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #78cfe878;
  border-radius: 11px;
  color: #dff7ff !important;
  background: #173550;
  font: 700 13px/1.25 system-ui,sans-serif;
  text-decoration: none !important;
}
.ay-install-link:hover { background: #245172; }
.ay-footer .ay-install-link { margin-top: 12px; }
@media(max-width:420px) {
  .ay-header-actions .ay-install-link { padding-inline: 8px; font-size: 12px; }
}
body.q-theme .ah-home {
  --ah-ink: #eaf4ff;
  --ah-muted: #b9cbe4;
  --ah-brand: #a3ebff;
  --ah-line: #405875;
  color: var(--ah-ink);
}
.q-theme .ah-home :is(.ah-card,.ah-shortcut,.ah-explore,.ah-editors-pick,.ah-bottom,.ah-slide-thumb,.ah-resume) {
  --ah-ink: #15233d;
  --ah-muted: #52647e;
  --ah-brand: #1d538d;
  --ah-line: #d5e0ef;
  color: var(--ah-ink);
}
.q-theme .ah-home :is(.ah-explore,.ah-card,.ah-shortcut) { border-radius: var(--q-radius); }
.q-theme .ah-home :is(.ah-topline-brand strong,.ah-section-head > div > p) { color: var(--ah-muted); }
.q-theme .ah-home .ah-section-head > div > h1,
.q-theme .ah-home .ah-section-head > div > h2 { color: var(--ah-ink); }
.q-theme .ah-home .ah-section-head > a { color: var(--ah-brand); }
.q-theme .ah-slide-thumb.is-active { box-shadow: inset 0 0 0 2px #447bc2; }
.q-theme .an-page > :is(.an-toolbar,.ap-brandbar,.np-section-head,.rs-intro,.nc-category-nav) {
  color: var(--q-ink);
  border-radius: var(--q-radius);
  background: var(--q-panel);
  padding-inline: var(--q-space);
  --n6-ink: var(--q-ink);
  --n6-muted: var(--q-muted);
  --n6-red: #ffafb8;
  --n6-line: var(--q-border);
  --n6-soft: #172a48;
}
.q-theme .haber-page { border-radius: var(--q-radius); background-color: #f3f6fb; padding: var(--q-space); box-sizing: border-box; }
.q-theme :where(.sidebar) { scrollbar-width: thin; }
.q-theme .q-simple {
  margin: clamp(24px,8vh,80px) auto;
  width: min(640px,calc(100% - 28px));
  box-sizing: border-box;
  padding: var(--q-space);
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius);
  background: var(--q-panel);
  color: var(--q-ink);
}
.q-simple a { color: var(--q-link); }
.q-tool-toggle,.q-discovery,.q-dialog,.q-status {
  box-sizing: border-box;
  color-scheme: dark;
  font: 15px/1.5 system-ui,sans-serif;
  color: var(--q-ink);
  border: 1px solid var(--q-border);
  background: var(--q-panel);
}
.q-tool-toggle {
  position: fixed;
  inset-inline-end: var(--q-safe);
  inset-block-end: calc(var(--ay-bottom-space, 0px) + 16px);
  z-index: 8500;
  border-radius: 14px;
  padding: 9px 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 30px #0006;
  cursor: pointer;
}
.q-tool-toggle svg,.q-discovery svg { flex: none; inline-size: 21px; block-size: 21px; }
.q-theme .q-header-tool { position: static; }
.q-discovery {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: var(--q-space);
  padding: 14px var(--q-space);
  margin: 16px 0;
  border-radius: var(--q-radius);
  background: linear-gradient(105deg,#10243b,#1e2950);
}
.q-discovery svg { inline-size: 32px; block-size: 32px; color: #8fe7fb; }
.q-discovery small { color: var(--q-muted); display: block; }
.q-discovery strong { display: block; font-size: clamp(16px,3vw,20px); }
.q-discovery p { margin: 0; color: var(--q-muted); }
.q-discovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.q-dialog {
  width: min(590px,calc(100vw - 24px));
  max-height: min(760px,calc(100dvh - 24px));
  padding: var(--q-space);
  border-radius: var(--q-radius);
  overscroll-behavior: contain;
}
.q-dialog::backdrop { background: #030918ba; }
.q-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-dialog-header h2 { margin: 0; color: var(--q-ink); }
.q-dialog fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.q-dialog legend { margin-bottom: 7px; color: var(--q-muted); font-weight: 700; }
.q-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.q-button,.q-dialog button,.q-dialog a.q-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 6px 12px;
  box-sizing: border-box;
  border: 1px solid #6281a6;
  border-radius: 9px;
  background: #1b3556;
  color: #f1f8ff !important;
  font: 650 13px/1.3 system-ui,sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.q-dialog button[aria-pressed="true"],.q-button:hover,.q-dialog button:hover { background: #28557a; }
.q-dialog button:disabled { opacity: .7; cursor: default; }
.q-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #6281a6;
  border-radius: 9px;
  background: var(--q-dark);
  color: var(--q-ink);
  font: inherit;
}
.q-dialog label { display: block; margin-bottom: 6px; color: var(--q-ink); }
.q-dialog a { color: var(--q-link) !important; }
.q-dialog h3 { color: var(--q-ink); }
.q-dialog form { display: flex; gap: 8px; }
.q-dialog .q-results { padding-inline-start: 22px; }
.q-results li { padding-block: 5px; overflow-wrap: anywhere; }
.q-results button { margin-inline-start: 8px; }
.q-status {
  position: fixed;
  z-index: 8480;
  inset-inline-start: 14px;
  bottom: calc(var(--ay-bottom-space, 0px) + 16px);
  max-width: min(300px,calc(100vw - 145px));
  border-radius: 10px;
  margin: 0;
  padding: 9px 12px;
}
.q-skip {
  position: fixed;
  z-index: 12000;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  padding: 9px 13px;
  border-radius: 9px;
  color: #0b1529 !important;
  background: #eaf4ff;
}
.q-skip:focus { transform: none; }
.q-progress { position: fixed; z-index: 12000; top: 0; inset-inline: 0; height: 3px; transform: scaleX(0); transform-origin: left; background: #79ddff; pointer-events: none; }
.q-theme.q-no-progress :is(.an-reading-progress,.ah-scroll-progress) { visibility: hidden; }
.q-reading-line { position: fixed; z-index: 8300; inset-inline: 0; top: 40%; height: 2px; background: #61d9ff; box-shadow: 0 0 6px #173759; pointer-events: none; }
.q-reader :is(main, [role="main"],.q-reading-root) :is(p,blockquote,li) { font-size: 1.125em; line-height: 1.75; }
.q-reader :is(main, [role="main"],.q-reading-root) :is(article,.np-reader,.an-article-body) :is(p,blockquote) { max-inline-size: 72ch; }
.q-compact :is(main, [role="main"],.q-reading-root) :is(.ah-grid,.an-grid,.haber-grid,.cards,.card-grid,.grid,.content-grid) { gap: 9px !important; }
.q-compact :is(main, [role="main"],.q-reading-root) :is(.ah-card-body,.an-card-body,.card-body,.content-card-body) { padding-block: 9px !important; }
.q-contrast .q-dialog,.q-contrast .q-discovery,.q-contrast .q-tool-toggle { --q-panel: #050b17; --q-ink: #fff; --q-muted: #fff; --q-border: #9ed9ed; }
.q-contrast :is(main,[role="main"],.q-reading-root) :is(a,button,input,textarea,select):focus-visible { outline: 4px solid #ffb531 !important; }
.q-contrast :is(main,[role="main"],.q-reading-root) a:not(.q-button) { text-decoration: underline; }
@media(max-width:610px) {
  .q-discovery { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .q-discovery-actions { grid-column: 2; }
  .q-tool-toggle { padding-inline: 10px; }
  .q-home-discovery p { font-size: 13px; }
}
@media print {
  body.q-theme { background: #fff !important; }
  body.q-theme::before,body.q-theme::after,.q-tool-toggle,.q-discovery,.q-dialog,.q-status,.q-progress,.q-reading-line,.q-skip { display: none !important; }
}
.q-install-page { margin: 0; color: var(--q-ink); font: 16px/1.65 system-ui,sans-serif; }
.q-install { width: min(1200px,calc(100% - 28px)); margin: clamp(18px,4vw,56px) auto clamp(32px,5vw,70px); }
.q-install-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(170px,300px);
  align-items: center;
  gap: var(--q-space);
  padding: clamp(22px,5vw,62px);
  border: 1px solid var(--q-border);
  border-radius: 24px;
  background: linear-gradient(113deg,#0e2139,#1b2a52 75%,#253056);
}
.q-install-hero h1 { margin: 0 0 12px; font-size: clamp(32px,6vw,62px); line-height: 1.05; letter-spacing: -.04em; color: var(--q-ink); }
.q-install-hero p { max-width: 54ch; margin: 0 0 9px; color: var(--q-muted); }
.q-install-hero p:empty { display: none; }
.q-install-art { width: 100%; }
.q-install-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--q-space); margin-top: var(--q-space); }
.q-install-grid section { padding: var(--q-space); border: 1px solid var(--q-border); border-radius: var(--q-radius); background: #101d34; }
.q-install-grid h2 { margin: 0 0 10px; color: var(--q-ink); font-size: 23px; }
.q-install-grid ol { padding-inline-start: 22px; }
.q-install-grid li + li { margin-top: 6px; }
.q-install-grid p,.q-install-grid li { color: var(--q-muted); }
.q-install-grid strong { color: var(--q-ink); }
.q-install-grid details { border-top: 1px solid var(--q-border); padding-top: 12px; }
.q-install-grid summary { cursor: pointer; color: var(--q-link); }
.q-install-primary { margin: 12px 0; min-height: 48px; background: #a3ebff; color: #0b1529 !important; }
.q-install-primary:hover { background: #d2f5ff; }
.q-install-primary[hidden] { display: none; }
@media(max-width:760px) {
  .q-install-hero { grid-template-columns: minmax(0,1fr); }
  .q-install-art { width: min(220px,65%); margin: auto; }
  .q-install-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:370px) {
  .q-header-tool span { display: none; }
}
.q-reading-width :is(main,.q-reading-root) :is(article,.np-reader,.an-article-body) :is(p,blockquote) { max-inline-size: 60ch; }
.q-link-emphasis :is(main,.q-reading-root) :is(article,.np-reader,.an-article-body) :is(p,li) a { background: #d1f0ff; color: #143b63 !important; border-radius: 3px; text-decoration: underline; }
.q-theme :is(h2[id],h3[id]) { scroll-margin-top: 90px; }
.q-theme .q-simple :is(h1,h2,p,li) { color: var(--q-ink); }

.q-theme .ah-home .ah-motion {
  background: #172a48;
  color: var(--q-ink);
  border-color: var(--q-border);
}
.q-theme .ay-mobile-panel .ay-install-link { justify-content: flex-start; }
@media (min-width: 981px) and (max-width: 1120px) {
  .q-theme .ay-header-inner, .q-theme .ay-header-actions { gap: 6px; }
  .q-theme .ay-logo { font-size: 16px; gap: 6px; }
  .q-theme .ay-install-link { padding-inline: 8px; font-size: 12px; }
  .q-header-tool span { display: none; }
}
@media(max-width:600px) {
  .q-theme .ay-header-actions > .ay-install-link { display: none; }
  .q-theme .ay-logo { min-width: 0; flex-shrink: 1; }
  .q-theme .ay-logo > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .q-theme .ay-header-actions { flex: none; }
}

/* V5: accessible motion, focus, and mobile layout safeguards */
@media (prefers-reduced-motion: reduce) {
  .q-theme *, .q-theme *::before, .q-theme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.q-theme :focus-visible { outline: 3px solid #67d8ff; outline-offset: 3px; }
.q-theme img, .q-theme video, .q-theme svg { max-width: 100%; }
.q-theme { overflow-wrap: anywhere; }
@media (max-width: 600px) { .q-dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); } }
