:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5f6d7d;
  --line: #d7e0ea;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --navy: #081B3A;
  --navy-2: #12306f;
  --teal: #146c80;
  --mint: #1e9a7a;
  --gold: #FFC928;
  --red: #b8202d;
  --blue: #1E90FF;
  --electric: #00AEEF;
  --shadow: 0 18px 55px rgba(11, 31, 85, .14);
}

.data-safety-reminder,
.ai-output-note {
  margin: 0;
  color: #44516a;
  font-size: 13px;
  line-height: 1.5;
}

.data-safety-reminder,
.ai-output-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid #f6c028;
  border-radius: 6px;
  background: rgba(246, 192, 40, 0.12);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 16, 38, 0.68);
  overflow-y: auto;
}

.legal-modal-card {
  width: min(720px, 100%);
  margin: auto;
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(0, 174, 239, .22);
  border-radius: 18px;
  background: #ffffff;
  color: #10203f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.legal-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(11, 31, 85, 0.12);
}

.legal-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.legal-modal-body {
  padding: 20px;
}

.legal-modal-body p {
  margin: 0 0 14px;
  color: #30405e;
  line-height: 1.6;
}

.about-modal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, .3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 248, 255, .96)),
    #fff;
}

.about-modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/cyber-sentinel-guardian.png") right -70px bottom -120px / min(420px, 58vw) auto no-repeat;
  opacity: .11;
  pointer-events: none;
}

.about-modal-card > * {
  position: relative;
  z-index: 1;
}

.about-modal-body {
  max-width: none;
}

.about-modal-body p {
  color: #1c2d49;
  font-size: 1rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Poppins, "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 99;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--gold);
  color: #081833;
  font-weight: 800;
  transition: transform .16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.file-picker-button:focus-visible {
  outline: 3px solid rgba(242, 189, 46, .62);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: max(10px, env(safe-area-inset-top)) calc(clamp(16px, 3vw, 44px) + env(safe-area-inset-right)) 10px calc(clamp(16px, 3vw, 44px) + env(safe-area-inset-left));
  background: linear-gradient(90deg, rgba(8, 27, 58, .96), rgba(18, 48, 111, .94));
  border-bottom: 4px solid var(--gold);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(11, 31, 85, .2);
}

.account-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.account-box span {
  max-width: 170px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.login-button:hover {
  background: var(--gold);
  color: #081833;
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 900;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  flex: 0 0 auto;
}

.brand-logo-button,
.brand-home-button {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.brand-logo-button {
  flex: 0 0 auto;
  border-radius: 14px;
}

.brand-logo-button:hover .brand-shield,
.brand-logo-button:focus-visible .brand-shield {
  filter: drop-shadow(0 0 14px rgba(0, 174, 239, .45));
}

.brand-logo-button:focus-visible,
.brand-home-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.brand-shield {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
}

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
}

.brand-text strong {
  color: #fff;
  font-size: clamp(1.28rem, 1.75vw, 1.62rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: .95;
  white-space: nowrap;
}

.brand-text span {
  display: block;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.75rem, .92vw, .9rem);
  font-weight: 700;
  line-height: 1.12;
}

.brand-home-button:hover strong,
.brand-home-button:hover span {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .2));
}

.sentinel-about-bubble {
  position: fixed;
  top: 96px;
  left: clamp(16px, 4vw, 56px);
  z-index: 10000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(0, 174, 239, .32);
  border-radius: 16px;
  background: rgba(8, 27, 58, .96);
  color: #fff;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .28), 0 0 28px rgba(0, 174, 239, .16);
  backdrop-filter: blur(14px);
}

.sentinel-about-bubble::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 28px;
  width: 18px;
  height: 18px;
  border-left: 1px solid rgba(0, 174, 239, .32);
  border-top: 1px solid rgba(0, 174, 239, .32);
  background: rgba(8, 27, 58, .96);
  transform: rotate(45deg);
}

.sentinel-about-bubble[hidden] {
  display: none;
}

.sentinel-about-bubble strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.sentinel-about-bubble p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .92rem;
  line-height: 1.5;
}

.sentinel-about-bubble button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.brand.brand-fallback::before {
  content: "CS";
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(0, 174, 239, .42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(0, 174, 239, .2), rgba(7, 28, 68, .92));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 174, 239, .18);
}

.tabs {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.tab:hover,
.tab.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #081833;
  box-shadow: 0 8px 24px rgba(255, 201, 40, .22);
  transform: translateY(-1px);
}

main section {
  padding: 64px clamp(18px, 4vw, 64px);
}

.app-view[hidden] {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  background:
    radial-gradient(circle at 76% 44%, rgba(0, 174, 239, .3), transparent 30%),
    radial-gradient(circle at 12% 18%, rgba(30, 144, 255, .22), transparent 28%),
    linear-gradient(110deg, rgba(8, 27, 58, .97), rgba(14, 57, 104, .88), rgba(40, 70, 125, .74)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='760' viewBox='0 0 1200 760'%3E%3Crect width='1200' height='760' fill='%23eef7f5'/%3E%3Cg fill='none' stroke='%230c5966' stroke-width='2' opacity='.32'%3E%3Cpath d='M60 120h250v150H60zM390 95h320v230H390zM780 130h340v170H780zM130 410h310v210H130zM520 430h220v150H520zM820 390h270v240H820z'/%3E%3Cpath d='M180 195h125M420 170h250M820 205h225M170 470h220M550 500h145M855 460h190M300 270l90 55M710 325l70-25M440 515l80-20M740 505l80-45'/%3E%3Ccircle cx='180' cy='195' r='10' fill='%2352b69a'/%3E%3Ccircle cx='670' cy='170' r='10' fill='%23d2932f'/%3E%3Ccircle cx='1045' cy='205' r='10' fill='%23b93636'/%3E%3Ccircle cx='390' cy='470' r='10' fill='%23315b9b'/%3E%3Ccircle cx='695' cy='500' r='10' fill='%2352b69a'/%3E%3Ccircle cx='1045' cy='460' r='10' fill='%23b93636'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.2));
  pointer-events: none;
  animation: cyberGridDrift 18s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 10% 8% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(0, 174, 239, .16);
  filter: blur(60px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: clamp(0px, 2vw, 28px);
}

.hero-guardian-wrapper {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-guardian {
  position: relative;
  z-index: 2;
  width: min(560px, 95%);
  height: auto;
  filter: drop-shadow(0 24px 76px rgba(0, 180, 255, .34));
  animation: sentinelFloat 4s ease-in-out infinite, sentinelGlow 5s ease-in-out infinite;
}

.hero-guardian-wrapper.guardian-fallback::after {
  content: "CS";
  position: relative;
  z-index: 2;
  display: grid;
  width: min(330px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(0, 180, 255, .38);
  border-radius: 30% 30% 42% 42%;
  background:
    linear-gradient(145deg, rgba(0, 174, 239, .18), rgba(6, 22, 54, .94)),
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .16), transparent 36%);
  color: #fff;
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  box-shadow: 0 24px 76px rgba(0, 180, 255, .28), inset 0 0 40px rgba(0, 174, 239, .14);
  animation: sentinelFloat 4s ease-in-out infinite, sentinelGlow 5s ease-in-out infinite;
}

.guardian-hologram {
  position: absolute;
  inset: 8% -6% 4%;
  z-index: 1;
  border: 1px solid rgba(0, 180, 255, .24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 180, 255, .1), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.08) 1px, transparent 1px, transparent 9px);
  box-shadow: inset 0 0 34px rgba(0, 180, 255, .12), 0 0 42px rgba(0, 180, 255, .1);
  opacity: .72;
  pointer-events: none;
  animation: sentinelScan 5.5s linear infinite;
}

.sentinel-hero-brief {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  width: min(360px, 90%);
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(0, 180, 255, .32);
  border-radius: 999px;
  background: rgba(5, 20, 48, .86);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 114, 255, .24);
  backdrop-filter: blur(10px);
}

