:root {
  --bg: #050a11;
  --phone: #080e17;
  --panel: #111923;
  --panel-2: #151f2b;
  --line: rgba(220, 235, 255, 0.14);
  --text: #f8fafc;
  --muted: #a9b3c1;
  --orange: #ff7a1a;
  --red: #ff414d;
  --yellow: #ffd33d;
  --blue: #2ea8ff;
  --grey: #7d8794;
  --green: #46d28a;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 220, 255, 0.13), transparent 28%),
    radial-gradient(circle at 100% 100%, rgba(0, 95, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #050a11 0%, #070d16 52%, #050a11 100%);
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.flow-page {
  width: min(1540px, calc(100% - 42px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.flow-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.flow-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(85, 230, 238, 0.42);
  border-radius: 999px;
  background: rgba(5, 10, 17, 0.74);
  color: #eaffff;
  font-size: 13px;
  font-weight: 850;
}

.flow-hero, .flow-section {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 26px;
  background: rgba(6, 13, 22, 0.78);
  box-shadow: var(--shadow);
}

.flow-hero {
  padding: 32px 34px;
  background: linear-gradient(135deg, rgba(85, 230, 238, 0.12), transparent 44%), rgba(6, 13, 22, 0.84);
}

.altso-case-hero {
  overflow: hidden;
}

.altso-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.altso-case-logo {
  width: clamp(82px, 10vw, 132px);
  height: clamp(82px, 10vw, 132px);
  border-radius: 28px;
  box-shadow: 0 0 46px rgba(85, 230, 238, 0.18);
}

.flow-kicker {
  margin: 0 0 14px;
  color: #55e6ee;
  font-size: clamp(14px, 1.35vw, 21px);
  font-weight: 950;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.flow-hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.03;
}

.flow-lead {
  max-width: 980px;
  margin: 18px 0 0;
  color: #c6cdd5;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.58;
}

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

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

.screen-step {
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: start;
  border-color: rgba(85, 230, 238, 0.22);
  background: linear-gradient(135deg, rgba(85, 230, 238, 0.08), rgba(255,255,255,0.025));
}

.screen-step h3 {
  margin: 0 0 2px;
  color: #fff;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.2;
}

.flow-card {
  padding: 18px;
  border: 1px solid rgba(140, 160, 180, 0.28);
  border-radius: 18px;
  background: rgba(9, 21, 33, 0.78);
}

.flow-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.flow-card span, .flow-card p {
  margin: 0;
  color: #b8c2ce;
  font-size: 14px;
  line-height: 1.5;
}

.flow-section {
  margin-top: 26px;
  padding: 28px 30px 32px;
}

.flow-section h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.2vw, 34px);
  text-transform: uppercase;
}

.flow-section p {
  color: #b8c2ce;
  font-size: 16px;
  line-height: 1.66;
}

.flow-summary-section {
  border-color: rgba(255, 211, 61, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 211, 61, 0.07), transparent 42%),
    rgba(6, 13, 22, 0.78);
}

.flow-summary-section p {
  margin: 0 0 16px;
}

.flow-summary-section p:last-child {
  margin-bottom: 0;
}

.flow-summary-section strong {
  color: #fff;
}

.flow-text-panel {
  padding: 22px;
  border: 1px solid rgba(140, 160, 180, 0.28);
  border-radius: 18px;
  background: rgba(5, 10, 17, 0.42);
}

.flow-text-panel p {
  margin: 0 0 16px;
}

.flow-text-panel p:last-child {
  margin-bottom: 0;
}

.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.flow-tag {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(85, 230, 238, 0.34);
  border-radius: 999px;
  background: rgba(85, 230, 238, 0.10);
  color: #eaffff;
  font-size: 13px;
  font-weight: 800;
}

.flow-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(85, 230, 238, 0.28);
  border-radius: 22px;
  background: rgba(85, 230, 238, 0.08);
}

.flow-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #06111a;
  font-weight: 950;
  cursor: pointer;
}

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

.view-index {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(85, 230, 238, 0.14);
  color: #55e6ee;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.altso-screen-img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  object-position: top center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #060d16;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
}

.flow-impact-grid {
  margin-top: 22px;
}

.screen-visual {
  min-height: 138px;
  display: grid;
  gap: 9px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(85, 230, 238, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 230, 238, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(7, 14, 24, 0.94), rgba(15, 27, 40, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.screen-visual span,
.screen-visual i,
.screen-visual b {
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  font-style: normal;
  line-height: 1.2;
}

.screen-visual span {
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.screen-visual i {
  padding: 6px 9px;
  border: 1px solid rgba(85, 230, 238, 0.22);
  background: rgba(85, 230, 238, 0.08);
  color: #d9f8ff;
  font-size: 12px;
  font-weight: 850;
}

.screen-visual b {
  padding: 6px 10px;
  background: rgba(255, 122, 26, 0.14);
  color: #ffb36f;
  font-size: 12px;
}

.login-visual,
.ai-visual {
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 122, 26, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(7, 14, 24, 0.94), rgba(15, 27, 40, 0.88));
}

.follow-visual b,
.detail-visual b {
  color: #ffd766;
  background: rgba(255, 211, 61, 0.12);
}

.kpi-visual i,
.ai-visual i {
  color: #7bd8ff;
  border-color: rgba(46, 168, 255, 0.28);
  background: rgba(46, 168, 255, 0.10);
}

.app-wrap {
  width: min(1280px, calc(100% - 30px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.phone-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 430px);
  gap: 34px;
  align-items: start;
  justify-content: center;
}

.test-guide {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 19, 29, 0.72);
}

.test-guide h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 52px);
}

.test-guide p {
  color: var(--muted);
  line-height: 1.55;
}

.phone {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  border: 10px solid #1b1f26;
  border-radius: 44px;
  background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #05080d;
  z-index: 2;
}

.screen {
  min-height: 760px;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 82px;
  overflow-x: hidden;
}

.app-loading-screen {
  min-height: 690px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
  color: #f8fbff;
}

.app-loading-screen strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.app-loading-screen p {
  max-width: 260px;
  margin: 0;
  color: rgba(228, 236, 246, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.app-loading-spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255, 122, 26, 0.18);
  border-top-color: #ff7a1a;
  border-right-color: #00d5ff;
  box-shadow: 0 0 34px rgba(255, 122, 26, 0.24);
  animation: altso-loading-spin 900ms linear infinite;
}

@keyframes altso-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 72% 24%, rgba(111, 195, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #121c2b, #050a11);
  border: 1px solid rgba(255, 122, 26, 0.55);
  color: var(--orange);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035), 0 10px 24px rgba(0,0,0,0.28);
}

.logo::after {
  content: none;
}

.logo svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.mark-shield {
  fill: rgba(255, 122, 26, 0.10);
  stroke: rgba(255, 122, 26, 0.78);
  stroke-width: 3;
  stroke-linejoin: round;
}

.mark-route {
  fill: none;
  stroke: #ff8a1c;
  stroke-width: 4;
  stroke-linecap: round;
}

.mark-node {
  fill: #08101c;
  stroke-width: 2.7;
}

.mark-node-a,
.mark-node-c {
  stroke: #ff8a1c;
}

.mark-node-b {
  stroke: #6fc3ff;
}

