:root {
  --bg: #05080d;
  --bg-2: #0b1320;
  --panel: #101b2b;
  --panel-2: #17263e;
  --text: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.68);
  --faint: rgba(244, 247, 251, 0.44);
  --cyan: #65dfff;
  --cyan-2: #47f4ff;
  --purple: #a35cff;
  --green: #60efc4;
  --mint: #60efc4;
  --yellow: #e0c34c;
  --danger: #ff8ca1;
  --bg-3: #030509;
  --bg-glow-primary: rgba(39, 73, 113, 0.36);
  --bg-glow-secondary: rgba(163, 92, 255, 0.14);
  --line: rgba(132, 159, 196, 0.22);
  --line-soft: rgba(132, 159, 196, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  max-width: 100%;
  touch-action: manipulation;
}

body {
  min-height: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  background:
    radial-gradient(circle at 8% 8%, var(--bg-glow-primary), transparent 34%),
    radial-gradient(circle at 86% 2%, var(--bg-glow-secondary), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-surface-style="solid"] {
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 52%, var(--bg-3) 100%);
}

body[data-surface-style="cinema"] {
  background:
    radial-gradient(circle at 50% -10%, var(--bg-glow-primary), transparent 34%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 46%, #010203 100%);
}

body[data-content-density="compact"] .hero-copy,
body[data-content-density="compact"] .status-card,
body[data-content-density="compact"] .contact-strip {
  padding: 18px;
}

body[data-content-density="compact"] .action-card {
  min-height: 74px;
  padding: 13px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(101, 223, 255, 0.06), transparent 18%, transparent 78%, var(--bg-glow-secondary)),
    linear-gradient(115deg, transparent 0 30%, var(--bg-glow-primary) 30% 31%, transparent 31% 62%, var(--bg-glow-secondary) 62% 63%, transparent 63%);
  opacity: 0.8;
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid rgba(101, 223, 255, 0.85);
  outline-offset: 4px;
}

@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.04); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translate3d(20px, 14px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 34px;
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.72s ease,
    transform 0.72s cubic-bezier(0.18, 0.9, 0.2, 1),
    filter 0.72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 12px 14px 12px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: rgba(8, 14, 24, 0.82);
  backdrop-filter: blur(18px) saturate(1.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  color: var(--text);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark span {
  color: var(--purple);
  text-shadow: 0 0 18px rgba(163, 92, 255, 0.82);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions form {
  margin: 0;
}

.icon-btn,
.notify-btn {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(178, 197, 225, 0.28);
  border-radius: 50%;
  color: rgba(244, 247, 251, 0.82);
  background: rgba(36, 49, 75, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.24);
  font-size: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.icon-btn:hover,
.notify-btn:hover {
  transform: scale(1.08);
  border-color: rgba(101, 223, 255, 0.68);
  color: var(--text);
  background: rgba(48, 66, 100, 0.96);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 36px;
}

.hero-copy,
.status-card,
.action-card,
.news-card,
.guide-card,
.contact-strip,
.modal-content {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 38, 62, 0.9), rgba(9, 17, 29, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 540px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  animation: riseIn 0.72s ease both;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0.85;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 24%;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(101, 223, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.section-kicker,
.alert-label {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  position: relative;
  z-index: 1;
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
}

.contact-actions,
.modal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(178, 197, 225, 0.24);
  border-radius: 999px;
  color: var(--text);
  background: rgba(36, 49, 75, 0.86);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(101, 223, 255, 0.74);
  background: rgba(48, 66, 100, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.btn.primary {
  color: #07121e;
  border-color: transparent;
  background: linear-gradient(135deg, #4dbdff, var(--green));
}

.btn.ghost {
  border-color: rgba(96, 239, 196, 0.4);
  background: rgba(22, 111, 79, 0.45);
}

.status-card {
  display: grid;
  gap: 22px;
  min-height: 540px;
  padding: 24px;
  animation: riseIn 0.72s 0.08s ease both;
}

.now-row {
  display: grid;
  gap: 10px;
}

.now-row span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.now-row strong {
  font-size: 22px;
  line-height: 1.1;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(93, 116, 148, 0.22);
}

.progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.alert-card {
  padding: 16px 18px;
  border: 1px solid rgba(224, 195, 76, 0.28);
  border-radius: 18px;
  color: #fff0b8;
  background: linear-gradient(135deg, rgba(224, 195, 76, 0.18), rgba(255, 255, 255, 0.05));
}

.alert-card[hidden] {
  display: none;
}

.alert-card p {
  margin: 7px 0 0;
  font-size: 16px;
  font-weight: 500;
}

#feed {
  display: grid;
  gap: 10px;
  max-height: 190px;
  overflow: auto;
  padding-right: 6px;
}

#feed::-webkit-scrollbar {
  width: 6px;
}

#feed::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(101, 223, 255, 0.34);
}

.msg {
  width: min(100%, 520px);
  padding: 15px 16px;
  border: 1px solid rgba(101, 223, 255, 0.18);
  border-radius: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(18, 31, 50, 0.92), rgba(9, 17, 29, 0.9));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.msg.is-clickable {
  cursor: pointer;
}

.msg.is-clickable:hover,
.msg.is-clickable:focus-visible {
  border-color: rgba(101, 223, 255, 0.36);
  background: linear-gradient(180deg, rgba(21, 38, 61, 0.95), rgba(10, 19, 32, 0.93));
  transform: translateY(-1px);
  outline: none;
}

.msg .text {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.msg .time {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 13px;
}

.action-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 124px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.action-card::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 999px;
  background: transparent;
}

.action-card.selected,
.action-card:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(101, 223, 255, 0.9);
  background: linear-gradient(180deg, rgba(27, 44, 70, 0.94), rgba(14, 26, 42, 0.96));
  box-shadow: 0 0 0 1px rgba(101, 223, 255, 0.6), 0 0 28px rgba(101, 223, 255, 0.18), var(--shadow);
}

.action-card.selected::before,
.action-card:hover::before {
  background: var(--purple);
  box-shadow: 0 0 20px rgba(163, 92, 255, 0.8);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid rgba(127, 151, 185, 0.28);
  border-radius: 21px;
  color: var(--cyan);
  background: rgba(22, 34, 52, 0.85);
  font-size: 22px;
}

.danger-icon {
  color: var(--danger);
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  overflow: hidden;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-card small {
  overflow: hidden;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-action {
  color: rgba(244, 247, 251, 0.86);
  font-size: 20px;
}

.content-section {
  margin-top: 60px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-head h2,
.contact-strip h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-grid.is-empty {
  grid-template-columns: 1fr;
}

.content-filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.content-filter-bar button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(143, 234, 255, 0.14);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.68);
  background: rgba(18, 31, 50, 0.66);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.content-filter-bar button:hover,
.content-filter-bar button.is-active {
  border-color: rgba(101, 223, 255, 0.38);
  color: var(--text);
  background: rgba(25, 43, 67, 0.9);
  transform: translateY(-1px);
}

.content-more-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.content-more-row .btn[hidden] {
  display: none;
}

.news-card {
  position: relative;
  display: grid;
  min-height: 246px;
  padding: 22px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.news-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(101, 223, 255, 0.7);
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--card-color, var(--cyan)), var(--purple));
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 247, 251, 0.64);
  font-size: 13px;
  font-weight: 600;
}

.news-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-card h3 {
  align-self: end;
  margin: 44px 0 0;
  font-size: clamp(22px, 2vw, 33px);
  line-height: 1;
  letter-spacing: 0;
}

.news-card p {
  margin: 10px 0 20px;
  color: rgba(244, 247, 251, 0.7);
  font-size: 15px;
  font-weight: 500;
}

.news-card .btn {
  align-self: end;
  justify-self: start;
}

.news-card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.news-card-signals span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(143, 234, 255, 0.12);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.7);
  background: rgba(5, 10, 18, 0.34);
  font-size: 10px;
  font-weight: 600;
}

.empty-content-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed rgba(143, 234, 255, 0.18);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(7, 13, 24, 0.48);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.guide-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(101, 223, 255, 0.76);
}

.guide-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  transform: scale(1.03);
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.guide-card:hover img {
  opacity: 0.82;
  transform: scale(1.08);
}

.guide-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.guide-card strong {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
}

.info-guide {
  border: 0;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}

.info-guide i {
  color: var(--cyan);
  font-size: 44px;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 60px;
  padding: 30px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 12px;
}

/* Smirenija TVVIET varijanta: manje skale, manje boja, bolja citljivost. */
:root {
  --bg: #05080d;
  --bg-2: #09111d;
  --panel: #0f1a2a;
  --panel-2: #152235;
  --muted: rgba(244, 247, 251, 0.66);
  --faint: rgba(244, 247, 251, 0.42);
  --cyan: #8adcf1;
  --cyan-2: #84e2ed;
  --purple: #9364df;
  --green: #75c8b2;
  --mint: #75c8b2;
  --line: rgba(136, 160, 194, 0.18);
  --line-soft: rgba(136, 160, 194, 0.1);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(118, 223, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #07101a 0%, #05080d 52%, #030509 100%);
}

body::before {
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(118, 223, 255, 0.035) 34% 34.8%, transparent 34.8% 70%, rgba(155, 99, 242, 0.035) 70% 70.8%, transparent 70.8%);
  opacity: 0.38;
  animation: none;
}