.sentinel-hero-brief.is-speaking {
  animation: sentinelSpeak .7s ease;
}

@keyframes sentinelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sentinelGlow {
  0%, 100% { filter: drop-shadow(0 20px 60px rgba(0, 180, 255, .24)); }
  50% { filter: drop-shadow(0 24px 68px rgba(0, 200, 255, .48)); }
}

@keyframes sentinelScan {
  0% { background-position: 0 -80px, 0 0; }
  100% { background-position: 0 220px, 0 80px; }
}

@keyframes sentinelSpeak {
  0% { transform: translateX(-50%) scale(.98); opacity: .82; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

@keyframes cyberGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 112px 56px, 112px 56px; }
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.hero-eyebrow {
  color: var(--electric);
  font-size: .98rem;
  letter-spacing: .08em;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1;
}

.lead {
  max-width: 640px;
  color: rgba(255, 255, 255, .84);
  font-size: 1.3rem;
  line-height: 1.55;
}

.hero-support {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions,
.tool-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-actions .button,
.hero-actions button {
  min-height: 58px;
  padding-inline: 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 174, 239, .18);
}

.hero-actions .action-button-rich {
  display: inline-flex;
  min-width: min(100%, 260px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  text-align: left;
}

.hero-actions .action-button-rich span {
  font-size: .98rem;
  line-height: 1.1;
}

.hero-actions .action-button-rich small {
  max-width: 260px;
  color: rgba(255, 255, 255, .82);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-trust-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-trust-cards article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}

.hero-trust-cards span,
.instruction-box {
  color: #78e7ff;
  font-weight: 900;
}

.hero-trust-cards strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  line-height: 1.25;
}

.hero-trust-cards p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
  line-height: 1.45;
}

.instruction-box {
  padding: 14px;
  border: 1px solid rgba(0, 174, 239, .28);
  border-radius: 8px;
  background: rgba(0, 174, 239, .09);
  color: #123a62;
  line-height: 1.55;
}

.quick-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.quick-question-grid button {
  min-height: 44px;
  border: 1px solid rgba(30, 144, 255, .25);
  border-radius: 8px;
  background: #f7fbff;
  color: #11335c;
  font-size: .88rem;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.quick-question-grid button:hover {
  border-color: rgba(0, 174, 239, .62);
  background: #ecf8ff;
}

.button.primary,
button.primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(0, 174, 239, .62);
  background: linear-gradient(135deg, #007bff, #00c8ff);
  color: #fff;
}

.button.primary::after,
button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.28), transparent);
  transition: transform .5s ease;
}

.button.primary:hover::after,
button.primary:hover::after {
  transform: translateX(120%);
}

.button.ghost,
button.ghost {
  border-color: rgba(0, 174, 239, .5);
  background: rgba(255,255,255,.08);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.tool-hub-launcher {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 5px;
  width: min(480px, 100%);
  margin-top: 22px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 174, 239, .42);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 174, 239, .18), rgba(255, 255, 255, .08)),
    rgba(255, 255, 255, .1);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16), inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-hub-launcher::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--electric), var(--blue), var(--gold));
}

.tool-hub-launcher::after {
  content: "Open";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #081833;
  font-size: 12px;
  font-weight: 900;
}

.tool-hub-launcher:hover,
.tool-hub-launcher:focus-visible {
  border-color: rgba(0, 174, 239, .8);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .2), 0 0 28px rgba(0, 174, 239, .18);
  outline: none;
  transform: translateY(-2px);
}

.tool-hub-launcher span {
  padding-right: 70px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
}

.tool-hub-launcher small {
  max-width: 340px;
  padding-right: 70px;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}

.language-switch button {
  min-height: 34px;
  padding: 0 11px;
  background: transparent;
  color: #fff;
}

.language-switch button.is-active {
  background: var(--gold);
  color: #081833;
}

.button,
button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary,
button {
  background: var(--gold);
  color: #111;
}

button:hover,
.button:hover,
.file-picker-button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.tabs .tab {
  background: transparent;
  color: rgba(255, 255, 255, .82);
}

.tabs .tab:hover,
.tabs .tab.is-active {
  background: var(--gold);
  color: #081833;
}

.ghost,
.secondary {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
}

.secondary {
  color: var(--ink);
  background: #e9f1ef;
  border-color: var(--line);
}

.signal-panel {
  min-height: 460px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-top: 5px solid var(--gold);
  background: rgba(6, 18, 50, .76);
  box-shadow: var(--shadow);
}

.signal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-header strong { font-size: 46px; color: #ffd27f; }

.radar {
  position: relative;
  display: grid;
  place-items: center;
  height: 260px;
  margin: 24px 0;
  border: 1px solid rgba(255, 255, 255, .2);
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.radar::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 2px solid rgba(242, 189, 46, .9);
  border-radius: 50%;
}

.radar span {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ffd27f;
  border-radius: 50%;
}

.radar span:nth-child(1) { transform: translate(-54px, -40px); }
.radar span:nth-child(2) { transform: translate(70px, 42px); background: #ff8c8c; }
.radar span:nth-child(3) { transform: translate(12px, -88px); background: #7fe0c6; }

.signal-list p { color: rgba(255,255,255,.82); line-height: 1.45; }

.live-dashboard {
  padding-top: 28px;
  background:
    radial-gradient(circle at 88% 5%, rgba(0, 174, 239, .12), transparent 28%),
    linear-gradient(180deg, #f4f7fb, #edf4fb);
}

.community-alert-rotator {
  overflow: hidden;
  border: 1px solid rgba(185, 28, 28, .22);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(127, 29, 29, .16), 0 8px 26px rgba(11, 31, 85, .08);
}

.community-alert-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px clamp(18px, 4vw, 28px);
  background: linear-gradient(135deg, #7f1d1d, #b91c1c 52%, #dc2626);
  color: #fff;
}

.community-alert-title-row,
.community-alert-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.community-alert-title-row h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
}

.community-alert-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .55);
  animation: alertPulse 1.8s ease-out infinite;
}

.community-alert-category,
.community-alert-status-row strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .85rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.community-alert-status-row {
  font-size: .9rem;
  font-weight: 800;
}

.community-alert-status-row strong {
  border-radius: 10px;
  background: rgba(17, 24, 39, .32);
}

.community-alert-body {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  background: #fff;
}

.community-alert-body article {
  min-width: 0;
  padding: 20px 18px;
  border-right: 1px solid rgba(185, 28, 28, .12);
  border-bottom: 1px solid rgba(185, 28, 28, .1);
  background: linear-gradient(180deg, #fff, #fffafa);
}

.community-alert-body article:last-child {
  border-right: 0;
}

.community-alert-body span {
  display: block;
  margin-bottom: 9px;
  color: #991b1b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.community-alert-body p,
.community-alert-body li {
  color: #1f2937;
  font-size: .92rem;
  line-height: 1.45;
}

.community-alert-body p {
  margin: 0;
}

.community-alert-body ul {
  margin: 0;
  padding-left: 18px;
}

.community-alert-body li + li {
  margin-top: 4px;
}

.community-alert-body article:first-child p {
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.community-alert-action {
  box-shadow: inset 4px 0 0 rgba(220, 38, 38, .18);
}

.community-alert-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 28px);
  border-top: 1px solid rgba(185, 28, 28, .12);
  background: #fff5f5;
}

.community-alert-footer p {
  margin: 0;
  color: #374151;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
}

.community-alert-progress {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #fee2e2;
}

.community-alert-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #991b1b, #dc2626);
  transition: width 1s linear;
}

@keyframes alertPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.dashboard-grid,
.panic-grid,
.home-feature-strip,
.case-workspace {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.home-feature-strip,
.case-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-grid article,
.panic-grid article,
.home-feature-strip article {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 36px rgba(11, 31, 85, .09);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-grid article:hover,
.home-feature-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 174, 239, .38);
  box-shadow: 0 22px 48px rgba(11, 31, 85, .14);
}

.ai-toolkit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ai-toolkit-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.community-forum-preview,
.tool-hub-section {
  margin-top: 30px;
}

.about-home {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px) clamp(18px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(8, 27, 58, .96), rgba(20, 108, 128, .9)),
    var(--navy);
  color: #fff;
}

