:root {
  --ink: #0b1220;
  --ink-soft: #1c2738;
  --paper: #eef1f5;
  --paper-2: #f7f8fa;
  --steel: #5b6b7c;
  --line: #d5dbe3;
  --signal: #e28b00;
  --signal-deep: #b86e00;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --danger: #c0392b;
  --panel: #111821;
  --panel-line: #2a3645;
  --panel-text: #edf2f7;
  --panel-muted: #9aabbd;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--signal);
  border-radius: 2px;
  transform: rotate(45deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-compact {
  margin-bottom: 0.85rem;
}

.eyebrow {
  margin: 0;
  color: var(--signal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: var(--steel);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-signal {
  background: var(--signal);
  color: #111;
}

.btn-signal:hover {
  background: #f0a01a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.alert {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
}

.alert a {
  color: inherit;
  font-weight: 700;
}

.alert-error {
  background: #fde8e6;
  color: var(--danger);
}

.alert-warn {
  background: #fff3d6;
  color: var(--warn);
}

.alert-ok {
  background: #e5f6ee;
  color: var(--ok);
}

/* ---------- Landing ---------- */

body.landing {
  background: #0a1018;
  color: #f3f6fa;
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, #071018 0%, #121c28 45%, #0a121b 100%);
}

.led-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 10px;
  padding: 24px;
  opacity: 0.55;
}

.led-pixel {
  display: block;
  border-radius: 3px;
  background: rgba(226, 139, 0, 0.08);
  border: 1px solid rgba(226, 139, 0, 0.12);
  animation: pixelPulse 4.8s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.18s);
}

.led-pixel:nth-child(3n) {
  background: rgba(120, 170, 210, 0.08);
  border-color: rgba(120, 170, 210, 0.14);
}

.led-pixel:nth-child(5n) {
  background: rgba(255, 255, 255, 0.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.92) 0%, rgba(7, 16, 24, 0.72) 42%, rgba(7, 16, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.2) 0%, rgba(7, 16, 24, 0.85) 100%);
}

.landing-nav,
.hero,
.capability,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
}

.landing-nav .brand-name {
  color: #fff;
  font-size: 1.25rem;
}

.landing-nav .brand-mark {
  background: var(--signal);
}

.nav-link {
  color: #d7e0ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease, color 160ms ease;
}

.nav-link:hover {
  color: #fff;
  border-color: var(--signal);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 2rem 0 3.5rem;
}

.hero-copy {
  animation: riseIn 700ms ease both;
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
  color: #fff;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #e8eef5;
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  color: #a9b8c8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 900ms ease both;
}

.hero-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #e8eef5;
}

