:root {
  --ink: #252525;
  --ink-soft: #5a5a5a;
  --paper: #f4f3f0;
  --white: #ffffff;
  --line: #dedbd6;
  --navy: #252525;
  --navy-2: #353535;
  --orange: #e95a0c;
  --orange-soft: #fff0e6;
  --green: #1f9d76;
  --green-soft: #e7f6f0;
  --amber: #c78a1f;
  --amber-soft: #fff5dc;
  --red: #d9483d;
  --red-soft: #fff0ee;
  --blue: #3f7e8d;
  --shadow: 0 14px 42px rgba(38, 32, 28, 0.09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(233, 90, 12, 0.18), transparent 31%),
    var(--navy);
}

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr); }
.login-context {
  position: relative;
  min-height: 100vh;
  padding: 48px clamp(40px, 7vw, 112px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  background:
    linear-gradient(90deg, rgba(37, 37, 37, 0.98), rgba(37, 37, 37, 0.82)),
    linear-gradient(135deg, #3d3d3d, #1f1f1f);
}
.login-context::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -200px; bottom: -200px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(255,255,255,.018), 0 0 0 156px rgba(255,255,255,.014);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .22em; }
.logo-frame {
  width: 210px;
  height: 62px;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 8px;
  background: white;
}
.logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(2.02);
}
.brand--light { color: rgba(255,255,255,.72); position: relative; z-index: 1; }
.login-copy { position: relative; z-index: 2; max-width: 690px; margin: 10vh 0 6vh; }
.overline { margin: 0 0 12px; font-size: 10px; font-weight: 800; letter-spacing: .2em; color: #62747c; }
.overline--orange { color: var(--orange); }
.overline--light { color: rgba(255,255,255,.55); }
.login-copy .overline { color: #8ba7b0; }
.login-copy h1, .hero h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}
.login-copy h1 { font-size: clamp(48px, 6vw, 88px); }
.login-copy p:not(.overline) { max-width: 620px; color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.7; }
.context-foot { position: relative; z-index: 2; margin: 0; color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.signal-ribbon { position: absolute; display: flex; align-items: center; gap: 7px; right: 5vw; top: 31%; width: 180px; height: 100px; opacity: .3; transform: rotate(-5deg); }
.signal-ribbon span { flex: 1; min-height: 6px; background: var(--orange); border-radius: 10px; }

.login-card {
  min-height: 100vh;
  padding: 8vh clamp(38px, 6vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f7f8f5;
  box-shadow: -20px 0 60px rgba(0,0,0,.12);
}
.secure-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 42px; background: var(--orange); color: white; font: 800 19px "Manrope"; box-shadow: 0 10px 24px rgba(237,90,24,.22); }
.login-card h2 { margin: 0; font: 700 clamp(34px, 4vw, 50px) "Manrope"; letter-spacing: -.04em; }
.login-intro { margin: 14px 0 32px; color: #6e7d82; line-height: 1.6; }
.login-form { display: grid; gap: 20px; }
.login-form label { display: grid; gap: 8px; }
.login-form label > span:first-child { font-weight: 700; font-size: 12px; color: #47575e; }
.login-form input {
  width: 100%;
  height: 54px;
  border: 1px solid #d5dcd8;
  border-radius: 10px;
  padding: 0 15px;
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.login-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,90,24,.1); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-toggle { position: absolute; right: 10px; top: 9px; height: 36px; border: 0; background: transparent; color: #718087; font-size: 12px; font-weight: 700; cursor: pointer; }
.primary-button { height: 56px; border: 0; border-radius: 10px; background: var(--orange); color: white; font-weight: 800; cursor: pointer; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 12px 28px rgba(237,90,24,.18); }
.primary-button:hover { background: #ce4a08; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.login-message { min-height: 18px; margin: -3px 0 -4px; color: #66777e; font-size: 12px; }
.login-message.failed { color: var(--red); }
.login-security { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e3e7e4; color: #89969a; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.login-security span { color: var(--green); margin-right: 7px; }

.dashboard-page { min-width: 320px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  min-height: 72px;
  padding: 0 clamp(22px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(247,248,245,.94);
  backdrop-filter: blur(16px);
}
.title-lockup { text-align: center; display: grid; gap: 3px; }
.title-lockup span { font-size: 9px; color: #7d8a8f; letter-spacing: .18em; font-weight: 800; }
.title-lockup strong { font: 700 14px "Manrope"; }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 16px; position: relative; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #617178; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(31,157,118,.1); }
.user-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; cursor: pointer; color: var(--ink); }
.user-button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 10px; font-weight: 800; }
.user-button > span:nth-child(2) { font-size: 12px; font-weight: 700; }
.user-button b { color: #879398; }
.user-menu { position: absolute; right: 0; top: 48px; width: 160px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.user-menu button { width: 100%; border: 0; border-radius: 7px; background: transparent; padding: 10px; text-align: left; color: var(--ink); cursor: pointer; }
.user-menu button:hover { background: #f2f4f1; }

.section-nav {
  position: sticky; top: 72px; z-index: 20;
  height: 44px;
  padding: 0 clamp(22px, 5vw, 74px);
  display: flex; align-items: center; gap: 30px;
  background: var(--navy);
  color: rgba(255,255,255,.55);
}
.section-nav a { height: 44px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.section-nav a.active { color: white; border-color: var(--orange); }
.section-wrap { width: min(1480px, calc(100% - clamp(32px, 8vw, 128px))); margin-inline: auto; }

.hero { padding-top: 70px; padding-bottom: 46px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); }
.hero-copy { max-width: 720px; margin: 22px 0 0; color: #65767d; line-height: 1.65; font-size: 15px; }
.hero-meta { padding: 22px 0 4px 36px; min-width: 260px; border-left: 1px solid var(--line); display: grid; gap: 5px; }
.hero-meta span { font-size: 9px; color: #829095; font-weight: 800; letter-spacing: .16em; }
.hero-meta strong { font: 700 16px "Manrope"; }
.hero-meta small { color: #8a969a; font-size: 11px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow); }
.kpi-card { min-height: 154px; padding: 25px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.kpi-card:last-child { border-right: 0; }
.kpi-card--attention::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--orange); }
.kpi-label { color: #7d8c91; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.kpi-card > strong { font: 700 clamp(30px, 3vw, 44px) "Manrope"; letter-spacing: -.04em; }
.kpi-card small { color: #738188; font-size: 11px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; margin-right: 5px; }
.status-dot--ok { background: var(--green); }
.status-dot--warn { background: var(--amber); }
.status-dot--danger { background: var(--red); }

.priority-alert { margin-top: 22px; min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border: 1px solid #f2cab6; border-radius: 14px; background: linear-gradient(90deg, var(--orange-soft), #fffaf7); }
.alert-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: white; font: 800 18px "Manrope"; }
.priority-alert > div:nth-child(2) { display: grid; gap: 5px; }
.priority-alert span { color: #c64a13; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.priority-alert strong { font: 700 15px "Manrope"; }
.priority-alert p { margin: 0; color: #786b65; font-size: 11px; line-height: 1.45; }
.priority-alert a { font-size: 11px; font-weight: 800; color: #bf4510; white-space: nowrap; }

.section-heading { padding-top: 70px; padding-bottom: 22px; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.section-heading h2, .panel-header h2, .action-panel h2 { margin: 0; font: 700 clamp(28px, 3vw, 38px) "Manrope"; letter-spacing: -.035em; }
.legend { display: flex; gap: 18px; color: #7a898e; font-size: 10px; }

.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.asset-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.asset-card--watch { border-top: 3px solid var(--amber); }
.asset-card--alarm { border-top: 3px solid var(--red); }
.asset-header { padding: 25px 28px 20px; display: flex; align-items: center; justify-content: space-between; }
.asset-header > div { display: flex; align-items: center; gap: 16px; }
.asset-index { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--navy); font: 700 11px "Manrope"; }
.asset-header p { margin: 0; color: #8a969b; font-size: 8px; font-weight: 800; letter-spacing: .17em; }
.asset-header h3 { margin: -2px 0 0; font: 700 36px "Manrope"; line-height: 1; }
.state-pill { padding: 8px 10px; border-radius: 99px; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.state-pill--watch { color: #98701a; background: var(--amber-soft); }
.state-pill--alarm { color: #be3a31; background: var(--red-soft); }
.asset-subline { padding: 12px 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #edf0ee; background: #fafbf9; color: #829095; font-size: 9px; }
.asset-subline span { display: grid; gap: 2px; border-right: 1px solid #e4e9e5; padding-right: 10px; }
.asset-subline span:not(:first-child) { padding-left: 14px; }
.asset-subline span:last-child { border-right: 0; }
.asset-subline strong { color: var(--ink); font-size: 12px; }
.metric-list { padding: 8px 28px 0; }
.metric-list > article { padding: 20px 0; border-bottom: 1px solid #edf0ee; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #718087; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.metric-state { font-size: 8px; letter-spacing: .09em; font-style: normal; }
.metric-state--ok { color: var(--green); }
.metric-state--warn { color: var(--amber); }
.metric-state--danger { color: var(--red); }
.metric-state--neutral { color: #7f8c91; }
.metric-main { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.metric-main strong { font: 700 25px "Manrope"; letter-spacing: -.035em; }
.metric-main small { color: #8a969a; font-size: 10px; }
.range-bar { height: 5px; margin-top: 16px; border-radius: 10px; position: relative; background: linear-gradient(90deg, var(--red) 0 20%, var(--amber) 20% 30%, var(--green) 30% 70%, var(--amber) 70% 80%, var(--red) 80%); }
.range-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--ink); transform: translate(-50%,-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.range-label { display: flex; justify-content: space-between; margin-top: 7px; color: #98a3a7; font-size: 8px; }
.mini-bars { height: 52px; margin-top: 13px; display: flex; gap: 5px; align-items: end; padding: 7px 8px 4px; background: #f5f8f6; border-radius: 8px; overflow: hidden; }
.mini-bars i { flex: 1; min-height: 3px; border-radius: 4px 4px 1px 1px; background: var(--amber); opacity: .72; }
.mini-bars--alarm i { background: var(--red); }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.phase-grid span { padding: 11px 12px; border-radius: 8px; background: #f4f6f4; color: #89959a; font-size: 8px; }
.phase-grid strong { display: block; margin-top: 3px; color: var(--ink); font: 700 16px "Manrope"; }
.inclination-pairs { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inclination-pairs span { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 8px; background: #f5f7f5; }
.inclination-pairs small { color: #849196; font-size: 8px; }
.inclination-pairs strong { font: 700 13px "Manrope"; }
.asset-footer { padding: 17px 28px; display: flex; justify-content: space-between; align-items: center; background: #fafbf9; color: #6d7c82; font-size: 9px; }
.text-button { border: 0; background: transparent; color: var(--orange); font-size: 9px; font-weight: 800; cursor: pointer; }

.analysis-grid { padding-top: 70px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .65fr); gap: 24px; }
.event-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.panel-header { padding: 26px 28px 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.filter-pills { display: inline-flex; gap: 4px; padding: 4px; background: #eef1ee; border-radius: 9px; }
.filter-pills button { min-width: 48px; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: #738187; font-size: 8px; font-weight: 800; cursor: pointer; }
.filter-pills button.active { background: white; color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.07); }
.event-table { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 110px 70px 1fr 90px; align-items: center; min-height: 72px; padding: 0 28px; border-bottom: 1px solid #edf0ee; }
.event-row[hidden] { display: none; }
.event-row--head { min-height: 40px; background: #fafbf9; color: #879499; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.event-row span { display: grid; gap: 3px; }
.event-row span:first-child strong { font: 700 11px "Manrope"; }
.event-row small { color: #8d999d; font-size: 8px; }
.event-row span:nth-child(2) b { width: 33px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: white; font-size: 8px; }
.event-row span:nth-child(3) strong { font-size: 11px; }
.event-status { width: fit-content; padding: 6px 7px; border-radius: 6px; font-size: 7px; font-weight: 800; font-style: normal; letter-spacing: .08em; }
.event-status--open { color: #b7332b; background: var(--red-soft); }
.event-status--review { color: #9b7117; background: var(--amber-soft); }
.event-status--closed { color: #69777c; background: #eef1ef; }
.event-status--monitor { color: #247863; background: var(--green-soft); }
.source-note { margin: 0; padding: 16px 28px 20px; color: #89969a; font-size: 9px; line-height: 1.5; }
.action-panel { padding: 30px; border-radius: var(--radius); color: white; background: linear-gradient(150deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow); }
.action-panel h2 { max-width: 290px; margin-top: 8px; font-size: 32px; }
.action-panel ol { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.action-panel li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 19px 0; border-top: 1px solid rgba(255,255,255,.1); }
.action-panel li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: var(--orange); font-size: 8px; font-weight: 800; }
.action-panel li strong { font: 700 12px "Manrope"; }
.action-panel li p { margin: 5px 0 0; color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.55; }
.action-owner { margin-top: 12px; padding: 16px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; gap: 5px; }
.action-owner span { color: rgba(255,255,255,.42); font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.action-owner strong { font-size: 10px; }

.criteria { padding-bottom: 80px; }
.criteria .section-heading { width: 100%; }
.criteria-note { margin: 0; max-width: 430px; color: #7d8b90; font-size: 11px; line-height: 1.55; text-align: right; }
.criteria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.criterion { min-height: 190px; padding: 21px; border: 1px solid var(--line); border-top-width: 3px; border-radius: 13px; background: white; }
.criterion--ok { border-top-color: var(--green); }
.criterion--warn { border-top-color: var(--amber); }
.criterion--danger { border-top-color: var(--red); }
.criterion--idle { border-top-color: #7b8a8f; }
.criterion > span { color: #859297; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.criterion > div { min-height: 72px; margin-top: 20px; display: grid; align-content: start; gap: 2px; }
.criterion > div strong { font: 700 13px "Manrope"; }
.criterion > div b { color: #9aa5a8; font-weight: 500; }
.criterion p { margin: 10px 0 0; color: #7c898e; font-size: 9px; line-height: 1.5; }
.threshold-strip { margin-top: 13px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--navy); color: white; overflow: hidden; }
.threshold-strip div { min-height: 86px; padding: 19px 21px; display: grid; gap: 7px; border-right: 1px solid rgba(255,255,255,.1); }
.threshold-strip div:last-child { border-right: 0; }
.threshold-strip span { color: rgba(255,255,255,.45); font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.threshold-strip strong { font: 700 20px "Manrope"; }

.site-footer { min-height: 110px; padding: 0 clamp(22px, 5vw, 74px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; background: #08161c; color: rgba(255,255,255,.48); }
.site-footer p { justify-self: center; font-size: 10px; }
.site-footer > span { justify-self: end; font-size: 9px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; }
  .title-lockup { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card:nth-child(2) { border-right: 0; }
  .kpi-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .analysis-grid { grid-template-columns: 1fr; }
  .action-panel { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 40px; }
  .action-panel ol { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .action-owner { align-self: end; }
  .criteria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-context { min-height: 44vh; padding: 30px 28px 44px; }
  .login-copy { margin: 8vh 0 2vh; }
  .login-copy h1 { font-size: 48px; }
  .login-copy p:not(.overline) { font-size: 14px; }
  .context-foot, .signal-ribbon { display: none; }
  .login-card { min-height: 56vh; padding: 44px 28px; }
  .secure-mark { margin-bottom: 26px; }
  .topbar { min-height: 64px; padding-inline: 18px; }
  .topbar .brand span, .live-pill, .user-button > span:nth-child(2) { display: none; }
  .section-nav { top: 64px; padding-inline: 18px; gap: 20px; overflow-x: auto; }
  .section-wrap { width: min(100% - 30px, 680px); }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-meta { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .priority-alert { grid-template-columns: auto 1fr; }
  .priority-alert a { grid-column: 2; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .asset-grid { grid-template-columns: 1fr; }
  .action-panel { display: block; }
  .action-panel ol { margin-top: 28px; }
  .criteria-note { text-align: left; }
  .threshold-strip { grid-template-columns: repeat(2, 1fr); }
  .threshold-strip div:nth-child(2) { border-right: 0; }
  .threshold-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-footer { grid-template-columns: 1fr; padding-block: 26px; text-align: center; }
  .site-footer .brand, .site-footer p, .site-footer > span { justify-self: center; }
}

@media (max-width: 560px) {
  .login-copy h1 { font-size: 39px; }
  .hero h1 { font-size: 39px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 128px; border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi-card:last-child { border-bottom: 0; }
  .priority-alert { padding: 20px; align-items: start; }
  .alert-icon { width: 34px; height: 34px; }
  .legend { flex-wrap: wrap; }
  .asset-header, .metric-list { padding-left: 20px; padding-right: 20px; }
  .asset-header { align-items: start; }
  .state-pill { margin-top: 6px; }
  .asset-subline { padding-inline: 20px; }
  .asset-footer { padding-inline: 20px; }
  .inclination-pairs { grid-template-columns: 1fr; }
  .panel-header { align-items: start; flex-direction: column; }
  .event-row { grid-template-columns: 80px 48px 1fr; padding: 10px 18px; }
  .event-row > span:last-child { grid-column: 3; margin-top: 6px; }
  .event-row--head { display: none; }
  .criteria-grid { grid-template-columns: 1fr; }
  .threshold-strip { grid-template-columns: 1fr; }
  .threshold-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .threshold-strip div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Live portón cards */
.live-dashboard { background: #f4f3f0; }
.live-topbar { border-top: 4px solid var(--orange); box-shadow: 0 4px 20px rgba(40,32,26,.06); }
.brand--dashboard { gap: 14px; color: #4b4b4b; }
.brand--dashboard .logo-frame { width: 220px; height: 64px; }
.live-topbar { min-height: 86px; }
.live-topbar + main { min-height: calc(100vh - 86px); }

.refresh-control {
  min-width: 116px;
  height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.refresh-control:hover { border-color: var(--orange); }
.refresh-control:disabled { opacity: .65; cursor: wait; }
.refresh-control > span:last-child { display: grid; text-align: left; }
.refresh-control strong { font-size: 10px; }
.refresh-control small { color: #819095; font-size: 8px; }
.refresh-icon { color: var(--orange); font-size: 22px; line-height: 1; }
.refresh-control.is-loading .refresh-icon { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }

.live-hero {
  padding-top: 54px;
  padding-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}
.live-hero h1 { margin: 0; font: 700 clamp(36px, 4vw, 58px) "Manrope", Arial, sans-serif; letter-spacing: -.05em; }
.live-hero > div:first-child > p:last-child { max-width: 720px; margin: 14px 0 0; color: #6c7b81; font-size: 13px; line-height: 1.6; }
.source-status {
  min-width: 250px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(16,33,40,.05);
}
.source-status span { display: grid; gap: 3px; }
.source-status small { color: #879398; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.source-status strong { font-size: 11px; }

.traffic {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid white;
}
.traffic--green { background: #24a877; box-shadow: 0 0 0 3px rgba(36,168,119,.15), 0 0 12px rgba(36,168,119,.24); }
.traffic--yellow { background: #dea424; box-shadow: 0 0 0 3px rgba(222,164,36,.16), 0 0 12px rgba(222,164,36,.2); }
.traffic--red { background: #dc4d43; box-shadow: 0 0 0 3px rgba(220,77,67,.15), 0 0 12px rgba(220,77,67,.22); }

.overview-strip {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(16,33,40,.05);
}
.overview-strip > div { min-height: 104px; padding: 20px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.overview-strip > div:last-child { border-right: 0; }
.overview-strip span { color: #859297; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.overview-strip strong { font: 700 24px "Manrope", Arial, sans-serif; letter-spacing: -.03em; }
.overview-strip small { color: #8b979b; font-size: 9px; }
.overview-strip .overview-state { display: flex; align-items: center; gap: 9px; font-size: 18px; }

.gate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gate-card {
  border: 1px solid #dedbd6;
  border-top: 3px solid var(--orange);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(16,33,40,.07);
}
.gate-card:has(.semaphore-pill--green) { border-top-color: #24a877; }
.gate-card:has(.semaphore-pill--red) { border-top-color: #dc4d43; }
.gate-header { min-height: 82px; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #e5e8e5; }
.gate-identity { display: flex; align-items: center; gap: 12px; }
.gate-code { min-width: 52px; height: 38px; padding: 0 8px; display: grid; place-items: center; border: 1px solid #f7b58f; border-radius: 8px; background: var(--orange-soft); color: var(--orange); font: 800 11px "Manrope", Arial, sans-serif; }
.gate-identity small { color: #8c989c; font-size: 7px; font-weight: 800; letter-spacing: .15em; }
.gate-identity h2 { margin: 2px 0 0; font: 700 19px "Manrope", Arial, sans-serif; letter-spacing: -.025em; }
.semaphore-pill { min-width: 96px; min-height: 32px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.semaphore-pill--green { color: #1d785b; background: #e8f7f1; }
.semaphore-pill--yellow { color: #976b11; background: #fff4d9; }
.semaphore-pill--red { color: #b93c34; background: #fff0ee; }

.signal-list { padding: 0 18px; }
.signal-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 82px 96px;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid #e5e8e5;
}
.signal-row:last-child { border-bottom: 0; }
.signal-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font: 800 18px "Manrope", Arial, sans-serif; }
.signal-icon--tilt { color: #2a8262; background: #e8f6f0; }
.signal-icon--vibration { color: #8465a3; background: #f2ecf8; }
.signal-icon--current { color: #cf791d; background: #fff1df; }
.signal-icon--temperature { color: #3d7887; background: #eaf4f6; }
.signal-copy { min-width: 0; display: grid; gap: 4px; }
.signal-copy strong { font-size: 11px; }
.signal-copy small { color: #879498; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal-value { display: flex; align-items: baseline; justify-content: flex-end; gap: 3px; }
.signal-value strong { font: 700 20px "Manrope", Arial, sans-serif; letter-spacing: -.03em; }
.signal-value small { color: #8b979b; font-size: 8px; }
.signal-light { min-height: 32px; padding: 6px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; font-size: 8px; font-weight: 800; }
.signal-light--green { color: #24785d; background: #edf8f4; }
.signal-light--yellow { color: #936a15; background: #fff7e4; }
.signal-light--red { color: #b53b34; background: #fff1ef; }

.gate-action { margin: 12px 18px 15px; padding: 15px 16px; border: 1px solid; border-radius: 12px; }
.gate-action--green { border-color: #bfe6d7; background: #f1faf7; }
.gate-action--yellow { border-color: #efd59c; background: #fff9ec; }
.gate-action--red { border-color: #f0b6b1; background: #fff3f1; }
.gate-action header { display: flex; align-items: center; gap: 9px; }
.gate-action header strong { font-size: 9px; letter-spacing: .08em; }
.gate-action--green header strong { color: #24785d; }
.gate-action--yellow header strong { color: #946a13; }
.gate-action--red header strong { color: #b83e36; }
.gate-action p { margin: 10px 0 7px; font-size: 11px; font-weight: 700; }
.gate-action ul { margin: 0; padding-left: 17px; color: #6f7c81; font-size: 8px; line-height: 1.6; }
.gate-action li::marker { color: var(--orange); }
.gate-footer { min-height: 38px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e9ece9; background: #fafbf9; color: #929da1; font-size: 7px; }

.rules-panel { padding-top: 52px; padding-bottom: 72px; }
.rules-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 19px; }
.rules-panel h2 { margin: 0; font: 700 clamp(26px, 3vw, 36px) "Manrope", Arial, sans-serif; letter-spacing: -.04em; }
.rules-panel > header > p { max-width: 420px; margin: 0; text-align: right; color: #75858b; font-size: 10px; line-height: 1.5; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.rule-grid article { min-height: 110px; padding: 21px 24px; border-right: 1px solid var(--line); display: flex; align-items: start; gap: 14px; }
.rule-grid article:last-child { border-right: 0; }
.rule-grid strong { font-size: 11px; }
.rule-grid p { margin: 6px 0 0; color: #7e8c91; font-size: 9px; line-height: 1.5; }
.threshold-note { margin-top: 11px; padding: 13px 18px; display: flex; justify-content: space-between; gap: 14px; border-radius: 10px; background: var(--navy); color: rgba(255,255,255,.68); font-size: 8px; }

.brand--footer .logo-frame { width: 190px; height: 56px; opacity: .96; }
.login-page .brand--light .logo-frame { width: 230px; height: 68px; }

@media (max-width: 1050px) {
  .gate-grid { grid-template-columns: 1fr; }
  .overview-strip { grid-template-columns: repeat(2, 1fr); }
  .overview-strip > div:nth-child(2) { border-right: 0; }
  .overview-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 800px) {
  .live-topbar { min-height: 74px; }
  .brand--dashboard .logo-frame { width: 156px; height: 46px; }
  .brand--dashboard span { display: none; }
  .refresh-control { min-width: 48px; width: 48px; padding: 0; justify-content: center; }
  .refresh-control > span:last-child { display: none; }
  .live-hero { align-items: start; flex-direction: column; padding-top: 38px; }
  .source-status { width: 100%; min-width: 0; }
  .rules-panel > header { align-items: start; flex-direction: column; }
  .rules-panel > header > p { text-align: left; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .rule-grid article:last-child { border-bottom: 0; }
  .threshold-note { flex-direction: column; }
}

@media (max-width: 580px) {
  .overview-strip { grid-template-columns: 1fr; }
  .overview-strip > div { min-height: 92px; border-right: 0; border-bottom: 1px solid var(--line); }
  .overview-strip > div:last-child { border-bottom: 0; }
  .gate-header { align-items: flex-start; flex-direction: column; }
  .semaphore-pill { align-self: flex-end; margin-top: -44px; }
  .signal-row { grid-template-columns: 34px minmax(0,1fr) 68px; }
  .signal-light { grid-column: 2 / 4; justify-self: end; margin: -8px 0 8px; }
  .gate-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 9px; }
}