.site-shell {
  width: min(1180px, calc(100% - 36px));
}

.site-header {
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border-radius: 22px;
  background: rgba(7, 13, 23, 0.88);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  font-size: clamp(30px, 3vw, 38px);
}

.icon-btn,
.notify-btn {
  width: 46px;
  height: 46px;
  background: rgba(28, 42, 63, 0.82);
  box-shadow: none;
}

.icon-btn:hover,
.notify-btn:hover {
  transform: translateY(-1px);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 20px;
  padding-top: 30px;
}

.hero-copy,
.status-card,
.action-card,
.news-card,
.guide-card,
.contact-strip,
.modal-content {
  background: linear-gradient(180deg, rgba(20, 33, 53, 0.9), rgba(8, 15, 26, 0.92));
  box-shadow: var(--shadow);
}

.hero-copy {
  min-height: 390px;
  padding: clamp(30px, 4vw, 44px);
}

.hero-copy::before {
  height: 3px;
  opacity: 0.55;
}

.hero-copy::after {
  display: none;
}

.section-kicker,
.alert-label {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  max-width: 15ch;
  margin-top: 10px;
  font-size: clamp(38px, 4.2vw, 52px);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 48ch;
  margin-top: 16px;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 500;
  line-height: 1.4;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 14px;
  background: rgba(30, 43, 65, 0.88);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn.primary {
  background: #85d8ec;
}

.btn.ghost {
  border-color: rgba(117, 200, 178, 0.28);
  background: rgba(24, 47, 45, 0.42);
}

.status-card {
  min-height: 390px;
  gap: 16px;
  padding: 22px;
}

.now-row {
  gap: 8px;
}

.now-row strong {
  font-size: 18px;
}

.progress {
  height: 5px;
}

.progress i {
  background: linear-gradient(90deg, rgba(147, 100, 223, 0.48), var(--cyan));
}

.alert-card {
  padding: 13px 15px;
  border-color: rgba(224, 195, 76, 0.16);
  color: rgba(255, 244, 194, 0.9);
  background: rgba(26, 31, 33, 0.54);
}

.alert-card p {
  font-size: 14px;
}

#feed {
  max-height: 124px;
}

.msg {
  padding: 12px 14px;
  border-color: rgba(118, 223, 255, 0.12);
  border-radius: 14px;
  box-shadow: none;
}

.msg .text {
  font-size: 14px;
}

.msg .time {
  font-size: 12px;
}

.action-card {
  grid-template-columns: 50px minmax(0, 1fr) 18px;
  gap: 12px;
  min-height: 92px;
  padding: 15px;
}

.action-card::before {
  inset: 16px auto 16px 0;
  width: 3px;
}

.action-card.selected,
.action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(118, 223, 255, 0.5);
  background: linear-gradient(180deg, rgba(22, 36, 56, 0.95), rgba(10, 19, 32, 0.95));
  box-shadow: 0 0 0 1px rgba(118, 223, 255, 0.16), 0 16px 34px rgba(0, 0, 0, 0.28);
}

.action-card.selected::before,
.action-card:hover::before {
  background: rgba(155, 99, 242, 0.75);
  box-shadow: none;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-width: 2px;
  border-radius: 16px;
  font-size: 18px;
}

.action-card strong {
  font-size: 16px;
  line-height: 1.15;
}

.action-card small {
  margin-top: 4px;
  font-size: 12px;
}

.card-action {
  font-size: 16px;
  opacity: 0.72;
}

.content-section {
  margin-top: 44px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2,
.contact-strip h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.news-grid {
  gap: 14px;
}

.news-card {
  min-height: 190px;
  padding: 18px;
}

.news-card:hover,
.guide-card:hover {
  transform: translateY(-3px);
}

.news-card::before {
  height: 3px;
  opacity: 0.55;
}

.news-meta {
  font-size: 12px;
}

.news-card h3 {
  margin-top: 28px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.12;
}

.news-card p {
  margin: 9px 0 16px;
  font-size: 14px;
}

.guide-grid {
  gap: 14px;
}

.guide-card {
  min-height: 205px;
}

.guide-card strong {
  padding: 20px;
  font-size: clamp(19px, 1.8vw, 24px);
}

.info-guide i {
  font-size: 34px;
}

.contact-strip {
  margin-top: 46px;
  padding: 24px;
}

.install-btn,
.logs-btn {
  display: none !important;
}

.logs-btn.has-new::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.modal.is-open {
  display: flex;
}

.modal-content {
  width: min(100%, 520px);
  overflow: hidden;
  border-color: rgba(101, 223, 255, 0.24);
  animation: riseIn 0.22s ease both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 600;
}

.close-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 25px;
}

.modal-body {
  padding: 22px;
}

.modal-body p {
  margin-top: 0;
  color: var(--muted);
}

.form-stack,
.push-log-list {
  display: grid;
  gap: 12px;
}

textarea,
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(132, 159, 196, 0.24);
  border-radius: 16px;
  color: var(--text);
  background: rgba(8, 15, 26, 0.76);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.login-note {
  padding: 14px;
  border-radius: 16px;
  color: #fff2ca;
  background: rgba(224, 195, 76, 0.12);
  font-size: 13px;
}

.text-link {
  color: var(--cyan);
  font-weight: 600;
}

.push-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.push-log-list li {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.toast-msg {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 200;
  max-width: min(440px, calc(100% - 32px));
  padding: 13px 16px;
  border-radius: 16px;
  color: var(--text);
  background: #111827;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

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

  .status-card,
  .hero-copy {
    min-height: auto;
  }

  .news-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 18% 0%, rgba(101, 223, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #111d2f 0%, #07101d 44%, #05080d 100%);
  }

  .site-shell {
    width: 100%;
    padding: 18px 0 0;
  }

  .site-header {
    position: static;
    width: calc(100% - 34px);
    margin: 0 auto;
    grid-template-columns: 1fr auto;
    min-height: 58px;
    border-radius: 22px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    font-size: 28px;
  }

  .header-actions {
    display: none;
  }

  main {
    padding-top: 22px;
  }

  .hero {
    display: grid;
    gap: 16px;
    padding: 0 0 0;
  }

  .hero-copy,
  .status-card,
  .content-section,
  .contact-strip {
    width: calc(100% - 34px);
    margin-inline: auto;
  }

  .hero-copy {
    min-height: 0;
    padding: 30px 24px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-copy p {
    font-size: 16px;
  }

  .contact-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .status-card {
    padding: 18px;
    border-radius: 26px;
  }

  .action-card {
    grid-template-columns: 66px minmax(0, 1fr) 26px;
    min-height: 112px;
    border-radius: 30px;
    padding: 18px;
  }

  .action-card.selected,
  .action-card:hover {
    transform: none;
  }

  .card-icon {
    width: 64px;
    height: 64px;
  }

  .content-section {
    margin-top: 42px;
  }

  .section-head h2,
  .contact-strip h2 {
    font-size: 30px;
  }

  .news-grid,
  .guide-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 28px 4px 0;
    margin-right: -17px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .news-grid::-webkit-scrollbar,
  .guide-grid::-webkit-scrollbar {
    display: none;
  }

  .news-card,
  .guide-card {
    flex: 0 0 305px;
    min-height: 198px;
    scroll-snap-align: start;
  }

  .contact-strip {
    display: grid;
    padding: 24px;
    margin-bottom: 18px;
  }

  .floating-actions {
    right: 14px;
    bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .notify-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content {
    width: 100%;
    border-radius: 26px 26px 0 0;
  }

  .site-header {
    min-height: 56px;
    border-radius: 18px;
  }

  .brand-mark {
    font-size: 27px;
  }

  main {
    padding-top: 18px;
  }

  .hero {
    gap: 14px;
  }

  .hero-copy {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(32px, 9.8vw, 40px);
    line-height: 1.06;
  }

  .hero-copy p {
    max-width: 34ch;
    font-size: 14px;
    line-height: 1.42;
  }

  .btn {
    min-height: 44px;
  }

  .status-card {
    padding: 16px;
    border-radius: 22px;
  }

  #feed {
    max-height: 106px;
  }

  .action-card {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    min-height: 82px;
    padding: 13px 14px;
    border-radius: 22px;
  }

  .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 17px;
  }

  .action-card strong {
    font-size: 15px;
  }

  .action-card small {
    font-size: 11px;
  }

  .content-section {
    margin-top: 34px;
  }

  .section-head h2,
  .contact-strip h2 {
    font-size: 26px;
  }

  .news-card,
  .guide-card {
    flex-basis: 268px;
    min-height: 170px;
  }

}

/* Premium typography pass: cleaner text, smaller scale, fewer heavy weights. */
body {
  font-size: 15px;
  line-height: 1.5;
}

.brand-mark {
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 600;
}

.section-kicker,
.alert-label,
.news-meta,
.btn,
.modal-header,
.text-link {
  font-weight: 600;
}

.icon-btn,
.notify-btn {
  width: 42px;
  height: 42px;
  font-size: 15px;
}

.hero-copy {
  min-height: 350px;
}

.hero-copy h1 {
  max-width: 17ch;
  font-size: clamp(34px, 3.7vw, 46px);
  font-weight: 600;
  line-height: 1.08;
}

.hero-copy p {
  max-width: 52ch;
  font-size: clamp(14px, 1vw, 15.5px);
  font-weight: 500;
  line-height: 1.5;
}

.btn {
  min-height: 42px;
  padding: 0 17px;
  font-size: 13px;
}

.status-card {
  min-height: 350px;
}

.now-row strong {
  font-size: 16px;
  font-weight: 600;
}

.alert-card p {
  font-size: 13px;
  font-weight: 500;
}

.msg .text {
  font-size: 13px;
  font-weight: 500;
}

.msg .time {
  font-size: 11px;
}

.service-status-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  border: 1px solid color-mix(in srgb, var(--service-color, var(--cyan)) 34%, transparent);
  border-radius: 20px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(16, 31, 50, 0.78), rgba(7, 14, 25, 0.86)),
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--service-color, var(--cyan)) 16%, transparent), transparent 34%);
}

