:root {
  --aigens-panel: var(--surface, #0a0a0c);
  --aigens-panel-soft: var(--surface-soft, #101014);
  --aigens-border: #29292e;
  --aigens-muted: #9a9a98;
  --aigens-violet: #8f87ff;
}

html[data-theme="light"] {
  --aigens-panel: #ffffff;
  --aigens-panel-soft: #eeece7;
  --aigens-border: #d2d0cb;
  --aigens-muted: #66646a;
  --aigens-violet: #6258d9;
}

.dle-home-info {
  position: fixed; z-index: 80; inset: 0; padding: clamp(20px, 4vw, 64px);
  display: grid; overflow: auto; place-items: center; pointer-events: auto;
}
.dle-home-info:empty { display: none; }
.dle-home-info::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,.74);
  -webkit-backdrop-filter: blur(10px) saturate(.82); backdrop-filter: blur(10px) saturate(.82);
}
.aigens-system-message {
  position: relative; isolation: isolate; width: min(720px, 100%); min-height: 260px; margin: clamp(20px,4vw,40px) auto; padding: clamp(34px,5vw,64px);
  display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: clamp(24px,4vw,42px);
  overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; color: var(--frost);
  background:
    radial-gradient(circle at 0 0, rgba(252,28,70,.13), transparent 38%),
    linear-gradient(145deg, rgba(16,16,20,.98), rgba(5,5,7,.98));
  box-shadow: 0 36px 120px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.035);
  animation: aigens-message-in .32s cubic-bezier(.2,.75,.2,1) both;
}
.dle-home-info > .aigens-system-message { margin: 0 auto; }
.aigens-system-message::before {
  content: ""; position: absolute; z-index: 2; top: 0; left: 7%; right: 7%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal) 24%, #ff6a82 50%, var(--signal) 76%, transparent);
  box-shadow: 0 0 24px rgba(252,28,70,.46);
}
.aigens-system-message::after {
  content: ""; position: absolute; z-index: -1; right: -52px; bottom: -72px; width: 260px; aspect-ratio: 1;
  opacity: .035; background: url("images/brand/favicon-dna.svg?v=1") center / contain no-repeat; transform: rotate(18deg);
}
.aigens-system-message-mark {
  width: 76px; height: 76px; display: grid; place-items: center;
  border: 1px solid rgba(252,28,70,.44); border-radius: 50%; background: rgba(252,28,70,.055);
  box-shadow: inset 0 0 28px rgba(252,28,70,.08), 0 0 32px rgba(252,28,70,.08);
}
.aigens-system-message-mark img { display: block; width: 42px; height: 42px; object-fit: contain; }
.aigens-system-message-copy { min-width: 0; }
.aigens-system-message-eyebrow { display: block; margin-bottom: 14px; color: var(--signal); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.aigens-system-message h1 { margin: 0; color: #fff; font-size: clamp(30px,4.2vw,48px); font-weight: 700; line-height: .96; letter-spacing: -.055em; }
.aigens-system-message-text { max-width: 540px; margin-top: 22px; color: #a4a4a2; font-size: clamp(14px,1.5vw,17px); line-height: 1.55; }
.aigens-system-message-text a { color: #fff; border-bottom: 1px solid rgba(252,28,70,.62); }
.aigens-system-message-close {
  position: absolute; z-index: 4; top: 18px; right: 18px; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  color: #aaa; background: rgba(255,255,255,.025); cursor: pointer; font: 300 24px/1 Arial,sans-serif;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.aigens-system-message-close:hover,.aigens-system-message-close:focus-visible { color: #fff; border-color: var(--signal); background: rgba(252,28,70,.10); outline: none; transform: rotate(8deg); }
.aigens-auth-required { margin-inline: auto; }
@keyframes aigens-message-in { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: none; } }
.mobile-account { position: relative; z-index: 24; width: max-content; display: none; }
body.menu-open .mobile-account { display: block; }
.aigens-account { position: relative; display: flex; justify-content: flex-end; color: var(--frost); }
.aigens-account-trigger {
  position: relative; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #fff; background: rgba(11,11,14,.74);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); cursor: pointer; font-size: 10px; font-weight: 650;
  line-height: 1; text-transform: uppercase; letter-spacing: .055em; transition: border-color .2s, background .2s;
}
.aigens-account-trigger:hover,.aigens-account-trigger:focus-visible,.aigens-account.is-open .aigens-account-trigger { border-color: rgba(143,135,255,.72); background: #111116; outline: 0; }
.aigens-account-trigger.is-user { padding: 4px 13px 4px 5px; }
.aigens-account-avatar { width: 32px; height: 32px; border: 1px solid #34343a; border-radius: 50%; background: #1a1a1f center / cover no-repeat; }
.aigens-account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aigens-account-chevron { color: #8f87ff; transition: transform .2s; }
.aigens-account.is-open .aigens-account-chevron { transform: rotate(180deg); }
.aigens-account-badge { min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--signal); font-size: 8px; }
.aigens-account-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 50px)); padding: 26px;
  border: 1px solid #303037; border-radius: 22px; color: var(--frost); background: rgba(9,9,12,.98); box-shadow: 0 28px 80px rgba(0,0,0,.46);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, visibility .2s, transform .2s;
}
.aigens-account.is-open .aigens-account-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.aigens-account-panel-head { padding-bottom: 20px; border-bottom: 1px solid #26262c; }
.aigens-account-eyebrow { display: block; margin-bottom: 7px; color: #8f87ff; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.aigens-account-panel-head strong { display: block; font-size: 25px; letter-spacing: -.045em; }
.aigens-account-panel-head p { margin: 9px 0 0; color: #858583; font-size: 12px; line-height: 1.45; }
.aigens-account-admin,.aigens-account-logout { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; color: #aaa; font-size: 10px; text-transform: uppercase; letter-spacing: .055em; }
.aigens-account-admin:hover { color: #8f87ff; }
.aigens-account-links { position: static!important; margin: 18px 0 0!important; display: flex!important; flex-direction: column; counter-reset: none!important; border-top: 1px solid #26262c; }
.aigens-account-links a { padding: 13px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #26262c; color: #d7d7d4; font-size: 12px; transition: color .2s, padding-left .2s; }
.aigens-account-links a:hover { padding-left: 5px; color: #fff; }
.aigens-account-links b { color: #69696d; font-size: 9px; font-weight: 500; }
.aigens-account-logout { color: #ff5472; }
.aigens-login-form { display: block; }
.aigens-login-field { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.aigens-login-field > span { color: #8d8d8b; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.aigens-login-field input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #303036; border-radius: 12px; outline: 0; color: var(--frost); background: #111116; font-size: 14px; }
.aigens-login-field input:focus { border-color: #8f87ff; box-shadow: 0 0 0 3px rgba(143,135,255,.12); }
.aigens-login-submit { width: 100%; min-height: 50px; margin-top: 18px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 999px; color: #fff; background: var(--signal); cursor: pointer; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.aigens-login-submit:hover { background: #ff3157; }
.aigens-login-meta { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; color: #878785; font-size: 10px; }
.aigens-login-meta a:hover { color: #fff; }

@media (max-width: 600px) {
  .mobile-account { top: auto; right: auto; }
  .aigens-account-panel { max-height: calc(100svh - 170px); overflow-y: auto; padding: 22px 20px; border-radius: 18px; }
}

.dle-page {
  min-height: calc(100svh - 82px);
  padding-top: 112px;
  overflow: visible;
}

.dle-page-heading {
  min-height: 210px;
  padding-top: 46px;
  padding-bottom: 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 18%, rgba(112, 102, 255, .14), transparent 29%),
    linear-gradient(180deg, #050507 0%, #000 100%);
}

.dle-page-heading h1 {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--frost);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.052em;
}

.dle-page-heading h1 span { color: #5f5f61; }

.dle-page-content {
  width: min(100%, 1500px);
  min-height: 50vh;
  padding-top: 68px;
  padding-bottom: 100px;
  margin-inline: auto;
}

.dle-page--story .dle-page-content {
  width: min(100%, 1360px);
  padding-top: 36px;
}

.dle-page--story .dle-page-content > #dle-comments-form {
  display: none !important;
}

.dle-page-content > * + * { margin-top: 24px; }

.dle-page-content .card-refined,
.dle-page-content .bg-surface-dark,
.dle-page-content .dark\:bg-surface-dark,
.dle-page-content .dark\:bg-gray-800,
.dle-page-content .dark\:bg-gray-700 {
  background: var(--aigens-panel) !important;
  border-color: var(--aigens-border) !important;
  box-shadow: none !important;
}

.dle-page-content .text-primary,
.dle-page-content .dark\:text-primary { color: var(--aigens-violet) !important; }
.dle-page-content .bg-primary { background: var(--signal) !important; }
.dle-page-content .border-primary { border-color: var(--aigens-violet) !important; }

.dle-page-content input,
.dle-page-content textarea,
.dle-page-content select,
.dle-page-content .bb-editor {
  color: var(--frost) !important;
  background: #08080a !important;
  border-color: var(--aigens-border) !important;
}

.dle-page-content input:focus,
.dle-page-content textarea:focus,
.dle-page-content select:focus {
  outline: none !important;
  border-color: var(--aigens-violet) !important;
  box-shadow: 0 0 0 3px rgba(143, 135, 255, .14) !important;
}

.dle-page-content button,
.dle-page-content .btn,
.dle-page-content .bbcodes,
.dle-page-content input[type="submit"] { border-radius: 999px; }

.dle-page-content img { max-width: 100%; height: auto; }
.dle-page-content .navigation,
.dle-page-content .pages { color: var(--ash); }

.dle-page-content .quote,
.dle-page-content blockquote,
.dle-page-content .scriptcode,
.dle-page-content .title_spoiler,
.dle-page-content .text_spoiler {
  color: var(--ash);
  background: var(--aigens-panel-soft);
  border-color: var(--aigens-border);
}

.dle-page-content .ui-dialog,
.dle-page-content .highslide-wrapper {
  color: var(--frost);
  background: var(--aigens-panel);
  border-color: var(--aigens-border);
}

/* DLE appends the profile dialog directly to body and positions it against the
   document. Keep it inside the current viewport even when the article is scrolled. */
.dle-popup-userprofile.ui-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  width: min(600px, calc(100vw - 32px)) !important;
  max-width: 600px !important;
  max-height: calc(100vh - 32px) !important;
  border: 1px solid #303037 !important;
  border-radius: 24px;
  color: var(--frost);
  background: rgba(9,9,12,.98) !important;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.72), 0 32px 100px rgba(0,0,0,.62) !important;
  transform: translate(-50%, -50%);
}
.dle-popup-userprofile .ui-dialog-titlebar {
  padding: 18px 22px !important;
  border: 0 !important;
  border-bottom: 1px solid #29292f !important;
  color: var(--frost) !important;
  background: #111116 !important;
}
.dle-popup-userprofile .ui-dialog-title { font-size: 13px; text-shadow: none; }
.dle-popup-userprofile .ui-dialog-content {
  height: auto !important;
  max-height: min(60vh, 440px) !important;
  padding: 24px !important;
  border: 0 !important;
  color: #b8b8b6;
  background: #0b0b0f !important;
}
.dle-popup-userprofile .userinfo { width: auto !important; padding: 0 !important; background: transparent !important; }
.dle-popup-userprofile .ui-dialog-buttonpane { padding: 16px 22px !important; border-top: 1px solid #29292f; background: #0b0b0f; }
.dle-popup-userprofile .ui-dialog-buttonset button {
  min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px;
  color: #fff; background: var(--signal) !important; text-shadow: none;
}

@media (max-width: 760px) {
  .dle-home-info { padding: 18px; }
  .aigens-system-message { min-height: 0; padding: 58px 26px 32px; grid-template-columns: 1fr; gap: 22px; border-radius: 24px; }
  .aigens-system-message-mark { width: 58px; height: 58px; }
  .aigens-system-message-mark img { width: 34px; height: 34px; }
  .aigens-system-message h1 { font-size: clamp(30px,10vw,42px); }
  .aigens-system-message-text { margin-top: 17px; font-size: 14px; }
  .dle-page { padding-top: 78px; }
  .dle-page-heading { min-height: 240px; padding-top: 48px; padding-bottom: 36px; }
  .dle-page-heading h1 { font-size: clamp(42px, 15vw, 68px); }
  .dle-page-content { padding-top: 38px; padding-bottom: 70px; }
}

/* DLE content system in the visual language of the landing. */
.dle-page-content .box,
.dle-page-content .story,
.dle-page-content .comments,
.dle-page-content .rightside { float: none; width: auto; margin: 0; }
.dle-page-content .material-symbols-outlined { display: none!important; }

.aigens-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--aigens-border);
  border-radius: 28px;
  background: var(--aigens-panel);
}

.aigens-card + .aigens-card { margin-top: 28px; }
.aigens-card-media { position: relative; min-height: 100%; overflow: hidden; background: #111116; }
.aigens-card-media > a { display: block; width: 100%; height: 100%; }
.aigens-card-media img { width: 100%; height: 100%; object-fit: contain; background: #f4f4f2; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.aigens-card:hover .aigens-card-media img { transform: scale(1.025); }
.aigens-card-placeholder { display: grid; width: 100%; height: 100%; min-height: 360px; place-items: center; color: rgba(255,255,255,.08); font-size: clamp(80px,12vw,170px); font-weight: 800; letter-spacing: -.08em; background: radial-gradient(circle at 65% 30%,rgba(143,135,255,.22),transparent 42%),#09090c; }
.aigens-card-body { display: flex; min-width: 0; padding: clamp(28px,4vw,58px); flex-direction: column; }
.aigens-card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #858588; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.aigens-card-kicker .category { display: inline-flex; align-items: center; gap: 8px; color: var(--aigens-violet); }
.aigens-card-kicker .category img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.aigens-project-status { margin-left: auto; padding: 7px 10px; border: 1px solid #303038; border-radius: 999px; color: #b3b3b1; font-size: 9px; white-space: nowrap; }
.aigens-card .title { margin: clamp(28px,4vw,56px) 0 18px; color: var(--frost); font-size: clamp(32px,4.2vw,66px); font-weight: 700; line-height: .92; letter-spacing: -.055em; }
.aigens-card .title a { transition: color .2s ease; }
.aigens-card .title a:hover { color: var(--aigens-violet); }
.aigens-card-copy { max-width: 720px; color: var(--ash); font-size: 15px; line-height: 1.65; }
.aigens-card-copy p { margin: 0; }
.editdate { margin: 18px 0 0; color: #777; font-size: 12px; }
.aigens-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 32px; }
.aigens-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #777; font-size: 11px; }
.aigens-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.aigens-icon-action { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid #323238; border-radius: 50%; color: #aaa; background: transparent; cursor: pointer; transition: border-color .2s,color .2s,background .2s; }
.aigens-icon-action:hover,.aigens-icon-action.is-active { color: #fff; border-color: var(--aigens-violet); background: rgba(143,135,255,.12); }
.aigens-more { display: inline-flex; min-height: 38px; padding: 0 18px; align-items: center; gap: 10px; border-radius: 999px; color: #fff; background: var(--signal); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; transition: transform .2s,filter .2s; }
.aigens-more:hover { transform: translateY(-2px); filter: brightness(1.08); }
.aigens-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--frost); }
.aigens-rating b { min-width: 26px; text-align: center; }
.aigens-rating small { color: #777; font-weight: 400; }
.aigens-pin { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--signal); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }

.aigens-article { position: relative; overflow: hidden; border: 1px solid var(--aigens-border); border-radius: 26px; background: var(--aigens-panel); }
.aigens-article-header { padding: clamp(36px,4.2vw,58px) clamp(28px,4.6vw,64px) clamp(30px,3.4vw,44px); }
.aigens-article .title { max-width: 900px; margin: 24px 0 18px; color: var(--frost); font-size: clamp(40px,4.4vw,68px); font-weight: 700; line-height: .98; letter-spacing: -.048em; }
.aigens-article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #777; font-size: 12px; }
.aigens-article-cover { width: calc(100% - clamp(40px,8vw,96px)); max-width: 960px; margin: 0 auto clamp(12px,2vw,24px); padding: clamp(12px,2vw,22px); overflow: hidden; border: 1px solid var(--aigens-border); border-radius: 20px; background: #08080b; }
.aigens-article-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(58vh,520px); margin-inline: auto; object-fit: contain; border-radius: 12px; }
.aigens-project-facts { margin: 0; padding: 0 clamp(30px,8vw,120px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--aigens-border); }
.aigens-project-facts > div { min-width: 0; padding: 24px 24px 26px 0; border-right: 1px solid var(--aigens-border); }
.aigens-project-facts > div + div { padding-left: 24px; }
.aigens-project-facts > div:last-child { border-right: 0; }
.aigens-project-facts dt { margin-bottom: 8px; color: #737376; font-size: 9px; text-transform: uppercase; letter-spacing: .085em; }
.aigens-project-facts dd { margin: 0; color: #d4d4d1; font-size: 13px; line-height: 1.4; }
.aigens-project-facts a { color: var(--aigens-violet); }
.aigens-article-content { width: calc(100% - clamp(40px,10vw,120px)); max-width: 780px; margin-inline: auto; padding: clamp(36px,4.5vw,58px) 0; color: #d1d1ce; font-size: clamp(16px,1.18vw,18px); line-height: 1.62; }
.aigens-article-content > :first-child { margin-top: 0; }
.aigens-article-content h2,.aigens-article-content h3 { margin: 1em 0 .45em; color: var(--frost); line-height: 1.08; letter-spacing: -.035em; }
.aigens-article-content h2 { font-size: clamp(28px,2.6vw,40px); }
.aigens-article-content h3 { font-size: clamp(23px,2.1vw,32px); }
.aigens-article-content p,.aigens-article-content ul,.aigens-article-content ol { margin: 0 0 .88em; }
.aigens-article-content p:empty,
.aigens-article-content p:has(> br:only-child) { display: none; }
.aigens-article-content a { color: var(--aigens-violet); text-decoration: underline; text-underline-offset: 4px; }
.aigens-article-content img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(64vh,560px); margin: 24px auto; object-fit: contain; border-radius: 14px; }
.aigens-article-footer { display: flex; min-height: 92px; padding: 22px clamp(30px,8vw,120px); align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--aigens-border); }
.aigens-legal { max-width: 1060px; margin: 0 auto; }
.aigens-legal .title { max-width: 780px; font-size: clamp(38px,4vw,60px); }
.aigens-legal .aigens-article-header { padding-bottom: clamp(20px,2.2vw,30px); }
.aigens-legal-content { max-width: 720px; padding-top: clamp(22px,2.4vw,34px); padding-bottom: clamp(42px,4.4vw,64px); color: #c9c9c6; font-size: clamp(16px,1.08vw,17px); line-height: 1.72; }
.aigens-legal-content h2 { margin: 1.55em 0 .55em; color: var(--frost); font-size: clamp(26px,2.15vw,32px); line-height: 1.18; letter-spacing: -.025em; }
.aigens-legal-content h3 { margin: 1.3em 0 .5em; color: var(--frost); font-size: clamp(19px,1.55vw,23px); line-height: 1.3; letter-spacing: -.018em; }
.aigens-legal-content p,.aigens-legal-content ul,.aigens-legal-content ol { margin-bottom: .82em; }
.aigens-legal-content ul,.aigens-legal-content ol { padding-left: 1.2em; }
.aigens-legal-content ul { list-style: disc; }.aigens-legal-content ol { list-style: decimal; }
.aigens-legal-content li { margin: .28em 0; padding-left: .28em; }
.aigens-legal-content strong { color: #fff; }
.aigens-legal-content .legal-lead { max-width: 760px; margin-bottom: 1em; color: #a9a9a6; font-size: 1.08em; }
.aigens-legal-content .legal-requisites { margin: 18px 0 24px; padding: 18px 20px; border: 1px solid #393941; border-radius: 18px; background: rgba(143,135,255,.06); }
.aigens-legal-content .legal-requisites p { margin: 0 0 8px; }.aigens-legal-content .legal-requisites p:last-child { margin-bottom: 0; }
.aigens-legal-content .legal-warning { margin: 18px 0 22px; padding: 16px 18px; border-left: 2px solid var(--signal); background: rgba(255,23,68,.06); color: #d7d7d5; }
.aigens-legal-content .legal-note { color: #8e8e8b; font-size: .84em; }
.aigens-legal-content table { width: 100%; margin: 1.1em 0 1.4em; display: block; overflow-x: auto; border-collapse: collapse; font-size: .88em; }
.aigens-legal-content th,.aigens-legal-content td { min-width: 150px; padding: 11px 13px; border: 1px solid var(--aigens-border); text-align: left !important; vertical-align: top; }
.aigens-legal-content th { color: var(--frost); background: rgba(143,135,255,.07); }
.aigens-legal-content code { padding: .12em .32em; border-radius: 5px; color: #d6d1ff; background: rgba(143,135,255,.1); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .88em; overflow-wrap: anywhere; text-shadow: none; }
.aigens-legal-content pre { margin: 1em 0 1.35em; padding: 17px 19px; overflow-x: auto; border: 1px solid var(--aigens-border); border-radius: 14px; background: rgba(255,255,255,.025); }
.aigens-legal-content pre code { padding: 0; color: #d2d2cf; background: transparent; font-family: var(--font-sans); font-size: .94em; line-height: 1.65; white-space: pre-wrap; text-shadow: none; }
.aigens-legal-content .legal-ui-preview { margin: 1.15em 0 1.4em; padding: clamp(20px,3vw,28px); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: radial-gradient(circle at 12% 0%,rgba(143,135,255,.12),transparent 40%),rgba(10,10,13,.72); box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.aigens-legal-content .legal-ui-label { display: block; margin-bottom: 12px; color: #9d95ff; font-size: 10px; font-weight: 700; line-height: 1.2; letter-spacing: .11em; text-transform: uppercase; }
.aigens-legal-content .legal-ui-preview h3 { margin: 0 0 10px; font-size: clamp(22px,2vw,27px); }
.aigens-legal-content .legal-ui-preview p { margin: 0 0 18px; color: #aaa9a6; line-height: 1.58; }
.aigens-legal-content .legal-ui-actions { display: flex; gap: 10px; margin: 18px 0 15px; }
.aigens-legal-content .legal-ui-actions span { min-height: 44px; padding: 0 18px; display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f1f1ef; background: rgba(255,255,255,.035); font-size: 12px; font-weight: 650; line-height: 1.2; text-align: center; }
.aigens-legal-content .legal-ui-preview > a { display: inline-flex; color: #c9c5ff; font-size: 12px; font-weight: 600; }
.aigens-legal-content .legal-inline-control { margin-left: .25em; padding: .34em .7em; display: inline-flex; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e6e4ff; background: rgba(143,135,255,.08); font-size: .88em; line-height: 1.2; }
.aigens-static-pages:empty { display: none; }
.aigens-legal-footer > a:last-child { color: var(--aigens-violet); }
.aigens-pages { padding: 0 clamp(30px,8vw,120px) 34px; }
.aigens-next-prev { display: flex; justify-content: space-between; gap: 18px; margin-top: 24px; }
.aigens-next-prev a { display: inline-flex; min-height: 46px; padding: 0 20px; align-items: center; gap: 10px; border: 1px solid var(--aigens-border); border-radius: 999px; color: var(--ash); font-size: 12px; transition: color .2s,border-color .2s; }
.aigens-next-prev a:hover { color: #fff; border-color: var(--aigens-violet); }
.aigens-banner { margin-top: 24px; overflow: hidden; border-radius: 22px; }
.aigens-comments { margin-top: 56px; }
.aigens-section-title { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--frost); font-size: clamp(30px,4vw,54px); font-weight: 700; letter-spacing: -.05em; }
.aigens-section-title b { color: var(--aigens-violet); font-size: 14px; }
.aigens-comments .com_list { display: grid; gap: 16px; }
.aigens-comments .comment,.aigens-comments .addcomment,.aigens-comments #addcomment { border-color: var(--aigens-border)!important; background: var(--aigens-panel)!important; }
.aigens-related { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; margin-top: 44px!important; }

.aigens-sidebar { display: grid; gap: 20px; }
.aigens-side-card { padding: 24px; border: 1px solid var(--aigens-border); border-radius: 22px; background: var(--aigens-panel); }
.aigens-side-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; color: var(--frost); font-size: 18px; font-style: normal; }
.aigens-side-card h3 i { color: #6d6d70; font-size: 9px; font-weight: 500; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.aigens-side-card ul,.aigens-side-card ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aigens-side-card li { margin: 0; }
.aigens-side-card li a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 12px; color: #aaa; transition: color .2s,background .2s; }
.aigens-side-card li a:hover,.aigens-side-card li b > a { color: #fff; background: rgba(143,135,255,.1); }
.aigens-side-card li b { display: block; }
.aigens-side-card small { color: #68686d; font-size: 10px; }
.aigens-category-menu ul ul { margin: 6px 0 0 16px; padding-left: 8px; border-left: 1px solid #29292e; }
.aigens-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aigens-tags a { padding: 7px 11px; border: 1px solid #303036; border-radius: 999px; color: #aaa; font-size: 11px; }
.aigens-tags a:hover { color: #fff; border-color: var(--aigens-violet); }
.aigens-side-copy { margin: 0 4px; color: #5f5f62; font-size: 10px; letter-spacing: .06em; }
.aigens-preview { min-height: 0; }
.aigens-preview + .aigens-preview { margin-top: 24px; }
.dle-page-content .bg-\[\#F1F8E9\] { color: var(--ash)!important; background: rgba(143,135,255,.10)!important; border-color: rgba(143,135,255,.32)!important; }

@media (max-width: 860px) {
  .aigens-card { grid-template-columns: 1fr; min-height: 0; }
  .aigens-card-media { min-height: 300px; }
  .aigens-card-media > a { height: 300px; }
  .aigens-card-placeholder { min-height: 300px; }
  .aigens-card-footer { align-items: flex-start; flex-direction: column; }
  .aigens-card-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .aigens-card-actions .aigens-more { margin-left: auto; }
}

@media (max-width: 560px) {
  .aigens-card { border-radius: 20px; }
  .aigens-card-media,.aigens-card-media > a,.aigens-card-placeholder { min-height: 220px; height: 220px; }
  .aigens-card-body { padding: 24px 20px; }
  .aigens-card-kicker { align-items: flex-start; flex-direction: column; gap: 10px; }
  .aigens-card .title { margin-top: 24px; font-size: 34px; }
  .aigens-card-footer { padding-top: 26px; }
  .aigens-card-actions .aigens-more { width: 100%; margin: 8px 0 0; justify-content: center; }
  .aigens-article { border-radius: 22px; }
  .dle-page-heading { min-height: 170px; padding-top: 34px; padding-bottom: 30px; }
  .dle-page-heading h1 { margin-top: 14px; font-size: clamp(36px, 12vw, 52px); }
  .dle-page--story .dle-page-content { padding-top: 22px; }
  .aigens-article-header { padding: 28px 20px 24px; }
  .aigens-article .title { margin: 20px 0 16px; font-size: clamp(34px, 10.5vw, 46px); line-height: 1; }
  .aigens-article-cover { width: calc(100% - 32px); padding: 10px; border-radius: 16px; }
  .aigens-article-cover img { max-height: 440px; }
  .aigens-article-content { width: calc(100% - 40px); padding: 32px 0; line-height: 1.62; }
  .aigens-project-facts { padding: 0 20px; grid-template-columns: 1fr; }
  .aigens-project-facts > div,.aigens-project-facts > div + div { padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--aigens-border); }
  .aigens-project-facts > div:last-child { border-bottom: 0; }
  .aigens-article-footer { align-items: flex-start; padding: 20px; flex-direction: column; }
  .aigens-legal-content { width: calc(100% - 36px); font-size: 16px; line-height: 1.68; }
  .aigens-legal-content h2 { margin-top: 1.45em; font-size: clamp(24px,7.5vw,29px); }
  .aigens-legal-content .legal-ui-actions { flex-direction: column; }
  .aigens-legal-content .legal-ui-actions span { flex-basis: auto; }
  .aigens-next-prev { flex-direction: column; }
  .aigens-next-prev a { justify-content: center; }
}

/* Full story flow. These selectors intentionally come after the legacy DLE
   reset above: .box/.comments used to erase every vertical gap here. */
.dle-page-content > .aigens-next-prev {
  width: 100%;
  margin-top: clamp(22px, 3vw, 34px);
}
.dle-page-content > .aigens-banner {
  width: 100%;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--aigens-border);
  border-radius: 18px;
  background: var(--aigens-panel);
}
.aigens-banner > div,
.aigens-banner a { display: block; width: 100%; }
.aigens-banner img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
}
.dle-page-content > .aigens-comments {
  width: 100%;
  margin-top: clamp(34px, 5vw, 58px);
}
.dle-page-content > .aigens-related {
  width: 100%;
  margin-top: clamp(34px, 5vw, 58px) !important;
}

.aigens-rating,
.aigens-rating .rate_like,
.aigens-rating .rate_like-dislike {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}
.aigens-rating .rate_like-dislike {
  float: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  flex-shrink: 0;
}
.aigens-rating .rate_like-dislike > a {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}
.aigens-rating .rate_like-dislike > b { display: block; margin: 0; }
.aigens-rating > small { white-space: nowrap; }

/* DLE comment editor emits its own nested widths; keep every layer inside the
   story column instead of relying on the Tailwind breakpoint alone. */
#dle-comments-form,
.aigens-comment-shell,
#addcomment,
.aigens-comment-body,
#addcomment .ui-form,
#addcomment .form-group,
#addcomment .combo_field,
#addcomment input,
#addcomment textarea,
#addcomment iframe,
#addcomment .tox-tinymce,
#addcomment .bb-editor {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.aigens-comment-shell { width: 100%; }
.aigens-comment-heading { min-height: 58px; color: var(--frost); }
.aigens-comment-heading > span:last-child { font-size: clamp(20px, 3vw, 28px); }
.aigens-comment-body { width: 100%; }
.aigens-comment-identity { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aigens-comment-identity .combo_field,
.aigens-comment-identity input { width: 100%; }
#comment-editor { overflow: hidden; }
#comment-editor .tox-tinymce { width: 100% !important; }
#comment-editor .tox-editor-header,
#comment-editor .tox-toolbar-overlord,
#comment-editor .tox-toolbar__primary { max-width: 100%; }
#comment-editor .tox-toolbar__primary { flex-wrap: wrap !important; }
.aigens-comment-submit { width: 100%; flex-wrap: wrap; }
.aigens-comment-captcha { min-width: 0; flex-wrap: wrap; }
.aigens-comment-captcha img { flex: 0 0 auto; width: auto; max-width: 160px; }
.aigens-comment-captcha input { width: min(180px, 100%); }
.aigens-comments .comment { min-width: 0; overflow-wrap: anywhere; }
.aigens-comments .comment .com_info { min-width: 0; flex-wrap: wrap; }
.aigens-comments .comment .com_content img { max-width: 100%; height: auto; }

.aigens-related { align-items: start; }
.aigens-related-card,
.aigens-related-poll,
.aigens-related-tags { min-width: 0; }
.aigens-related-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aigens-related-list li,
.aigens-related-list a { min-width: 0; }
.aigens-related-list a {
  padding: 14px;
  border: 1px solid var(--aigens-border) !important;
  border-radius: 14px;
  color: var(--ash);
  background: var(--aigens-panel-soft) !important;
}
.aigens-related-list a:hover { color: #fff; border-color: var(--aigens-violet) !important; }
.aigens-related-list a > span:first-child { display: none; }
.aigens-related-list b { color: var(--frost) !important; overflow-wrap: anywhere; }
.aigens-related-tags .aigens-tags { font-size: 0; line-height: 1.4; }
.aigens-related-tags .aigens-tags a { font-size: 11px; }

@media (max-width: 760px) {
  .aigens-next-prev { flex-direction: column; }
  .aigens-next-prev a { width: 100%; justify-content: center; text-align: center; }
  .aigens-comment-identity { grid-template-columns: minmax(0, 1fr) !important; }
  .aigens-comment-submit { align-items: stretch !important; flex-direction: column !important; }
  .aigens-comment-captcha { width: 100%; }
  .aigens-comment-submit .btn { width: 100%; margin-left: 0 !important; }
  .aigens-related { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 460px) {
  .aigens-comment-heading { padding: 18px 18px 0 !important; }
  .aigens-comment-body { padding: 14px 18px 20px !important; }
  .aigens-comment-captcha { align-items: stretch; flex-direction: column; }
  .aigens-comment-captcha input { width: 100%; max-width: 100%; }
  .aigens-comment-captcha img { width: auto; max-width: 180px; align-self: flex-start; object-fit: contain; object-position: left center; }
}

.aigens-form-status {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.aigens-form-status.is-pending {
  border-color: rgba(130, 102, 255, 0.42);
  color: #c9c0ff;
}

.aigens-form-status.is-error {
  border-color: rgba(255, 101, 121, 0.5);
  color: #ffb3bd;
}
.aigens-form-status strong,.aigens-form-status span { display: block; }
.aigens-form-status strong { margin-bottom: 5px; color: inherit; font-size: 1.05em; }
.aigens-form-status a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.aigens-form-success {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 12px;
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}

.aigens-form-success .berrors,
.aigens-form-success .info,
.aigens-form-success .success {
  margin: 0;
}

/* Светлая тема DLE: системные окна, аккаунт, списки и полная новость. */
html[data-theme="light"] .dle-home-info::before { background: rgba(234,232,227,.78); }
html[data-theme="light"] .aigens-system-message {
  color: var(--frost); border-color: rgba(18,18,20,.15);
  background: radial-gradient(circle at 0 0,rgba(252,28,70,.09),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.99),rgba(239,237,232,.99));
  box-shadow: 0 36px 120px rgba(24,22,30,.18),inset 0 1px 0 rgba(255,255,255,.72);
}
html[data-theme="light"] .aigens-system-message h1,
html[data-theme="light"] .aigens-system-message-text a { color: #111114; }
html[data-theme="light"] .aigens-system-message-text { color: #57555b; }
html[data-theme="light"] .aigens-system-message-close { color: #57555b; border-color: rgba(18,18,20,.15); background: rgba(255,255,255,.55); }
html[data-theme="light"] .aigens-system-message-close:hover,
html[data-theme="light"] .aigens-system-message-close:focus-visible { color: #111114; }

html[data-theme="light"] .aigens-account { color: #111114; }
html[data-theme="light"] .aigens-account-trigger { color: #111114; border-color: #c9c6c0; background: rgba(255,255,255,.82); }
html[data-theme="light"] .aigens-account-trigger:hover,
html[data-theme="light"] .aigens-account-trigger:focus-visible,
html[data-theme="light"] .aigens-account.is-open .aigens-account-trigger { background: #fff; }
html[data-theme="light"] .aigens-account-panel { color: #111114; border-color: #cbc8c2; background: rgba(255,255,255,.985); box-shadow: 0 28px 80px rgba(24,22,30,.16); }
html[data-theme="light"] .aigens-account-panel-head,
html[data-theme="light"] .aigens-account-links { border-color: #ddd9d2; }
html[data-theme="light"] .aigens-account-panel-head p,
html[data-theme="light"] .aigens-login-field > span,
html[data-theme="light"] .aigens-login-meta { color: #69676d; }
html[data-theme="light"] .aigens-account-links a { color: #343238; border-color: #ddd9d2; }
html[data-theme="light"] .aigens-account-links a:hover,
html[data-theme="light"] .aigens-login-meta a:hover { color: #111114; }
html[data-theme="light"] .aigens-login-field input { color: #111114; border-color: #cfccc6; background: #f6f5f2; }

html[data-theme="light"] .dle-page-heading { background: radial-gradient(circle at 84% 18%,rgba(112,102,255,.10),transparent 29%),linear-gradient(180deg,#f7f6f3 0%,#eceae5 100%); }
html[data-theme="light"] .dle-page-heading h1 span { color: #77757b; }
html[data-theme="light"] .dle-page-content .card-refined,
html[data-theme="light"] .dle-page-content .bg-surface-dark,
html[data-theme="light"] .dle-page-content .dark\:bg-surface-dark,
html[data-theme="light"] .dle-page-content .dark\:bg-gray-800,
html[data-theme="light"] .dle-page-content .dark\:bg-gray-700 { color: #242328 !important; background: var(--aigens-panel) !important; }
html[data-theme="light"] .dle-page-content input,
html[data-theme="light"] .dle-page-content textarea,
html[data-theme="light"] .dle-page-content select,
html[data-theme="light"] .dle-page-content .bb-editor { color: #111114 !important; background: #f7f6f3 !important; }
html[data-theme="light"] .dle-page-content .quote,
html[data-theme="light"] .dle-page-content blockquote,
html[data-theme="light"] .dle-page-content .scriptcode,
html[data-theme="light"] .dle-page-content .title_spoiler,
html[data-theme="light"] .dle-page-content .text_spoiler { color: #4d4b51; }

html[data-theme="light"] .dle-popup-userprofile.ui-dialog { color: #111114; border-color: #cbc8c2 !important; background: #fff !important; box-shadow: 0 0 0 100vmax rgba(224,222,217,.78),0 32px 100px rgba(24,22,30,.18) !important; }
html[data-theme="light"] .dle-popup-userprofile .ui-dialog-titlebar { color: #111114 !important; border-color: #ddd9d2 !important; background: #f3f1ed !important; }
html[data-theme="light"] .dle-popup-userprofile .ui-dialog-content,
html[data-theme="light"] .dle-popup-userprofile .ui-dialog-buttonpane { color: #4d4b51; border-color: #ddd9d2; background: #fff !important; }

html[data-theme="light"] .aigens-card,
html[data-theme="light"] .aigens-article,
html[data-theme="light"] .aigens-side-card { box-shadow: 0 18px 52px rgba(24,22,30,.07); }
html[data-theme="light"] .aigens-card-media { background: #e8e6e1; }
html[data-theme="light"] .aigens-card-placeholder { color: rgba(18,18,20,.10); background: radial-gradient(circle at 65% 30%,rgba(98,88,217,.13),transparent 42%),#eceae5; }
html[data-theme="light"] .aigens-project-status { color: #55535a; border-color: #d2d0cb; }
html[data-theme="light"] .aigens-card-copy,
html[data-theme="light"] .aigens-article-content { color: #3f3d43; }
html[data-theme="light"] .aigens-icon-action { color: #55535a; border-color: #d2d0cb; }
html[data-theme="light"] .aigens-icon-action:hover,
html[data-theme="light"] .aigens-icon-action.is-active { color: #111114; }
html[data-theme="light"] .aigens-article-cover { background: #f3f1ed; }
html[data-theme="light"] .aigens-project-facts dd,
html[data-theme="light"] .aigens-legal-content strong { color: #242328; }
html[data-theme="light"] .aigens-legal-content h3,html[data-theme="light"] .aigens-legal-content th { color: #242328; }
html[data-theme="light"] .aigens-legal-content code { color: #4e46a8; background: rgba(98,88,217,.08); }
html[data-theme="light"] .aigens-legal-content .legal-ui-preview { border-color: #d2cfc9; background: radial-gradient(circle at 12% 0%,rgba(98,88,217,.11),transparent 40%),rgba(255,255,255,.7); box-shadow: 0 18px 45px rgba(30,27,38,.07); }
html[data-theme="light"] .aigens-legal-content .legal-ui-preview p { color: #5d5a61; }
html[data-theme="light"] .aigens-legal-content .legal-ui-actions span { color: #28262d; border-color: #cbc8c2; background: rgba(255,255,255,.66); }
html[data-theme="light"] .aigens-legal-content .legal-inline-control { color: #4e46a8; border-color: #c9c5df; background: rgba(98,88,217,.07); }
html[data-theme="light"] .aigens-legal-content .legal-lead { color: #57555b; }
html[data-theme="light"] .aigens-legal-content .legal-requisites { border-color: #cbc8c2; background: rgba(98,88,217,.06); }
html[data-theme="light"] .aigens-legal-content .legal-warning { color: #343238; }
html[data-theme="light"] .aigens-next-prev a,
html[data-theme="light"] .aigens-side-card li a,
html[data-theme="light"] .aigens-tags a { color: #55535a; }
html[data-theme="light"] .aigens-next-prev a:hover,
html[data-theme="light"] .aigens-side-card li a:hover,
html[data-theme="light"] .aigens-side-card li b > a,
html[data-theme="light"] .aigens-tags a:hover { color: #111114; }
html[data-theme="light"] .aigens-related-list a { color: #55535a; }
html[data-theme="light"] .aigens-related-list a:hover { color: #111114; }
html[data-theme="light"] .aigens-form-status { border-color: rgba(18,18,20,.16); }
html[data-theme="light"] .aigens-form-status.is-pending { color: #554bc4; }
html[data-theme="light"] .aigens-form-status.is-error { color: #b81c39; }