.mark-check {
  fill: none;
  stroke: #6fc3ff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy,
.login-brand .brand-copy,
.detail-top .brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.brand strong, .view-title {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.view-title {
  margin: 0 0 12px;
}

.pilot-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pilot-title-row .view-title {
  margin: 0;
}

.pilot-total-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(46, 168, 255, 0.24);
  border-radius: 999px;
  background: rgba(46, 168, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.pilot-total-pill strong {
  color: #7bd8ff;
  font-size: 15px;
}

.bell {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  border: 1px solid transparent;
}

.head-logout {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 122, 26, 0.42);
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.10);
  color: #ffd8bd;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
}

.head-logout:hover {
  border-color: rgba(255, 122, 26, 0.72);
  background: rgba(255, 122, 26, 0.18);
  color: #fff;
}

.view-subtitle {
  margin: -16px 0 26px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.35;
}

.primary-stack {
  display: grid;
  gap: 12px;
}

.action-tile {
  min-height: 96px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: #fff;
  text-align: left;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.tile-icon {
  color: var(--orange);
  font-size: 32px;
  text-align: center;
}

.hint {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 18px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 14, 23, 0.96);
}

.account-pill {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  border: 1px solid rgba(168, 187, 213, 0.20);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #dce6f2;
  font-size: 10px;
  font-weight: 850;
}

.nav-btn {
  position: relative;
  display: grid;
  gap: 3px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.nav-btn .nav-ico { font-size: 18px; }
.nav-btn.active { color: var(--orange); }

.nav-badge {
  position: absolute;
  top: 2px;
  right: 18px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3f4c;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(8, 14, 23, 0.96);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  min-height: 32px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: #dce3ec;
  font-size: 12px;
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

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

.anomaly-date-group {
  display: grid;
  gap: 8px;
}

.anomaly-date-group + .anomaly-date-group {
  margin-top: 12px;
}

.anomaly-date-group h2 {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(46, 168, 255, 0.3);
  border-radius: 999px;
  background: rgba(46, 168, 255, 0.1);
  color: #a8eaff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.anomaly-card, .kpi-card, .priority-card {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 950;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.critical { color: var(--red); }
.urgent { color: var(--orange); }
.important { color: var(--yellow); }
.planned { color: var(--blue); }
.late { color: #ff5e66; }

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #dce3ec;
  font-size: 11px;
  font-weight: 850;
}

.anomaly-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.chev {
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.kpi-list {
  display: grid;
  gap: 10px;
}

.kpi-card {
  grid-template-columns: 34px 1fr auto 18px;
  align-items: center;
  min-height: 58px;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255,255,255,0.09);
}

.kpi-value {
  font-size: 21px;
  font-weight: 950;
}

.compact-section {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
}

.compact-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.compact-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.compact-button {
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.72);
}

.modal.active { display: flex; }

.modal-panel {
  width: min(430px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d141e;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 14px;
}

.detail-panel {
  width: min(430px, 100%);
  max-height: 96vh;
  padding: 18px 17px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px;
  border-color: rgba(147, 164, 184, 0.24);
  background:
    radial-gradient(circle at 9% 4%, rgba(255, 122, 26, 0.13), transparent 26%),
    linear-gradient(180deg, #07101b 0%, #08111d 54%, #050a11 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.detail-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.detail-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 18px;
}

.detail-logo svg,
.login-brand .logo svg {
  width: 34px;
  height: 34px;
}

.detail-top strong {
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.detail-panel .modal-close {
  float: none;
  width: 46px;
  height: 46px;
  border-color: rgba(181, 196, 216, 0.26);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.detail-hero,
.detail-info-grid,
.workflow-card,
.detail-description,
.detail-drawer,
.detail-admin {
  border: 1px solid rgba(165, 184, 209, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(20, 32, 47, 0.95), rgba(9, 17, 29, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 12px;
  align-items: stretch;
  padding: 15px;
}

.detail-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 9px;
}

.detail-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #f3f7fb;
  font-size: 13px;
  font-weight: 900;
}

.detail-status i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
}

.detail-status.untreated {
  border-color: rgba(255, 65, 77, 0.54);
  background: rgba(255, 65, 77, 0.17);
  color: #ff515b;
}

.detail-status.critical {
  border-color: rgba(255, 65, 77, 0.72);
  background: rgba(255, 65, 77, 0.20);
  color: #ff515b;
  box-shadow: 0 0 22px rgba(255, 65, 77, 0.16);
}

.detail-status.critical i {
  box-shadow: 0 0 14px rgba(255, 65, 77, 0.82);
}

.detail-status.late {
  border-color: rgba(255, 122, 26, 0.58);
  background: rgba(255, 122, 26, 0.17);
  color: #ff7a1a;
}

.detail-main h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 5.8vw, 29px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.detail-hero-meta {
  margin: 7px 0 0;
  color: #f4f8ff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.detail-hero-meta strong {
  color: var(--orange);
}

.detail-category {
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(174, 191, 215, 0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  color: #dbe5ef;
  font-size: 13px;
  font-weight: 850;
  white-space: normal;
}

.deadline-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-height: 130px;
  padding: 12px 10px;
  border-radius: 11px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 122, 26, 0.16), transparent 47%), rgba(255,255,255,0.035);
  text-align: center;
}

.deadline-ring {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border: 7px solid rgba(255, 122, 26, 0.95);
  border-radius: 50%;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
}

.deadline-card strong {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.deadline-card span,
.deadline-card small {
  color: #c9d2dd;
  font-size: 13px;
  font-weight: 800;
}

.deadline-card small {
  margin-top: 7px;
}

.deadline-card small::first-letter {
  color: var(--orange);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  margin-top: 9px;
  padding: 14px 17px;
}

.detail-info {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.detail-info:nth-last-child(-n+2) {
  border-bottom: 0;
}

.detail-info small {
  display: block;
  color: #9faab9;
  font-size: 13px;
  line-height: 1.25;
}

.detail-info strong {
  display: block;
  margin-top: 3px;
  color: #f6f9fc;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.detail-info.highlight strong {
  color: var(--orange);
}

.detail-main-info,
.detail-dates-card {
  margin-top: 9px;
  padding: 15px 16px;
  border: 1px solid rgba(168, 187, 213, 0.18);
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
}

.detail-main-info h3,
.detail-dates-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #f8fafc;
  font-size: 18px;
}

.detail-main-info h3 .detail-icon,
.detail-dates-card h3 .detail-icon {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 25px;
}

.detail-person-line {
  display: grid;
  gap: 10px;
}

.detail-person {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.detail-person + .detail-person {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.detail-person small,
.detail-date-item small {
  display: block;
  color: #9faab9;
  font-size: 13px;
  line-height: 1.2;
}

.detail-person strong,
.detail-date-item strong {
  display: block;
  margin-top: 3px;
  color: #f6f9fc;
  font-size: 16px;
  line-height: 1.2;
}

.detail-person em {
  display: block;
  margin-top: 4px;
  color: #aab4c2;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.detail-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-date-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.detail-date-item .detail-icon {
  width: 48px;
  height: 48px;
}

.detail-delay-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(168, 187, 213, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  color: #aab4c2;
  font-size: 13px;
  font-weight: 850;
}

.detail-delay-status strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 14px;
}

.detail-delay-status strong::before {
  content: "✓";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.detail-delay-status.ok strong {
  border: 1px solid rgba(70, 210, 138, 0.32);
  background: rgba(70, 210, 138, 0.14);
  color: #46d28a;
}

.detail-delay-status.late strong {
  border: 1px solid rgba(255, 65, 77, 0.38);
  background: rgba(255, 65, 77, 0.14);
  color: #ff737b;
}

.detail-delay-status.late strong::before {
  content: "!";
}

.detail-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 198, 220, 0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  color: #fff;
  font-size: 26px;
}

.detail-icon.person::before,
.detail-icon.user::before { content: "♙"; }
.detail-icon.factory::before { content: "▥"; }
.detail-icon.team::before { content: "♚"; }
.detail-icon.calendar::before { content: "◴"; }
.detail-icon.target::before { content: "◎"; }
.detail-icon.camera::before { content: "▣"; }
.detail-icon.action::before { content: "✓"; }
.detail-icon.history::before { content: "◷"; }
.detail-icon.notify::before { content: "♢"; }

.workflow-card {
  margin-top: 9px;
  padding: 14px 14px 11px;
}

.workflow-card h3,
.detail-description h3,
.detail-admin h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: #f8fafc;
  font-size: 18px;
}

.workflow-card h3 span {
  color: var(--orange);
}

.workflow-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -3px 0 13px;
}

.workflow-alerts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 65, 77, 0.62);
  border-radius: 999px;
  background: rgba(255, 65, 77, 0.14);
  color: #ff737b;
  font-size: 12px;
  font-weight: 950;
}

.workflow-alerts span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(178, 190, 205, 0.35);
}

.workflow-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #9da8b7;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
}

.workflow-step small {
  white-space: pre-line;
  color: #aab4c2;
  font-size: 11px;
  line-height: 1.25;
}

.workflow-step.done small {
  color: #cfe9da;
}

.workflow-step i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(154, 166, 184, 0.36);
  border-radius: 50%;
  background: #131d2b;
}

.workflow-step i::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8c97a7;
}

