:root {
  color-scheme: dark;
  --bg: #03060a;
  --ink: #f4f7fb;
  --muted: #a9b8c5;
  --faint: #6f8090;
  --panel: rgba(8, 13, 19, 0.82);
  --panel-strong: rgba(13, 20, 28, 0.94);
  --line: rgba(118, 141, 160, 0.28);
  --line-strong: rgba(218, 176, 96, 0.44);
  --gold: #e2bd73;
  --cyan: #73d6d0;
  --red: #e56a5f;
  --green: #87c982;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --grid: rgba(115, 214, 208, 0.07);
  --page-art: url("/assets/eve-bg-5.webp");
  --hero-art: url("/assets/eve-bg-4.png");
  --rail-art: url("/assets/eve-bg-1.jpg");
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.98) 0%, rgba(3, 6, 10, 0.9) 34%, rgba(3, 6, 10, 0.48) 64%, rgba(3, 6, 10, 0.86) 100%),
    linear-gradient(180deg, rgba(226, 189, 115, 0.11), rgba(115, 214, 208, 0.04) 42%, rgba(229, 106, 95, 0.08)),
    #03060a;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.72) 0%, rgba(3, 6, 10, 0.24) 40%, rgba(3, 6, 10, 0.58) 100%),
    var(--page-art) center center / cover no-repeat;
  opacity: 0.44;
  filter: saturate(0.92) contrast(1.05);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(3, 6, 10, 0.72));
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.3), black 24%, black 88%, rgba(0, 0, 0, 0.15));
}

button,
select,
input {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell:not(.public-shell) {
  grid-template-columns: minmax(360px, 390px) minmax(0, 1fr);
}

.public-shell {
  display: block;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 12, 0.88);
  backdrop-filter: blur(16px);
}

.public-brand {
  color: var(--ink);
  text-decoration: none;
}

.public-nav a,
.admin-session-panel a,
.login-card a {
  color: var(--cyan);
  font-weight: 900;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(115, 214, 208, 0.26);
  border-radius: 6px;
  text-decoration: none;
  background: rgba(8, 13, 19, 0.72);
}

.public-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(118, 141, 160, 0.22);
  border-radius: 12px;
  background: rgba(7, 11, 16, 0.72);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.18);
}

.public-auth-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(182, 198, 214, 0.24);
  border-radius: 50%;
  background: rgba(8, 13, 19, 0.92);
  object-fit: cover;
}

.public-auth-copy {
  display: grid;
  gap: 4px;
}