.about-home-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}

.about-home-intro h2 {
  max-width: 700px;
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.about-home-intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.6;
}

.about-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.about-home-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-home-details article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
  backdrop-filter: blur(14px);
}

.about-home-details span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-home-details strong {
  display: block;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.25;
}

.about-home-details p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

.community-forum-preview {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(0, 174, 239, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(0, 174, 239, .12), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.95), rgba(246,251,255,.86));
  box-shadow: 0 16px 36px rgba(11, 31, 85, .1);
}

.forum-preview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
}

.forum-preview-copy h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
}

.forum-preview-copy p:not(.eyebrow) {
  max-width: 430px;
  margin: 0 0 14px;
  color: #44516a;
  font-size: .94rem;
  line-height: 1.45;
}

.forum-preview-copy .button {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  font-size: .9rem;
}

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

.forum-preview-grid article {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 31, 85, .08);
}

.forum-preview-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--electric);
}

.forum-preview-grid h3 {
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: .98rem;
  line-height: 1.2;
}

.forum-preview-grid p {
  margin: 0;
  color: #44516a;
  font-size: .84rem;
  line-height: 1.42;
}

.compact-heading {
  margin-bottom: 16px;
}

.premium-card-grid,
.tool-card-grid {
  display: grid;
  gap: 16px;
}

.premium-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tool-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.premium-card-grid article,
.tool-card-grid button {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(245,251,255,.78));
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(11, 31, 85, .1);
  text-align: left;
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.premium-card-grid article::before,
.tool-card-grid button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--electric), var(--blue), var(--gold));
}

.premium-card-grid article:hover,
.tool-card-grid button:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, .48);
  box-shadow: 0 24px 54px rgba(11, 31, 85, .16), 0 0 28px rgba(0, 174, 239, .12);
}

.premium-card-grid span,
.tool-card-grid span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 94, 200, .2);
}

.premium-card-grid h3,
.tool-card-grid strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.premium-card-grid p,
.tool-card-grid small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.policy-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.policy-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

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

.guest-ad {
  border-style: dashed;
  background: linear-gradient(145deg, #fffdf5, #ffffff);
}

.ad-slot {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px dashed #c6d4e5;
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
}

.ad-slot span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff3cd;
  color: #765300;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  color: var(--navy);
}

.ad-slot p {
  margin: 0;
  color: var(--muted);
}

.ad-slot-top {
  margin-bottom: 18px;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
}

.ad-slot-mobile {
  display: none;
  margin-top: 16px;
}

.ad-slot-feed {
  margin-top: 18px;
}

body:not([data-account-type="guest"]) [data-ad-slot] {
  display: none;
}

.threat-level {
  position: relative;
  border-top: 5px solid var(--red) !important;
}

.pulse-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(184, 32, 45, .12);
}

.threat-level h2,
.ph-map h2 {
  margin: 0 0 12px;
  font-size: 38px;
}

.map-panel {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(145deg, #102a5c, #146c80);
  background-size: 28px 28px, 28px 28px, auto;
}

.map-panel::before {
  content: "PH";
  position: absolute;
  inset: 42px auto auto 44%;
  color: rgba(255,255,255,.34);
  font-size: 90px;
  font-weight: 900;
}

.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 14px rgba(242, 189, 46, .2), 0 0 34px rgba(242, 189, 46, .95);
}

.hotspot.luzon { top: 34%; left: 48%; }
.hotspot.visayas { top: 56%; left: 55%; background: #ff6b6b; }
.hotspot.mindanao { top: 72%; left: 47%; background: #59d6aa; }

.map-line {
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 8px;
}

.trust-stats {
  display: grid;
  gap: 12px;
}

.trust-stats div {
  padding: 12px;
  border-radius: 8px;
  background: #f4f8ff;
}

.trust-stats strong,
.trust-stats span {
  display: block;
}

.trust-stats strong {
  color: var(--navy);
  font-size: 32px;
}

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

.panic-grid strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

.intelligence-heading {
  align-items: center;
}

.heading-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.heading-title-row h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}

.heading-title-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
}

.heading-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy), var(--teal));
  border: 2px solid rgba(242, 189, 46, .72);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(11, 31, 85, .18);
}

.checker-grid,
.report-layout,
.template-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-scan-dashboard {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.scan-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

.scan-metrics div,
.report-quality,
.ai-suggestion-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  padding: 12px;
}

.scan-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.scan-metrics span,
.report-quality,
.ai-suggestion-box {
  color: var(--muted);
  font-size: 14px;
}

.ai-suggestion-box {
  margin-bottom: 12px;
  border-left: 3px solid var(--gold);
}

.tool-panel,
.output-panel,
.cards article,
.timeline article,
.source-grid article,
.roadmap-grid article,
.emergency-strip article,
.account-features article,
.pricing-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.tool-panel,
.output-panel {
  padding: 20px;
}

.wide { grid-column: 1 / -1; }

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h3 { margin: 0 0 8px; }

.tag {
  flex: none;
  padding: 5px 8px;
  border-radius: 99px;
  background: #edf3ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

label,
.field-label {
  display: block;
  margin: 14px 0 7px;
  color: #334649;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c7d4d2;
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea { resize: vertical; }

textarea.has-long-paste {
  max-height: 220px;
  overflow: auto;
}

.long-paste-chip {
  margin: -4px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 174, 239, .22);
  border-radius: 8px;
  background: #eef8fb;
  color: #34445c;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.community-forum {
  background:
    radial-gradient(circle at top right, rgba(0, 174, 239, .08), transparent 32%),
    var(--paper);
}

.forum-disclaimer {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 174, 239, .22);
  border-left: 4px solid var(--electric);
  border-radius: 8px;
  background: #fff;
  color: #41516b;
  line-height: 1.55;
}

.forum-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
}

.forum-controls label {
  display: none;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  align-items: start;
}

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

.awareness-topic-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.awareness-topic-grid h3 {
  margin-top: 10px;
}

.awareness-topic-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.forum-composer textarea {
  min-height: 142px;
}

.forum-private-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0, 174, 239, .2);
  border-radius: 8px;
  background: #f8fbff;
}

.forum-private-toggle input {
  width: auto;
}

.forum-rule-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #44516a;
  line-height: 1.45;
}

.forum-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.forum-badges span,
.forum-post-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf6ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.forum-post-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.forum-post-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.forum-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--electric);
}

.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.forum-post-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.forum-post-card p {
  margin: 0 0 12px;
  color: #40506a;
  line-height: 1.55;
}