.service-status-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.service-status-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--service-color, var(--cyan)) 44%, transparent);
  border-radius: 15px;
  color: var(--service-color, var(--cyan));
  background: rgba(7, 16, 29, 0.82);
}

.service-status-row strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 560;
}

.service-status-row p {
  margin: 3px 0 0;
  color: rgba(244, 247, 251, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.service-incident-strip {
  display: grid;
  gap: 7px;
}

.service-incident-strip button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid rgba(132, 159, 196, 0.12);
  border-radius: 14px;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
}

.service-incident-strip span,
.service-incident-strip small {
  color: rgba(244, 247, 251, 0.5);
  font-size: 10.5px;
}

.service-incident-strip strong {
  color: rgba(244, 247, 251, 0.9);
  font-size: 12.5px;
  font-weight: 540;
}

.action-card {
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  min-height: 82px;
  padding: 13px 14px;
}

.card-icon {
  width: 46px;
  height: 46px;
  font-size: 16px;
}

.action-card strong {
  font-size: 14px;
  font-weight: 600;
}

.action-card small {
  font-size: 11px;
  font-weight: 500;
}

.card-action {
  font-size: 14px;
}

.section-head h2,
.contact-strip h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.12;
}

.news-card {
  min-height: 170px;
}

.news-card[role="button"] {
  cursor: pointer;
}

.news-card[role="button"]:focus-visible {
  outline: 2px solid rgba(143, 234, 255, 0.7);
  outline-offset: 3px;
}

.news-card.is-media-missing .news-card-frame {
  display: none;
}

.news-card h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 600;
  line-height: 1.18;
}

.news-card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.guide-card {
  min-height: 184px;
}

.guide-card strong {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  line-height: 1.18;
}

.modal-header {
  padding: 16px 20px;
}

.modal-body,
textarea,
input {
  font-size: 14px;
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .brand-mark {
    font-size: 25px;
  }

  .hero-copy {
    padding: 22px 20px;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(28px, 8.6vw, 34px);
    line-height: 1.1;
  }

  .hero-copy p {
    font-size: 13px;
    line-height: 1.48;
  }

  .btn {
    min-height: 42px;
    font-size: 13px;
  }

  .now-row strong {
    font-size: 13px;
  }

  .action-card {
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    min-height: 74px;
    padding: 12px;
    border-radius: 20px;
  }

  .card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 15px;
  }

  .action-card strong {
    font-size: 13px;
  }

  .section-head h2,
  .contact-strip h2 {
    font-size: 23px;
  }

  .news-card,
  .guide-card {
    flex-basis: 250px;
    min-height: 156px;
  }

}

/* Header and section-scroll refinement. */
.hero,
.content-section,
.contact-strip {
  scroll-margin-top: 104px;
}

.status-card {
  align-content: start;
  max-height: min(620px, calc(100vh - 128px));
  overflow-y: auto;
  scrollbar-color: rgba(138, 220, 241, 0.35) transparent;
  scrollbar-width: thin;
}

.status-card .now-row {
  margin-top: 4px;
}

.status-card::-webkit-scrollbar {
  width: 6px;
}

.status-card::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(138, 220, 241, 0.28);
}

#feed {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.msg {
  width: 100%;
  animation: none;
}

@media (max-width: 720px) {
  .status-card {
    max-height: 420px;
  }
}

/* First-screen action layout: primary buttons stay immediately reachable. */
.hero {
  grid-template-areas:
    "copy status"
    "actions actions";
  gap: 14px 20px;
  padding-top: 24px;
}

.hero-copy {
  grid-area: copy;
  min-height: 292px;
  padding: clamp(24px, 3.2vw, 36px);
}

.status-card {
  grid-area: status;
  min-height: 292px;
  max-height: 292px;
  padding: 18px;
}

.hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(31px, 3.25vw, 42px);
}

.hero-copy p {
  max-width: 50ch;
  margin-top: 12px;
}

.action-card {
  grid-template-columns: 40px minmax(0, 1fr) 14px;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 15px;
}

.action-card strong {
  font-size: 13px;
}

.action-card small {
  font-size: 10.5px;
}

.card-action {
  font-size: 13px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.82fr);
    grid-template-areas:
      "copy status"
      "actions actions";
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "actions"
      "status";
  }

  .status-card {
    max-height: 260px;
  }
}

@media (max-width: 960px) {
  .action-card {
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 68px;
    padding: 8px 6px;
    text-align: center;
  }

  .action-card strong {
    max-width: 100%;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.08;
    white-space: normal;
  }

  .action-card small,
  .card-action {
    display: none;
  }

  .card-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  .hero {
    gap: 12px;
  }

  .hero-copy {
    min-height: 0;
    padding: 22px;
  }

  .hero-copy h1 {
    max-width: 14ch;
    font-size: clamp(27px, 8.4vw, 33px);
  }

  .action-card {
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 64px;
    padding: 8px 4px;
    text-align: center;
  }

  .card-icon {
    width: 30px;
    height: 30px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 13px;
  }

  .action-card strong {
    max-width: 100%;
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.05;
    white-space: normal;
  }

  .action-card small,
  .card-action {
    display: none;
  }

  .status-card {
    max-height: 238px;
  }
}

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

/* Header action bar: replaces the old text navigation. */
.site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
}

.header-quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(104px, 1fr));
  gap: 9px;
  min-width: 0;
}

.header-quick-actions .action-card {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  grid-template-columns: 32px minmax(0, 1fr) 13px;
  gap: 9px;
  border-radius: 17px;
}

.header-quick-actions .action-card > span:not(.card-icon) {
  min-width: 0;
}

.header-quick-actions .card-icon {
  width: 32px;
  height: 32px;
  border-width: 1px;
  border-radius: 11px;
  font-size: 13px;
}

.header-quick-actions .action-card strong {
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.header-quick-actions .card-action {
  font-size: 12px;
}

.chatbot-unread-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 1px solid rgba(3, 16, 24, 0.18);
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, #9ef7ff, #60efc4);
  box-shadow: 0 0 0 4px rgba(96, 239, 196, 0.12), 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.chatbot-unread-badge[hidden] {
  display: none;
}

.action-card.has-unread {
  border-color: rgba(96, 239, 196, 0.5);
  box-shadow: 0 0 0 1px rgba(96, 239, 196, 0.18), 0 16px 42px rgba(0, 0, 0, 0.28);
}

.action-card.has-unread .card-icon {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

body[data-quick-actions-style="compact"] .header-quick-actions {
  grid-template-columns: repeat(5, minmax(86px, 1fr));
  gap: 7px;
}

body[data-quick-actions-style="compact"] .header-quick-actions .action-card {
  min-height: 42px;
  padding: 6px 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  border-radius: 14px;
}

body[data-quick-actions-style="compact"] .header-quick-actions .card-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 12px;
}

body[data-quick-actions-style="compact"] .header-quick-actions .action-card strong {
  font-size: 12px;
}

body[data-quick-actions-style="compact"] .header-quick-actions .card-action,
body[data-quick-actions-style="minimal"] .header-quick-actions .card-action {
  display: none;
}

body[data-quick-actions-style="minimal"] .site-header {
  grid-template-columns: auto auto minmax(0, 1fr);
}

body[data-quick-actions-style="minimal"] .header-quick-actions {
  display: flex;
  justify-content: flex-start;
  gap: 7px;
}

body[data-quick-actions-style="minimal"] .header-quick-actions .action-card {
  width: auto;
  min-height: 42px;
  padding: 6px;
  grid-template-columns: 30px;
  border-radius: 999px;
}

body[data-quick-actions-style="minimal"] .header-quick-actions .action-card > span:not(.card-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-quick-actions-style="minimal"] .header-quick-actions .card-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

body[data-quick-actions-style="minimal"] .header-actions {
  justify-content: flex-end;
}

.hero {
  grid-template-areas: "copy status";
}

.hero-copy {
  grid-area: copy;
}

.status-card {
  grid-area: status;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-quick-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-quick-actions-style="minimal"] .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body[data-quick-actions-style="minimal"] .header-quick-actions {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
  }

  body[data-quick-actions-style="minimal"] .header-actions {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .header-actions {
    display: flex;
  }

  .header-quick-actions {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: hidden;
  }

  .header-quick-actions .action-card {
    grid-template-columns: 1fr;
    place-items: center;
    min-width: 0;
    min-height: 56px;
    padding: 7px 3px;
    text-align: center;
  }

  .header-quick-actions .card-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
  }

  .header-quick-actions .action-card strong {
    margin-top: 3px;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .header-quick-actions .card-action {
    display: none;
  }

  body[data-quick-actions-style="minimal"] .site-header {
    grid-template-columns: 1fr auto;
  }

  body[data-quick-actions-style="minimal"] .header-quick-actions {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-quick-actions-style="minimal"] .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-areas:
      "copy"
      "status";
  }
}