.workflow-step.done {
  color: #fff;
}

.workflow-step.done i {
  border-color: rgba(103, 229, 156, 0.95);
  background: rgba(103, 229, 156, 0.14);
  box-shadow: 0 0 24px rgba(103, 229, 156, 0.16);
}

.workflow-step.done i::before {
  background: #67e59c;
  box-shadow: 0 0 14px rgba(103, 229, 156, 0.75);
}

.workflow-card p {
  margin: 10px 0 0;
  color: #aab4c2;
  font-size: 13px;
  text-align: center;
}

.detail-description {
  margin-top: 9px;
  padding: 13px 14px;
}

.detail-description p {
  margin: 0;
  color: #c7d0dc;
  font-size: clamp(12px, 3.35vw, 14px);
  line-height: 1.38;
  overflow: visible;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.detail-description.is-long p {
  font-size: clamp(11px, 3.05vw, 13px);
  line-height: 1.32;
}

.detail-description.is-very-long p {
  font-size: clamp(10px, 2.75vw, 12px);
  line-height: 1.26;
}

.detail-drawer {
  margin-top: 7px;
  overflow: hidden;
}

.detail-drawer summary {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 7px 13px;
  cursor: pointer;
  list-style: none;
}

.detail-drawer summary::-webkit-details-marker {
  display: none;
}

.detail-drawer summary strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.detail-drawer summary small {
  display: block;
  margin-top: 3px;
  color: #a8b3c1;
  font-size: 12px;
}

.detail-drawer summary > i {
  color: #aab4c2;
  font-size: 34px;
  font-style: normal;
}

.detail-drawer[open] summary > i {
  transform: rotate(90deg);
}

.drawer-content {
  padding: 0 13px 12px 68px;
  color: #b8c3d0;
  font-size: clamp(11px, 2.9vw, 13px);
  line-height: 1.36;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.drawer-content p {
  margin: 8px 0 0;
}

.detail-admin {
  margin-top: 9px;
  padding: 14px;
}

.detail-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid rgba(165, 184, 209, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(20, 32, 47, 0.96), rgba(9, 17, 29, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.detail-action {
  flex: 1 1 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--orange);
  border-radius: 11px;
  background: rgba(255, 122, 26, 0.04);
  color: var(--orange);
  font-weight: 950;
  cursor: pointer;
  padding: 8px 6px;
  min-width: 0;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, filter 140ms ease;
}

.detail-action.full {
  flex: 1 1 0;
}

.detail-action.main {
  flex: 1 1 0;
  min-height: 46px;
}

.detail-action.small {
  flex: 1 1 0;
  min-height: 46px;
}

.detail-action.primary {
  border: 1px solid rgba(123, 255, 177, 0.62);
  background: linear-gradient(135deg, #18b764, #67e59c);
  color: #fff;
  box-shadow: 0 16px 34px rgba(36, 211, 115, 0.28), inset 0 1px 0 rgba(255,255,255,0.22);
}

.detail-action.outline {
  background: rgba(255, 122, 26, 0.045);
}

.detail-action.danger {
  border-color: rgba(255, 65, 77, 0.66);
  color: #ff737b;
  background: rgba(255, 65, 77, 0.08);
  box-shadow: 0 12px 26px rgba(255, 65, 77, 0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}

.detail-action span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1;
}

.detail-action strong {
  font-size: 10px;
  line-height: 1.1;
  white-space: normal;
}

.detail-action small {
  margin-top: -2px;
  color: rgba(255,255,255,0.62);
  font-size: 8px;
  line-height: 1.1;
}

.detail-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 163, 84, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.detail-action.primary:hover {
  border-color: rgba(123, 255, 177, 0.88);
  box-shadow: 0 18px 38px rgba(36, 211, 115, 0.32), inset 0 1px 0 rgba(255,255,255,0.24);
}

.detail-action.danger:hover {
  border-color: rgba(255, 65, 77, 0.90);
  color: #ffd3d6;
  box-shadow: 0 16px 34px rgba(255, 65, 77, 0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.detail-action:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.detail-action:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.34);
  outline-offset: 2px;
}

.detail-action:disabled,
.app-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: saturate(0.9);
}

.app-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.detail-action.is-loading span,
.app-btn.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  animation: altso-loading-spin 900ms linear infinite;
}

.detail-action.small {
  grid-template-columns: 1fr;
  gap: 3px;
}

.detail-action.small span {
  font-size: 16px;
}

.detail-action.small strong {
  font-size: 10px;
  text-align: center;
}

.detail-action-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
}

.field label {
  color: #e6edf5;
  font-size: 12px;
  font-weight: 850;
}

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.field option { color: #071019; }
.field textarea { min-height: 92px; resize: vertical; }

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.app-btn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.app-btn.primary {
  background: var(--orange);
  color: #fff;
}

.app-btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
}

.app-btn.danger-soft {
  border-color: rgba(255, 65, 77, 0.45);
  background: rgba(255, 65, 77, 0.10);
  color: #ffd8dc;
}

.scan-options {
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translate(-50%, 24px);
  opacity: 0;
  width: min(390px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #08111b;
  font-weight: 950;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-test-page .phone .toast {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 88px;
  z-index: 12;
  width: min(330px, calc(100% - 32px));
  max-width: calc(100% - 32px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #08111b;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.toast.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid rgba(8, 17, 27, 0.16);
  border-top-color: #ff7a1a;
  border-radius: 50%;
  animation: altso-loading-spin 900ms linear infinite;
}

.toast.is-persistent {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  pointer-events: auto;
}

.toast.is-persistent div {
  display: grid;
  gap: 4px;
}

.toast.is-persistent strong {
  font-size: 13px;
}

.toast.is-persistent span {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.toast.is-persistent button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 17, 27, 0.12);
  border-radius: 50%;
  background: rgba(8, 17, 27, 0.06);
  color: #08111b;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
}

.demo-user {
  display: grid;
  gap: 6px;
  margin: -14px 0 18px;
}

.demo-user label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.demo-user select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 12px;
}

.demo-user option {
  color: #071019;
}

.bell {
  position: relative;
  cursor: pointer;
}

.bell span {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.connected-account {
  width: 124px;
  max-width: 124px;
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(168, 187, 213, 0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
}

.connected-account strong,
.connected-account small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-account strong {
  color: #fff;
  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.15;
}

.connected-account small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 850;
  line-height: 1.15;
}

.head-date {
  display: grid;
  gap: 1px;
  color: #dce6f2;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.head-date span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
}

.head-date strong {
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.mode-pill {
  max-width: 78px;
  padding: 4px 6px;
  border: 1px solid rgba(70, 210, 138, 0.36);
  border-radius: 999px;
  background: rgba(70, 210, 138, 0.10);
  color: #bff7d8;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.mode-pill.local {
  border-color: rgba(255, 122, 26, 0.36);
  background: rgba(255, 122, 26, 0.10);
  color: #ffe4d2;
}

.diagnostic-panel {
  display: grid;
  gap: 7px;
  margin: -10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 65, 77, 0.46);
  border-radius: 12px;
  background: rgba(255, 65, 77, 0.10);
  color: #ffe9eb;
  font-size: 11px;
  line-height: 1.35;
}

.diagnostic-panel strong {
  color: #fff;
  font-size: 12px;
}

.diagnostic-panel p {
  margin: 0;
}

.diagnostic-panel summary {
  cursor: pointer;
  font-weight: 850;
}

.diagnostic-panel pre {
  max-height: 180px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-head-btn {
  border-color: rgba(255, 122, 26, 0.36);
  color: var(--orange);
}

.login-screen {
  min-height: 100%;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px 0 22px;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.login-brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.login-brand strong {
  color: #fff;
  font-size: 25px;
  font-weight: 950;
}

.login-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(165, 184, 209, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 32, 47, 0.96), rgba(9, 17, 29, 0.98));
}

.login-card h1,
.login-card h2 {
  margin: 0;
  color: #fff;
  font-weight: 950;
}

.login-card h1 {
  font-size: 25px;
}

.login-card h2 {
  font-size: 17px;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.login-field span {
  color: #e6edf5;
  font-size: 12px;
  font-weight: 850;
}

.login-field select,
.login-admin-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.login-field option {
  color: #071019;
}

.login-note {
  padding-top: 2px;
  color: #8f9aaa;
  font-size: 10.5px;
  line-height: 1.35;
}

.login-admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.login-admin-discreet {
  padding: 10px 12px;
  border: 1px solid rgba(165, 184, 209, 0.12);
  border-radius: 11px;
  background: rgba(255,255,255,0.025);
}

.login-admin-discreet summary {
  color: #8f9aaa;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.login-admin-discreet .login-admin-row {
  margin-top: 10px;
}

.login-admin-discreet p {
  margin: 8px 0 0;
  color: #7f8a99;
  font-size: 10.5px;
  line-height: 1.3;
}

.personal-notifications {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(165, 184, 209, 0.18);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(20, 32, 47, 0.84), rgba(9, 17, 29, 0.92));
}

.personal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.personal-head strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.personal-head span {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.18);
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
}

.personal-list {
  display: grid;
  gap: 7px;
  max-height: 175px;
  overflow: auto;
  padding-right: 2px;
}

.personal-notification {
  position: relative;
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  touch-action: pan-y;
  overflow: visible;
}

.personal-notification.is-swiping {
  border-color: rgba(255, 65, 77, 0.52);
  background: linear-gradient(135deg, rgba(255,65,77,0.16), rgba(255,255,255,0.035));
}

.personal-notification::after {
  content: "Supprimer";
  position: absolute;
  right: -92px;
  top: 0;
  bottom: 0;
  width: 84px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 65, 77, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
}

.personal-notification.is-swiping::after {
  opacity: 1;
}

.personal-notification span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
}

.personal-notification strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
}