.forum-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forum-post-actions button,
.forum-moderation-panel summary {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.forum-moderation-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.moderation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.moderation-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.file-picker {
  display: grid;
  grid-template-columns: max-content minmax(12rem, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  min-width: 0;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.file-picker-button:hover {
  background: #ffd76d;
}

.file-picker-name {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.attachment-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}

.attachment-tools .file-picker {
  grid-column: 1;
  grid-row: 1;
  margin-top: 0;
}

.attachment-tools > button {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: start;
}

.attachment-tools .data-safety-reminder {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
}

.result {
  min-height: 84px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f9fbff;
  line-height: 1.45;
}

.result strong { display: block; margin-bottom: 5px; }
.muted { color: var(--muted); }
.result.warning { border-color: #dfb464; background: #fff8e9; }
.result.danger { border-color: #d77373; background: #fff0f0; color: #7a1d1d; }
.risk-low { border-color: #81c9a9; background: #f0fbf5; }
.risk-medium { border-color: #dfb464; background: #fff8e9; }
.risk-high { border-color: #d77373; background: #fff0f0; }

.analysis-result pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

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

.cards article {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.cards article > .tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
}

.cards article > h3,
.alert-card > h3,
.source-card > h3 {
  min-height: 2.55em;
  margin-bottom: 10px;
  line-height: 1.18;
}

.cards p,
.timeline p,
.source-grid p,
.roadmap-grid p,
.account-features p,
.pricing-grid p,
footer p {
  color: var(--muted);
  line-height: 1.5;
}

.app-view[data-view="intel"] .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.professional-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.professional-card-grid article {
  min-height: 210px;
  border-top: 3px solid rgba(0, 174, 239, .7);
}

.assessment-card .evidence-strength {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 174, 239, .25);
  border-radius: 8px;
  background: #f5fbff;
}

.strength-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8f2;
}

.strength-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e90ff, #00aeef);
}

.incident-summary-pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 14px;
  border-radius: 8px;
  background: #f7fafc;
  color: #13253a;
  font-family: inherit;
  line-height: 1.55;
}

.account-features,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.account-features article,
.pricing-grid article {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.feature-lock::before {
  content: "Locked";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff3cd;
  color: #765300;
  font-size: 11px;
  font-weight: 700;
}

.feature-lock.is-unlocked::before {
  content: "Unlocked";
  background: #e6f8ef;
  color: #12633e;
}

.gated-action {
  margin-top: 8px;
}

.auth-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(4, 12, 31, .36);
}

.auth-dialog::backdrop {
  background: rgba(4, 12, 31, .58);
}

.auth-card {
  padding: 22px;
}

.auth-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.auth-head h2 {
  margin: 0;
}

.icon-close {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: #eef3fb;
  color: var(--navy);
}

.auth-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 8px;
  padding: 5px;
  border-radius: 8px;
  background: #eef3fb;
}

.auth-mode-tabs button {
  min-height: 36px;
  padding: 0 8px;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
}

.auth-mode-tabs button.is-active {
  background: var(--gold);
  color: #081833;
}

.auth-benefits {
  margin-top: 14px;
  padding: 13px;
  border-radius: 8px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.auth-benefits strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-field[hidden] {
  display: none;
}

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

.account-status-panel,
.plan-compare {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.account-status-panel article,
.plan-compare article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.account-status-panel article {
  border-left: 5px solid var(--gold);
}

.resources-center,
.report-center {
  animation: viewIn .18s ease-out;
}

.awareness-playbook,
.assessment-capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.assessment-capability-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.awareness-playbook article,
.assessment-capability-strip article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(11, 31, 85, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(11, 31, 85, .08);
}

.awareness-playbook article {
  border-top: 4px solid var(--teal);
}

.awareness-playbook article:nth-child(2) {
  border-top-color: var(--gold);
}

.awareness-playbook article:nth-child(3) {
  border-top-color: var(--navy);
}

.awareness-playbook article:nth-child(4) {
  border-top-color: var(--red);
}

.awareness-playbook span {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef8fb;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 1000;
}

.awareness-playbook h3,
.assessment-capability-strip strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.awareness-playbook p,
.assessment-capability-strip span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.assessment-capability-strip article {
  min-height: 122px;
  border-left: 4px solid var(--teal);
}

.awareness-action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.section-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(11, 31, 85, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(11, 31, 85, .08);
}

.section-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 174, 239, .42);
  background: #f7fbff;
}

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

.action-guide-grid article {
  display: flex;
  min-height: 232px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(11, 31, 85, .08);
}

.learning-guide-grid article {
  border-top-color: var(--teal);
}

.report-center-grid article:nth-child(3n + 2) {
  border-top-color: var(--gold);
}

.report-center-grid article:nth-child(3n) {
  border-top-color: var(--red);
}

.action-guide-grid .tag {
  min-height: 28px;
}

.action-guide-grid h3 {
  min-height: 2.5em;
  margin: 0;
  line-height: 1.18;
}

.action-guide-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-guide-grid button {
  margin-top: auto;
}

.field-helper {
  margin: -6px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.office-empty-state {
  min-height: 150px;
  justify-content: center;
}

.plan-compare {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-compare article:nth-child(2) {
  border-top: 5px solid var(--teal);
}

.plan-compare article:nth-child(3) {
  border-top: 5px solid var(--gold);
}

.plan-price {
  display: inline-flex;
  margin: 4px 0 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(20, 108, 128, .1);
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.2;
}

.beta-pricing-note {
  margin: -4px 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 201, 40, .14);
  color: #30405e;
  line-height: 1.55;
}

.alert-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(140px, 180px);
  gap: 12px;
  margin-bottom: 14px;
}

.alert-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.alert-toolbar input,
.alert-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.alert-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
}

.alert-summary strong,
.alert-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
}

.alert-summary strong {
  color: var(--navy);
}

.alert-card {
  display: grid;
  align-content: start;
  gap: 10px;
  border-top: 4px solid var(--gold);
}

.alert-card.risk-high { border-top-color: #c84e4e; }
.alert-card.risk-medium { border-top-color: #dfb464; }
.alert-card.risk-low { border-top-color: #46a779; }

.alert-card-head,
.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.alert-card-head {
  align-content: flex-start;
  align-items: flex-start;
  min-height: 64px;
}

.severity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef4ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.alert-meta {
  margin: 0;
  justify-content: flex-start;
}

.alert-meta div {
  min-width: 130px;
}

.alert-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.alert-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.alert-action {
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 160px;
}

.case-assist .disclaimer {
  margin-top: -12px;
}

.case-workspace {
  align-items: start;
}

.case-determination-workspace {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
}

.case-intelligence-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.case-sidebar,
.case-searchbar,
.crime-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.case-sidebar h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.case-folder,
.case-category-list button {
  width: 100%;
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  color: var(--navy);
  text-align: left;
  font-weight: 800;
}

.case-folder.is-active,
.case-category-list button:hover {
  border-color: var(--accent);
  background: #fff7d8;
}

.case-main {
  display: grid;
  gap: 14px;
}

.case-searchbar {
  display: grid;
  gap: 12px;
}

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

.crime-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crime-card h3,
.crime-card h4 {
  margin: 0 0 8px;
  color: var(--navy);
}

.crime-card p,
.crime-card li {
  color: var(--muted);
}

.crime-card ul {
  padding-left: 20px;
}

.case-output {
  min-height: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.compact-case-output {
  min-height: 180px;
}

.case-output-thinking {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff7f7;
  color: #111827;
  box-shadow: 0 10px 24px rgba(127, 29, 29, .08);
}

.case-output-thinking strong {
  color: #991b1b;
}

.case-output-thinking span {
  display: flex;
  gap: 5px;
}

.case-output-thinking i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #dc2626;
  animation: sentinelThinkingDot 1.05s ease-in-out infinite;
}

.case-output-thinking i:nth-child(2) {
  animation-delay: .14s;
}

.case-output-thinking i:nth-child(3) {
  animation-delay: .28s;
}

.case-output-thinking p {
  margin: 0;
  color: #4b5563;
  font-size: .9rem;
}

.case-output-block h3,
.case-output-block h4 {
  margin: 16px 0 8px;
  color: var(--navy);
}

.case-folder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.case-folder-grid article,
.premium-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.case-folder-grid article {
  border-top: 4px solid var(--teal);
}

.premium-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  border-top: 4px solid var(--gold);
}

.premium-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.guest-access-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: start;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(30, 144, 255, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 174, 239, .08), rgba(255, 201, 40, .12)), #fff;
  box-shadow: 0 14px 34px rgba(11, 31, 85, .08);
}

.storage-readiness-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(20, 108, 128, .24);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 31, 85, .08);
}

.storage-readiness-panel h3,
.storage-readiness-panel h4 {
  margin: 4px 0 8px;
  color: var(--navy);
}

.storage-readiness-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.storage-mode-grid article {
  padding: 14px;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  background: #f8fbff;
}