.public-auth-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-auth-copy a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 740px) {
  .public-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-auth {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

.control-rail {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100vh;
  overflow: auto;
  padding: 24px 20px 26px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 14, 21, 0.96), rgba(6, 10, 15, 0.9)),
    var(--rail-art) left -120px bottom -70px / 320px auto no-repeat;
  box-shadow: 18px 0 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.app-shell:not(.public-shell) .control-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.brand-lockup {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0a1017;
  box-shadow: 0 0 26px rgba(226, 189, 115, 0.22);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-note {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

h1 {
  margin-bottom: 0;
  font-size: 1.62rem;
  line-height: 1;
}

.panel,
.status-card {
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

select,
.scheduler-panel input {
  width: 100%;
  min-height: 40px;
  color: var(--ink);
  background: rgba(3, 7, 11, 0.92);
  border: 1px solid rgba(118, 141, 160, 0.38);
  border-radius: 6px;
  padding: 9px 11px;
}

select:focus,
input:focus,
button:focus-visible {
  outline: 2px solid rgba(115, 214, 208, 0.55);
  outline-offset: 2px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  align-items: center;
  gap: 12px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

output {
  color: var(--gold);
  font-size: 0.82rem;
  text-align: right;
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  min-height: 42px;
  border: 1px solid rgba(226, 189, 115, 0.58);
  border-radius: 6px;
  color: #0c0903;
  background: linear-gradient(180deg, #edce8a, #d3a857);
  cursor: pointer;
  font-weight: 900;
}

button:first-child {
  color: var(--ink);
  background: rgba(7, 12, 18, 0.74);
  border-color: rgba(118, 141, 160, 0.36);
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-panel p,
.admin-session-panel p,
.scheduler-panel p,
.status-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-panel a,
.admin-session-panel a,
.lead-story a {
  color: var(--cyan);
  font-weight: 850;
}

.admin-session-panel form {
  margin: 0;
}

.admin-session-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
}

.admin-session-panel p {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.admin-session-copy {
  display: grid;
  gap: 4px;
  grid-column: 1 / 2;
}

.admin-session-copy strong {
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.admin-session-copy p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

.admin-session-panel a {
  justify-self: start;
}

.admin-session-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-self: end;
  align-items: center;
}

.admin-session-panel form {
  justify-self: end;
}

.admin-session-panel button {
  min-height: 36px;
  padding: 0 14px;
}

.scheduler-panel {
  display: grid;
  gap: 10px;
}

.scheduler-types {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
}

.scheduler-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0 2px;
}

.scheduler-type-grid label {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.62);
}

.scheduler-type-grid span,
.scheduler-type-grid small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-type-grid input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(118, 141, 160, 0.28);
  border-radius: 6px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(10, 15, 21, 0.98), rgba(8, 13, 19, 0.92));
  font-size: 0.86rem;
  font-weight: 700;
}

.scheduler-type-grid input:focus-visible {
  outline: 2px solid rgba(115, 214, 208, 0.62);
  outline-offset: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.88rem;
}

.toggle-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.scheduler-grid label,
.scheduler-panel p:last-child,
.status-card p:last-child {
  margin: 0;
}

.small-action {
  width: fit-content;
  min-height: 34px;
  margin: 2px 0 10px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.story-stage {
  position: relative;
  z-index: 1;
  padding: 26px clamp(22px, 4vw, 54px) 48px;
  overflow: hidden;
}

.admin-console .front-page {
  min-height: 172px;
}

.admin-console .front-page::before {
  opacity: 0.62;
}

.admin-layout-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-main-column {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-items: start;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.admin-dashboard-grid > .panel,
.admin-dashboard-grid > .status-card {
  min-width: 0;
}

.admin-dashboard-grid > .agent-panel,
.admin-dashboard-grid > .debug-panel {
  grid-column: span 6;
}

.admin-dashboard-grid > .scheduler-panel,
.admin-dashboard-grid > .status-card,
.admin-dashboard-grid > .admin-log-panel,
.admin-dashboard-grid > .admin-comment-panel {
  grid-column: 1 / -1;
}

.admin-dashboard-grid > .admin-log-panel,
.admin-dashboard-grid > .admin-comment-panel {
  display: grid;
  gap: 14px;
}

.admin-log-panel {
  display: grid;
  gap: 14px;
}

.admin-log-panel .section-heading span {
  font-variant-numeric: tabular-nums;
}

.admin-log-panel .panel-actions {
  margin-bottom: 10px;
}

.admin-log-panel .audit-list {
  max-height: none;
}

.admin-comment-panel {
  display: grid;
  gap: 14px;
}

.admin-log-panel,
.admin-comment-panel {
  min-height: 0;
}

.comment-moderation-list {
  display: grid;
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 2px;
}

.comment-moderation-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 10px;
  background: rgba(5, 9, 14, 0.72);
}

.comment-moderation-item.is-hidden {
  border-color: rgba(229, 106, 95, 0.36);
  background: linear-gradient(180deg, rgba(58, 16, 19, 0.5), rgba(5, 9, 14, 0.8));
}

.comment-moderation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-moderation-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.4;
}

.comment-moderation-meta strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.comment-moderation-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 999px;
  background: rgba(7, 11, 16, 0.68);
}

.comment-moderation-visible {
  color: var(--green);
  border-color: rgba(135, 201, 130, 0.28) !important;
}

.comment-moderation-hidden {
  color: var(--red);
  border-color: rgba(229, 106, 95, 0.28) !important;
}

.comment-moderation-reason,
.comment-moderation-hidden-by,
.comment-moderation-kind {
  color: var(--muted);
}

.comment-moderation-item p {
  margin: 0;
  color: var(--ink);
  white-space: pre-wrap;
  line-height: 1.55;
}

.comment-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.comment-moderation-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.comment-moderation-empty {
  padding: 14px 16px;
  border: 1px dashed rgba(118, 141, 160, 0.22);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(5, 9, 14, 0.48);
}

.front-page {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  min-height: 258px;
  margin-bottom: 20px;
  padding: 28px 28px 28px 22px;
  border: 1px solid rgba(226, 189, 115, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.96), rgba(5, 8, 12, 0.78) 46%, rgba(5, 8, 12, 0.2)),
    rgba(7, 11, 17, 0.88);
  box-shadow: var(--shadow);
}

.front-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.96), rgba(5, 8, 12, 0.72) 45%, rgba(5, 8, 12, 0.16)),
    var(--hero-art) right -40px center / cover no-repeat;
  opacity: 0.92;
}