.hero-cta .btn-ghost:hover {
  border-color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.dash-preview {
  align-self: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(10, 16, 24, 0.78);
  color: #e8eef5;
  animation: riseIn 850ms ease both;
  animation-delay: 120ms;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.dash-chrome span:first-child { background: #ff5d67; }
.dash-chrome span:nth-child(2) { background: #f5b942; }
.dash-chrome span:nth-child(3) { background: #3ddc97; }

.dash-chrome strong {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: #9eafc0;
  font-weight: 600;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.dash-kpis div {
  padding: 0.7rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-kpis em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea0b3;
}

.dash-kpis b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.dash-code {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.dash-tag {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  color: #c5d2df;
}

.dash-tag-busy {
  border-color: rgba(226, 139, 0, 0.45);
  color: var(--signal);
}

.dash-title {
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.dash-meta {
  margin: 0.2rem 0 0;
  color: #8ea0b3;
  font-size: 0.82rem;
}

.access-panel {
  padding: 1.5rem;
  background: rgba(247, 248, 250, 0.97);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  animation: riseIn 850ms ease both;
}

.access-kicker {
  margin: 0 0 0.35rem;
  color: var(--signal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.access-panel h1,
.access-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.access-hint {
  margin: 0 0 1.2rem;
  color: var(--steel);
  font-size: 0.92rem;
}

.access-form label {
  display: block;
  margin-bottom: 0.9rem;
}

.access-form label span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.access-form input:focus {
  outline: 2px solid rgba(226, 139, 0, 0.35);
  border-color: var(--signal);
}

.login-meta {
  display: flex;
  justify-content: flex-end;
  margin: -0.25rem 0 1rem;
}

.login-meta a {
  color: var(--signal-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.login-meta a:hover {
  text-decoration: underline;
}

.login-shell {
  min-height: 100vh;
}

.login-main {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 3.5rem;
}

.login-panel {
  width: min(420px, 100%);
}

.led-wall-login {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  opacity: 0.35;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.section-head p {
  margin: 0;
  color: #9eafc0;
}

.features,
.preview-section,
.cta-band,
.site-footer {
  position: relative;
  z-index: 1;
}

.features {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.feature-index {
  margin: 0 0 0.85rem;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.feature-card p {
  margin: 0;
  color: #9eafc0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.preview-section {
  padding: 3rem 0 2rem;
}

.preview-frame {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(8, 14, 22, 0.85);
}

.preview-sidebar {
  padding: 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.preview-sidebar .brand-name {
  display: block;
  margin-bottom: 1.2rem;
  color: #fff;
}

.preview-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.preview-sidebar li {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.25rem;
  border-radius: 0.45rem;
  color: #8ea0b3;
  font-size: 0.9rem;
}

.preview-sidebar li.is-active {
  background: rgba(226, 139, 0, 0.14);
  color: #fff;
}

.preview-main {
  padding: 1.15rem 1.25rem;
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #9eafc0;
  font-size: 0.88rem;
}

.preview-bar strong {
  color: #fff;
  font-family: var(--font-display);
}

.preview-list {
  display: grid;
  gap: 0.65rem;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
}

.preview-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.preview-item span {
  color: #8ea0b3;
  font-size: 0.82rem;
}

.preview-item em {
  font-style: normal;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  align-self: center;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem auto 1rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(226, 139, 0, 0.28);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(226, 139, 0, 0.12), rgba(255, 255, 255, 0.03));
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: #fff;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0;
  color: #9eafc0;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f91a4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer .brand-name {
  color: #d7e0ea;
}

.site-footer p {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  line-height: 1.6;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  color: #d7e0ea;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 0.45rem;
  text-decoration: none;
  color: #7f91a4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.capability {
  padding: 4.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.2), rgba(8, 14, 22, 0.92));
}

.capability-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.capability-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.capability-head p {
  margin: 0;
  color: #9eafc0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.capability-grid article {
  padding: 1.25rem 0;
  border-top: 2px solid var(--signal);
}

.capability-grid h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.capability-grid p {
  margin: 0;
  color: #9eafc0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  padding: 1.5rem 0 2.5rem;
  color: #7f91a4;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer .brand-name {
  color: #d7e0ea;
}

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

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

/* ---------- App shell ---------- */

body.app-body {
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(226, 139, 0, 0.08), transparent 55%),
    var(--paper);
}

.app {
  min-height: 100vh;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
}

.topbar-inner,
.topbar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-inner {
  padding: 1.15rem 0;
}

.page-title {
  margin: 0.2rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.page {
  padding: 2rem 0 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

.stat span {
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.table-wrap {
  overflow: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-top: 1px solid var(--line);
}

th {
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f3f5f8;
  border-top: 0;
}

.ok {
  color: var(--ok);
  font-weight: 700;
}

.warn {
  color: var(--warn);
  font-weight: 700;
}

.danger {
  color: var(--danger);
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ticket {
  margin-bottom: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
}

.ticket h2 {
  margin: 0.2rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.badge {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 600;
}

.narrow {
  width: min(520px, calc(100% - 2rem));
  margin: 4.5rem auto;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.card h2 {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.panel-block {
  margin-top: 1.75rem;
}

.panel-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.panel-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.webhook-hint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.webhook-hint code {
  font-size: 0.84rem;
  word-break: break-all;
}

.field-queue {
  width: min(560px, 100%);
  margin: 0 auto;
}

.ticket-field {
  padding: 1.15rem;
}

.field-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.field-actions .btn {
  min-height: 3rem;
  font-size: 1rem;
}

.back-link {
  margin: 0 0 1.1rem;
}

.back-link a {
  color: var(--steel);
  text-decoration: none;
  font-weight: 600;
}

.back-link a:hover {
  color: var(--ink);
}

.form-card {
  max-width: 720px;
}

.form-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.ok {
  color: var(--ok);
  border-color: rgba(31, 138, 91, 0.35);
  background: rgba(31, 138, 91, 0.08);
}

.status-pill.warn {
  color: var(--warn);
  border-color: rgba(183, 121, 31, 0.35);
  background: rgba(183, 121, 31, 0.1);
}

.status-pill.danger {
  color: var(--danger);
  border-color: rgba(192, 57, 43, 0.3);
  background: rgba(192, 57, 43, 0.08);
}

.row-link {
  cursor: pointer;
  transition: background 120ms ease;
}

.row-link:hover {
  background: #f3f5f8;
}

.detail-card {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}

.detail-list dt {
  margin: 0;
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.detail-list dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-bar select {
  min-height: 2.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.inline-toggle {
  display: inline;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.checkbox-row span {
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.field-section {
  margin-bottom: 1.75rem;
}

.field-section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.note-field {
  display: block;
  margin-bottom: 0.65rem;
  text-align: left;
}

.note-field span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-field textarea,
.note-field input[type="file"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.note-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.resolve-form {
  padding: 0.85rem;
  border: 1px solid rgba(226, 139, 0, 0.35);
  border-radius: 0.75rem;
  background: rgba(226, 139, 0, 0.06);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.photo-item {
  display: block;
  overflow: hidden;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kpi-strip {
  margin-bottom: 1.25rem;
}

.mini-stats {
  margin-bottom: 1.25rem;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}

.chart-card h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.bar-chart {
  display: grid;
  gap: 0.65rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(90px,  instfr) 2.4fr auto;
  gap: 0.55rem;
  align-items: center;
}

.bar-label {
  font-size: 0.84rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 0.65rem;
  border-radius: 999px;
  background: #e8edf3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal-deep), var(--signal));
}

.bar-value {
  min-width: 1.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .grid-4,
  .charts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .grid-4,
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .form-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero,
  .capability-grid,
  .feature-cards,
  .footer-grid,
  .preview-frame,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1.25rem;
    align-items: stretch;
  }

  .brand-lockup {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links .nav-link:first-child,
  .nav-links .nav-link:nth-child(2) {
    display: none;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .led-wall {
    gap: 8px;
    opacity: 0.4;
  }

  .cta-band {
    align-items: flex-start;
  }

  .login-main {
    padding-top: 0.5rem;
  }

  .access-form input,
  .login-panel .btn {
    min-height: 3.15rem;
  }
}

@media (max-width: 1100px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .led-pixel,
  .hero-copy,
  .hero-cta,
  .access-panel {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
