/* Shared workspace skin for cerber.site. The portal keeps the proven
   account/forum/chat controllers while using the ecosystem visual language. */
:root {
  --bg: #0b1214;
  --bg-2: #0d171a;
  --panel: rgba(17, 28, 32, .92);
  --panel-solid: #111c20;
  --panel-2: #162328;
  --line: #29393e;
  --line-strong: color-mix(in srgb, var(--accent) 36%, #29393e);
  --text: #ecf1f0;
  --muted: #a1b2b8;
  --dim: #71878d;
  --radius: 10px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

html[data-cerber-theme="green"] { --accent: #8adc7b; --accent-2: #68c45e; --accent-rgb: 138, 220, 123; }
html[data-cerber-theme="blue"] { --accent: #80c4f1; --accent-2: #55a9dc; --accent-rgb: 128, 196, 241; }
html[data-cerber-theme="orange"] { --accent: #efc071; --accent-2: #dca34a; --accent-rgb: 239, 192, 113; }

body,
.workspace-body {
  background:
    radial-gradient(circle at 85% -10%, rgba(var(--accent-rgb), .055), transparent 34rem),
    linear-gradient(180deg, #0b1214, #091113 64%, #0b1214);
}

.workspace-header {
  min-height: 76px;
  border-bottom-color: var(--line);
  background: rgba(11, 18, 20, .94);
}

.workspace-panel,
.dashboard-card,
.cabinet-window,
.activation-dialog,
.gate-card {
  border-color: var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 35, 40, .96), rgba(17, 28, 32, .96));
}

.workspace-nav a,
.button,
.workspace-exit,
.chat-notifications,
.chat-load-earlier,
.chat-composer textarea,
input,
select,
textarea {
  border-radius: 6px;
}

.workspace-nav a:hover,
.workspace-nav a.active {
  border-color: var(--line-strong);
  background: rgba(var(--accent-rgb), .065);
}

.workspace-footer { background: #0b1214; }

/* A route dedicated to the account should never reveal the old product
   landing page behind the account dialog. */
.account-page > .site-header,
.account-page > .mobile-nav,
.account-page > main,
.account-page > .site-footer,
.account-page > .boot-screen,
.account-page > .noise-layer,
.account-page > .cerber-theme-picker { display: none !important; }
.account-page { min-height: 100dvh; overflow: hidden; }
.account-page .cabinet-shell { opacity: 1; visibility: visible; }
.account-page .cabinet-backdrop { background: radial-gradient(circle at 50% 20%, rgba(var(--accent-rgb), .07), transparent 35rem), #0b1214; }
.account-page .cabinet-window { width: min(1320px, calc(100% - 32px)); height: min(860px, calc(100dvh - 32px)); transform: none; }

/* Secure access gateway: one structured surface for sign-in and activation. */
.account-page {
  --auth-green: #8adc7b;
  --auth-orange: #efc071;
  --auth-blue: #80c4f1;
}
.account-page .cabinet-backdrop {
  background:
    radial-gradient(circle at 14% 15%, rgba(128, 196, 241, .09), transparent 31rem),
    radial-gradient(circle at 85% 82%, rgba(138, 220, 123, .055), transparent 28rem),
    #081013;
}
.account-page .cabinet-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(128, 196, 241, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 196, 241, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 12%, transparent 74%);
}
.account-page .cabinet-window {
  border-color: rgba(128, 196, 241, .22);
  background: #0b1518;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .56), 0 0 0 1px rgba(255, 255, 255, .018) inset;
}
.account-page .cabinet-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--auth-green) 0 34%, var(--auth-orange) 34% 67%, var(--auth-blue) 67%);
  opacity: .8;
}
.account-page .auth-gateway {
  position: relative;
  isolation: isolate;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(370px, .9fr) minmax(500px, 1.1fr);
  overflow: hidden;
  background: #0b1518;
}
.account-page .auth-gateway-intro {
  min-width: 0;
  padding: clamp(36px, 4.2vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  border-right: 1px solid #27373c;
  background:
    linear-gradient(145deg, rgba(128, 196, 241, .055), transparent 38%),
    linear-gradient(20deg, rgba(138, 220, 123, .038), transparent 42%),
    #0e1a1e;
}
.account-page .auth-gateway-intro::before {
  opacity: .7;
  background-image:
    linear-gradient(rgba(128, 196, 241, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 196, 241, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(135deg, #000, transparent 68%);
}
.auth-brandline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.account-page .auth-brandline .login-radar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin: 0;
  border-color: rgba(138, 220, 123, .5);
}
.account-page .auth-brandline .login-radar::before { width: 72px; top: 28px; left: -7px; }
.account-page .auth-brandline .login-radar::after { height: 72px; left: 28px; top: -7px; }
.account-page .auth-brandline .login-radar i { inset: 9px; }
.account-page .auth-brandline .login-radar b { left: 40px; top: 13px; background: var(--auth-green); }
.account-page .auth-brandline .login-radar span { background: conic-gradient(rgba(138, 220, 123, .62), transparent 24%, transparent); }
.auth-brandline > div:last-child { display: flex; flex-direction: column; gap: 4px; }
.auth-brandline strong { font-size: 22px; font-weight: 540; letter-spacing: .055em; }
.auth-brandline small { color: #789096; font-size: 8px; letter-spacing: .16em; }
.auth-intro-copy { position: relative; max-width: 520px; }
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-blue);
  font-size: 9px;
  letter-spacing: .14em;
}
.auth-kicker i,
.auth-panel-header > span i,
.auth-intro-footer > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.account-page .auth-intro-copy h2 {
  margin: 17px 0 20px;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.account-page .auth-intro-copy h2 em { color: var(--auth-green); }
.auth-intro-copy > p { max-width: 480px; margin: 0; color: #a1b2b8; font-size: 14px; line-height: 1.7; }
.auth-protocol {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}
.auth-protocol li {
  position: relative;
  min-height: 66px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #26363b;
  border-radius: 8px;
  background: rgba(7, 17, 20, .54);
}
.auth-protocol li::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px -1px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--auth-blue);
  opacity: .42;
}
.auth-protocol li:nth-child(2)::before { background: var(--auth-orange); }
.auth-protocol li:nth-child(3)::before { background: var(--auth-green); }
.auth-protocol li.is-active { border-color: rgba(128, 196, 241, .28); background: rgba(128, 196, 241, .045); }
.auth-protocol b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #33484e;
  border-radius: 7px;
  color: #92a8ae;
  font-size: 9px;
  font-weight: 600;
}
.auth-protocol .is-active b { border-color: rgba(128, 196, 241, .48); color: var(--auth-blue); }
.auth-protocol li > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.auth-protocol strong { color: #dce6e7; font-size: 11px; font-weight: 530; letter-spacing: .04em; }
.auth-protocol small { color: #70878d; font-size: 9px; }
.auth-intro-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-page .auth-intro-footer .encryption-note { margin: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.auth-intro-footer > span { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-green); font-size: 8px; letter-spacing: .1em; white-space: nowrap; }

.auth-gateway-panel {
  min-width: 0;
  padding: clamp(38px, 4.6vw, 66px) clamp(38px, 5.4vw, 78px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0, rgba(239, 192, 113, .035), transparent 26rem),
    #0b1518;
  scrollbar-gutter: stable;
}
.auth-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.auth-panel-header > div { display: flex; flex-direction: column; gap: 5px; }
.auth-panel-header small { color: #6f878d; font-size: 8px; letter-spacing: .15em; }
.auth-panel-header strong { color: #dfe8e9; font-size: 15px; font-weight: 520; }
.auth-panel-header > span { display: inline-flex; align-items: center; gap: 8px; color: var(--auth-blue); font-size: 8px; letter-spacing: .12em; }
.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 36px;
  padding: 5px;
  border: 1px solid #28383d;
  border-radius: 9px;
  background: #081215;
}
.account-page .auth-mode-switch {
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #71868c;
  font: inherit;
  font-size: 10px;
  letter-spacing: .035em;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
}
.account-page .auth-mode-switch span { color: #50666c; font-size: 8px; }
.account-page .auth-mode-switch:hover { color: #d7e2e4; background: rgba(255, 255, 255, .018); }
.account-page .auth-mode-switch[aria-selected="true"] {
  border-color: rgba(138, 220, 123, .3);
  background: rgba(138, 220, 123, .065);
  color: #ecf4ef;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .18);
}
.account-page .auth-mode-switch[aria-selected="true"] span { color: var(--auth-green); }
.account-page .registration-active .auth-mode-switch[aria-selected="true"] { border-color: rgba(239, 192, 113, .34); background: rgba(239, 192, 113, .06); }
.account-page .registration-active .auth-mode-switch[aria-selected="true"] span { color: var(--auth-orange); }

.account-page .auth-gateway-panel .login-form {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  background: transparent;
}
.auth-form-title { margin-bottom: 27px; }
.auth-form-title > span { color: var(--auth-green); font-size: 8px; letter-spacing: .15em; }
.registration-title > span { color: var(--auth-orange); }
.auth-form-title h3 { margin: 7px 0 7px; color: #edf3f3; font-size: clamp(25px, 2.5vw, 34px); font-weight: 510; letter-spacing: -.028em; }
.auth-form-title p { margin: 0; color: #7f959b; font-size: 11px; line-height: 1.6; }
.account-page .auth-form label {
  margin: 0 0 18px;
  gap: 8px;
  color: #8da1a6;
  font-size: 9px;
  letter-spacing: .07em;
}
.auth-input-control { position: relative; display: block; }
.account-page .auth-form input {
  min-height: 52px;
  padding: 0 16px;
  border-color: #2b3d42;
  border-radius: 7px;
  background: #071114;
  color: #edf3f3;
  font-size: 13px;
}
.account-page .auth-form input::placeholder { color: #4f666c; }
.account-page .auth-form input:focus { border-color: rgba(128, 196, 241, .6); box-shadow: 0 0 0 3px rgba(128, 196, 241, .055); }
.account-page .auth-form input[type="password"],
.account-page .auth-form input[data-password-visible="true"] { padding-right: 92px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 72px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid #26383d;
  border-radius: 5px;
  background: #0b191d;
  color: #789097;
  font: inherit;
  font-size: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.auth-password-toggle:hover,
.auth-password-toggle:focus-visible { border-color: rgba(128, 196, 241, .45); color: #dbe7e8; }
.account-page .auth-form .form-error { min-height: 0; margin: -2px 0 14px; color: #ff7e86; font-size: 10px; line-height: 1.45; }
.account-page .auth-form .form-error:empty { display: none; }
.auth-submit { display: flex; align-items: center; justify-content: space-between; padding-inline: 19px; border-color: rgba(138, 220, 123, .35); background: linear-gradient(100deg, #79d66d, #8adc7b); color: #071109; }
.registration-form .auth-submit { border-color: rgba(239, 192, 113, .42); background: linear-gradient(100deg, #dfa958, #efc071); color: #171006; }
.auth-submit:disabled { opacity: .58; cursor: wait; }
.auth-form-note {
  margin-top: 17px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid rgba(128, 196, 241, .18);
  border-radius: 7px;
  background: rgba(128, 196, 241, .025);
}
.auth-form-note > i { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--auth-blue); box-shadow: 0 0 9px rgba(128, 196, 241, .7); }
.auth-form-note p { margin: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-form-note strong { color: #b9c9cc; font-size: 10px; font-weight: 530; }
.auth-form-note span { color: #6f858b; font-size: 9px; line-height: 1.5; }
.auth-form-section {
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid #28393e;
  border-radius: 8px;
  background: rgba(7, 17, 20, .5);
}
.auth-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #223237; }
.auth-section-heading > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(239, 192, 113, .35); border-radius: 6px; color: var(--auth-orange); font-size: 8px; }
.auth-section-heading > div { display: flex; flex-direction: column; gap: 2px; }
.auth-section-heading h4 { margin: 0; color: #dce6e7; font-size: 11px; font-weight: 540; letter-spacing: .04em; }
.auth-section-heading p { margin: 0; color: #61787e; font-size: 8px; }
.auth-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field-grid > label { min-width: 0; }
.account-page .registration-form label { margin-bottom: 12px; }
.account-page .registration-form .field-hint { margin: -4px 0 0; color: #5d747a; font-size: 8px; }
.auth-password-rules { display: flex; align-items: center; gap: 15px; margin: -2px 0 3px; }
.auth-password-rules span { display: inline-flex; align-items: center; gap: 6px; color: #60767c; font-size: 8px; }
.auth-password-rules i { width: 6px; height: 6px; border: 1px solid #476068; border-radius: 50%; }
.auth-password-rules span.is-valid { color: var(--auth-green); }
.auth-password-rules span.is-valid i { border-color: var(--auth-green); background: var(--auth-green); box-shadow: 0 0 8px rgba(138, 220, 123, .45); }
.auth-consent { margin: 12px auto 0; max-width: 520px; color: #5d747a; font-size: 8px; line-height: 1.55; text-align: center; }
.auth-registration-success { margin: auto 0; padding: 16px 2px; text-align: center; }
.auth-success-mark { position: relative; width: 74px; height: 74px; margin: 0 auto 24px; display: grid; place-items: center; border: 1px solid rgba(138, 220, 123, .42); border-radius: 50%; box-shadow: 0 0 35px rgba(138, 220, 123, .08); }
.auth-success-mark::before,
.auth-success-mark::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(138, 220, 123, .18); border-radius: 50%; }
.auth-success-mark::after { inset: -7px; border-style: dashed; animation: rotate 12s linear infinite; }
.auth-success-mark i { width: 23px; height: 12px; border-left: 2px solid var(--auth-green); border-bottom: 2px solid var(--auth-green); transform: rotate(-45deg) translate(2px, -2px); }
.auth-registration-success > span { color: var(--auth-green); font-size: 8px; letter-spacing: .15em; }
.auth-registration-success h3 { margin: 9px 0 10px; font-size: 30px; font-weight: 510; letter-spacing: -.03em; }
.auth-registration-success > p { max-width: 500px; margin: 0 auto; color: #80969c; font-size: 11px; line-height: 1.65; }
.auth-registration-success dl { margin: 25px 0 18px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #293a3f; border-radius: 8px; background: #071215; }
.auth-registration-success dl div { min-width: 0; padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.auth-registration-success dl div + div { border-left: 1px solid #293a3f; }
.auth-registration-success dt { color: #60777d; font-size: 8px; letter-spacing: .12em; }
.auth-registration-success dd { margin: 0; overflow-wrap: anywhere; color: #dbe6e7; font-size: 11px; }
.auth-registration-success dl div:last-child dd { color: var(--auth-orange); }
.auth-registration-success .button { justify-content: space-between; }

@media (max-width: 980px) {
  .account-page .auth-gateway { grid-template-columns: minmax(300px, .76fr) minmax(440px, 1.24fr); }
  .account-page .auth-gateway-intro { padding: 38px 32px; }
  .account-page .auth-intro-copy h2 { font-size: 41px; }
  .auth-protocol small { display: none; }
  .auth-gateway-panel { padding: 42px 36px; }
}

@media (max-width: 820px) {
  .account-page { overflow: auto; }
  .account-page .cabinet-window { width: 100%; height: 100dvh; }
  .account-page .auth-gateway { min-height: 100%; height: auto; display: block; overflow-y: auto; overscroll-behavior: contain; }
  .account-page .auth-gateway-intro { min-height: 305px; padding: 34px 24px 27px; gap: 24px; border-right: 0; border-bottom: 1px solid #27373c; }
  .account-page .auth-intro-copy { padding-right: 34px; }
  .account-page .auth-intro-copy h2 { margin-block: 12px; font-size: 36px; }
  .auth-intro-copy > p { font-size: 12px; line-height: 1.55; }
  .auth-protocol { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .auth-protocol li { min-height: 54px; padding: 9px; grid-template-columns: 28px 1fr; gap: 8px; }
  .auth-protocol b { width: 27px; height: 27px; }
  .auth-protocol strong { font-size: 8px; }
  .auth-intro-footer { display: none; }
  .auth-gateway-panel { min-height: 520px; padding: 34px max(24px, env(safe-area-inset-right)) max(38px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); overflow: visible; }
  .account-page .cabinet-login.registration-active { display: block; background: #0b1518; }
  .account-page .cabinet-login.registration-active .login-visual { display: flex; }
  .account-page .cabinet-login.registration-active .registration-form { min-height: 0; padding: 0; }
  .account-page .modal-close { position: fixed; }
}

@media (max-width: 560px) {
  .account-page .auth-gateway-intro { min-height: 250px; padding: 27px 18px 22px; }
  .account-page .auth-brandline .login-radar { width: 46px; height: 46px; }
  .account-page .auth-brandline .login-radar::before { width: 58px; top: 22px; left: -6px; }
  .account-page .auth-brandline .login-radar::after { height: 58px; left: 22px; top: -6px; }
  .account-page .auth-brandline .login-radar b { left: 31px; top: 10px; }
  .auth-brandline strong { font-size: 18px; }
  .account-page .auth-intro-copy h2 { font-size: 31px; }
  .account-page .auth-intro-copy > p { display: block; }
  .auth-protocol { display: none; }
  .auth-gateway-panel { min-height: 560px; padding: 27px 15px max(28px, env(safe-area-inset-bottom)); }
  .auth-panel-header { margin-bottom: 20px; }
  .auth-panel-header > span { display: none; }
  .auth-mode-tabs { margin-bottom: 27px; }
  .account-page .auth-mode-switch { min-height: 44px; padding-inline: 7px; gap: 6px; font-size: 9px; }
  .auth-form-title h3 { font-size: 26px; }
  .auth-field-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-form-section { padding: 13px; }
  .auth-password-rules { align-items: flex-start; flex-direction: column; gap: 6px; }
  .auth-registration-success dl { grid-template-columns: 1fr; }
  .auth-registration-success dl div + div { border-top: 1px solid #293a3f; border-left: 0; }
}

/* Complete borders and a centred close glyph. */
.modal-close,
.activation-dialog-close,
.session-security-close {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 7px !important;
  color: transparent !important;
}
.modal-close::before,
.modal-close::after,
.activation-dialog-close::before,
.activation-dialog-close::after,
.session-security-close::before,
.session-security-close::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1px;
  border-radius: 1px;
  background: #b9c8cb;
}
.modal-close::before,
.activation-dialog-close::before,
.session-security-close::before { transform: rotate(45deg); }
.modal-close::after,
.activation-dialog-close::after,
.session-security-close::after { transform: rotate(-45deg); }
.modal-close:hover,
.activation-dialog-close:hover,
.session-security-close:hover { border-color: var(--accent) !important; background: rgba(var(--accent-rgb), .07); }

* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 76%, #203238); border-radius: 999px; }
*::-webkit-scrollbar-corner { background: transparent; }

@media (max-width: 820px) {
  html, body, button, a, input, textarea, select { cursor: auto !important; }
  .account-page .cabinet-window { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.news-workspace { min-height: 560px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.news-filters .button { min-height: 40px; padding: 9px 16px; font-size: 10px; }
.news-timeline { max-width: 980px; margin-inline: auto; }
.news-entry { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; }
.news-entry-rail { position: relative; display: flex; justify-content: center; }
.news-entry-rail::before { content: ""; position: absolute; inset: 17px auto 0; width: 1px; background: var(--line); }
.news-entry:last-child .news-entry-rail::before { display: none; }
.news-entry-rail i { width: 9px; height: 9px; margin-top: 18px; z-index: 1; border: 2px solid var(--panel-solid); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(var(--accent-rgb), .28); }
.news-entry-card { margin-bottom: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(9, 20, 23, .56); }
.news-entry-card header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.news-entry-card header span { color: var(--accent); }
.news-entry-card h2 { margin: 12px 0 10px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -.025em; }
.news-entry-card p { margin: 0; color: #b8c7ca; font-size: 13px; line-height: 1.75; white-space: pre-wrap; }
.news-entry-card footer { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--dim); font-size: 9px; }
.news-entry.is-update .news-entry-card { border-color: var(--line-strong); }

/* Unified 2026 workspace structure. */
body::before,
.workspace-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(128, 196, 241, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 196, 241, .09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 64%);
}
.workspace-header {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}
.workspace-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, #8adc7b 0 22%, transparent 22% 39%, #efc071 39% 61%, transparent 61% 78%, #80c4f1 78% 100%);
  opacity: .46;
}
.workspace-main { width: min(1480px, 100%); margin-inline: auto; }
.workspace-titlebar {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: linear-gradient(120deg, rgba(22, 35, 40, .84), rgba(11, 18, 20, .64));
  animation: ecosystem-rise .45s ease both;
}
.workspace-titlebar::after {
  content: "CERBER / SECURE WORKSPACE";
  position: absolute;
  right: 22px;
  bottom: 10px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .15em;
}
.workspace-panel { box-shadow: 0 24px 72px rgba(0, 0, 0, .18); animation: ecosystem-rise .55s .06s ease both; }
.workspace-context-strip { display: grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; gap: 18px; align-items: center; margin: -7px 0 17px; padding: 13px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 15, 18, .48); }
.workspace-context-strip > span { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.workspace-context-strip > i { height: 24px; background: var(--line); }
.workspace-context-strip b { font-size: 9px; letter-spacing: .08em; }
.workspace-context-strip small { color: var(--dim); font-size: 8px; }
.workspace-nav a { min-height: 40px; transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.workspace-nav a:hover { transform: translateY(-1px); }
.workspace-nav a i { display: grid; place-items: center; width: 20px; height: 20px; color: var(--accent); }
.dashboard-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .018), 0 20px 56px rgba(0, 0, 0, .13); }
.dashboard-card-head { border-bottom-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.forum-section,
.thread-article,
.comment-form,
.chat-panel { border-radius: var(--radius); }
.forum-board { transition: background-color .18s ease, border-color .18s ease, transform .18s ease; }
.forum-board:hover { transform: translateX(3px); border-color: var(--line-strong); background: rgba(var(--accent-rgb), .04); }
.thread-row { border-left: 2px solid transparent; transition: border-color .18s ease, background-color .18s ease; }
.thread-row:hover { border-left-color: var(--accent); background: rgba(var(--accent-rgb), .035); }
.chat-composer { border-color: var(--line-strong); background: rgba(8, 16, 18, .76); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); }
.chat-composer textarea { background: transparent; }
.admin-grid { gap: 18px; }
.admin-command-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-command-grid article { padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 15, 18, .48); }
.admin-command-grid article:nth-child(1) { border-top-color: #8adc7b; }
.admin-command-grid article:nth-child(2) { border-top-color: #efc071; }
.admin-command-grid article:nth-child(3) { border-top-color: #80c4f1; }
.admin-command-grid small { display: block; margin-bottom: 7px; color: var(--dim); font-size: 8px; letter-spacing: .1em; }
.admin-command-grid strong { display: block; margin-bottom: 4px; font-size: 12px; }
.admin-command-grid span { color: var(--muted); font-size: 9px; }
.admin-form,
.admin-news-card,
.admin-users-card,
.security-log-card,
.admin-requests-card { position: relative; overflow: hidden; }
.admin-form::before,
.admin-news-card::before,
.admin-users-card::before,
.security-log-card::before,
.admin-requests-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(#8adc7b, #efc071 52%, #80c4f1); opacity: .64; }
.security-events-list { display: grid; gap: 8px; padding-top: 8px; }
.security-events-list > div { display: grid; grid-template-columns: 145px minmax(190px, .8fr) minmax(220px, 1.6fr) 140px; gap: 14px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 7px; background: rgba(7, 15, 18, .54); }
.security-events-list time { color: var(--dim); font-size: 9px; }
.security-events-list strong { color: var(--text); font-size: 11px; font-weight: 600; }
.security-events-list p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.security-events-list span { color: #80c4f1; font-family: Consolas, monospace; font-size: 9px; text-align: right; }
.security-event-user { color: #efc071 !important; font-family: inherit !important; text-align: left !important; }
.cabinet-sidebar { background: linear-gradient(180deg, rgba(10, 20, 23, .98), rgba(7, 14, 17, .98)); border-right-color: var(--line-strong); }
.cabinet-logo { position: relative; padding-bottom: 24px; }
.cabinet-logo::after { content: ""; display: block; width: 70px; height: 2px; margin-top: 15px; border-radius: 99px; background: linear-gradient(90deg, #8adc7b 0 38%, #efc071 38% 70%, #80c4f1 70%); }
.cabinet-content-head { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: rgba(7, 15, 18, .48); }
.cabinet-command-strip { display: grid; grid-template-columns: 1fr 1px 1.3fr 1px 1fr; align-items: center; gap: 18px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(90deg, rgba(138, 220, 123, .035), rgba(239, 192, 113, .025), rgba(128, 196, 241, .035)); }
.cabinet-command-strip > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cabinet-command-strip > span { height: 25px; background: var(--line); }
.cabinet-command-strip small { color: var(--dim); font-size: 8px; letter-spacing: .09em; }
.cabinet-command-strip strong { font-size: 12px; font-weight: 600; }
.release-row-product-d { border-left: 2px solid #efc071; background: rgba(239, 192, 113, .025); }
.release-row-product-d .file-icon { color: #efc071; border-color: rgba(239, 192, 113, .42); }
.activation-dialog { box-shadow: var(--shadow); }
.toast { border-color: var(--line-strong); background: #111c20; box-shadow: 0 22px 60px rgba(0, 0, 0, .35); }
@keyframes ecosystem-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .security-events-list > div { grid-template-columns: 112px 1fr 120px; }
  .security-events-list p { grid-column: 2 / -1; }
  .cabinet-command-strip { grid-template-columns: 1fr; gap: 9px; }
  .cabinet-command-strip > span { display: none; }
  .admin-command-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .workspace-titlebar { padding: 18px; }
  .workspace-titlebar::after { display: none; }
  .security-events-list > div { grid-template-columns: 1fr; gap: 6px; }
  .security-events-list p { grid-column: auto; }
  .security-events-list span { text-align: left; }
  .cabinet-content-head { padding: 14px; }
  .cabinet-command-strip > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .workspace-context-strip { grid-template-columns: 1fr; gap: 8px; }
  .workspace-context-strip > i { display: none; }
  .workspace-context-strip > span { align-items: flex-start; flex-direction: column; gap: 2px; }
}