/* Content polish: quieter section rhythm after removing large section titles. */
main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 0;
}

.featured-post-section {
  order: 1;
}

.news-section {
  order: 2;
}

.guides-section {
  order: 3;
}

.contact-strip {
  order: 4;
}

body[data-section-order="guides-news-contact"] .guides-section {
  order: 1;
}

body[data-section-order="guides-news-contact"] .featured-post-section {
  order: 2;
}

body[data-section-order="guides-news-contact"] .news-section {
  order: 3;
}

body[data-section-order="guides-news-contact"] .contact-strip {
  order: 4;
}

body[data-section-order="contact-news-guides"] .contact-strip {
  order: 1;
}

body[data-section-order="contact-news-guides"] .featured-post-section {
  order: 2;
}

body[data-section-order="contact-news-guides"] .news-section {
  order: 3;
}

body[data-section-order="contact-news-guides"] .guides-section {
  order: 4;
}

body[data-section-order="news-contact-guides"] .featured-post-section {
  order: 1;
}

body[data-section-order="news-contact-guides"] .news-section {
  order: 2;
}

body[data-section-order="news-contact-guides"] .contact-strip {
  order: 3;
}

body[data-section-order="news-contact-guides"] .guides-section {
  order: 4;
}

.quiet-section {
  position: relative;
  margin-top: clamp(30px, 4vw, 48px);
}

body[data-section-spacing="tight"] .quiet-section,
body[data-section-spacing="tight"] .featured-post-section,
body[data-section-spacing="tight"] .contact-strip {
  margin-top: clamp(18px, 2.6vw, 30px);
}

body[data-section-spacing="airy"] .quiet-section,
body[data-section-spacing="airy"] .featured-post-section,
body[data-section-spacing="airy"] .contact-strip {
  margin-top: clamp(44px, 5.8vw, 72px);
}

body[data-section-spacing="tight"] .content-section,
body[data-section-spacing="tight"] .contact-strip {
  padding: clamp(20px, 3vw, 30px);
}

body[data-section-spacing="airy"] .content-section,
body[data-section-spacing="airy"] .contact-strip {
  padding: clamp(32px, 5vw, 54px);
}

.quiet-section .section-head {
  margin-bottom: 12px;
}

.quiet-section .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(143, 234, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.quiet-section .section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0.82;
}

.featured-post-section {
  margin-top: clamp(30px, 4vw, 50px);
}

.featured-post {
  --card-color: var(--cyan);
  --card-surface-color: var(--panel);
  --card-media-fit: cover;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 20px;
  align-items: stretch;
  min-height: 222px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(143, 234, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--card-color), transparent 72%), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--card-surface-color), rgba(18, 31, 50, 0.96) 46%), rgba(7, 13, 24, 0.94));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.featured-post::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--card-color), var(--purple));
  opacity: 0.78;
}

.featured-post-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
}

.featured-post h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.featured-post p {
  max-width: 720px;
  margin: 0;
  color: rgba(244, 247, 251, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.featured-post .btn {
  justify-self: start;
  margin-top: 4px;
}

.featured-post-media {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(143, 234, 255, 0.14);
  border-radius: 22px;
  background: rgba(5, 10, 18, 0.48);
}

.featured-post-media img {
  width: 100%;
  height: 100%;
  object-fit: var(--card-media-fit, cover);
  opacity: 0.82;
  filter: saturate(0.95) contrast(1.04);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-post[data-media-fit="contain"] .featured-post-media img,
.featured-post[data-media-fit="portrait"] .featured-post-media img {
  padding: 8px;
  object-fit: contain;
}

.featured-post-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(143, 234, 255, 0.18);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.9);
  background: rgba(5, 10, 18, 0.68);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
}

.featured-post.is-media-missing {
  grid-template-columns: 1fr;
}

.featured-post.is-media-missing .featured-post-media {
  display: none;
}

.news-grid {
  gap: 16px;
}

.news-card {
  min-height: 174px;
  padding: 18px;
  border-color: rgba(132, 159, 196, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(101, 223, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(17, 29, 47, 0.9), rgba(7, 13, 24, 0.92));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.news-card::before {
  height: 3px;
  opacity: 0.72;
}

.news-meta {
  color: rgba(244, 247, 251, 0.58);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card h3 {
  margin-top: 26px;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.16;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  color: rgba(244, 247, 251, 0.67);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.46;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card .btn {
  min-height: 34px;
  padding-inline: 13px;
  border-color: rgba(101, 223, 255, 0.18);
  background: rgba(17, 31, 50, 0.78);
  font-size: 12px;
}

.guide-grid {
  gap: 16px;
}

.guide-card {
  min-height: 194px;
  border-color: rgba(132, 159, 196, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.guide-card img {
  opacity: 0.58;
  filter: saturate(0.92) contrast(1.06);
}

.guide-card::after {
  inset: 22% 0 0;
  background: linear-gradient(180deg, transparent, rgba(3, 6, 11, 0.86));
}

.guide-card strong {
  padding: 18px;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.15;
}

.info-guide {
  background:
    radial-gradient(circle at 74% 8%, rgba(101, 223, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(18, 31, 50, 0.88), rgba(7, 13, 24, 0.92));
}

.info-guide i {
  font-size: 32px;
  opacity: 0.88;
}

.contact-actions .btn.ghost {
  border-color: rgba(143, 234, 255, 0.22);
  color: rgba(244, 247, 251, 0.86);
  background: rgba(18, 31, 50, 0.72);
}

.contact-actions .btn.ghost:hover {
  border-color: rgba(143, 234, 255, 0.48);
  background: rgba(25, 43, 67, 0.9);
}

.news-card-frame {
  position: relative;
  width: calc(100% + 36px);
  height: 118px;
  margin: -18px -18px 14px;
  overflow: hidden;
  border-bottom: 1px solid rgba(143, 234, 255, 0.12);
}

.news-card.is-hero .news-card-frame,
.news-card.is-slideshow .news-card-frame {
  height: 138px;
}

.news-card.is-compact .news-card-frame {
  height: 92px;
}

.news-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.95) contrast(1.04);
  transition: opacity 0.28s ease, transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-preview-slideshow].is-preview-changing {
  opacity: 0.52;
  transform: scale(1.025);
}

.news-card-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(143, 234, 255, 0.18);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.9);
  background: rgba(5, 10, 18, 0.68);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
}

.content-preview-dots {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(143, 234, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.56);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.content-preview-dots span {
  position: static;
  width: 5px;
  height: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.34);
  box-shadow: none;
}

.content-preview-dots span.is-active {
  width: 17px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.content-preview-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  overflow: hidden;
  background: rgba(244, 247, 251, 0.08);
}

.content-preview-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform-origin: left center;
  animation: previewProgress var(--preview-slide-ms, 5200ms) linear forwards;
}

@keyframes previewProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

#feed .text strong {
  display: block;
  margin-bottom: 3px;
  color: rgba(244, 247, 251, 0.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Admin-driven frontend designer options */
body[data-theme-preset="arctic"] {
  --text: #f7fbff;
  --muted: rgba(234, 247, 255, 0.7);
  --faint: rgba(234, 247, 255, 0.46);
  --danger: #ff9bab;
}

body[data-theme-preset="royal"] {
  --text: #f8f4ff;
  --muted: rgba(248, 244, 255, 0.68);
  --faint: rgba(248, 244, 255, 0.44);
  --danger: #ff9bbf;
}

body[data-theme-preset="emerald"] {
  --text: #f4fff9;
  --muted: rgba(235, 255, 247, 0.68);
  --faint: rgba(235, 255, 247, 0.44);
  --danger: #ff9f9f;
}

body[data-theme-preset="mono"] {
  --text: #f4f7fb;
  --muted: rgba(230, 237, 247, 0.66);
  --faint: rgba(230, 237, 247, 0.42);
  --danger: #f4a6b4;
}

body[data-background-style="minimal"] {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 54%, var(--bg-3) 100%);
}

body[data-background-style="minimal"]::before {
  opacity: 0;
}

body[data-background-style="spotlight"] {
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--cyan), transparent 78%), transparent 38%),
    radial-gradient(circle at 100% 22%, color-mix(in srgb, var(--purple), transparent 88%), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
}

body[data-background-style="mesh"] {
  background:
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--cyan), transparent 82%), transparent 28%),
    radial-gradient(circle at 84% 0%, color-mix(in srgb, var(--purple), transparent 82%), transparent 32%),
    radial-gradient(circle at 66% 82%, color-mix(in srgb, var(--mint), transparent 86%), transparent 34%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-3) 100%);
}

body[data-page-width="wide"] {
  --max: 1440px;
}

body[data-page-width="immersive"] {
  --max: 1640px;
}

body[data-font-scale="compact"] {
  font-size: 14px;
}

body[data-font-scale="compact"] .hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 68px);
}

body[data-font-scale="compact"] .hero-copy p {
  font-size: 16px;
  line-height: 1.5;
}

body[data-font-scale="compact"] .section-head h2,
body[data-font-scale="compact"] .contact-strip h2 {
  font-size: clamp(25px, 3.2vw, 40px);
}

body[data-font-scale="compact"] .action-card strong {
  font-size: 18px;
}