.personal-notification small,
.personal-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.push-box {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(46, 168, 255, 0.22);
  border-radius: 12px;
  background: rgba(46, 168, 255, 0.06);
}

.push-box strong {
  color: #dcefff;
  font-size: 12px;
}

.push-box span {
  color: #8fa0b6;
  font-size: 10.5px;
  line-height: 1.35;
}

.push-box.is-ok {
  border-color: rgba(70, 210, 138, 0.34);
  background: rgba(70, 210, 138, 0.08);
}

.push-box.is-ok strong {
  color: #bff7d8;
}

.signal-landing {
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 18px;
}

.signal-landing h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

.signal-landing p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.signal-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(168, 187, 213, 0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}

.signal-account-bar span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-account-bar button {
  border: 1px solid rgba(255, 122, 26, 0.36);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.08);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
}

.big-action {
  width: 100%;
  min-height: 70px;
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff7a1a, #ff9f4a);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(255, 122, 26, 0.22);
}

.signal-form {
  display: grid;
  gap: 12px;
}

.search-field {
  margin: 4px 0 14px;
}

.refresh-btn {
  width: 100%;
  margin: -4px 0 12px;
}

.bulk-admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 122, 26, 0.24);
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.08);
}

.bulk-admin-bar span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.bulk-admin-bar div {
  display: flex;
  gap: 7px;
}

.bulk-admin-bar button,
.bulk-check {
  border: 1px solid rgba(168, 187, 213, 0.24);
  border-radius: 10px;
  background: rgba(12, 22, 36, 0.90);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.bulk-admin-bar button {
  min-height: 34px;
  padding: 7px 9px;
}

.bulk-admin-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.follow-select-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.bulk-check {
  min-height: 100%;
  color: var(--muted);
}

.bulk-check.selected {
  border-color: rgba(255, 122, 26, 0.80);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.32), rgba(255, 122, 26, 0.10));
  color: #fff;
}

.scope-toggle,
.chat-mode {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.scope-toggle {
  grid-template-columns: 1fr 1fr;
}

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

.scope-toggle button,
.chat-mode button,
.pilot-scope-select {
  position: relative;
  min-height: 44px;
  border: 1px solid rgba(168, 187, 213, 0.24);
  border-radius: 12px;
  background: rgba(12, 22, 36, 0.90);
  color: #eef4fb;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.pilot-scope-select {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 6px 10px;
}

.pilot-scope-select span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-scope-select select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #eef4fb;
  font: inherit;
  line-height: 1.1;
  outline: none;
  cursor: pointer;
}

.pilot-scope-select select option {
  color: #0b1421;
}

.scope-toggle button i,
.chat-mode button i {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff3f4c;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 0 0 2px #08101a;
}

.scope-toggle button.no-badge i {
  display: none;
}

.scope-toggle button.active,
.chat-mode button.active,
.pilot-scope-select.active {
  border-color: rgba(255, 122, 26, 0.92);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.30), rgba(255, 122, 26, 0.08));
  box-shadow: inset 3px 0 0 rgba(255, 122, 26, 0.95);
}

.chat-panel {
  display: grid;
  gap: 12px;
}

.chat-target {
  display: grid;
  gap: 6px;
}

.chat-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.chat-target span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chat-target select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.chat-target select option {
  background: #101823;
  color: #fff;
}

.chat-list {
  max-height: 430px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 2px;
}

.chat-conversation {
  min-height: 300px;
  padding: 12px;
  border: 1px solid rgba(168, 187, 213, 0.20);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 122, 26, 0.08), transparent 34%),
    rgba(7, 12, 22, 0.72);
}

.chat-thread-list {
  display: grid;
  gap: 10px;
}

.chat-thread-card {
  position: relative;
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 14px 42px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  color: #fff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  touch-action: pan-y;
}

.chat-thread-card.is-swiping {
  border-color: rgba(255, 65, 77, 0.52);
  background: linear-gradient(135deg, rgba(255,65,77,0.16), rgba(255,255,255,0.025));
}

.chat-thread-card::after {
  content: "Supprimer";
  position: absolute;
  right: -92px;
  top: 0;
  bottom: 0;
  width: 84px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 65, 77, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
}

.chat-thread-card.is-swiping::after {
  opacity: 1;
}

.chat-thread-card span {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.chat-thread-card strong {
  color: #dce6f2;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-card small {
  color: var(--muted);
  font-size: 11px;
}

.chat-thread-card i {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ff3f4c;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.chat-thread-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(255, 122, 26, 0.20);
  border-radius: 12px;
  background: rgba(255, 122, 26, 0.06);
}

.chat-thread-title > div {
  display: grid;
  gap: 3px;
}

.chat-thread-title strong {
  color: #fff;
  font-size: 15px;
}

.chat-thread-title span {
  color: var(--muted);
  font-size: 12px;
}

.thread-delete-btn {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 65, 77, 0.38);
  border-radius: 999px;
  background: rgba(255, 65, 77, 0.10);
  color: #ffd8dc;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.chat-message-row {
  display: flex;
}

.chat-message-row.mine {
  justify-content: flex-end;
}

.chat-message-row.other {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,0.055);
}

.chat-message-row.mine .chat-bubble {
  border-color: rgba(255, 122, 26, 0.32);
  background: rgba(255, 122, 26, 0.14);
}

.chat-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.chat-message-meta strong {
  color: #fff;
  font-size: 12px;
}

.chat-bubble p {
  margin: 0;
  color: #dce6f2;
  font-size: 13px;
  line-height: 1.45;
}

.chat-message-meta span {
  color: var(--muted);
  font-size: 11px;
}

.chat-bubble button {
  justify-self: end;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 65, 77, 0.36);
  border-radius: 999px;
  background: rgba(255, 65, 77, 0.10);
  color: #ffd8dc;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.chat-compose {
  display: grid;
  gap: 9px;
}

.chat-compose textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.user-filters .filter-btn {
  border-color: rgba(46, 168, 255, 0.30);
}

.follow-refresh {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 10px;
  border: 1px solid rgba(168, 187, 213, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.follow-refresh span {
  color: #3aa7ff;
  font-size: 21px;
  line-height: 1;
}

.follow-search {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 13px;
  border: 1px solid rgba(168, 187, 213, 0.22);
  border-radius: 12px;
  background: rgba(9, 18, 31, 0.86);
}

.follow-search span {
  color: #c0cad8;
  font-size: 20px;
  line-height: 1;
}

.follow-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.follow-search input::placeholder {
  color: #8995a5;
}

.follow-sort {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.follow-sort > span {
  color: #f6f9fc;
  font-size: 13px;
  font-weight: 900;
}

.follow-sort > div {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.78fr) minmax(0, 0.72fr);
  gap: 7px;
}

.sort-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 8px;
  border: 1px solid rgba(168, 187, 213, 0.22);
  border-radius: 10px;
  background: rgba(12, 22, 36, 0.90);
  color: #eef4fb;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.sort-chip span {
  color: #e9f1fb;
  font-size: 16px;
  line-height: 1;
}

.sort-chip.active {
  border-color: rgba(255, 122, 26, 0.92);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.26), rgba(255, 122, 26, 0.08));
  box-shadow: inset 3px 0 0 rgba(255, 122, 26, 0.95);
}