.front-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cyan), var(--red));
}

.front-page > * {
  position: relative;
  z-index: 1;
}

.front-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: start;
}

.front-brand-mark {
  width: 256px;
  height: 256px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.front-copy {
  display: grid;
  gap: 14px;
  align-self: end;
  justify-items: end;
  text-align: right;
  padding-left: 0;
}

.front-page h2 {
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: right;
}

.front-page > p,
.front-copy > p {
  margin-bottom: 5px;
  color: #c4d0da;
  line-height: 1.55;
  text-align: right;
}

.story-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
}

.story-tabs button,
.top-story-item {
  font: inherit;
}

.story-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(118, 141, 160, 0.32);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(5, 10, 15, 0.78);
  cursor: pointer;
}

.story-tabs button:hover,
.story-tabs button.active {
  border-color: rgba(226, 189, 115, 0.5);
  color: var(--ink);
  background: linear-gradient(120deg, rgba(226, 189, 115, 0.14), rgba(115, 214, 208, 0.08));
}

.story-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(118, 141, 160, 0.24);
  border-radius: 8px;
  background: rgba(7, 11, 16, 0.8);
}

.story-toolbar-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.story-search-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-sort-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid rgba(118, 141, 160, 0.38);
  border-radius: 6px;
  background: rgba(3, 7, 11, 0.92);
}

.story-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid rgba(118, 141, 160, 0.38);
  border-radius: 6px;
  background: rgba(3, 7, 11, 0.92);
}

.story-toolbar button {
  min-width: 88px;
}

@media (max-width: 980px) {
  .story-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-toolbar-field {
    width: 100%;
  }

  .story-toolbar button {
    width: 100%;
  }
}

.desk-digest {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.digest-cell {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(118, 141, 160, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(9, 15, 22, 0.94), rgba(5, 9, 14, 0.76)),
    rgba(255, 255, 255, 0.02);
}

.digest-cell.is-clickable {
  cursor: pointer;
}

.digest-cell.is-clickable strong {
  color: var(--cyan);
}

.digest-cell.is-clickable:hover {
  border-color: rgba(226, 189, 115, 0.42);
  background:
    linear-gradient(135deg, rgba(12, 19, 27, 0.98), rgba(6, 10, 15, 0.84)),
    rgba(255, 255, 255, 0.02);
}

.digest-cell span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.digest-cell strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.digest-cell small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.36;
  min-height: 2.7em;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 330px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(120deg, rgba(11, 17, 24, 0.94), rgba(9, 13, 18, 0.78));
  box-shadow: var(--shadow);
}

.lead-story:empty {
  display: none;
}

.visual-frame {
  position: relative;
  margin: 0;
  min-width: 0;
}

.lead-story .visual-frame {
  min-height: 300px;
  height: 100%;
}

.lead-story .story-art {
  width: 100%;
  min-height: 300px;
  height: 100%;
  border: 1px solid rgba(115, 214, 208, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(115, 214, 208, 0.08), rgba(226, 189, 115, 0.08)),
  #02050a;
  object-fit: cover;
}

.logo-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 1px solid rgba(226, 189, 115, 0.56);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(115, 214, 208, 0.16), transparent 52%),
    rgba(2, 5, 10, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
  object-fit: contain;
}

.logo-stack {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  z-index: 2;
}

.logo-stack .logo-badge {
  position: static;
  width: 42px;
  height: 42px;
  padding: 5px;
}

.visual-frame-hero .logo-badge {
  width: 76px;
  height: 76px;
}

.visual-frame-hero .logo-stack .logo-badge {
  width: 56px;
  height: 56px;
}

.lead-story > div {
  padding: 12px 10px 8px 0;
}