body[data-font-scale="compact"] .news-card h3,
body[data-font-scale="compact"] .guide-card strong {
  font-size: 17px;
}

body[data-font-scale="large"] {
  font-size: 16px;
}

body[data-font-scale="large"] .hero-copy h1 {
  font-size: clamp(52px, 7vw, 94px);
}

body[data-font-scale="large"] .hero-copy p {
  font-size: clamp(18px, 1.7vw, 23px);
}

body[data-font-scale="large"] .action-card strong {
  font-size: 23px;
}

body[data-brand-style="minimal"] .brand-mark {
  font-weight: 560;
}

body[data-brand-style="minimal"] .brand-mark span {
  text-shadow: none;
}

body[data-brand-style="minimal"] .brand-mark,
body[data-brand-style="minimal"] .section-kicker,
body[data-brand-style="minimal"] .quiet-section .section-kicker {
  letter-spacing: 0.02em;
}

body[data-brand-style="glow"] .brand-mark span {
  color: var(--cyan);
  text-shadow:
    0 0 16px color-mix(in srgb, var(--cyan), transparent 30%),
    0 0 42px color-mix(in srgb, var(--purple), transparent 52%);
}

body[data-brand-style="glow"] .site-header {
  border-color: color-mix(in srgb, var(--cyan), transparent 62%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--cyan), transparent 86%),
    0 24px 70px rgba(0, 0, 0, 0.36);
}

body[data-card-depth="flat"] {
  --shadow: none;
}

body[data-card-depth="flat"] .hero-copy,
body[data-card-depth="flat"] .status-card,
body[data-card-depth="flat"] .action-card,
body[data-card-depth="flat"] .news-card,
body[data-card-depth="flat"] .featured-post,
body[data-card-depth="flat"] .guide-card,
body[data-card-depth="flat"] .contact-strip {
  box-shadow: none;
  background: rgba(12, 22, 36, 0.78);
}

body[data-card-depth="cinematic"] {
  --shadow: 0 34px 96px rgba(0, 0, 0, 0.5);
}

body[data-card-depth="cinematic"] .hero-copy,
body[data-card-depth="cinematic"] .status-card,
body[data-card-depth="cinematic"] .action-card,
body[data-card-depth="cinematic"] .news-card,
body[data-card-depth="cinematic"] .featured-post,
body[data-card-depth="cinematic"] .guide-card,
body[data-card-depth="cinematic"] .contact-strip {
  border-color: color-mix(in srgb, var(--cyan), transparent 78%);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--cyan), transparent 88%), transparent 34%),
    linear-gradient(180deg, rgba(22, 37, 60, 0.94), rgba(6, 12, 22, 0.96));
}

body[data-feed-style="rich"] .feed-panel {
  padding: 12px;
  border: 1px solid rgba(143, 234, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--cyan), transparent 88%), transparent 34%),
    rgba(5, 10, 18, 0.34);
}

body[data-feed-style="rich"] #feed {
  max-height: 244px;
}

body[data-feed-style="rich"] .msg {
  border-color: color-mix(in srgb, var(--cyan), transparent 78%);
}

body[data-feed-style="ticker"] .feed-panel {
  padding: 10px 12px;
  border: 1px solid rgba(143, 234, 255, 0.1);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.28);
}

body[data-feed-style="ticker"] #feed {
  gap: 7px;
  max-height: 142px;
}

body[data-feed-style="ticker"] .msg {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
}

body[data-feed-style="ticker"] .msg .text {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-feed-style="ticker"] .msg .time {
  margin-top: 3px;
  font-size: 11px;
}

body[data-card-radius="sharp"] {
  --radius: 14px;
}

body[data-card-radius="round"] {
  --radius: 32px;
}

body[data-card-radius="sharp"] .site-header,
body[data-card-radius="sharp"] .hero-copy,
body[data-card-radius="sharp"] .status-card,
body[data-card-radius="sharp"] .action-card,
body[data-card-radius="sharp"] .news-card,
body[data-card-radius="sharp"] .featured-post,
body[data-card-radius="sharp"] .guide-card,
body[data-card-radius="sharp"] .contact-strip,
body[data-card-radius="sharp"] .modal-content {
  border-radius: 14px;
}

body[data-card-radius="round"] .site-header,
body[data-card-radius="round"] .hero-copy,
body[data-card-radius="round"] .status-card,
body[data-card-radius="round"] .action-card,
body[data-card-radius="round"] .news-card,
body[data-card-radius="round"] .featured-post,
body[data-card-radius="round"] .guide-card,
body[data-card-radius="round"] .contact-strip,
body[data-card-radius="round"] .modal-content {
  border-radius: 30px;
}

body[data-header-style="solid"] .site-header {
  background: rgba(7, 13, 23, 0.96);
  backdrop-filter: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body[data-header-style="compact"] .site-header {
  min-height: 56px;
  padding-block: 8px;
}

body[data-header-style="compact"] .action-card {
  min-height: 74px;
  padding: 12px;
}

body[data-header-style="compact"] .card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 16px;
}

body[data-button-style="soft"] .btn,
body[data-button-style="soft"] .content-filter-bar button,
body[data-button-style="soft"] .icon-btn,
body[data-button-style="soft"] .notify-btn {
  border-radius: 16px;
}

body[data-button-style="square"] .btn,
body[data-button-style="square"] .content-filter-bar button,
body[data-button-style="square"] .icon-btn,
body[data-button-style="square"] .notify-btn,
body[data-button-style="square"] .card-icon {
  border-radius: 10px;
}

body[data-hero-layout="stacked"] .hero {
  grid-template-columns: 1fr;
}

body[data-hero-layout="stacked"] .hero-copy,
body[data-hero-layout="stacked"] .status-card {
  min-height: 310px;
}

body[data-hero-layout="stacked"] .status-card {
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  align-items: start;
}

body[data-hero-layout="compact"] .hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  padding-top: 24px;
}

body[data-hero-layout="compact"] .hero-copy,
body[data-hero-layout="compact"] .status-card {
  min-height: 315px;
  padding: 20px;
}

body[data-hero-layout="compact"] .hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(32px, 3.6vw, 46px);
}

body[data-news-layout="magazine"] .news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-news-layout="magazine"] .news-card:first-child {
  grid-column: span 2;
  min-height: 278px;
}

body[data-news-layout="magazine"] .news-card:first-child .news-card-frame {
  height: 168px;
}

body[data-news-layout="magazine"] .news-card:first-child h3 {
  font-size: clamp(22px, 2.3vw, 32px);
}

body[data-news-layout="list"] .news-grid {
  grid-template-columns: 1fr;
}

body[data-news-layout="list"] .news-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 156px;
}

body[data-news-layout="list"] .news-card:not(:has(.news-card-frame)) {
  grid-template-columns: 1fr;
}

body[data-news-layout="list"] .news-card .news-card-frame {
  grid-row: 1 / span 5;
  width: 100%;
  height: calc(100% + 36px);
  min-height: 156px;
  margin: -18px 0 -18px -18px;
  border-right: 1px solid rgba(143, 234, 255, 0.12);
  border-bottom: 0;
  border-radius: 0;
}

body[data-motion-level="calm"]::before {
  animation-duration: 34s;
  opacity: 0.28;
}

body[data-motion-level="calm"] .reveal-item {
  transition-duration: 0.38s;
  filter: none;
}

body[data-motion-level="off"] *,
body[data-motion-level="off"] *::before,
body[data-motion-level="off"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

body[data-motion-level="off"] .reveal-item {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.content-modal .modal-content {
  width: min(820px, calc(100vw - 28px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  scrollbar-color: rgba(143, 234, 255, 0.32) transparent;
  scrollbar-width: thin;
}

.content-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding-block: 18px;
}

.content-modal .modal-content::-webkit-scrollbar {
  width: 7px;
}

.content-modal .modal-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(143, 234, 255, 0.28);
}

.content-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid rgba(143, 234, 255, 0.1);
  background: rgba(10, 18, 31, 0.88);
  backdrop-filter: blur(18px);
}

.content-modal-gallery {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(143, 234, 255, 0.14);
  border-radius: 22px;
  background: rgba(5, 10, 18, 0.62);
}

.content-modal-gallery[data-media-fit="contain"],
.content-modal-gallery[data-media-fit="portrait"] {
  background:
    radial-gradient(circle at 50% 45%, rgba(143, 234, 255, 0.1), transparent 54%),
    rgba(3, 8, 15, 0.82);
}

.content-modal-gallery.is-image-missing::before {
  content: "";
  display: block;
  width: 100%;
  height: min(44vw, 310px);
  min-height: 210px;
  background:
    radial-gradient(circle at 22% 18%, rgba(143, 234, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(18, 32, 53, 0.86), rgba(6, 11, 19, 0.95));
}

.content-modal-gallery.is-image-missing .content-gallery-nav,
.content-modal-gallery.is-image-missing .content-gallery-dots,
.content-modal-gallery.is-image-missing .content-gallery-progress {
  display: none;
}

.content-modal-image {
  width: 100%;
  height: min(44vw, 310px);
  min-height: 210px;
  object-fit: var(--card-media-fit, cover);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-modal-gallery[data-media-fit="portrait"] .content-modal-image,
.content-modal-gallery[data-media-fit="contain"] .content-modal-image {
  padding: 10px;
}

.content-modal-image.is-changing {
  opacity: 0.62;
  transform: scale(1.018);
}

.content-modal-gallery.is-autoplay .content-modal-image {
  will-change: transform, opacity;
}

.content-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(143, 234, 255, 0.2);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.92);
  background: rgba(5, 10, 18, 0.64);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.content-gallery-nav.prev {
  left: 12px;
}

.content-gallery-nav.next {
  right: 12px;
}

.content-gallery-nav:hover {
  border-color: rgba(143, 234, 255, 0.46);
  background: rgba(18, 31, 50, 0.86);
}

.content-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.6);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.content-gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.34);
}