.anomaly-card {
  gap: 9px;
  padding: 15px;
}

.anomaly-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
}

.anomaly-card span,
.anomaly-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.anomaly-card.is-late {
  border-color: rgba(255, 65, 77, 0.46);
  background: linear-gradient(135deg, rgba(255, 65, 77, 0.12), rgba(255,255,255,0.025));
}

.follow-card {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  overflow: hidden;
  padding: 12px 10px 12px 25px;
  border-radius: 11px;
  border-color: rgba(168, 187, 213, 0.21);
  background:
    radial-gradient(circle at 13% 50%, var(--service-soft), transparent 28%),
    linear-gradient(135deg, rgba(19, 31, 48, 0.96), rgba(7, 15, 27, 0.96));
}

.follow-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--service-color);
  box-shadow: 0 0 28px var(--service-color);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--service-color);
  border-radius: 50%;
  background: var(--service-soft);
  color: var(--service-color);
  padding: 13px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 10px currentColor);
  font-weight: 950;
  line-height: 1;
}

.follow-card-body {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.follow-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.12;
  letter-spacing: 0;
}

.follow-card-body > span {
  color: #aeb8c8;
  font-size: 12px;
  line-height: 1.2;
}

.follow-card-body > span.follow-next-action {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  color: #dce6f5;
  font-size: 11px;
  font-weight: 850;
}

.follow-next-action b {
  color: var(--service-color);
  font-weight: 950;
}

.follow-workflow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 1px 0;
}

.follow-workflow i {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #7e8b9e;
  font-style: normal;
}

.follow-workflow i:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 7px;
  left: calc(50% + 9px);
  right: calc(-50% + 9px);
  height: 2px;
  background: rgba(255,255,255,0.16);
}

.follow-workflow i b {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  z-index: 1;
}

.follow-workflow i b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.follow-workflow i small {
  max-width: 68px;
  color: currentColor;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.follow-workflow i.done {
  color: #67e59c;
}

.follow-workflow i.pending {
  color: #ffbf5a;
}

.follow-workflow i.done:not(:last-child)::after {
  background: rgba(103, 229, 156, 0.62);
}

.follow-workflow i.pending:not(:last-child)::after {
  background: rgba(255, 191, 90, 0.58);
}

/* Ancien ruban conservé en secours si une donnée historique l'utilise encore. */
.follow-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.follow-status-strip i {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: #dce6f5;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.follow-status-strip i.status-chip {
  border-color: var(--service-color);
  color: var(--service-color);
}

.follow-status-strip i.ok {
  border-color: rgba(70, 210, 138, 0.42);
  color: #67e59c;
}

.follow-status-strip i.wait {
  border-color: rgba(255,255,255,0.12);
  color: #aeb8c8;
}

.follow-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--service-color);
  font-size: 13px;
  line-height: 1.2;
}

.follow-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.follow-special-badge {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.follow-special-badge.blocked {
  border: 1px solid rgba(255, 65, 77, 0.55);
  background: rgba(255, 65, 77, 0.18);
  color: #ff5c67;
}

.follow-special-badge.escalated {
  border: 1px solid rgba(255, 134, 26, 0.58);
  background: rgba(255, 134, 26, 0.18);
  color: #ff961f;
}

.follow-card.urgency-late .follow-time,
.follow-card.urgency-critical .follow-time {
  color: #ff5757;
}

.follow-card.urgency-urgent .follow-time {
  color: #ff861a;
}

.follow-card.urgency-watch .follow-time {
  color: #f0c400;
}

.follow-card.urgency-planned .follow-time {
  color: #3aa7ff;
}

.follow-chevron {
  color: #d9e2ee;
  font-size: 24px;
  line-height: 1;
}

.follow-floating-add {
  position: sticky;
  bottom: 76px;
  justify-self: end;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: -66px 2px 4px auto;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff700f, #ff9f45);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(255, 122, 26, 0.34);
  z-index: 4;
}

.time-priority {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.is-late .time-priority,
.late-badge {
  color: #fff;
  background: rgba(255, 65, 77, 0.22);
}

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

.ask-launch-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 70px;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid rgba(123, 216, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 20%, rgba(123, 216, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(46, 168, 255, 0.18), rgba(255, 122, 26, 0.08));
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 16px 34px rgba(0,0,0,0.24);
}

.ask-launch-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -34px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.20), transparent 62%);
  pointer-events: none;
}

.ask-launch-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(123, 216, 255, 0.44);
  background: rgba(7, 12, 22, 0.62);
  color: #7bd8ff;
  box-shadow: 0 0 22px rgba(46, 168, 255, 0.20);
}

.ask-launch-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

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

.ask-launch-card strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.ask-launch-card small {
  margin-top: 2px;
  color: #b9d7ea;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
}

.kpi-grid .kpi-card {
  min-height: 86px;
  grid-template-columns: 1fr;
  align-items: start;
  cursor: pointer;
  padding: 12px 10px;
}

.kpi-grid .kpi-card.is-static {
  cursor: default;
}

.kpi-grid .kpi-card span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.kpi-grid .kpi-card strong {
  color: #fff;
  font-size: 21px;
}

.kpi-grid .kpi-card.danger {
  border-color: rgba(255, 65, 77, 0.42);
}

.kpi-grid .kpi-card.danger strong {
  color: #ff414d;
}

.kpi-grid .kpi-card.warning {
  border-color: rgba(255, 176, 32, 0.44);
}

.kpi-grid .kpi-card.warning strong {
  color: #ffbf5a;
}

.kpi-grid .kpi-card.success {
  border-color: rgba(70, 210, 138, 0.40);
}

.kpi-grid .kpi-card.success strong {
  color: #46d28a;
}

.kpi-grid .kpi-card.performance {
  border-color: rgba(46, 168, 255, 0.35);
  background: linear-gradient(135deg, rgba(46, 168, 255, 0.13), rgba(255,255,255,0.045));
}

.kpi-grid .kpi-card.performance strong {
  color: #7bd8ff;
}

.kpi-grid .kpi-card.wide {
  grid-column: span 2;
}

.kpi-grid .kpi-card.full-row {
  grid-column: 1 / -1;
}

.service-chart {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(168, 187, 213, 0.16);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.service-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.service-chart-head strong {
  color: #fff;
  font-size: 14px;
}

.service-chart-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.service-chart-list {
  display: grid;
  gap: 9px;
}

.service-chart-row {
  display: grid;
  grid-template-columns: minmax(78px, 0.78fr) minmax(0, 1.6fr) minmax(48px, 0.52fr);
  gap: 8px;
  align-items: center;
}

.service-chart-row span,
.service-chart-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.service-chart-row span {
  color: #dce6f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-chart-row strong {
  text-align: right;
  color: var(--service-color);
}

.service-chart-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.service-chart-main small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.service-chart-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.service-chart-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--service-color), rgba(255,255,255,0.26));
  box-shadow: 0 0 18px var(--service-soft);
}

.service-chart-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.pilot-back {
  width: max-content;
  margin-bottom: 14px;
}

.pilot-kpi-detail {
  display: grid;
  gap: 14px;
}

.pilot-kpi-summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(46, 168, 255, 0.25);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 168, 255, 0.12), rgba(255, 122, 26, 0.055));
}

.pilot-kpi-summary span,
.pilot-kpi-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pilot-kpi-summary strong {
  color: #fff;
  font-size: clamp(28px, 9vw, 42px);
  line-height: 1;
}

.ask-altso {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(46, 168, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 168, 255, 0.10), rgba(255,255,255,0.035));
}

.ask-heading {
  display: grid;
  gap: 3px;
}

.ask-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.ask-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px;
}