.story-meta {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-story-status {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 8px;
  border: 1px solid rgba(115, 214, 208, 0.28);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(115, 214, 208, 0.06);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-story-status[data-tone="muted"] {
  border-color: rgba(118, 141, 160, 0.28);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.ai-story-status[data-tone="error"] {
  border-color: rgba(204, 84, 92, 0.36);
  color: #ff9ba2;
  background: rgba(204, 84, 92, 0.08);
}

.lead-story h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.2vw, 2.45rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.story-page h1 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.lead-story p {
  color: var(--muted);
  line-height: 1.58;
}

.lead-story .lead-lede {
  color: var(--ink);
  font-size: 1.02rem;
}

.lead-story-footer {
  margin-top: 16px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.story-page-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(118, 141, 160, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-page-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(118, 141, 160, 0.18);
}

.story-page-section h2 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-page-section p {
  color: var(--muted);
}

.story-page-source {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.narrative-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.narrative-section {
  min-width: 0;
  padding: 10px 11px;
  border-left: 3px solid rgba(226, 189, 115, 0.78);
  background: rgba(255, 255, 255, 0.025);
}

.narrative-section h4 {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.narrative-section p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(118, 141, 160, 0.24);
}

.section-heading h3 {
  margin-bottom: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
}

.story-pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.story-pager button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(118, 141, 160, 0.26);
  background: rgba(8, 13, 19, 0.88);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.story-pager span {
  min-width: 90px;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.intel-snapshot {
  margin-bottom: 24px;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-card {
  min-width: 0;
}

.snapshot-card-inner {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 214px;
  padding: 14px;
  border: 1px solid rgba(118, 141, 160, 0.28);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(160deg, rgba(10, 17, 25, 0.96), rgba(5, 9, 14, 0.88)),
    linear-gradient(90deg, rgba(115, 214, 208, 0.07), rgba(226, 189, 115, 0.08));
}

button.snapshot-card-inner {
  cursor: pointer;
}

button.snapshot-card-inner:hover,
button.snapshot-card-inner:focus-visible {
  border-color: rgba(115, 214, 208, 0.48);
  outline: none;
  background:
    linear-gradient(160deg, rgba(13, 23, 33, 0.98), rgba(7, 12, 18, 0.9)),
    linear-gradient(90deg, rgba(115, 214, 208, 0.1), rgba(226, 189, 115, 0.1));
}

.snapshot-card-inner span,
.snapshot-card-inner small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-card-inner strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.13;
  text-transform: uppercase;
}

.snapshot-card-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.snapshot-card-inner small {
  align-self: end;
  color: var(--cyan);
}

.snapshot-empty {
  border-style: dashed;
  opacity: 0.78;
}

.story-list {
  display: grid;
  gap: 12px;
}

.story-subheading {
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 14px;
  min-height: 181px;
  padding: 12px;
  border: 1px solid rgba(118, 141, 160, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 13, 20, 0.98), rgba(11, 17, 24, 0.86)),
    linear-gradient(90deg, rgba(226, 189, 115, 0.08), rgba(115, 214, 208, 0.03));
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.2);
}

.story-number {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(226, 189, 115, 0.34);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(8, 13, 19, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.story-card-cta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 13, 19, 0.82);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(226, 189, 115, 0.95), rgba(115, 214, 208, 0.85));
  opacity: 0.86;
}

.story-card:hover {
  border-color: rgba(226, 189, 115, 0.44);
  background:
    linear-gradient(135deg, rgba(10, 17, 25, 1), rgba(14, 22, 30, 0.9)),
    linear-gradient(90deg, rgba(226, 189, 115, 0.1), rgba(115, 214, 208, 0.05));
}

.story-card:focus-visible {
  outline: 2px solid rgba(115, 214, 208, 0.62);
  outline-offset: 2px;
}

.story-card:visited {
  color: inherit;
}

.story-card.strategic-card {
  grid-template-columns: 202px minmax(0, 1fr);
}

.story-card .visual-frame {
  height: 146px;
}

.story-card .story-art {
  width: 100%;
  height: 146px;
  border: 1px solid rgba(115, 214, 208, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(115, 214, 208, 0.08), rgba(226, 189, 115, 0.06)),
    #02050a;
  object-fit: cover;
}

.story-card.strategic-card .visual-frame,
.story-card.strategic-card .story-art {
  height: 154px;
}

.story-card .logo-badge {
  right: 8px;
  bottom: 8px;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 6px;
}

.story-card h4 {
  margin-bottom: 6px;
  font-size: 1.03rem;
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.story-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 2px 4px 14px 0;
  min-height: 100%;
}

.story-excerpt,
.story-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.story-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.story-card-badges {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  pointer-events: none;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
  gap: 4px;
}

.story-card-badges .story-badge {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.story-badge {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(226, 189, 115, 0.26);
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.story-card .story-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
  padding: 0;
  border: 0;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.35;
}

.story-card .story-posted {
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.read-more {
  display: inline-block;
  align-self: flex-end;
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag-row span {
  border: 1px solid rgba(115, 214, 208, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.compact-tags {
  gap: 5px;
}

.compact-tags span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intel-board {
  position: sticky;
  top: 20px;
  padding: 14px;
  border: 1px solid rgba(226, 189, 115, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 14, 21, 0.94), rgba(6, 10, 15, 0.86)),
    url("https://images.evetech.net/types/34339/render?size=512") right -110px bottom -95px / 300px auto no-repeat;
  box-shadow: var(--shadow);
}

.pattern-list,
.audit-list {
  display: grid;
  gap: 9px;
}

.archive-list {
  display: grid;
  gap: 10px;
  max-height: 540px;
  overflow: auto;
  padding-right: 2px;
}

.stories-index-list {
  max-height: none;
  overflow: visible;
}

.stories-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(118, 141, 160, 0.16);
}

.stories-pagination-link,
.stories-pagination-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stories-pagination-link {
  border: 1px solid rgba(226, 189, 115, 0.28);
  background: rgba(8, 13, 19, 0.8);
  color: var(--gold);
  text-decoration: none;
}

.stories-pagination-link:hover,
.stories-pagination-link:focus-visible {
  border-color: rgba(226, 189, 115, 0.52);
  background: rgba(226, 189, 115, 0.12);
  color: var(--ink);
}

.stories-pagination-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.stories-pagination-status {
  border: 1px solid rgba(118, 141, 160, 0.16);
  background: rgba(4, 8, 12, 0.6);
  color: var(--muted);
  text-align: center;
}

.archive-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.68);
}

.archive-filters label {
  margin-bottom: 0;
}

.archive-filters label span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-filters select,
.archive-filters button {
  width: 100%;
}

.archive-filters button {
  min-height: 40px;
}

.story-actions {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0;
}

.entity-actions {
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.entity-toggle {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(226, 189, 115, 0.34);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(8, 13, 19, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entity-card-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.entity-logo {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(226, 189, 115, 0.24);
  background: rgba(255, 255, 255, 0.03);
}

.entity-toggle:hover,
.entity-toggle:focus-visible {
  border-color: rgba(226, 189, 115, 0.58);
  color: var(--ink);
  background: rgba(226, 189, 115, 0.12);
}

.entity-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: min(100%, 320px);
  padding: 0;
  border: 0;
}

.entity-picker > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(226, 189, 115, 0.34);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(8, 13, 19, 0.82);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.entity-picker > summary::-webkit-details-marker {
  display: none;
}

.entity-picker > summary::after {
  content: "▾";
  margin-left: auto;
  color: rgba(226, 189, 115, 0.72);
}

.entity-picker[open] > summary::after {
  content: "▴";
}

.entity-picker > summary strong {
  margin-left: auto;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.entity-menu {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.entity-menu-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 36px;
  white-space: normal;
  gap: 10px;
}

.archive-entry {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.76);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.archive-entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  border-color: rgba(226, 189, 115, 0.34);
  outline: none;
  background: rgba(7, 11, 16, 0.92);
}

.archive-entry:visited {
  color: inherit;
}

.archive-entry strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.3;
}

.archive-entry p,
.archive-entry small {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.archive-entry-age {
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-entry-theme {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-empty {
  padding: 12px;
  border: 1px dashed rgba(118, 141, 160, 0.24);
  border-radius: 8px;
  background: rgba(4, 8, 12, 0.5);
}

.archive-empty strong,
.archive-empty p {
  display: block;
}

.archive-empty strong {
  margin-bottom: 6px;
  color: var(--ink);
}

.archive-empty p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .desk-digest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .archive-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .stories-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  .stories-pagination-status {
    order: -1;
  }
  .desk-digest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pattern-row,
.audit-row,
.intel-row {
  border-bottom: 1px solid rgba(118, 141, 160, 0.18);
  padding-bottom: 9px;
}

.pattern-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.pattern-row span,
.audit-row span {
  color: var(--muted);
}

.pattern-row strong,
.audit-row strong {
  color: var(--ink);
  text-align: right;
}

.audit-row {
  display: grid;
  gap: 5px;
}

.audit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.audit-row a {
  color: var(--gold);
  text-decoration: none;
}

.audit-row a:hover,
.audit-row a:focus-visible {
  text-decoration: underline;
}

.intel-subheading,
.audit-heading {
  margin-top: 22px;
}

.intel-row span,
.intel-row strong {
  display: block;
}

.intel-row span {
  color: var(--ink);
  font-weight: 900;
}

.intel-row strong {
  margin-top: 3px;
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.intel-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.audit-list {
  max-height: 420px;
  overflow: auto;
}

.audit-row span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.audit-row strong {
  display: block;
  font-size: 0.83rem;
  line-height: 1.35;
  text-align: left;
}

.story-modal {
  width: min(1120px, calc(100vw - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  border: 1px solid rgba(226, 189, 115, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(5, 8, 12, 0.98);
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.7);
}

.story-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.modal-shell {
  position: relative;
  max-height: calc(100vh - 34px);
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.98), rgba(8, 14, 20, 0.92)),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 42px 42px, 42px 42px;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  width: 42px;
  min-height: 42px;
  margin: 12px 12px 0 0;
  border-color: rgba(118, 141, 160, 0.4);
  color: var(--ink);
  background: rgba(6, 10, 15, 0.9);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-story-content {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.modal-story-content .visual-frame {
  position: sticky;
  top: 22px;
  align-self: start;
  min-height: 430px;
}

.modal-story-content .story-art {
  width: 100%;
  min-height: 430px;
  border: 1px solid rgba(115, 214, 208, 0.18);
  border-radius: 6px;
  background: #02050a;
  object-fit: contain;
}

.modal-story-copy {
  min-width: 0;
  padding: 30px 10px 18px 0;
}

.modal-story-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3vw, 3.6rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.modal-lede {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.62;
}

.modal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.modal-facts div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.modal-facts dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  line-height: 1.35;
}

.modal-sections {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.modal-section {
  padding: 14px 15px;
  border-left: 3px solid rgba(226, 189, 115, 0.78);
  background: rgba(255, 255, 255, 0.03);
}

.modal-section h3 {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.modal-section p {
  margin-bottom: 0;
  color: #c9d4de;
  line-height: 1.62;
}

.entity-list {
  display: grid;
  gap: 8px;
}

.entity-timeline {
  display: grid;
  gap: 8px;
}

.entity-row {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.14);
  text-align: left;
}

.entity-row:hover,
.entity-row:focus-visible {
  border-color: rgba(115, 214, 208, 0.42);
  background: rgba(115, 214, 208, 0.06);
}

.entity-row span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entity-row strong {
  color: var(--ink);
  line-height: 1.24;
}

.entity-row p {
  margin: 0;
  color: #c9d4de;
  line-height: 1.5;
}

.entity-empty {
  padding: 10px 11px;
  border: 1px dashed rgba(118, 141, 160, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.entity-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.entity-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.story-comments {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.comments-heading {
  margin: 0 0 12px;
}

.comments-heading span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-login {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-login p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.comment-login-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(115, 214, 208, 0.42);
  border-radius: 6px;
  color: var(--cyan);
  font-weight: 900;
}

.comment-identity {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comment-field {
  display: grid;
  gap: 6px;
}

.comment-field span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comment-field input,
.comment-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(118, 141, 160, 0.22);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(6, 10, 15, 0.92);
  font: inherit;
}

.comment-field textarea {
  resize: vertical;
  min-height: 92px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-submit {
  border-color: rgba(115, 214, 208, 0.42);
}

.comment-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.comment-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.comment-item {
  padding: 10px 11px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.14);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-meta strong {
  color: var(--ink);
}

.comment-meta time {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.comment-edited {
  color: rgba(115, 214, 208, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comment-item p {
  margin: 0;
  color: #c9d4de;
  line-height: 1.56;
}

.comment-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.comment-item-actions button,
.comment-like-count {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(118, 141, 160, 0.18);
  border-radius: 999px;
  background: rgba(7, 11, 16, 0.76);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.comment-item-actions button {
  color: var(--cyan);
  cursor: pointer;
}

.comment-item-actions button:hover {
  border-color: rgba(115, 214, 208, 0.42);
  background: rgba(8, 13, 19, 0.92);
}

.comment-body-editor {
  display: grid;
  gap: 10px;
}

.comment-edit-text {
  width: 100%;
  min-height: 92px;
  padding: 10px 11px;
  border: 1px solid rgba(118, 141, 160, 0.22);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(6, 10, 15, 0.92);
  font: inherit;
  resize: vertical;
}

.comment-item-editing {
  border-color: rgba(115, 214, 208, 0.32);
  box-shadow: inset 0 0 0 1px rgba(115, 214, 208, 0.12);
}

.modal-source {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.source-link-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(127, 217, 212, 0.18);
  border-radius: 6px;
  background: rgba(127, 217, 212, 0.045);
}

.source-link-list p {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-link-list a {
  color: var(--cyan);
  font-weight: 800;
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.login-card {
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid rgba(226, 189, 115, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(9, 14, 21, 0.96), rgba(6, 10, 15, 0.9)),
    url("https://images.evetech.net/types/35832/render?size=512") right -150px bottom -100px / 360px auto no-repeat;
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
  text-transform: uppercase;
}

.login-card p {
  color: var(--muted);
  line-height: 1.55;
}

.login-error {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(232, 93, 86, 0.35);
  border-radius: 6px;
  background: rgba(78, 17, 17, 0.32);
  color: #ffb9b5;
  font-weight: 700;
}

.login-form {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.login-form input {
  width: 100%;
  min-height: 42px;
  color: var(--ink);
  background: rgba(3, 7, 11, 0.92);
  border: 1px solid rgba(118, 141, 160, 0.38);
  border-radius: 6px;
  padding: 9px 11px;
}

@media (max-width: 1180px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-digest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intel-board {
    position: static;
  }

  .scheduler-type-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 6, 10, 0.94), rgba(3, 6, 10, 0.84)),
      url("https://images.evetech.net/types/11567/render?size=1024") top right -160px / 760px auto no-repeat,
      #03060a;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .control-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-lockup,
  .scheduler-panel,
  .status-card {
    grid-column: 1 / -1;
  }

  .panel,
  .status-card {
    margin-bottom: 0;
  }

  .front-page,
  .lead-story,
  .modal-story-content {
    grid-template-columns: 1fr;
  }

  .front-page {
    min-height: 220px;
  }

  .admin-dashboard-grid > .agent-panel,
  .admin-dashboard-grid > .debug-panel,
  .admin-dashboard-grid > .admin-log-panel,
  .admin-dashboard-grid > .admin-comment-panel,
  .admin-dashboard-grid > .scheduler-panel,
  .admin-dashboard-grid > .status-card {
    grid-column: 1 / -1;
  }

  .lead-story > div {
    padding: 0;
  }

  .modal-story-content .visual-frame {
    position: relative;
    top: auto;
    min-height: 260px;
  }

  .modal-story-content .story-art {
    min-height: 260px;
  }

  .modal-story-copy {
    padding: 0;
  }

  .narrative-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .control-rail,
  .story-stage {
    padding: 16px;
  }

  .front-page {
    padding: 20px;
    gap: 16px;
  }

  .front-page h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.55rem);
    line-height: 0.94;
  }

  .lead-story,
  .story-card,
  .story-card.strategic-card {
    grid-template-columns: 1fr;
  }

  .lead-story .visual-frame,
  .lead-story .story-art {
    min-height: 210px;
  }

  .story-card .visual-frame,
  .story-card .story-art,
  .story-card.strategic-card .visual-frame,
  .story-card.strategic-card .story-art {
    height: 168px;
  }

  .battle-sides {
    grid-template-columns: 1fr;
  }

  .story-card .logo-badge {
    width: 48px;
    height: 48px;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .desk-digest {
    grid-template-columns: 1fr;
  }

  .modal-story-content {
    padding: 14px;
  }

  .modal-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .control-rail {
    grid-template-columns: 1fr;
  }
}


.story-copy-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  min-height: 28px;
}

.story-copy-badges .story-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.story-copy-badges .logo-stack {
  gap: 4px;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 2rem;
  padding: 1rem 1.25rem;
  color: rgba(244, 247, 251, 0.9);
  border-top: 1px solid rgba(133, 179, 195, 0.18);
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer p:last-child {
  color: rgba(169, 184, 197, 0.94);
}