.content-gallery-dots button.is-active {
  width: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.content-gallery-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 48px;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.16);
}

.content-gallery-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform-origin: left center;
}

@keyframes galleryProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.content-modal h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.content-modal-lead {
  margin: 14px 0 0;
  color: rgba(244, 247, 251, 0.76);
  font-size: 16px;
  line-height: 1.55;
}

.content-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.content-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(143, 234, 255, 0.1);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.66);
  background: rgba(7, 13, 23, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 470;
}

.content-modal-meta i {
  color: rgba(143, 234, 255, 0.82);
  font-size: 10.5px;
}

.content-modal-body {
  margin-top: 18px;
  color: rgba(244, 247, 251, 0.7);
  font-size: 15px;
  line-height: 1.65;
}

.content-modal-body p {
  margin: 0 0 12px;
}

.content-modal-body h3 {
  margin: 22px 0 8px;
  color: rgba(244, 247, 251, 0.92);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.content-modal-body ul,
.content-modal-body ol {
  display: grid;
  gap: 7px;
  margin: 12px 0 16px;
  padding-left: 20px;
}

.content-modal-body li {
  padding-left: 4px;
}

.content-modal-body blockquote {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  color: rgba(244, 247, 251, 0.82);
  background: rgba(143, 234, 255, 0.08);
}

.content-modal-body a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 234, 255, 0.32);
}

.content-modal-body strong {
  color: rgba(244, 247, 251, 0.92);
  font-weight: 600;
}

.content-block-image {
  margin: 16px 0;
}

.content-block-image img,
.content-block-gallery img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.content-block-image figcaption {
  margin-top: 7px;
  color: rgba(244, 247, 251, 0.52);
  font-size: 12px;
}

.content-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 10px;
}

.content-block-gallery img {
  min-height: 126px;
  max-height: 178px;
}

.content-block-cta,
.content-block-video,
.content-block-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(143, 234, 255, 0.18);
  border-radius: 14px;
  color: rgba(244, 247, 251, 0.92) !important;
  background: linear-gradient(135deg, rgba(101, 223, 255, 0.16), rgba(96, 239, 196, 0.09));
  text-decoration: none;
}

.content-block-alert {
  border-left-color: var(--cyan);
}

.content-block-alert.is-warning {
  border-left-color: var(--yellow);
  background: rgba(248, 193, 74, 0.08);
}

.content-block-alert.is-danger {
  border-left-color: var(--danger);
  background: rgba(255, 120, 150, 0.08);
}

.content-block-faq {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(143, 234, 255, 0.12);
  border-radius: 16px;
  background: rgba(10, 18, 30, 0.55);
}

.content-block-faq summary {
  cursor: pointer;
  color: rgba(244, 247, 251, 0.9);
  font-weight: 560;
}

.content-related {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid rgba(143, 234, 255, 0.08);
  border-radius: 16px;
  background: rgba(8, 15, 27, 0.54);
}

.content-related[hidden] {
  display: none;
}