.ask-input {
  display: grid;
  gap: 6px;
}

.ask-input span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ask-input textarea {
  min-height: 82px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(168, 187, 213, 0.20);
  border-radius: 10px;
  background: rgba(7, 12, 22, 0.72);
  color: #fff;
  font: inherit;
}

.ask-answer {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 11px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.ask-answer-note {
  margin: 0 0 10px;
  color: var(--muted);
}

.ask-answer-sections {
  display: grid;
  gap: 10px;
}

.ask-answer-section {
  padding: 10px;
  border: 1px solid rgba(168, 187, 213, 0.14);
  border-radius: 10px;
  background: rgba(7, 12, 22, 0.35);
}

.ask-answer-section strong {
  display: block;
  margin-bottom: 6px;
  color: #7bd8ff;
  font-size: 12px;
  text-transform: uppercase;
}

.ask-answer-section p {
  margin: 0;
}

.ask-answer.muted {
  color: var(--muted);
}

.ask-answer.loading {
  color: #ffbf5a;
}

.ask-answer.error {
  border-color: rgba(255, 65, 77, 0.38);
  color: #ffd8dc;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

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

.service-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: 13px;
}

.service-row strong {
  color: #fff;
}

.ai-summary,
.admin-zone {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
}

.ai-summary h3,
.admin-zone h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.ai-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.decision-summary {
  display: grid;
  gap: 10px;
}

.decision-summary div {
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  background: rgba(255,255,255,0.035);
}

.decision-summary strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13px;
}

.decision-summary .priority {
  border-color: rgba(255, 122, 26, 0.34);
  background: rgba(255, 122, 26, 0.10);
}

.decision-summary .priority p {
  color: #ffe4d2;
  font-weight: 800;
}

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