.guest-access-meter h3,
.sponsor-pass-card h3 {
  margin: 4px 0 8px;
  color: var(--navy);
}

.guest-access-meter p,
.sponsor-pass-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.guest-access-meter ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-access-meter li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #23334d;
}

.guest-access-meter li span {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 900;
}

.sponsor-pass-card {
  margin: 12px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 201, 40, .42);
  border-radius: 8px;
  background: #fffaf0;
}

.access-limit-dialog .auth-card {
  max-width: 620px;
}

.legal-sources-admin {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11, 31, 85, .08);
}

.compact-heading {
  margin-bottom: 14px;
}

.legal-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.legal-source-actions button {
  width: auto;
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 13px;
}

.legal-source-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-source-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-source-table th,
.legal-source-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-source-table th {
  background: #f4f8fb;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.legal-source-table tr:last-child td {
  border-bottom: 0;
}

.legal-source-table a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.legal-source-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf7ef;
  color: #166534;
  font-weight: 800;
}

.legal-source-status.failed {
  background: #fff1f2;
  color: #be123c;
}

.legal-source-status.pending {
  background: #fff8db;
  color: #8a5b00;
}

.workspace,
.database,
.reporting,
.guide,
.sources,
.templates,
.trust-center,
.business,
.api-roadmap,
.alerts {
  animation: viewIn .18s ease-out;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.emergency-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.emergency-strip article {
  padding: 16px 18px;
  border-left: 5px solid var(--red);
}

.emergency-strip strong,
.emergency-strip span {
  display: block;
}

.emergency-strip span {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px;
}

.source-grid,
.roadmap-grid,
.trust-center-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.source-grid article,
.roadmap-grid article,
.trust-center-grid article {
  padding: 18px;
}

.osint-heading {
  margin-top: 26px;
}

.osint-resource-grid {
  margin-top: 14px;
}

.osint-resource-card {
  border-top: 4px solid var(--teal);
}

.file-hash-status {
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid #d7e0ea;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f8fbff;
  color: #30405e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.file-hash-status[hidden] {
  display: none;
}

.trust-center {
  position: relative;
  overflow: hidden;
}

.trust-center::before {
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
}

.trust-center-grid {
  margin-top: 18px;
}

.trust-center-grid article {
  min-height: 150px;
  border-top: 4px solid var(--navy);
}

.trust-center-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.trust-center-grid article:nth-child(4) {
  border-top-color: var(--gold);
}

.trust-center-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.trust-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.source-kind {
  display: inline-block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.source-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--red));
}

.source-card:hover {
  transform: translateY(-3px);
  border-color: #b9c9dd;
  box-shadow: 0 18px 44px rgba(11, 31, 85, .13);
}

.source-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  margin-bottom: 16px;
}

.source-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #ecf3ff, #ffffff);
  border: 1px solid #d7e3f3;
  box-shadow: inset 0 -8px 16px rgba(11, 31, 85, .05);
}

.source-icon::before {
  color: var(--navy);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.source-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #ecf3ff, #ffffff);
  border: 1px solid #d7e3f3;
  box-shadow: inset 0 -8px 16px rgba(11, 31, 85, .05);
}

.source-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.source-icon-shield::before { content: "PH"; font-size: 19px; }
.source-icon-broadcast::before { content: "ACG"; font-size: 16px; }
.source-icon-justice::before { content: "DOJ"; font-size: 16px; }
.source-icon-directory::before { content: "DIR"; font-size: 16px; }
.source-icon-alert::before { content: "!"; }
.source-icon-globe::before { content: "INT"; font-size: 16px; }
.source-icon-network::before { content: "SOC"; font-size: 16px; }
.source-icon-report::before { content: "IC3"; font-size: 16px; }
.source-icon-child::before { content: "CS"; font-size: 18px; }
.source-icon-heart::before { content: "SX"; color: var(--red); font-size: 18px; }
.source-icon-fraud::before { content: "$"; }
.source-icon-hook::before { content: "@"; }
.source-icon-guide::before { content: "i"; }
.source-icon-search::before { content: "G"; }
.source-icon-hash::before { content: "#"; font-size: 23px; }
.source-icon-window::before { content: "MS"; font-size: 18px; }
.source-icon-cloud::before { content: "CF"; font-size: 18px; }
.source-icon-phone::before { content: "SIM"; font-size: 16px; }
.source-icon-wallet::before { content: "PHP"; font-size: 15px; }
.source-icon-gcash {
  background: linear-gradient(145deg, #e7f0ff, #ffffff);
  border-color: #9cc2ff;
}
.source-icon-gcash::before {
  content: "G";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #1677ff;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}
.source-icon-bank::before { content: "$"; font-size: 23px; }
.source-icon-cart::before { content: "•"; font-size: 30px; }

.source-card h3 {
  margin-bottom: 12px;
}

.source-card p {
  flex: 1;
  margin-top: 0;
}

.source-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #edf3ff;
  color: var(--blue);
  font-weight: 700;
}

.source-link:hover {
  background: var(--navy);
  color: #fff;
}

.takedown-card::before {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--navy));
}

.platform-card::before {
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
}

.directory-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -6px 0 16px;
}

.directory-filters button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.directory-filters button.is-active,
.directory-filters button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #081833;
}

.platform-tile {
  display: grid;
  min-height: 132px;
  place-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 85, .07);
  color: var(--ink);
  text-align: center;
}

.platform-tile:hover,
.platform-tile:focus-visible {
  transform: translateY(-2px);
  border-color: #9db3d0;
  box-shadow: 0 16px 36px rgba(11, 31, 85, .14);
  outline: none;
}

.platform-tile strong {
  font-size: 16px;
}

.platform-tile span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.platform-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: #f5f8fc;
  border: 1px solid #d7e3f3;
}

.platform-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.platform-logo.large {
  width: 74px;
  height: 74px;
  border-radius: 20px;
}

.platform-logo.large img {
  width: 48px;
  height: 48px;
}

.platform-detail {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(11, 31, 85, .11);
}

.platform-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.platform-detail-head h3 {
  margin: 4px 0 3px;
}

.platform-detail-head p,
.platform-detail > p {
  color: var(--muted);
  line-height: 1.5;
}

.platform-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.evidence-needed {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f5f8fc;
  border: 1px solid var(--line);
}

.evidence-needed h4 {
  margin: 0 0 8px;
}

.evidence-needed ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.output-panel pre,
.assessment-output {
  min-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--ink);
  line-height: 1.5;
}

.assessment-output {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
}

.assessment-card {
  display: grid;
  gap: 14px;
}

.assessment-card section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.assessment-card h4 {
  margin: 0 0 8px;
  color: var(--navy);
}

.assessment-card p {
  margin: 0;
  color: var(--muted);
}

.assessment-card ul {
  margin: 0;
  padding-left: 20px;
}

.assessment-card li {
  margin: 5px 0;
  color: var(--muted);
}

.ai-scam-response {
  gap: 16px;
}

.ai-response-card.ai-scam-response,
.assessment-card.ai-scam-response {
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.98)),
    #fff;
}

.ai-response-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(20, 108, 128, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, #081b3a, #12306f 62%, #146c80);
  color: #fff;
  box-shadow: 0 16px 38px rgba(8, 27, 58, .18);
}

.ai-response-header .eyebrow,
.ai-response-header h3,
.ai-response-header p {
  margin: 0;
}

.ai-response-header .eyebrow {
  color: rgba(255,255,255,.72);
}

.ai-response-header h3 {
  margin-top: 4px;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: 0;
}

.ai-response-header p {
  margin-top: 8px;
  max-width: 760px;
  color: rgba(255,255,255,.84);
}

.ai-response-header > strong {
  display: inline-grid;
  min-width: 74px;
  min-height: 50px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.05rem;
  text-align: center;
}