.content-related-head span {
  color: rgba(244, 247, 251, 0.7);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.content-related-list button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(136, 160, 194, 0.08);
  border-radius: 13px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.content-related-list button:hover,
.content-related-list button:focus-visible {
  border-color: rgba(143, 234, 255, 0.28);
  background: rgba(143, 234, 255, 0.075);
  transform: translateY(-1px);
  outline: none;
}

.content-related-list strong {
  overflow: hidden;
  color: rgba(244, 247, 251, 0.9);
  font-size: 12.7px;
  font-weight: 540;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-related-list small {
  overflow: hidden;
  color: rgba(244, 247, 251, 0.46);
  font-size: 10.8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-comments {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(136, 160, 194, 0.12);
}

.post-comments[hidden] {
  display: none;
}

.post-comment-form[hidden],
.post-comment-login[hidden],
.post-comment-form-actions small[hidden] {
  display: none;
}

.post-comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.post-comments-head span {
  color: rgba(244, 247, 251, 0.92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.post-comments-head small {
  display: inline-grid;
  min-width: 28px;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.74);
  background: rgba(136, 160, 194, 0.1);
  font-size: 12px;
}

.post-comments-list {
  display: grid;
  gap: 10px;
  max-height: 270px;
  overflow: auto;
  padding-right: 4px;
}

.post-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(10, 18, 30, 0.72);
}

.post-comment.is-pinned {
  background:
    linear-gradient(135deg, rgba(101, 223, 255, 0.12), rgba(96, 239, 196, 0.06)),
    rgba(10, 18, 30, 0.78);
}

.post-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(143, 234, 255, 0.18);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.9);
  background: linear-gradient(145deg, rgba(53, 214, 255, 0.16), rgba(147, 100, 223, 0.14));
  font-size: 13px;
  font-weight: 600;
}

.post-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.post-comment-meta strong {
  color: rgba(244, 247, 251, 0.92);
  font-size: 13px;
  font-weight: 500;
}

.post-comment-meta span {
  color: rgba(244, 247, 251, 0.46);
  font-size: 12px;
}

.post-comment-meta em {
  padding: 2px 7px;
  border-radius: 999px;
  color: rgba(221, 252, 255, 0.88);
  background: rgba(101, 223, 255, 0.12);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.post-comment p {
  margin: 5px 0 0;
  color: rgba(244, 247, 251, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.post-comment-empty {
  padding: 14px;
  border-radius: 16px;
  color: rgba(244, 247, 251, 0.54);
  background: rgba(10, 18, 30, 0.48);
  font-size: 13px;
}

.post-comment-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.post-comment-form textarea {
  min-height: 86px;
  resize: vertical;
  border: 1px solid rgba(136, 160, 194, 0.14);
  border-radius: 16px;
  color: rgba(244, 247, 251, 0.9);
  background: rgba(7, 12, 21, 0.82);
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.post-comment-form textarea:focus {
  border-color: rgba(143, 234, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(53, 214, 255, 0.1);
}

.post-comment-form-actions,
.post-comment-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.post-comment-form-actions small,
.post-comment-login span {
  color: rgba(244, 247, 251, 0.5);
  font-size: 12px;
}

.post-comment-form .btn,
.post-comment-login .btn {
  min-height: 40px;
  padding: 0 15px;
  font-size: 13px;
}

.post-comment-form button:disabled {
  opacity: 0.62;
  cursor: wait;
}

@media (max-width: 720px) {
  .quiet-section {
    margin-top: 30px;
  }

  .featured-post-section {
    width: calc(100% - 34px);
    margin: 30px auto 0;
  }

  .featured-post {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 17px;
    border-radius: 22px;
  }

  .featured-post-media {
    min-height: 156px;
    order: -1;
  }

  .featured-post h2 {
    font-size: 23px;
  }

  .featured-post p {
    font-size: 14px;
  }

  .quiet-section .section-head {
    display: grid;
    gap: 12px;
    width: calc(100% - 34px);
    margin-inline: auto;
  }

  .content-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .content-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .content-filter-bar button {
    flex: 0 0 auto;
  }

  .content-more-row {
    display: grid;
    width: calc(100% - 34px);
    margin-inline: auto;
  }

  .news-grid,
  .guide-grid {
    gap: 12px;
  }

  .news-card,
  .guide-card {
    flex-basis: 258px;
    min-height: 164px;
    border-radius: 20px;
  }

  .news-card {
    padding: 15px;
  }

  .news-card h3 {
    margin-top: 22px;
    font-size: 16px;
  }

  .guide-card strong {
    padding: 16px;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .post-comments {
    margin-top: 20px;
  }

  .post-comments-list {
    max-height: 230px;
  }

  .post-comment-form-actions,
  .post-comment-login {
    align-items: stretch;
    flex-direction: column;
  }

  .post-comment-form .btn,
  .post-comment-login .btn {
    width: 100%;
  }
}

/* Compact comment experience inside post details */
.post-comments {
  margin-top: 18px;
  padding-top: 14px;
}

.post-comments-head {
  margin-bottom: 9px;
}

.post-comments-head span {
  font-size: 12.8px;
  font-weight: 520;
}

.post-comments-head small {
  min-width: 24px;
  min-height: 21px;
  font-size: 10.8px;
}

.post-comments-list {
  gap: 7px;
  max-height: min(28dvh, 214px);
}

.post-comment {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border-radius: 14px;
}

.post-comment-avatar {
  width: 28px;
  height: 28px;
  font-size: 11.5px;
}

.post-comment-meta {
  gap: 6px;
}

.post-comment-meta strong {
  font-size: 12px;
  font-weight: 520;
}

.post-comment-meta span {
  font-size: 10.8px;
}

.post-comment-meta em {
  display: none;
}

.post-comment p {
  margin-top: 4px;
  font-size: 12.2px;
  line-height: 1.4;
}

.post-comment-empty {
  padding: 11px;
  font-size: 12px;
}

.post-comment-form {
  gap: 8px;
  margin-top: 10px;
}

.post-comment-form textarea {
  min-height: 64px;
  border-radius: 14px;
  font-size: 12.7px;
  line-height: 1.42;
}

.post-comment-form-actions small,
.post-comment-login span {
  font-size: 11px;
}

.post-comment-form-actions small.is-feedback {
  color: rgba(143, 234, 255, 0.86);
}

.post-comment-form .btn,
.post-comment-login .btn {
  min-height: 35px;
  padding: 0 12px;
  font-size: 12px;
}

@media (max-width: 720px) {
  body[data-hero-layout="stacked"] .status-card,
  body[data-hero-layout="compact"] .status-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body[data-hero-layout="compact"] .hero-copy h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  body[data-news-layout="list"] .news-card {
    grid-template-columns: 1fr;
  }

  body[data-news-layout="list"] .news-card .news-card-frame {
    width: calc(100% + 36px);
    height: 118px;
    min-height: 118px;
    margin: -18px -18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 234, 255, 0.12);
  }

  .post-comments {
    margin-top: 16px;
    padding-top: 12px;
  }

  .content-modal-meta span {
    min-height: 27px;
    padding-inline: 9px;
    font-size: 10.8px;
  }

  .content-related {
    padding: 11px;
    border-radius: 16px;
  }

  .content-related-list {
    grid-template-columns: 1fr;
  }

  .post-comments-list {
    max-height: min(29dvh, 176px);
  }

  .post-comment {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px;
  }

  .post-comment-avatar {
    width: 24px;
    height: 24px;
    font-size: 10.5px;
  }

  .post-comment p {
    font-size: 11.8px;
    line-height: 1.38;
  }
}

/* Final mobile guardrail: compact, readable, no accidental horizontal overflow. */
@media (max-width: 540px) {
  :root {
    --mobile-gutter: 14px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 20% -4%, color-mix(in srgb, var(--cyan), transparent 82%), transparent 34%),
      linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 48%, var(--bg-3) 100%);
  }

  body::before {
    opacity: 0.16;
  }

  .site-shell {
    width: 100%;
    max-width: 100%;
    padding: calc(10px + env(safe-area-inset-top)) 0 22px;
  }

  .site-header {
    position: sticky;
    top: 8px;
    z-index: 80;
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px;
    border-radius: 20px;
    background: rgba(7, 13, 23, 0.94);
    backdrop-filter: blur(16px) saturate(1.1);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    font-size: 25px;
    line-height: 1;
  }

  .header-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .header-quick-actions,
  body[data-quick-actions-style="compact"] .header-quick-actions,
  body[data-quick-actions-style="minimal"] .header-quick-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    overflow: visible;
  }

  .header-quick-actions .action-card,
  body[data-quick-actions-style="compact"] .header-quick-actions .action-card,
  body[data-quick-actions-style="minimal"] .header-quick-actions .action-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    justify-items: stretch;
    place-items: center start;
    width: 100%;
    min-height: 48px;
    padding: 8px 9px;
    border-radius: 15px;
    text-align: left;
  }

  .header-quick-actions .action-card > span:not(.card-icon),
  body[data-quick-actions-style="minimal"] .header-quick-actions .action-card > span:not(.card-icon) {
    position: static;
    width: auto;
    height: auto;
    min-width: 0;
    overflow: hidden;
    clip: auto;
    white-space: normal;
  }

  .header-quick-actions .card-icon,
  body[data-quick-actions-style="compact"] .header-quick-actions .card-icon,
  body[data-quick-actions-style="minimal"] .header-quick-actions .card-icon {
    width: 30px;
    height: 30px;
    border-width: 1px;
    border-radius: 10px;
    font-size: 12px;
  }

  .header-quick-actions .action-card strong,
  body[data-quick-actions-style="compact"] .header-quick-actions .action-card strong {
    display: block;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 560;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-quick-actions .card-action {
    display: none;
  }

  .motion-ready .site-header .action-card.reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
    transition-delay: 0ms;
  }

  main {
    padding-top: 14px;
  }

  .hero {
    gap: 12px;
    padding-top: 0;
  }

  .hero-copy,
  .status-card,
  .content-section,
  .contact-strip,
  .featured-post-section {
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-copy {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 21px;
  }

  .section-kicker,
  .alert-label {
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  .hero-copy h1,
  body[data-font-scale="compact"] .hero-copy h1,
  body[data-font-scale="large"] .hero-copy h1 {
    max-width: 13ch;
    margin-top: 9px;
    font-size: clamp(30px, 9.4vw, 38px);
    line-height: 1.07;
  }

  .hero-copy p,
  body[data-font-scale="compact"] .hero-copy p,
  body[data-font-scale="large"] .hero-copy p {
    max-width: 34ch;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .status-card {
    gap: 12px;
    max-height: 58dvh;
    min-height: auto;
    padding: 14px;
    border-radius: 21px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .now-row {
    gap: 8px;
  }

  .now-row strong {
    font-size: 16px;
  }

  .progress {
    height: 5px;
  }

  .service-status-panel,
  .alert-card,
  .feed-panel {
    max-width: 100%;
  }

  .alert-card {
    padding: 12px;
    border-radius: 15px;
  }

  .alert-card p,
  .msg .text {
    font-size: 12.8px;
    line-height: 1.38;
  }

  #feed {
    max-height: none;
    padding-right: 2px;
  }

  .msg {
    width: 100%;
    padding: 11px 12px;
    border-radius: 14px;
  }

  .msg .time {
    margin-top: 4px;
    font-size: 10.8px;
  }

  .featured-post-section,
  .quiet-section,
  .content-section,
  .contact-strip {
    margin-top: 26px;
  }

  .section-head,
  .quiet-section .section-head {
    width: 100%;
    gap: 10px;
    margin-bottom: 12px;
  }

  .content-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content-filter-bar button {
    flex: 0 0 auto;
    min-height: 31px;
    padding-inline: 10px;
    font-size: 10.8px;
  }

  .news-grid,
  .guide-grid {
    width: 100%;
    margin-right: 0;
    padding-right: 0;
    gap: 10px;
  }

  .news-card,
  .guide-card {
    flex: 0 0 min(252px, 78vw);
    min-height: 156px;
    border-radius: 18px;
  }

  .news-card h3 {
    font-size: 15.5px;
    line-height: 1.18;
  }

  .news-card p {
    font-size: 12.4px;
    line-height: 1.4;
  }

  .featured-post {
    padding: 14px;
    border-radius: 19px;
  }

  .featured-post-media {
    min-height: 136px;
    border-radius: 16px;
  }

  .featured-post h2 {
    font-size: 20px;
    line-height: 1.12;
  }

  .featured-post p {
    font-size: 12.8px;
    line-height: 1.42;
  }

  .content-more-row {
    width: 100%;
    gap: 9px;
    margin-top: 12px;
    font-size: 11.5px;
  }

  .contact-strip {
    gap: 14px;
    padding: 18px;
    border-radius: 21px;
  }

  .contact-strip h2 {
    font-size: 24px;
  }

  .btn {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12.8px;
  }

  .floating-actions {
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  .notify-btn {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-content,
  .content-modal .modal-content {
    width: 100%;
    max-width: 100%;
    max-height: min(88dvh, calc(100dvh - 18px));
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .content-modal {
    align-items: flex-end;
    padding-block: 0;
  }

  .content-modal .modal-body {
    padding: 16px;
  }

  .content-modal-gallery {
    margin-bottom: 14px;
    border-radius: 17px;
  }

  .content-modal-image,
  .content-modal-gallery.is-image-missing::before {
    height: clamp(174px, 48vw, 230px);
    min-height: 174px;
  }

  .content-modal h2 {
    font-size: 23px;
    line-height: 1.1;
  }

  .content-modal-lead,
  .content-modal-body {
    font-size: 13px;
    line-height: 1.5;
  }

  .content-block-gallery {
    grid-template-columns: 1fr;
  }

  .content-related-list {
    grid-template-columns: 1fr;
  }

  .post-comments-list {
    max-height: min(30dvh, 176px);
  }

  .post-comment-form textarea {
    min-height: 62px;
  }
}

/* Phone polish: denser app-like first viewport for modern mobile devices. */
@media (min-width: 360px) and (max-width: 540px) {
  .header-quick-actions,
  body[data-quick-actions-style="compact"] .header-quick-actions,
  body[data-quick-actions-style="minimal"] .header-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .header-quick-actions .action-card,
  body[data-quick-actions-style="compact"] .header-quick-actions .action-card,
  body[data-quick-actions-style="minimal"] .header-quick-actions .action-card {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .header-quick-actions .card-icon,
  body[data-quick-actions-style="compact"] .header-quick-actions .card-icon,
  body[data-quick-actions-style="minimal"] .header-quick-actions .card-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    font-size: 11px;
  }

  .header-quick-actions .action-card strong,
  body[data-quick-actions-style="compact"] .header-quick-actions .action-card strong {
    font-size: 10.6px;
    line-height: 1.08;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: initial;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .status-card {
    max-height: min(46dvh, 360px);
  }

  .status-card,
  #feed,
  .content-filter-bar,
  .news-grid,
  .guide-grid,
  .modal-content,
  .content-modal .modal-content,
  .post-comments-list {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 380px), (max-height: 720px) {
  .site-shell {
    padding-top: calc(8px + env(safe-area-inset-top));
  }

  .site-header {
    top: 6px;
    gap: 7px;
    padding: 8px;
    border-radius: 18px;
  }

  .brand-mark {
    font-size: 23px;
  }

  .header-actions .icon-btn {
    width: 35px;
    height: 35px;
  }

  main {
    padding-top: 10px;
  }

  .hero-copy {
    padding: 18px 16px;
  }

  .hero-copy h1,
  body[data-font-scale="compact"] .hero-copy h1,
  body[data-font-scale="large"] .hero-copy h1 {
    font-size: clamp(28px, 9vw, 34px);
  }

  .status-card {
    max-height: min(42dvh, 320px);
    padding: 12px;
  }

  .msg {
    padding: 10px;
  }
}

@media (max-width: 359px) {
  .header-quick-actions,
  body[data-quick-actions-style="compact"] .header-quick-actions,
  body[data-quick-actions-style="minimal"] .header-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card labels were removed from the UI, so the title breathes closer to media. */
.news-card h3 {
  margin-top: 18px;
}

.news-card:has(.news-card-frame) h3 {
  margin-top: 14px;
}

/* Mobile feed: system notices become a compact rail so news cards stay in focus. */
@media (max-width: 720px) {
  .status-card {
    max-height: none;
    overflow: visible;
  }

  .feed-panel {
    max-width: 100%;
    overflow: visible;
  }

  #feed {
    display: flex;
    gap: 10px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 2px 8px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }

  #feed::-webkit-scrollbar {
    display: none;
  }

  #feed .msg {
    flex: 0 0 min(82vw, 304px);
    width: auto;
    scroll-snap-align: start;
  }

  .news-card h3,
  .news-card:has(.news-card-frame) h3 {
    margin-top: 10px;
  }

  .news-grid,
  .guide-grid,
  .content-filter-bar {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
}

body.chatbot-drawer-open {
  overflow: hidden;
}

/* Premium content cards: media carries 70% of the card, copy stays compact. */
.news-card {
  --news-card-media-ratio: 70%;
  --news-card-copy-ratio: 30%;
  --card-surface-color: var(--panel);
  --card-media-fit: cover;
  background:
    radial-gradient(circle at 86% 0%, color-mix(in srgb, var(--card-color, var(--cyan)), transparent 82%), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-surface-color), rgba(13, 23, 38, 0.88) 46%), rgba(4, 9, 17, 0.94));
}

.news-card:has(.news-card-frame):not(.is-media-missing) {
  display: grid;
  grid-template-rows: var(--news-card-media-ratio) var(--news-card-copy-ratio);
  height: clamp(246px, 26vw, 318px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.news-card:has(.news-card-frame):not(.is-media-missing)::before {
  z-index: 2;
}

.news-card:has(.news-card-frame):not(.is-media-missing) .news-card-frame {
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-bottom: 1px solid rgba(143, 234, 255, 0.12);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--card-color, var(--cyan)), transparent 88%), transparent 56%),
    color-mix(in srgb, var(--card-surface-color), #02060b 44%);
}

.news-card:has(.news-card-frame):not(.is-media-missing) .news-card-media {
  width: 100%;
  height: 100%;
  object-fit: var(--card-media-fit, cover);
}

.news-card[data-media-fit="contain"] .news-card-media,
.news-card[data-media-fit="portrait"] .news-card-media {
  padding: 7px;
  object-fit: contain;
}

.news-card[data-media-fit="portrait"] .news-card-frame {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%),
    color-mix(in srgb, var(--card-surface-color), #02060b 34%);
}

.news-card-copy {
  min-width: 0;
}

.news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy {
  grid-row: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 5px;
  min-height: 0;
  padding: 10px 12px 12px;
  overflow: hidden;
}

.news-card:has(.news-card-frame):not(.is-media-missing) h3,
.news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.16;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card:has(.news-card-frame):not(.is-media-missing) p,
.news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy p {
  margin: 0;
  font-size: 11.4px;
  line-height: 1.32;
  -webkit-line-clamp: 1;
}

.news-card:has(.news-card-frame):not(.is-media-missing) .btn {
  min-height: 28px;
  padding-inline: 10px;
  border-radius: 10px;
  font-size: 10.8px;
}

body[data-news-layout="magazine"] .news-card:first-child:has(.news-card-frame):not(.is-media-missing) {
  height: clamp(292px, 34vw, 382px);
}

body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) {
  grid-template-columns: var(--news-card-media-ratio) var(--news-card-copy-ratio);
  grid-template-rows: 1fr;
  height: clamp(150px, 16vw, 188px);
  min-height: 0;
}

body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-frame {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  margin: 0;
  border-right: 1px solid rgba(143, 234, 255, 0.12);
  border-bottom: 0;
}

body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy {
  grid-column: 2;
  grid-row: 1;
  padding: 12px;
}

@media (max-width: 720px) {
  .news-card:has(.news-card-frame):not(.is-media-missing),
  body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, var(--news-card-media-ratio)) minmax(72px, var(--news-card-copy-ratio));
    height: 260px;
    min-height: 0;
  }

  body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-frame,
  body[data-news-layout="list"] .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy {
    grid-column: 1;
  }

  .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy {
    align-content: start;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 9px 10px 10px;
  }

  .news-card:has(.news-card-frame):not(.is-media-missing) h3,
  .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy h3 {
    font-size: 14.2px;
  }

  .news-card:has(.news-card-frame):not(.is-media-missing) p,
  .news-card:has(.news-card-frame):not(.is-media-missing) .news-card-copy p {
    display: none;
    font-size: 11px;
  }

  .news-card:has(.news-card-frame):not(.is-media-missing) .btn {
    align-self: end;
    min-height: 25px;
    padding-inline: 9px;
    font-size: 10px;
  }
}

.chatbot-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  pointer-events: none;
}

.chatbot-drawer.is-open {
  display: block;
  pointer-events: auto;
}

.chatbot-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chatbot-drawer.is-open .chatbot-drawer-backdrop {
  opacity: 1;
}

.chatbot-drawer-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(520px, calc(100vw - 28px));
  max-width: 100dvw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(132, 159, 196, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(101, 223, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(9, 17, 29, 0.98), rgba(3, 7, 13, 0.995));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.chatbot-drawer-handle {
  display: none;
}

.chatbot-drawer.is-open .chatbot-drawer-panel {
  transform: translateX(0);
}

.chatbot-drawer-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(132, 159, 196, 0.14);
  background: rgba(5, 10, 18, 0.82);
}

.chatbot-drawer-header span {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.chatbot-drawer-header strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: 0;
}

.chatbot-drawer-header small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: rgba(244, 247, 251, 0.55);
  font-size: 10.5px;
  font-weight: 500;
}

.chatbot-drawer-header small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(96, 239, 196, 0.12);
}

.chatbot-drawer-unread {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 7px;
  border: 1px solid rgba(96, 239, 196, 0.2);
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, #9ef7ff, #60efc4);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.chatbot-drawer-unread[hidden] {
  display: none;
}

.chatbot-drawer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chatbot-drawer-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 159, 196, 0.16);
  border-radius: 13px;
  color: rgba(244, 247, 251, 0.86);
  background: rgba(17, 30, 49, 0.78);
  font-size: 13px;
}