.decision-item {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(46, 168, 255, 0.20);
  border-radius: 8px;
  background: rgba(46, 168, 255, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.decision-item strong {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

.decision-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.decision-item.is-late {
  border-color: rgba(255, 65, 77, 0.42);
  background: rgba(255, 65, 77, 0.10);
}

.decision-item.is-late span {
  color: #ffd9dd;
}

.admin-zone summary {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.mode-banner,
.demo-notice {
  display: grid;
  gap: 4px;
  margin: -10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 168, 255, 0.26);
  border-radius: 10px;
  background: rgba(46, 168, 255, 0.08);
  color: #cfeaff;
  font-size: 12px;
  line-height: 1.35;
}

.mode-banner.local {
  border-color: rgba(255, 122, 26, 0.28);
  background: rgba(255, 122, 26, 0.08);
  color: #ffe4d2;
}

.demo-notice {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.proof-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.proof-card {
  margin: 0 0 10px;
  display: grid;
  gap: 6px;
}

.history-entry {
  display: grid;
  gap: 8px;
}

.history-entry + .history-entry {
  margin-top: 10px;
}

.history-entry p {
  margin: 0;
}

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

.history-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.history-photo-button:focus-visible {
  outline: 3px solid rgba(255, 122, 26, 0.78);
  outline-offset: 3px;
}

.proof-card figcaption {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.photo-viewer-panel {
  width: min(92vw, 920px);
  max-height: 92vh;
  display: grid;
  gap: 12px;
}

.photo-viewer-panel .modal-close {
  justify-self: end;
}

.photo-viewer-panel img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  background: #05080d;
}

.photo-viewer-panel strong {
  color: #fff;
  text-align: center;
}

.action-note {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.action-note + .action-note {
  margin-top: 8px;
}

.action-note strong {
  color: #fff;
  font-size: 12px;
}

.action-note p {
  margin: 0;
}

.admin-login {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-popover {
  margin: -8px 0 16px;
}

.admin-login label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-login div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-login input {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.active-kpi-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 122, 26, 0.30);
  border-radius: 10px;
  background: rgba(255, 122, 26, 0.09);
  color: #ffe4d2;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .phone-layout, .flow-grid, .flow-cta, .flow-screen-list { grid-template-columns: 1fr; }
  .phone { width: min(430px, 100%); margin: 0 auto; }
}

@media (max-width: 640px) {
  .altso-title-row {
    grid-template-columns: 1fr;
  }
  .altso-case-logo {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }
  .flow-page, .app-wrap { width: min(100% - 20px, 520px); }
  .flow-hero, .flow-section { border-radius: 20px; padding: 22px 18px; }
  .phone {
    min-height: calc(100vh - 90px);
    border-width: 6px;
    border-radius: 32px;
  }
  .screen { min-height: calc(100vh - 102px); padding: 20px 18px 70px; }
  .test-guide { display: none; }
  .modal {
    padding: 0;
    align-items: stretch;
  }
  .detail-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .detail-hero {
    grid-template-columns: minmax(0, 1fr) 132px;
    padding: 14px;
  }
  .deadline-card {
    min-height: 118px;
  }
  .deadline-ring {
    width: 56px;
    height: 56px;
    border-width: 6px;
    font-size: 24px;
  }
  .deadline-card strong {
    font-size: 20px;
  }
  .detail-info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    padding: 13px 16px;
  }
  .detail-info {
    grid-template-columns: 48px 1fr;
  }
  .detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 23px;
  }
  .workflow-step {
    font-size: 11px;
  }
  .workflow-step i {
    width: 38px;
    height: 38px;
  }
  .detail-actions {
    position: static;
    margin-left: 0;
    margin-right: 0;
    padding: 8px;
    background: linear-gradient(135deg, rgba(20, 32, 47, 0.96), rgba(9, 17, 29, 0.98));
  }
  .follow-sort > div {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.82fr) minmax(0, 0.76fr);
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }
  .sort-chip {
    min-width: 0;
    min-height: 42px;
    padding: 7px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .follow-card {
    grid-template-columns: 66px minmax(0, 1fr) auto;
    min-height: 86px;
    padding: 11px 10px 11px 23px;
  }
  .service-icon {
    width: 52px;
    height: 52px;
    padding: 12px;
  }
  .follow-card h3 {
    font-size: 15px;
  }
  .follow-card-body > span {
    font-size: 11px;
  }
  .follow-time {
    font-size: 12px;
  }
  .follow-chevron {
    font-size: 22px;
  }
}

body.app-test-page .app-wrap {
  padding-top: clamp(106px, 12vh, 136px);
}

body.app-test-page .app-top {
  display: none;
}

body.app-test-page .app-breadcrumb {
  margin-bottom: 18px !important;
}

@media (max-width: 640px) {
  body.app-test-page .app-wrap {
    padding-top: 112px;
  }
}

@media (max-width: 380px) {
  .detail-hero,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }
  .detail-info:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .detail-info:last-child {
    border-bottom: 0;
  }
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .workflow-steps::before {
    display: none;
  }
  .follow-card {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 80px;
  }
  .service-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
  }
  .follow-card h3 {
    font-size: 14px;
  }
  .follow-floating-add {
    width: 58px;
    height: 58px;
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  body.app-test-page {
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  body.app-test-page .site-nav {
    z-index: 1000;
  }

  body.app-test-page .app-wrap {
    width: min(100% - 16px, 430px);
    min-height: 100dvh;
    padding-top: clamp(104px, 15dvh, 122px);
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  body.app-test-page .app-breadcrumb {
    display: none;
  }

  body.app-test-page .phone-layout {
    min-height: 0;
    display: grid;
    align-items: center;
  }

  body.app-test-page .phone {
    width: min(100%, 390px);
    height: min(620px, max(520px, calc(100dvh - 186px - env(safe-area-inset-bottom))));
    min-height: 0;
    margin: 0 auto;
  }

  body.app-test-page .screen {
    height: 100%;
    min-height: 0;
    padding: 18px 16px 64px;
    overflow-y: auto;
  }

  body.app-test-page .modal {
    top: clamp(104px, 15dvh, 122px);
    right: 8px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 8px;
    z-index: 900;
    padding: 0;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }

  body.app-test-page .detail-panel {
    width: min(100%, 390px);
    max-height: 100%;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    border: 1px solid rgba(147, 164, 184, 0.24);
    border-radius: 24px;
    overflow: auto;
  }

  body.app-test-page .detail-top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -14px 12px;
    padding: 14px;
    border-radius: 24px 24px 14px 14px;
    background: linear-gradient(180deg, #07101b 0%, rgba(7, 16, 27, 0.96) 100%);
  }

  body.app-test-page .detail-panel .modal-close {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  body.app-test-page .detail-main h2 {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.1;
  }

  body.app-test-page .detail-description {
    padding: 11px 12px;
  }

  body.app-test-page .detail-description h3 {
    margin-bottom: 8px;
    font-size: 15px;
  }

  body.app-test-page .detail-description p,
  body.app-test-page .drawer-content {
    font-size: 11px;
    line-height: 1.28;
  }

  body.app-test-page .detail-description.is-very-long p {
    font-size: 10px;
    line-height: 1.22;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  body.app-test-page .app-wrap {
    padding-top: 104px;
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }

  body.app-test-page .phone {
    height: min(560px, calc(100dvh - 142px - env(safe-area-inset-bottom)));
  }

  body.app-test-page .modal {
    top: 96px;
    bottom: calc(44px + env(safe-area-inset-bottom));
  }
}

.detail-page-actions .detail-action,
.detail-page-actions .detail-icon-action {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 230, 238, 0.46);
  background: rgba(85, 230, 238, 0.12);
  color: #eaffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-page-actions .detail-action {
  width: auto;
  gap: 0;
  padding: 10px 16px;
  border-radius: 999px;
}

.detail-page-actions .detail-icon-action {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.detail-page-actions .detail-cv-action {
  font-size: 14px;
}

.detail-page-actions .detail-action:hover,
.detail-page-actions .detail-icon-action:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 230, 238, 0.78);
  background: rgba(85, 230, 238, 0.18);
  box-shadow: 0 18px 45px rgba(85, 230, 238, 0.18);
}

.detail-page-actions .detail-download {
  min-width: 220px;
  background: #ffffff;
  color: #06111a;
  border-color: rgba(255, 255, 255, 0.26);
}

@media (max-width: 720px) {
  .detail-page-actions .detail-action {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .detail-page-actions .detail-icon-action {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .detail-page-actions .detail-download {
    width: 100%;
    min-width: 0;
  }
}

/* ALTSO test page - portfolio detail layout */
body.app-test-page {
  background:
    radial-gradient(circle at 75% 10%, rgba(0, 198, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #06131c 0%, #02070c 62%, #010409 100%);
}

body.app-test-page .app-wrap.altso-test-page {
  width: min(1440px, calc(100% - 48px));
  min-height: 0;
  padding: clamp(104px, 10vh, 124px) 0 82px;
}

.altso-test-hero,
.altso-test-section {
  border: 1px solid rgba(85, 230, 238, 0.18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(9, 28, 41, 0.92), rgba(5, 13, 23, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.altso-test-hero {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 38px);
}

.altso-test-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: rgba(226, 240, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.altso-test-breadcrumb a {
  color: #55e6ee;
  text-decoration: none;
}

.altso-test-hero h1 {
  margin: 0;
  color: #f5f8ff;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.altso-test-subtitle {
  margin: 0;
  color: #55e6ee;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 900;
}

.altso-test-lead,
.altso-test-section p {
  max-width: 980px;
  margin: 0;
  color: rgba(226, 240, 255, 0.82);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.58;
}

.altso-context-grid,
.altso-understand-grid {
  display: grid;
  gap: 14px;
}

.altso-context-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.altso-context-card,
.altso-test-panel,
.altso-test-steps article {
  border: 1px solid rgba(85, 230, 238, 0.18);
  border-radius: 18px;
  background: rgba(2, 14, 24, 0.76);
}

.altso-context-card {
  padding: 18px;
}

.altso-context-card span,
.altso-test-panel span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid rgba(85, 230, 238, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: #55e6ee;
  background: rgba(85, 230, 238, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.altso-context-card strong,
.altso-test-panel h3,
.altso-test-guide h3 {
  display: block;
  margin: 0 0 8px;
  color: #f4f8ff;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.12;
}

.altso-context-card p {
  margin: 0;
  color: rgba(226, 240, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.altso-test-section {
  margin-top: 22px;
  padding: clamp(22px, 3vw, 34px);
}

.altso-test-section h2 {
  margin: 0 0 20px;
  color: #f4f8ff;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.app-test-page .phone-layout.altso-test-access {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
  justify-content: space-between;
}

body.app-test-page .test-guide.altso-test-guide {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.altso-test-guide > p {
  margin: 0;
}

.altso-test-guide .flow-kicker {
  color: #55e6ee;
}

.altso-test-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

.altso-test-steps article {
  padding: 16px 18px;
}

.altso-test-steps strong {
  display: block;
  margin-bottom: 7px;
  color: #f4f8ff;
  font-size: 17px;
}

.altso-test-steps span {
  display: block;
  color: rgba(226, 240, 255, 0.74);
  font-size: 15px;
  line-height: 1.45;
}

.altso-test-note {
  padding: 16px 18px;
  border-left: 3px solid #55e6ee;
  border-radius: 14px;
  background: rgba(85, 230, 238, 0.08);
}

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

.altso-test-panel {
  padding: 20px;
}

.altso-test-panel p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.altso-test-limits p {
  max-width: none;
}

.altso-test-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 22px;
}

body.app-test-page .phone {
  width: min(430px, 100%);
}

@media (min-width: 641px) {
  body.app-test-page .phone {
    height: min(780px, max(620px, calc(100vh - 150px)));
    min-height: 0;
  }

  body.app-test-page .screen {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 122, 26, 0.62) rgba(255, 255, 255, 0.06);
  }

  body.app-test-page .screen::-webkit-scrollbar,
  body.app-test-page .detail-panel::-webkit-scrollbar,
  body.app-test-page .modal-panel::-webkit-scrollbar {
    width: 7px;
  }

  body.app-test-page .screen::-webkit-scrollbar-track,
  body.app-test-page .detail-panel::-webkit-scrollbar-track,
  body.app-test-page .modal-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  body.app-test-page .screen::-webkit-scrollbar-thumb,
  body.app-test-page .detail-panel::-webkit-scrollbar-thumb,
  body.app-test-page .modal-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 26, 0.62);
    border-radius: 999px;
  }

  body.app-test-page .phone .modal {
    position: absolute;
    inset: 0;
    z-index: 18;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(3, 7, 12, 0.74);
  }

  body.app-test-page .phone .modal.active {
    display: flex;
  }

  body.app-test-page .phone .modal-panel,
  body.app-test-page .phone .detail-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: none;
  }

  body.app-test-page .phone .modal-panel {
    padding: 18px 17px 88px;
  }

  body.app-test-page .phone .detail-panel {
    padding: 14px 14px 88px;
  }

  body.app-test-page .phone .detail-top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -14px 12px;
    padding: 14px;
    border-radius: 34px 34px 14px 14px;
    background: linear-gradient(180deg, #07101b 0%, rgba(7, 16, 27, 0.96) 100%);
  }

  body.app-test-page .view-title,
  body.app-test-page .pilot-title-row .view-title {
    font-size: 14px;
    line-height: 1.08;
    margin-bottom: 8px;
    min-width: 0;
  }

  body.app-test-page .pilot-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 9px;
  }

  body.app-test-page .pilot-total-pill {
    max-width: 124px;
    min-height: 24px;
    padding: 5px 7px;
    font-size: 8px;
    line-height: 1.05;
    white-space: normal;
  }

  body.app-test-page .pilot-total-pill strong {
    font-size: 11px;
  }

  body.app-test-page .app-head {
    gap: 8px;
    padding-bottom: 10px;
  }

  body.app-test-page .brand strong {
    font-size: 14px;
    line-height: 1.05;
  }

  body.app-test-page .brand-copy small {
    font-size: 8px;
    line-height: 1;
  }

  body.app-test-page .login-card {
    gap: 9px;
    padding: 14px;
  }

  body.app-test-page .login-brand {
    gap: 8px;
  }

  body.app-test-page .login-brand .logo {
    width: 38px;
    height: 38px;
  }

  body.app-test-page .login-brand strong,
  body.app-test-page .login-card h1 {
    font-size: 18px;
    line-height: 1.08;
  }

  body.app-test-page .login-card h2 {
    font-size: 14px;
    line-height: 1.1;
  }

  body.app-test-page .login-card p,
  body.app-test-page .login-note,
  body.app-test-page .login-admin-discreet p {
    font-size: 10px;
    line-height: 1.28;
  }

  body.app-test-page .login-field span {
    font-size: 9px;
  }

  body.app-test-page .login-field select,
  body.app-test-page .login-admin-row input {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 11px;
  }

  body.app-test-page .signal-landing {
    gap: 10px;
  }

  body.app-test-page .signal-landing h1 {
    font-size: 22px;
    line-height: 1.02;
  }

  body.app-test-page .signal-landing p,
  body.app-test-page .signal-account-bar span,
  body.app-test-page .signal-account-bar button {
    font-size: 10px;
    line-height: 1.25;
  }

  body.app-test-page .big-action {
    min-height: 58px;
    padding: 12px;
    font-size: 17px;
    line-height: 1.08;
  }

  body.app-test-page .scope-toggle button,
  body.app-test-page .chat-mode button,
  body.app-test-page .pilot-scope-select {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 11px;
    line-height: 1.15;
  }

  body.app-test-page .pilot-scope-select {
    gap: 1px;
  }

  body.app-test-page .pilot-scope-select span {
    font-size: 8px;
  }

  body.app-test-page .anomaly-date-group h2 {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: 0.02em;
  }

  body.app-test-page .kpi-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-test-page .kpi-grid .kpi-card {
    min-height: 64px;
    padding: 8px 7px;
  }

  body.app-test-page .kpi-grid .kpi-card span {
    font-size: 8px;
    line-height: 1.15;
  }

  body.app-test-page .kpi-grid .kpi-card strong,
  body.app-test-page .kpi-value {
    font-size: 15px;
  }

  body.app-test-page .chat-thread-title strong,
  body.app-test-page .chat-thread-card strong {
    font-size: 12px;
    line-height: 1.12;
  }

  body.app-test-page .chat-thread-title span,
  body.app-test-page .chat-thread-card span,
  body.app-test-page .chat-thread-card small,
  body.app-test-page .chat-thread-card i {
    font-size: 9px;
    line-height: 1.25;
  }

  body.app-test-page .pilot-kpi-summary {
    padding: 9px;
  }

  body.app-test-page .pilot-kpi-summary span,
  body.app-test-page .pilot-kpi-summary small {
    font-size: 9px;
    line-height: 1.2;
  }

  body.app-test-page .pilot-kpi-summary strong {
    font-size: 22px;
    line-height: 1;
  }

  body.app-test-page .detail-main h2 {
    font-size: 16px;
    line-height: 1.12;
  }

  body.app-test-page .detail-top strong {
    font-size: 15px;
    line-height: 1.08;
  }

  body.app-test-page .detail-info small {
    font-size: 11px;
  }

  body.app-test-page .detail-info strong {
    font-size: 12px;
  }
}

body.app-test-page .site-footer {
  margin-top: 0;
}

body.app-direct-page {
  min-height: 100vh;
  background: #080e17;
}

body.app-direct-page .site-nav,
body.app-direct-page .mobile-test-tab,
body.app-direct-page .altso-test-hero,
body.app-direct-page .altso-test-section > h2,
body.app-direct-page .test-guide.altso-test-guide,
body.app-direct-page .altso-test-section:not(:has(.phone)),
body.app-direct-page .altso-test-nav,
body.app-direct-page .site-footer {
  display: none !important;
}

body.app-direct-page .app-wrap.altso-test-page {
  width: 100%;
  min-height: 100dvh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-direct-page .altso-test-section {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.app-direct-page .phone-layout.altso-test-access {
  width: 100%;
  min-height: calc(100dvh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-direct-page .phone {
  margin: 0 auto;
}

body.app-direct-page .app-direct-back {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  left: calc(18px + env(safe-area-inset-left));
  z-index: 1400;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 122, 26, 0.5);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(8, 14, 23, 0.88);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

body.app-direct-page .app-direct-back:hover {
  border-color: rgba(255, 122, 26, 0.82);
  color: #ffb17a;
}

.mobile-test-tab {
  display: none;
}

@media (max-width: 1080px) {
  .altso-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-test-page .phone-layout.altso-test-access,
  .altso-understand-grid {
    grid-template-columns: 1fr;
  }

  body.app-test-page .phone {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  body.app-direct-page {
    overflow: hidden;
  }

  body.app-direct-page .app-wrap.altso-test-page {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body.app-direct-page .altso-test-section,
  body.app-direct-page .phone-layout.altso-test-access {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  body.app-direct-page .phone {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.app-direct-page .phone::before {
    display: none;
  }

  body.app-direct-page .screen {
    height: 100dvh;
    min-height: 100dvh;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(70px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  body.app-direct-page .app-direct-back {
    top: calc(10px + env(safe-area-inset-top));
    left: calc(10px + env(safe-area-inset-left));
    min-height: 34px;
    padding: 7px 11px;
    font-size: 10px;
  }

  body.app-test-page .mobile-test-tab {
    position: fixed;
    right: 12px;
    z-index: 1300;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 122, 26, 0.46);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(8, 14, 23, 0.88);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(14px);
  }

  body.app-test-page .mobile-details-tab {
    top: calc(10px + env(safe-area-inset-top));
  }

  body.app-test-page .mobile-app-tab {
    display: none;
    top: calc(76px + env(safe-area-inset-top));
  }

  body.app-test-page:not(:has(#page-details:target)) {
    overflow: hidden;
    background: #080e17;
  }

  body.app-test-page:not(:has(#page-details:target)) .site-nav,
  body.app-test-page:not(:has(#page-details:target)) .altso-test-hero,
  body.app-test-page:not(:has(#page-details:target)) .altso-test-section > h2,
  body.app-test-page:not(:has(#page-details:target)) .test-guide.altso-test-guide,
  body.app-test-page:not(:has(#page-details:target)) .altso-test-section:not(:has(.phone)),
  body.app-test-page:not(:has(#page-details:target)) .altso-test-nav,
  body.app-test-page:not(:has(#page-details:target)) .site-footer {
    display: none;
  }

  body.app-test-page:not(:has(#page-details:target)) .app-wrap.altso-test-page {
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body.app-test-page:not(:has(#page-details:target)) .altso-test-section {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }

  body.app-test-page:not(:has(#page-details:target)) .phone-layout.altso-test-access {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    display: block;
  }

  body.app-test-page:not(:has(#page-details:target)) .phone {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.app-test-page:not(:has(#page-details:target)) .phone::before {
    display: none;
  }

  body.app-test-page:not(:has(#page-details:target)) .screen {
    height: 100dvh;
    min-height: 100dvh;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(70px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  body.app-test-page:not(:has(#page-details:target)) .phone .modal {
    position: absolute;
    inset: 0;
    z-index: 18;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    border-radius: 0;
    background: rgba(3, 7, 12, 0.74);
  }

  body.app-test-page:not(:has(#page-details:target)) .phone .modal.active {
    display: flex;
  }

  body.app-test-page:not(:has(#page-details:target)) .phone .modal-panel,
  body.app-test-page:not(:has(#page-details:target)) .phone .detail-panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: none;
  }

  body.app-test-page:has(#page-details:target) .mobile-details-tab {
    display: none;
  }

  body.app-test-page:has(#page-details:target) .mobile-app-tab {
    display: inline-flex;
  }

  body.app-test-page .app-wrap.altso-test-page {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 104px 0 calc(72px + env(safe-area-inset-bottom));
    overflow: visible;
  }

  .altso-test-hero,
  .altso-test-section {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .altso-context-grid {
    grid-template-columns: 1fr;
  }

  .altso-test-hero h1 {
    font-size: clamp(36px, 13vw, 52px);
  }

  .altso-test-section h2 {
    font-size: 24px;
  }

  body.app-test-page .test-guide.altso-test-guide {
    display: grid;
  }

  body.app-test-page .phone-layout.altso-test-access {
    min-height: 0;
    gap: 18px;
    align-items: start;
  }

  body.app-test-page .phone {
    width: min(100%, 390px);
    height: min(620px, max(520px, calc(100dvh - 186px - env(safe-area-inset-bottom))));
    min-height: 0;
  }

  body.app-test-page .screen {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .altso-test-nav .flow-link {
    width: 100%;
    justify-content: center;
  }
}