.ai-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.severity-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.severity-badge {
  border: 1px solid rgba(0, 174, 239, .35);
  background: rgba(0, 174, 239, .12);
  color: #073a63;
}

.category-badge {
  border: 1px solid rgba(8, 27, 58, .12);
  background: #fff;
  color: var(--navy);
}

.ai-response-section {
  padding: 16px;
  border: 1px solid rgba(215, 224, 234, .95);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 32, 67, .05);
}

.ai-response-section h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.ai-response-section p {
  margin: 0 0 8px;
}

.ai-response-section p:last-child {
  margin-bottom: 0;
}

.ai-action-grid,
.ai-evidence-grid,
.ai-reporting-grid,
.ai-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.ai-action-grid article,
.ai-evidence-grid article,
.ai-reporting-grid article,
.ai-info-grid article {
  padding: 12px;
  border: 1px solid rgba(20, 108, 128, .16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.ai-action-grid span,
.ai-evidence-grid span,
.ai-reporting-grid span,
.ai-info-grid span {
  display: block;
  min-height: 16px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-action-grid h5,
.ai-evidence-grid h5,
.ai-reporting-grid h5,
.ai-info-grid h5 {
  margin: 3px 0 8px;
  color: var(--navy);
  font-size: .95rem;
}

.ai-action-grid ul,
.ai-evidence-grid ul,
.ai-reporting-grid ul,
.ai-info-grid ul {
  padding-left: 18px;
}

.ai-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 174, 239, .18);
  border-radius: 10px;
  background: #f5fbff;
}

.documentation-assessment {
  display: grid;
  gap: 6px;
}

.documentation-assessment strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.documentation-assessment small,
.privacy-section p {
  color: var(--muted);
}

.compact-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.incident-summary-template {
  margin: 12px 0 0;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  border: 1px solid rgba(20, 108, 128, .16);
  border-radius: 8px;
  background: #f6f9fd;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
}

.assessment-thinking-state {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid rgba(0, 174, 239, .24);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #eef8ff);
  box-shadow: 0 14px 38px rgba(8, 27, 58, .12);
}

.assessment-thinking-state strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.assessment-thinking-state p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.assessment-thinking-orb {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--navy-2));
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 0 0 0 rgba(0, 174, 239, .28);
  animation: sentinelThinkingPulseBlue 1.8s ease-in-out infinite;
}

@keyframes sentinelThinkingPulseBlue {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 174, 239, .26); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(0, 174, 239, 0); }
}

.assessment-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff8e9;
}

.assessment-banner > div {
  display: grid;
  gap: 4px;
}

.assessment-banner span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.assessment-banner strong {
  color: var(--navy);
  font-size: 18px;
}

.law-match-grid {
  display: grid;
  gap: 8px;
}

.law-match-grid article {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f8fbff;
}

.law-match-grid strong,
.law-match-grid span {
  display: block;
}

.law-match-grid span,
.assessment-note,
.assessment-disclaimer {
  color: var(--muted);
  font-size: 14px;
}

.assessment-warning {
  border-color: #f0b35f !important;
  background: #fff7e8 !important;
}

.assessment-ai-details {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
}

.assessment-ai-details pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  background: #f6f8fb;
}

.office-card p {
  margin: 8px 0;
}

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

.status-checklist article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.status-checklist strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.source-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

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

.timeline article {
  padding: 18px;
}

.timeline span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.business-readiness-panel {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr);
  gap: 18px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(255, 201, 40, .42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 201, 40, .14), rgba(255, 255, 255, .96));
  box-shadow: var(--shadow);
}

.business-readiness-panel h3,
.business-readiness-panel p,
.business-readiness-panel ul {
  margin: 0;
}

.business-readiness-panel h3 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.35rem;
}

.business-readiness-panel p {
  margin-top: 10px;
  color: #30405e;
  line-height: 1.55;
}

.business-readiness-panel ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  color: #24364d;
  line-height: 1.45;
}

.business-readiness-panel li::marker {
  color: var(--teal);
}

.smart-sentinel-section p {
  white-space: pre-line;
}

footer {
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-section-dark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  border-top: 1px solid rgba(0, 174, 239, .18);
  background: linear-gradient(135deg, #071832, #10284a);
  padding: 18px clamp(18px, 4vw, 64px);
  color: #ffffff;
}

.brand.brand-fallback .brand-text::before {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.brand.brand-fallback .brand-text::before {
  content: "Cyber Sentinel";
}

.footer-copy {
  display: grid;
  gap: 8px;
  max-width: 1120px;
}

.footer-section-dark p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
  line-height: 1.55;
}

.footer-link-list,
.quick-link-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-link-list a,
.footer-link-list button,
.quick-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #ffffff;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  width: auto;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.footer-link-list a:hover,
.footer-link-list button:hover,
.quick-link-list a:hover {
  background: rgba(255, 201, 40, .14);
  color: #ffc928;
  border-color: rgba(255, 201, 40, .55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}

.footer-link-list a:focus-visible,
.footer-link-list button:focus-visible,
.quick-link-list a:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: 4px;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .88rem;
  line-height: 1.4;
}

.footer-disclaimer-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 174, 239, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.footer-disclaimer-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 201, 40, .65);
  background: rgba(255, 201, 40, .12);
  color: #ffc928;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), 0 0 18px rgba(255, 201, 40, .12);
}

.footer-disclaimer-button:focus-visible {
  outline: 2px solid #ffc928;
  outline-offset: 4px;
}

.footer-section-light {
  background: #f7f9fc;
  color: #17233c;
  padding: 36px 28px;
}

.footer-section-light a {
  color: #17233c;
  border-bottom: 1px solid rgba(23, 35, 60, 0.55);
}

.footer-section-light a:hover {
  color: #0057d9;
  border-bottom-color: #0057d9;
}

.funding-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #f5f8fc;
}

.funding-strip h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.funding-strip p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.sentinel-ai-bot {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  cursor: grab;
  user-select: none;
  touch-action: none;
  flex-direction: column;
  align-items: center;
  -webkit-user-select: none;
}

.sentinel-ai-bot::before {
  content: "Need help? Ask Sentinel AI.";
  position: absolute;
  right: calc(100% + 10px);
  bottom: 44px;
  width: max-content;
  max-width: 220px;
  padding: 8px 11px;
  border: 1px solid rgba(0, 174, 239, .28);
  border-radius: 999px;
  background: rgba(5, 20, 48, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  backdrop-filter: blur(10px);
}

.sentinel-ai-bot.is-minimized::before {
  content: "Show Sentinel AI";
  right: calc(100% + 8px);
  bottom: 18px;
}

.sentinel-ai-bot::after {
  content: "";
  position: absolute;
  inset: 22% 12% auto;
  height: 42%;
  border-radius: 50%;
  background: rgba(0, 174, 239, .18);
  filter: blur(18px);
  animation: aiPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.sentinel-ai-bot:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.sentinel-ai-bot:active,
.sentinel-ai-bot.is-dragging {
  cursor: grabbing;
}

.sentinel-ai-bot.is-hidden {
  display: none;
}

.sentinel-bot-compact {
  position: absolute;
  top: 4px;
  right: 8px;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(5, 20, 48, .82);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
  backdrop-filter: blur(10px);
}

.sentinel-bot-compact:hover,
.sentinel-bot-compact:focus-visible {
  background: rgba(0, 174, 239, .9);
  outline: none;
}

.sentinel-ai-bot img {
  position: relative;
  z-index: 1;
  width: 170px;
  max-width: 28vw;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 18px rgba(0, 174, 255, .45));
  animation: sentinelFloat 4s ease-in-out infinite;
}

.sentinel-ai-bot.is-minimized {
  width: 74px;
  height: 74px;
  justify-content: center;
  border: 1px solid rgba(0, 174, 239, .35);
  border-radius: 18px;
  background: rgba(5, 20, 48, .88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24), 0 0 22px rgba(0, 174, 239, .25);
  backdrop-filter: blur(12px);
}

.sentinel-ai-bot.is-minimized::after {
  inset: 12px;
  height: auto;
}

.sentinel-ai-bot.is-minimized .sentinel-bot-compact,
.sentinel-ai-bot.is-minimized .sentinel-bot-bubble {
  display: none;
}

.sentinel-ai-bot.is-minimized img {
  width: 58px;
  max-width: none;
  animation: aiPulse 2.4s ease-in-out infinite;
}

.sentinel-ai-bot.bot-fallback .sentinel-bot-bubble {
  margin-top: 0;
}

.sentinel-ai-bot.bot-fallback .sentinel-bot-bubble::before {
  content: "CS";
  display: grid;
  width: 76px;
  height: 76px;
  margin: -68px auto 8px;
  place-items: center;
  border: 1px solid rgba(0, 174, 239, .42);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 174, 239, .28), rgba(7, 28, 68, .96));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(0, 174, 239, .32);
}