.chatbot-drawer-icon:hover {
  color: #031018;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

#chatbotFrame {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border: 0;
  background: #03060b;
  opacity: 1;
  transition: opacity 0.16s ease;
}

.chatbot-drawer.is-loading #chatbotFrame {
  opacity: 0;
}

.chatbot-drawer-loader {
  position: absolute;
  inset: 59px 0 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: rgba(244, 247, 251, 0.72);
  background:
    radial-gradient(circle at 50% 38%, rgba(101, 223, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.72), rgba(3, 7, 13, 0.92));
}

.chatbot-drawer-loader[hidden] {
  display: none;
}

.chatbot-drawer-loader i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 223, 255, 0.22);
  border-radius: 17px;
  color: var(--cyan);
  background: rgba(101, 223, 255, 0.08);
  animation: chatPulse 1.3s ease-in-out infinite;
}

.chatbot-drawer-loader strong {
  color: rgba(244, 247, 251, 0.84);
  font-size: 14px;
  font-weight: 560;
}

@keyframes chatPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

.chatbot-resume {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 92;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px 0 12px;
  border: 1px solid rgba(101, 223, 255, 0.22);
  border-radius: 999px;
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}

.chatbot-resume[hidden] {
  display: none;
}

.chatbot-resume i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 16, 24, 0.14);
}

.chatbot-resume:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.chatbot-resume.has-unread::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(3, 16, 24, 0.82);
  border-radius: 50%;
  background: var(--mint);
}

@media (max-width: 720px) {
  .chatbot-drawer-panel {
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100dvw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    transform: translateY(100%);
  }

  .chatbot-drawer-handle {
    display: none;
  }

  .chatbot-drawer.is-open .chatbot-drawer-panel {
    transform: none;
  }

  .chatbot-drawer-header {
    min-height: 48px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  }

  #chatbotFrame {
    height: 100%;
    min-height: 0;
  }

  .chatbot-drawer-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .chatbot-drawer-loader {
    inset: 58px 0 0;
  }

  .chatbot-resume {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 42px;
    padding-inline: 10px 12px;
    font-size: 12px;
  }
}