.sentinel-bot-bubble {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #007bff, #00c8ff);
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 174, 255, .35);
}

@keyframes aiPulse {
  0%, 100% { opacity: .35; transform: scale(.95); }
  50% { opacity: .85; transform: scale(1.08); }
}

.sentinel-ai-panel {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10000;
  display: grid;
  width: min(430px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 36px));
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  overflow: hidden;
  overflow-x: hidden;
  border: 1px solid rgba(10, 38, 92, .22);
  border-radius: 16px;
  background: #f5f8fc;
  box-shadow: 0 26px 70px rgba(11, 31, 85, .32);
}

.sentinel-ai-panel.is-maximized {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}

.sentinel-ai-panel[hidden] {
  display: none;
}

.sentinel-ai-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.sentinel-ai-header h2,
.sentinel-ai-header p {
  margin: 0;
}

.sentinel-ai-header p {
  margin-top: 4px;
  color: rgba(255,255,255,.82);
}

.sentinel-ai-window-actions {
  display: flex;
  gap: 8px;
}

.sentinel-ai-window-actions button {
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
}

.sentinel-ai-window-actions button:hover,
.sentinel-ai-window-actions button:focus-visible {
  background: rgba(255,255,255,.22);
  outline: 2px solid rgba(255,255,255,.54);
  outline-offset: 2px;
}

.sentinel-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  overflow-x: hidden;
  padding: 16px;
}

.sentinel-ai-message {
  max-width: 86%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 12px 14px;
  border: 1px solid #d8e3f1;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-line;
}

.sentinel-ai-message.is-typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--gold);
  vertical-align: -2px;
  animation: sentinelTypeCursor .8s steps(2, start) infinite;
}

.sentinel-ai-message.is-structured {
  display: grid;
  gap: 12px;
  max-width: min(96%, 820px);
  padding: 14px;
  border-color: rgba(0, 174, 239, .2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  white-space: normal;
}

.sentinel-ai-panel.is-maximized .sentinel-ai-header {
  padding: 18px clamp(18px, 3vw, 34px);
}

.sentinel-ai-panel.is-maximized .sentinel-ai-messages {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.sentinel-ai-panel.is-maximized .sentinel-ai-message {
  max-width: min(92%, 940px);
}

.sentinel-ai-panel.is-maximized .sentinel-ai-suggestions,
.sentinel-ai-panel.is-maximized .sentinel-ai-evidence-mode,
.sentinel-ai-panel.is-maximized .sentinel-ai-form {
  width: min(1120px, calc(100vw - 32px));
  margin-right: auto;
  margin-left: auto;
}

.sentinel-ai-answer-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #dbe7f4;
}

.sentinel-ai-answer-header span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.sentinel-ai-answer-header strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
}

.sentinel-ai-answer-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #fff;
  animation: sentinelSectionIn .24s ease both;
}

.sentinel-ai-answer-section h3 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
}

.sentinel-ai-answer-section h3 span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: #edf6ff;
  color: var(--teal);
  font-size: 11px;
  font-weight: 950;
}

.sentinel-ai-answer-section p {
  margin: 0;
  color: #24364d;
}

.sentinel-ai-answer-section ul {
  margin: 0;
  padding-left: 20px;
}

.sentinel-ai-answer-section li + li {
  margin-top: 4px;
}

.sentinel-ai-mini-card {
  padding: 10px;
  border: 1px solid #dce7ef;
  border-left: 3px solid var(--mint);
  border-radius: 8px;
  background: #f8fbff;
}

.sentinel-ai-mini-card strong {
  color: var(--navy);
}

@keyframes sentinelSectionIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sentinelTypeCursor {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.sentinel-ai-message.bot.is-thinking {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 92%;
  border-color: #fecaca;
  background: #fff;
  box-shadow: 0 12px 28px rgba(127, 29, 29, .1);
  white-space: normal;
}

.sentinel-thinking-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  font-size: .72rem;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .18);
  animation: sentinelThinkingPulse 1.8s ease-in-out infinite;
}

.sentinel-thinking-body {
  flex: 1;
  min-width: 0;
}

.sentinel-thinking-text {
  margin: 0;
  color: #111827;
  font-size: .92rem;
  font-weight: 850;
  line-height: 1.45;
}

.sentinel-thinking-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.sentinel-thinking-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #dc2626;
  animation: sentinelThinkingDot 1.05s ease-in-out infinite;
}

.sentinel-thinking-dots span:nth-child(2) {
  animation-delay: .14s;
}

.sentinel-thinking-dots span:nth-child(3) {
  animation-delay: .28s;
}

.sentinel-thinking-body small {
  display: block;
  margin-top: 9px;
  color: #6b7280;
  font-size: .74rem;
  line-height: 1.35;
}

@keyframes sentinelThinkingDot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes sentinelThinkingPulse {
  0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .18), 0 0 0 0 rgba(220, 38, 38, .22); }
  50% { transform: scale(1.04); box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .26), 0 0 0 8px rgba(220, 38, 38, 0); }
}

.sentinel-ai-message.user {
  align-self: flex-end;
  border-color: #0d98ff;
  background: linear-gradient(135deg, #0d7dff, #00b8ff);
  color: #fff;
  font-weight: 800;
}

.sentinel-ai-message.user.is-pasted-document {
  width: min(100%, 560px);
  max-width: min(96%, 560px);
  padding: 8px;
  border-color: rgba(255,255,255,.16);
  background: #182238;
  color: #fff;
  white-space: normal;
}

.pasted-document-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}

.pasted-document-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: .74rem;
  font-weight: 1000;
}

.pasted-document-card strong,
.pasted-document-card span,
.pasted-document-card small {
  display: block;
  overflow-wrap: anywhere;
}

.pasted-document-card strong {
  font-size: .98rem;
}

.pasted-document-card span {
  color: rgba(255,255,255,.78);
  font-size: .86rem;
}

.pasted-document-card small {
  margin-top: 4px;
  color: rgba(255,255,255,.62);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}

.sentinel-ai-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  border-top: 1px solid #d8e3f1;
  background: #fff;
}

.sentinel-ai-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9d8ea;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.sentinel-ai-evidence-mode {
  border-top: 1px solid #d8e3f1;
  background: #f8fbff;
  max-width: 100%;
  overflow-x: hidden;
}

.sentinel-ai-evidence-mode summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px 16px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.sentinel-ai-evidence-mode summary small,
.sentinel-ai-guided-toggle span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.sentinel-ai-evidence-body {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.sentinel-ai-mode-help {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: #eef8fb;
  color: #34445c;
  font-size: 12px;
  line-height: 1.45;
}

.sentinel-ai-evidence-body .file-picker {
  margin: 0;
}

.sentinel-ai-evidence-body .file-picker-button {
  padding: 9px 12px;
  font-size: 13px;
}

.sentinel-ai-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sentinel-ai-mode-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.sentinel-ai-mode-row input {
  width: 16px;
  height: 16px;
}

.sentinel-ai-mode-row button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
}

.sentinel-ai-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.sentinel-ai-attachment-actions button,
.sentinel-ai-attachment-actions label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid #c9d8ea;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.sentinel-ai-attachment-actions .danger-soft {
  border-color: rgba(220, 38, 38, .26);
  color: #991b1b;
}

.sentinel-ai-evidence-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sentinel-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid #d8e3f1;
  background: #fff;
}

.sentinel-ai-form input {
  min-height: 48px;
  border-radius: 10px;
  min-width: 0;
}

.sentinel-ai-form button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--gold);
  color: #081833;
  font-weight: 900;
}

.sentinel-ai-form .sentinel-ai-stop {
  background: #fee2e2;
  color: #991b1b;
}

.sentinel-ai-form .sentinel-ai-stop[hidden] {
  display: none;
}

@media (max-width: 920px) {
  .community-alert-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-alert-body article:nth-child(even) {
    border-right: 0;
  }

  .community-alert-footer {
    grid-template-columns: 1fr;
  }

  .hero,
  .checker-grid,
  .report-layout,
  .template-layout,
  .timeline,
  .cards,
  .action-guide-grid,
  .source-grid,
  .roadmap-grid,
  .trust-center-grid,
  .account-features,
  .pricing-grid,
  .policy-grid,
  .platform-grid,
  .dashboard-grid,
  .home-feature-strip,
  .about-home,
  .community-forum-preview,
  .premium-card-grid,
  .tool-card-grid,
  .panic-grid,
  .case-intelligence-shell,
  .case-workspace,
  .case-folder-grid,
  .status-checklist,
  .crime-card-grid,
  .filter-row,
  .premium-panel,
  .storage-mode-grid,
  .guest-access-meter,
  .plan-compare,
  .funding-strip,
  .forum-layout,
  .moderation-grid,
  .emergency-strip,
  .awareness-playbook,
  .assessment-capability-strip,
  .hero-trust-cards,
  .professional-card-grid {
    grid-template-columns: 1fr;
  }

  .about-home-details {
    grid-template-columns: 1fr;
  }

  .funding-actions {
    justify-content: flex-start;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .tabs {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    overflow: visible;
  }

  .topbar.nav-open .tabs {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

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

  .forum-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ad-slot-top {
    grid-template-columns: 1fr;
  }

  .ad-slot-mobile {
    display: grid;
  }

  .signal-panel { min-height: 360px; }
}

@media (max-width: 720px) {
  .community-alert-header,
  .community-alert-footer {
    padding-inline: 16px;
  }

  .community-alert-body {
    grid-template-columns: 1fr;
  }

  .community-alert-body article {
    border-right: 0;
  }

  .community-alert-status-row strong,
  .community-alert-category {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 10px;
  }

  .tabs {
    order: 3;
    width: 100%;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 4px;
  }

  .topbar.nav-open .tabs {
    display: grid;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand {
    gap: 10px;
  }

  .brand-shield {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1.18rem;
  }

  .brand-text span {
    font-size: .72rem;
  }

  .hero-guardian-wrapper {
    min-height: 340px;
  }

  .hero-guardian {
    width: min(300px, 82vw);
  }

  .sentinel-hero-brief {
    bottom: 16px;
    font-size: 12px;
  }

  .sentinel-ai-bot {
    right: 14px;
    bottom: 18px;
  }

  .sentinel-ai-bot img {
    width: 110px;
  }

  .sentinel-ai-bot::before {
    display: none;
  }

  .sentinel-bot-bubble {
    padding: 8px 11px;
    font-size: .75rem;
  }

  .sentinel-ai-panel {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .sentinel-ai-panel.is-maximized {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
  }

  .account-box {
    width: auto;
    justify-content: flex-end;
    padding-left: 0;
    border-left: 0;
  }

  .account-box span {
    display: none;
  }

  .tab {
    min-width: max-content;
    padding: 0 10px;
    font-size: 13px;
  }

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

  .premium-card-grid,
  .tool-card-grid,
  .forum-preview-grid {
    grid-template-columns: 1fr;
  }

  .business-readiness-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .community-forum-preview {
    padding: 16px;
  }

  .forum-preview-copy {
    min-height: 0;
  }

  .platform-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .platform-detail-head .icon-close {
    grid-column: 1 / -1;
    width: 100%;
  }

  .input-row,
  .forum-controls,
  .attachment-tools,
  .alert-toolbar,
  .file-picker { grid-template-columns: 1fr; }
  .ai-response-header,
  .assessment-thinking-state {
    flex-direction: column;
  }
  .ai-response-header > strong {
    width: 100%;
  }
  .assessment-banner {
    grid-template-columns: 1fr;
  }
  .ai-response-actions {
    display: grid;
  }
  .ai-response-actions button {
    width: 100%;
  }
  .quick-question-grid { grid-template-columns: 1fr; }
  .scan-metrics { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  main section { padding: 44px 16px; }

  .footer-section-dark {
    justify-content: center;
    text-align: center;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .footer-link-list {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand {
    min-width: 0;
  }

  .brand-shield {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 1.02rem;
    letter-spacing: -0.2px;
  }

  .brand-text span {
    font-size: .68rem;
  }
}


/* Shared check output and community thread layout */
.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 18px;
  align-items: start;
}

.checker-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checker-tools .wide { grid-column: 1 / -1; }

.shared-output-panel {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow: auto;
}

.scan-results-guide {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.scan-results-guide > strong,
.scan-history-inline strong { color: var(--navy); }

.scan-history-inline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.scan-history-inline strong {
  display: block;
  margin-bottom: 6px;
}

.scan-history-inline ul {
  margin: 0;
  padding-left: 18px;
}

.tool-inline-result { display: none; }

.forum-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.forum-thread-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11, 31, 85, 0.08);
}

.forum-thread-card.awareness-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border-left-color: var(--mint);
}

.forum-thread-main {
  min-width: 0;
  padding: 18px 18px 18px 0;
}

.awareness-card .forum-thread-main {
  padding: 18px;
}

.forum-vote-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #f3f7fb;
  border-right: 1px solid var(--line);
}

.forum-vote-rail strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
}

.forum-vote-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #cfdae8;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.forum-vote-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.private-forum-post {
  border-left-color: var(--gold);
  background: #fffaf0;
}

.locked-forum-post { opacity: .94; }

.forum-post-head,
.forum-post-actions,
.forum-badges,
.forum-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-post-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.forum-thread-card h3 {
  margin: 8px 0;
  color: var(--ink);
}

.forum-post-body {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.forum-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.forum-attachments { margin: 12px 0; }

.forum-attachment-card {
  min-width: 220px;
  flex: 1 1 220px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f8fbff;
}

.forum-attachment-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.forum-thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.forum-thread-stats span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.awareness-next-step {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f8fbff;
}

.awareness-next-step span {
  width: max-content;
}

.awareness-next-step strong {
  color: #24364d;
  font-size: 14px;
  line-height: 1.45;
}

.forum-comments {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.forum-comments-title {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.forum-comment,
.forum-comment-empty {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  margin-left: calc(var(--comment-depth, 0) * 18px);
}

.forum-comment-line {
  width: 2px;
  min-height: 100%;
  border-radius: 999px;
  background: #d7e3ef;
  justify-self: center;
}

.forum-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

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

.forum-comment p,
.forum-comment-empty {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f7fb;
}

.forum-comment-empty {
  display: block;
  color: var(--muted);
}

.forum-community-actions {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.forum-mod-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d8e2ec;
}

.forum-mod-actions summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .checker-layout,
  .checker-tools {
    grid-template-columns: 1fr;
  }

  .shared-output-panel {
    position: static;
    max-height: none;
  }

  .forum-thread-card {
    grid-template-columns: 1fr;
  }

  .forum-vote-rail {
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-items: center;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .forum-thread-main {
    padding: 14px;
  }

  .forum-comment {
    margin-left: 0;
  }
}
