:root {
  --blue-950: #061b46;
  --blue-900: #07245b;
  --blue-800: #0b347c;
  --blue-700: #0b4fd8;
  --blue-600: #0d63f3;
  --blue-100: #eaf2ff;
  --blue-050: #f6f9ff;
  --green: #0c9f53;
  --green-soft: #dcf8e8;
  --orange: #ff9f1a;
  --orange-soft: #fff1d9;
  --red: #e93636;
  --red-soft: #ffe3e3;
  --purple: #7847d8;
  --purple-soft: #eee7ff;
  --text: #092255;
  --muted: #63718f;
  --line: #dbe5f3;
  --panel: #ffffff;
  --page: #f5f8fd;
  --shadow: 0 18px 42px rgba(9, 34, 85, 0.12);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page);
}

a {
  color: var(--blue-600);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 87%, rgba(20, 103, 239, 0.16), transparent 22rem),
    linear-gradient(135deg, #f9fbff 0%, #edf4ff 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.auth-sidebar,
.sidebar {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-950), var(--blue-900));
}

.auth-sidebar {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  box-shadow: 14px 0 36px rgba(7, 36, 91, 0.18);
}

.brand {
  text-align: center;
}

.brand img {
  width: 210px;
  max-width: 100%;
  display: block;
  margin: 0 auto 8px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.9;
}

.brand-logo-card {
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 242, 255, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-logo-card img {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  border-radius: 7px;
}

.auth-sidebar nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  font-weight: 700;
}

.support-card {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.support-card strong,
.support-card p {
  display: block;
  margin: 8px 0;
}

.support-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.support-card a {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(80, 153, 255, 0.75);
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
}

.auth-sidebar footer {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.45;
}

.login-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 520px) minmax(310px, 440px);
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 48px 74px;
  overflow: hidden;
}

.login-stage::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  width: min(500px, 50vw);
  height: 180px;
  background:
    linear-gradient(135deg, rgba(18, 105, 240, 0.12), rgba(13, 159, 83, 0.18)),
    linear-gradient(180deg, transparent 46%, rgba(20, 103, 239, 0.12) 47%);
  border-radius: 70% 70% 0 0;
  opacity: 0.65;
}

.login-card {
  position: relative;
  z-index: 1;
  padding: 48px 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo {
  width: 208px;
  margin-bottom: 14px;
}

.login-card h1 {
  max-width: 420px;
  margin: 0 auto 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.login-card p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.login-form strong {
  margin-bottom: 2px;
}

.login-form label:not(.check-row) {
  position: relative;
  display: flex;
  align-items: center;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  height: 58px;
  padding: 0 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
  outline: none;
}

.login-form input:focus,
.center-select select:focus,
.global-search input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(13, 99, 243, 0.12);
}

.field-icon,
.search-icon {
  position: absolute;
  left: 18px;
  width: 17px;
  height: 17px;
  border: 2px solid #8a99b7;
  border-radius: 50%;
}

.lock-icon {
  border-radius: 4px;
}

.lock-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -10px;
  width: 8px;
  height: 8px;
  border: 2px solid #8a99b7;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.password-toggle {
  position: absolute;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.password-toggle::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 18px;
  height: 10px;
  border: 2px solid #7c8dab;
  border-radius: 50%;
}

.password-toggle.is-visible::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7c8dab;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
}

.primary-button,
.phase-actions span,
.logout-form button {
  border-radius: 7px;
}

.primary-button {
  min-height: 58px;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600));
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(13, 99, 243, 0.22);
}

.login-card small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
}

.login-copy {
  position: relative;
  z-index: 1;
}

.login-copy h2 {
  max-width: 490px;
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.login-copy > p {
  max-width: 460px;
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.55;
}

.feature-list {
  display: grid;
  gap: 22px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 18px;
}

.feature-icon,
.metric-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--blue-100);
}

.feature-icon::before,
.metric-icon::before,
.nav-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  border: 3px solid currentColor;
  border-radius: 4px;
  color: var(--blue-600);
}

.feature-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.phone-preview {
  position: absolute;
  right: 26px;
  bottom: 36px;
  z-index: 2;
}

.phone-frame {
  width: 210px;
  min-height: 360px;
  padding: 28px 18px;
  border: 10px solid #151922;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 34, 85, 0.2);
  text-align: center;
}

.phone-frame img {
  width: 100px;
  margin: 18px auto;
}

.phone-frame strong {
  display: block;
  font-size: 14px;
}

.phone-frame span {
  display: block;
  height: 38px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.phone-frame button {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-600);
}

.app-page {
  min-height: 100vh;
  background: var(--page);
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 18px;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(7, 36, 91, 0.16);
}

.sidebar-nav {
  display: grid;
  gap: 7px;
  margin-top: 30px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), #287cff);
}

.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  color: currentColor;
}

.nav-icon::before {
  width: 17px;
  height: 17px;
  border-width: 2px;
  color: currentColor;
}

.nav-icon-grid::before {
  box-shadow: inset 7px 0 0 transparent, inset 0 7px 0 transparent;
}

.nav-icon-building::before,
.nav-icon-home::before {
  transform: rotate(45deg);
}

.nav-icon-alert::before {
  border-radius: 50% 50% 4px 4px;
}

.nav-icon-calendar::before,
.nav-icon-report::before,
.nav-icon-document::before {
  border-radius: 3px;
}

.nav-icon-transfer::before {
  width: 20px;
  height: 10px;
  border-left: 0;
  border-right: 0;
}

.sidebar-region {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(45, 127, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #61a1ff, var(--blue-600));
}

.sidebar-region small,
.sidebar-user span {
  color: rgba(255, 255, 255, 0.74);
}

.sidebar-region strong {
  font-size: 18px;
  line-height: 1.15;
}

.sidebar-region a {
  color: #fff;
  font-size: 13px;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--blue-900);
  background: #fff;
  font-weight: 900;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.sidebar-user strong {
  font-size: 14px;
}

.sidebar-user span {
  margin-top: 3px;
  font-size: 12px;
}

.logout-form {
  margin-top: 14px;
}

.logout-form button {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: transparent;
  font-weight: 700;
}

.app-main {
  min-width: 0;
  padding: 0 30px 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(420px, auto);
  align-items: center;
  gap: 24px;
  min-height: 104px;
  margin: 0 -30px 22px;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.title-block h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.title-block p {
  margin: 8px 0 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.center-select,
.global-search {
  position: relative;
  display: grid;
}

.center-select label {
  position: absolute;
  top: -13px;
  left: 12px;
  padding: 0 6px;
  color: var(--blue-800);
  background: #fff;
  font-size: 12px;
}

.center-select select {
  width: min(360px, 28vw);
  min-width: 260px;
  height: 52px;
  padding: 0 42px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fff;
}

.global-search input {
  width: min(360px, 26vw);
  min-width: 260px;
  height: 52px;
  padding: 0 18px 0 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.search-icon {
  top: 17px;
  left: 18px;
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  background: #8a99b7;
  transform: rotate(45deg);
}

.bell-button,
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.bell-button {
  width: 46px;
  height: 46px;
  color: var(--blue-900);
}

.bell-shape {
  width: 19px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 12px 12px 6px 6px;
}

.bell-button span:last-child,
.notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.flash,
.info-banner,
.footer-note,
.placeholder-panel,
.panel-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(9, 34, 85, 0.06);
}

.flash {
  padding: 13px 16px;
  margin-bottom: 16px;
  font-weight: 700;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash-success {
  color: #08743d;
  background: var(--green-soft);
  border-color: #b9efcf;
}

.flash-error {
  color: #b31717;
  background: var(--red-soft);
  border-color: #ffc7c7;
}

.flash.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}

.info-banner {
  display: grid;
  grid-template-columns: 44px 1fr 32px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 22px;
  color: var(--blue-900);
  background: linear-gradient(90deg, #eef6ff, #f8fbff);
  border-color: #bdd4ff;
}

.info-banner p,
.footer-note p,
.placeholder-panel p,
.phase-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-weight: 900;
  font-style: normal;
}

.info-banner button {
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 5px;
  font-size: 34px;
  line-height: 1;
}

.metric-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.metric-icon.warning {
  background: var(--orange-soft);
}

.metric-icon.warning::before {
  color: var(--orange);
  transform: rotate(45deg);
}

.metric-icon.calendar,
.metric-icon.need {
  background: var(--purple-soft);
}

.metric-icon.calendar::before,
.metric-icon.need::before {
  color: var(--purple);
}

.metric-icon.assets {
  background: var(--green-soft);
}

.metric-icon.assets::before {
  color: var(--green);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-bottom: 22px;
}

.panel-card {
  padding: 20px;
}

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

.panel-card h2,
.placeholder-panel h2 {
  margin: 0;
  font-size: 18px;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-600);
}

.activity-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.activity-item time {
  color: var(--muted);
  font-size: 12px;
}

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

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

.phase-actions span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
  font-size: 13px;
}

.footer-note {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(90deg, #f8fbff, #eef6ff);
}

.placeholder-panel {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 46px 24px;
  text-align: center;
}

.placeholder-panel p {
  max-width: 620px;
}

.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-600);
  font-weight: 800;
}

.mobile-appbar,
.mobile-nav,
.app-overlay {
  display: none;
}

.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #fff;
  font-weight: 900;
}

.mobile-brand:hover {
  color: #fff;
}

.mobile-brand .mobile-logo {
  width: 34px;
  height: 34px;
  max-height: 34px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 22px;
  height: 2px;
  display: block;
  background: currentColor;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

@media (max-width: 1280px) {
  .login-stage {
    grid-template-columns: minmax(330px, 500px) minmax(280px, 360px);
    gap: 46px;
    padding: 40px;
  }

  .phone-preview {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .center-select select,
  .global-search input {
    width: 320px;
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-sidebar {
    display: none;
  }

  .login-stage {
    grid-template-columns: minmax(0, 520px);
    padding: 28px 18px;
  }

  .login-copy {
    display: none;
  }

  .login-card {
    padding: 34px 22px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    width: min(310px, 86vw);
    transform: translateX(-104%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .app-overlay.is-visible {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: rgba(6, 27, 70, 0.45);
  }

  .mobile-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 0 16px;
    background: var(--blue-950);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-logo {
    width: 112px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
    color: #fff;
  }

  .notification-dot {
    position: static;
  }

  .app-main {
    padding: 0 14px 96px;
  }

  .topbar {
    position: relative;
    min-height: 0;
    margin: 0 -14px 16px;
    padding: 18px 14px;
  }

  .title-block h1 {
    font-size: 22px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .center-select select,
  .global-search input {
    width: 100%;
    min-width: 0;
  }

  .bell-button {
    display: none;
  }

  .metric-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 108px;
  }

  .info-banner,
  .footer-note {
    grid-template-columns: 40px 1fr;
  }

  .info-banner button {
    grid-column: 2;
    justify-self: start;
  }

  .activity-item {
    grid-template-columns: 18px 1fr;
  }

  .activity-item time {
    grid-column: 2;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 68px;
    padding: 7px 8px 8px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 26px rgba(9, 34, 85, 0.08);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
  }

  .mobile-nav a.active {
    color: var(--blue-600);
  }
}

@media (max-width: 520px) {
  .login-card h1 {
    font-size: 22px;
  }

  .login-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .login-form input[type="text"],
  .login-form input[type="password"],
  .primary-button {
    height: 54px;
    min-height: 54px;
  }

  .metric-card strong {
    font-size: 30px;
  }
}


.module-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.wide-panel {
  min-width: 0;
}

.form-panel {
  position: sticky;
  top: 122px;
}

.filter-bar,
.inline-actions,
.report-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.filter-bar input,
.filter-bar select,
.inline-actions input,
.stack-form input,
.stack-form select,
.stack-form textarea,
.operation-form input,
.operation-form select,
.operation-form textarea,
.inline-form-grid input,
.inline-form-grid select,
.mini-form input,
.mini-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.filter-bar input {
  min-width: 240px;
  flex: 1;
}

.filter-bar button,
.secondary-button,
.row-action,
.mini-form button,
.report-links a,
.danger-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--blue-800);
  background: #fff;
  font-weight: 800;
}

.inline-links {
  justify-content: flex-end;
  margin-bottom: 0;
}

.panel-card header .inline-links {
  margin-left: auto;
}

.row-action {
  min-height: 34px;
  font-size: 12px;
}

.danger-button {
  border-color: #ffbaba;
  color: var(--red);
  background: #fff7f7;
}

.primary-button.compact {
  min-height: 42px;
  height: 42px;
  padding: 0 16px;
}

.stack-form,
.operation-form {
  display: grid;
  gap: 12px;
}

.stack-form label,
.operation-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
}

.stack-form textarea,
.operation-form textarea {
  min-height: 84px;
  padding-top: 10px;
  resize: vertical;
}

.operation-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.operation-form .full-field,
.button-row {
  grid-column: 1 / -1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

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

.responsive-table th {
  color: var(--muted);
  background: #f8fbff;
  font-size: 12px;
  text-transform: uppercase;
}

.responsive-table td small,
.responsive-table td strong {
  display: block;
}

.responsive-table td small {
  margin-top: 4px;
  color: var(--muted);
}

.inline-panel-row {
  display: none;
}

.inline-panel-row.is-open {
  display: table-row;
}

.inline-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f8fbff;
  border-radius: 7px;
}

.status-pill,
.priority-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: var(--blue-100);
  color: var(--blue-800);
}

.status-active,
.status-completed,
.status-resolved,
.status-approved,
.status-generated {
  background: var(--green-soft);
  color: #08743d;
}

.status-inactive,
.status-cancelled,
.priority-urgent,
.priority-critical {
  background: var(--red-soft);
  color: #b31717;
}

.status-maintenance,
.status-scheduled,
.status-pending,
.priority-high,
.priority-medium {
  background: var(--orange-soft);
  color: #9a5a00;
}

.priority-low {
  background: var(--green-soft);
  color: #08743d;
}

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

.compact-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.compact-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.technician-summary-list {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.technician-summary-list > div {
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.quick-actions a {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-600);
  font-weight: 900;
  text-align: center;
}

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

.center-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.center-hero > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(9, 34, 85, 0.06);
}

.center-hero h2 {
  margin: 0 0 5px;
  font-size: 28px;
}

.center-hero p {
  margin: 0;
  color: var(--muted);
}

.definition-list {
  display: grid;
  gap: 12px;
}

.definition-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.definition-list span {
  color: var(--muted);
}

.inventory-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  margin-bottom: 18px;
}

.inventory-progress strong {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2ebfa;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-600);
}

.mini-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.report-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.public-page {
  background: #f4f8ff;
}

.public-report {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.public-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: #fff;
  background: var(--blue-950);
  border-radius: 8px 8px 0 0;
}

.public-brand,
.public-report-state {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.public-brand strong {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.public-report-state span {
  padding: 8px 10px;
  border-radius: 7px;
  color: #08743d;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.public-title {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  margin-bottom: 18px;
}

.public-title h1 {
  margin: 0;
  font-size: 30px;
}

.public-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .module-grid,
  .inventory-progress,
  .three-columns {
    grid-template-columns: 1fr;
  }

  .form-panel {
    position: static;
  }

  .quick-actions {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .operation-form,
  .inline-form-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .quick-actions,
  .operation-form,
  .inline-form-grid,
  .report-links {
    grid-template-columns: 1fr;
  }

  .responsive-table table,
  .responsive-table thead,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #edf2fb;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
  }

  .inline-panel-row.is-open {
    display: block;
  }

  .definition-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .public-header,
  .public-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.permission-grid span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue-800);
  background: var(--blue-100);
  font-size: 12px;
  font-weight: 800;
}

/* Icon system and guided inventory */
:root {
  --icon-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/g%3E%3C/svg%3E");
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10.5V20h13v-9.5'/%3E%3Cpath d='M9.5 20v-6h5v6'/%3E%3C/g%3E%3C/svg%3E");
  --icon-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21h16'/%3E%3Cpath d='M6 21V5.5L14 3v18'/%3E%3Cpath d='M14 9h4v12'/%3E%3Cpath d='M9 8h1M9 12h1M9 16h1'/%3E%3C/g%3E%3C/svg%3E");
  --icon-inventory: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8l1 3H7l1-3Z'/%3E%3Crect x='5' y='7' width='14' height='14' rx='2'/%3E%3Cpath d='M9 12h6M9 16h6'/%3E%3C/g%3E%3C/svg%3E");
  --icon-monitor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/g%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 10 18H2L12 3Z'/%3E%3Cpath d='M12 9v5M12 18h.01'/%3E%3C/g%3E%3C/svg%3E");
  --icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/g%3E%3C/svg%3E");
  --icon-need: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M8 14c-1.7-1.2-3-3-3-5.4A7 7 0 0 1 19 8.6c0 2.4-1.3 4.2-3 5.4-.8.6-1 1.2-1 2H9c0-.8-.2-1.4-1-2Z'/%3E%3C/g%3E%3C/svg%3E");
  --icon-transfer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h13'/%3E%3Cpath d='m14 4 3 3-3 3'/%3E%3Cpath d='M20 17H7'/%3E%3Cpath d='m10 14-3 3 3 3'/%3E%3C/g%3E%3C/svg%3E");
  --icon-report: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4a1 1 0 0 1 1-1h9l4 4v14H5Z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M8 17v-5M12 17V9M16 17v-3'/%3E%3C/g%3E%3C/svg%3E");
  --icon-document: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l3 3v15H6V3Z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/g%3E%3C/svg%3E");
  --icon-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a8 8 0 0 0 .1-1l2-1.5-2-3.5-2.4 1a7 7 0 0 0-1.7-1L15 6.5h-4L10.6 9a7 7 0 0 0-1.7 1l-2.4-1-2 3.5 2 1.5a8 8 0 0 0 .1 2l-2 1.5 2 3.5 2.4-1c.5.4 1.1.7 1.7 1l.4 2.5h4l.4-2.5c.6-.3 1.2-.6 1.7-1l2.4 1 2-3.5L19.4 15Z'/%3E%3C/g%3E%3C/svg%3E");
  --icon-headset: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13v-1a8 8 0 0 1 16 0v1'/%3E%3Cpath d='M4 13h3v6H4v-6ZM17 13h3v6h-3v-6Z'/%3E%3Cpath d='M17 19c0 2-2 2-4 2h-1'/%3E%3C/g%3E%3C/svg%3E");
  --icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2 2.5 3 5.5 3 9s-1 6.5-3 9M12 3c-2 2.5-3 5.5-3 9s1 6.5 3 9'/%3E%3C/g%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
  --icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --icon-refresh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5'/%3E%3Cpath d='M4 17v-5h5'/%3E%3Cpath d='M6 9a7 7 0 0 1 11.5-2L20 9'/%3E%3Cpath d='M18 15A7 7 0 0 1 6.5 17L4 15'/%3E%3C/g%3E%3C/svg%3E");
}

.feature-icon::before,
.metric-icon::before,
.nav-icon::before,
.button-icon {
  border: 0;
  border-radius: 0;
  background: currentColor;
  color: inherit;
  -webkit-mask: var(--icon, var(--icon-grid)) center / contain no-repeat;
  mask: var(--icon, var(--icon-grid)) center / contain no-repeat;
}

.nav-icon-grid,
.metric-icon.grid { --icon: var(--icon-grid); }
.nav-icon-home,
.metric-icon.home { --icon: var(--icon-home); }
.nav-icon-building,
.feature-icon.building,
.metric-icon.building { --icon: var(--icon-building); }
.nav-icon-inventory,
.metric-icon.inventory { --icon: var(--icon-inventory); }
.nav-icon-monitor,
.feature-icon.monitor,
.metric-icon.monitor { --icon: var(--icon-monitor); }
.nav-icon-alert,
.metric-icon.warning { --icon: var(--icon-alert); }
.nav-icon-calendar,
.metric-icon.calendar { --icon: var(--icon-calendar); }
.nav-icon-need,
.metric-icon.need { --icon: var(--icon-need); }
.nav-icon-transfer { --icon: var(--icon-transfer); }
.nav-icon-report,
.metric-icon.report { --icon: var(--icon-report); }
.nav-icon-document { --icon: var(--icon-document); }
.nav-icon-settings { --icon: var(--icon-settings); }
.nav-icon-headset,
.feature-icon.headset { --icon: var(--icon-headset); }
.metric-icon.globe { --icon: var(--icon-globe); }
.feature-icon.assets,
.metric-icon.assets { --icon: var(--icon-monitor); }
.icon-check { --icon: var(--icon-check); }
.icon-x { --icon: var(--icon-x); }
.icon-plus { --icon: var(--icon-plus); }
.icon-refresh { --icon: var(--icon-refresh); }

.feature-icon,
.metric-icon {
  color: var(--blue-600);
}

.metric-icon.warning {
  color: var(--orange);
}

.metric-icon.calendar,
.metric-icon.need {
  color: var(--purple);
}

.metric-icon.assets,
.feature-icon.assets {
  color: var(--green);
}

.button-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 8px;
  flex: 0 0 16px;
}

.guided-inventory {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 16px;
  margin-bottom: 22px;
}

.walkthrough-card {
  min-height: 390px;
}

.walkthrough-card > p,
.center-run-card p,
.completion-state p {
  line-height: 1.5;
}

.asset-focus {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  margin-bottom: 16px;
}

.asset-focus small,
.asset-focus p {
  color: var(--muted);
}

.asset-focus h3 {
  margin: 4px 0;
  font-size: 26px;
  line-height: 1.12;
}

.asset-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.asset-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.asset-facts dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.asset-facts dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.guided-form.operation-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.review-panel header input {
  width: min(100%, 220px);
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
}

.review-list {
  display: grid;
  gap: 8px;
  max-height: 530px;
  overflow: auto;
  padding-right: 2px;
}

.review-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.review-row.active {
  border-color: var(--blue-600);
  background: var(--blue-050);
  box-shadow: 0 8px 22px rgba(13, 99, 243, 0.1);
}

.review-row strong,
.review-row small {
  display: block;
}

.review-row small {
  margin-top: 3px;
  color: var(--muted);
}

.review-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.state-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b8c6dc;
}

.state-dot.validated,
.state-dot.updated,
.state-dot.added {
  background: var(--green);
}

.state-dot.not_found {
  background: var(--red);
}

.state-dot.pending {
  background: var(--orange);
}

.completion-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.completion-state h3 {
  margin: 0;
  font-size: 24px;
}

.center-run-card form,
.walkthrough-card form:not(.operation-form) {
  margin-top: 14px;
}

.compact-preview {
  max-height: 360px;
}

.quick-actions {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.quick-actions form {
  margin: 0;
}

.quick-actions a,
.quick-actions button {
  width: 100%;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue-600);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1180px) {
  .guided-inventory,
  .asset-facts {
    grid-template-columns: 1fr;
  }

  .guided-form.operation-form {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .guided-form.operation-form {
    grid-template-columns: 1fr;
  }

  .asset-focus {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .asset-focus .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .asset-focus h3 {
    font-size: 22px;
  }

  .review-panel header {
    align-items: stretch;
    flex-direction: column;
  }

  .review-panel header input {
    width: 100%;
  }

  .review-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .review-row em {
    grid-column: 2;
    justify-self: start;
  }
}

.nav-icon::before {
  width: 18px;
  height: 18px;
  box-shadow: none;
  transform: none;
}

.feature-icon::before,
.metric-icon::before {
  width: 24px;
  height: 24px;
  box-shadow: none;
  transform: none;
}

.metric-icon.warning::before,
.metric-icon.calendar::before,
.metric-icon.need::before,
.metric-icon.assets::before,
.nav-icon-building::before,
.nav-icon-home::before,
.nav-icon-transfer::before {
  width: 24px;
  height: 24px;
  transform: none;
}

.nav-icon-building::before,
.nav-icon-home::before,
.nav-icon-transfer::before {
  width: 18px;
  height: 18px;
}

.primary-button.compact,
.button-row .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.brand img {
  max-height: 118px;
  object-fit: contain;
}

.login-logo {
  width: 156px;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(6, 27, 70, 0.18);
}

.mobile-logo {
  max-height: 36px;
  object-fit: contain;
}

.public-header img {
  max-height: 54px;
  object-fit: contain;
}

.evidence-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.evidence-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.evidence-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #061b46;
}

.evidence-card div {
  padding: 12px;
}

.evidence-card h3 {
  margin: 10px 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

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

.evidence-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .evidence-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
.inventory-code-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.inventory-code-search label {
  display: grid;
  gap: 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
}

.inventory-code-search input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.search-result-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.search-result-banner strong,
.search-result-banner span {
  display: block;
}

.search-result-banner span {
  margin-top: 3px;
  font-weight: 900;
}

.search-result-banner.found {
  border: 1px solid #b7efd0;
  color: #08743d;
  background: var(--green-soft);
}

.search-result-banner.missing {
  border: 1px solid #ffd6a3;
  color: #9a5700;
  background: var(--orange-soft);
}

.search-result-banner a,
.chatgpt-export {
  color: #fff !important;
  background: var(--blue-600) !important;
  border-color: var(--blue-600) !important;
}

.form-hint {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.stack-form input[type="file"] {
  padding: 9px 12px;
}

@media (max-width: 720px) {
  .inventory-code-search {
    grid-template-columns: 1fr;
  }

  .search-result-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

:root {
  --icon-location: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-5.1 7-11a7 7 0 1 0-14 0c0 5.9 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

.nav-icon-location,
.metric-icon.location {
  --icon: var(--icon-location);
}

.locations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.location-metrics {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.location-list {
  display: grid;
  gap: 12px;
}

.location-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(190px, 230px);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.location-select {
  display: grid;
  place-items: center;
  min-height: 44px;
}

.location-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
}

.location-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.location-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.location-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.location-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 0;
}

.location-facts div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #edf2fb;
  border-radius: 7px;
  background: #f8fbff;
}

.location-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.location-actions {
  display: grid;
  gap: 8px;
}

.location-actions form {
  margin: 0;
}

.location-actions .primary-button,
.location-actions .secondary-button,
.location-actions .row-action {
  width: 100%;
}

.location-actions button:disabled,
.location-select input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.whatsapp-panel {
  position: sticky;
  top: 122px;
}

.whatsapp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.whatsapp-panel textarea {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: #f8fbff;
  resize: vertical;
  outline: none;
}

.map-dialog[hidden] {
  display: none;
}

.map-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 27, 70, 0.42);
}

.map-dialog-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-dialog-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.map-dialog-card h2,
.map-dialog-card p {
  margin: 0;
}

.map-dialog-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.map-dialog-card header button {
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 26px;
}

@media (max-width: 1180px) {
  .locations-layout,
  .location-card,
  .location-facts {
    grid-template-columns: 1fr;
  }

  .whatsapp-panel {
    position: static;
  }

  .location-select {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .location-metrics {
    grid-template-columns: 1fr;
  }

  .location-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .location-heading .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.metric-icon.check { --icon: var(--icon-check); color: var(--green); }
.metric-icon.x { --icon: var(--icon-x); color: var(--red); }

.inventory-history-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  margin-bottom: 22px;
}

.inventory-current header,
.inventory-history header,
.inventory-history-detail header {
  align-items: flex-start;
}

.inventory-current header p,
.inventory-history header p,
.inventory-history-detail header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.history-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(180px, 250px) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
}

.history-card:hover {
  border-color: var(--blue-300);
  background: #f8fbff;
}

.history-card strong,
.history-card small,
.inventory-history-detail td small {
  display: block;
}

.history-card small,
.inventory-history-detail td small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.history-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 6px;
  margin: 0;
}

.history-card dt {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.history-card dd {
  margin: 1px 0 0;
  color: var(--text);
  font-weight: 900;
}

.detail-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-heading > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-heading h1,
.detail-heading p {
  margin: 0;
}

.detail-heading h1 {
  font-size: 30px;
  line-height: 1.12;
}

.detail-heading p {
  margin-top: 4px;
  color: var(--muted);
}

.session-summary-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin-bottom: 18px;
}

.change-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.change-list li {
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .inventory-history-grid,
  .session-summary-grid,
  .history-card {
    grid-template-columns: 1fr;
  }

  .history-card {
    align-items: start;
  }
}

@media (max-width: 720px) {
  .detail-heading > div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .detail-heading .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .detail-heading h1 {
    font-size: 24px;
  }

  .history-card dl {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }
}
.icon-location { --icon: var(--icon-location); }

.location-capture-button {
  min-height: 44px;
}

.location-capture-status {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.location-capture-status[data-state="loading"] {
  color: var(--blue-600);
}

.location-capture-status[data-state="success"] {
  color: var(--green);
}

.location-capture-status[data-state="error"] {
  color: var(--red);
}
.icon-inventory { --icon: var(--icon-inventory); }
.icon-calendar { --icon: var(--icon-calendar); }
.icon-alert { --icon: var(--icon-alert); }
.icon-transfer { --icon: var(--icon-transfer); }
.icon-report { --icon: var(--icon-report); }

body.modal-open {
  overflow: hidden;
}

.center-modal[hidden] {
  display: none;
}

.center-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 27, 70, 0.48);
}

.center-modal-card {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.center-modal-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.center-modal-card h2,
.center-modal-card p {
  margin: 0;
}

.center-modal-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.center-modal-card header button {
  width: 36px;
  height: 36px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.evidence-modal-form {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.evidence-modal-form .form-hint,
.evidence-modal-form .button-row,
.evidence-modal-form .full-field {
  grid-column: 1 / -1;
}

.evidence-list-panel header {
  align-items: flex-start;
}

.evidence-list-panel header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.evidence-grid-wide {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.center-evidence-heading > div {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.evidence-summary-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

@media (max-width: 1180px) {
  .quick-actions,
  .evidence-summary-grid,
  .evidence-grid-wide {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .quick-actions,
  .evidence-modal-form,
  .evidence-summary-grid,
  .evidence-grid-wide {
    grid-template-columns: 1fr;
  }

  .center-evidence-heading > div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .center-evidence-heading .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.quick-actions a,
.quick-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-actions .button-icon {
  margin-right: 0;
}

/* Universal module hub layout */
.app-page {
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.8), transparent 340px),
    var(--page);
}

.app-shell {
  display: block;
  width: min(1540px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px clamp(14px, 2vw, 28px) 38px;
}

.app-homebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(190px, 0.72fr) minmax(250px, 1.1fr) minmax(250px, 1fr) 46px minmax(190px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(9, 34, 85, 0.08);
  backdrop-filter: blur(14px);
}

.app-brand {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  color: var(--text);
}

.app-brand:hover {
  color: var(--text);
}

.app-brand img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(6, 27, 70, 0.2);
}

.app-brand span,
.app-account div,
.app-region-pill div {
  min-width: 0;
}

.app-brand strong,
.app-brand small,
.app-account strong,
.app-account span,
.app-region-pill small,
.app-region-pill strong {
  display: block;
}

.app-brand strong {
  font-size: 24px;
  line-height: 1;
}

.app-brand small,
.app-region-pill small,
.app-account span {
  color: var(--muted);
  font-size: 12px;
}

.app-region-pill {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f8fbff;
}

.app-region-pill .pin-icon {
  width: 34px;
  height: 34px;
}

.app-region-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-account {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #fff;
}

.app-account .avatar {
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-700), #28a7ff);
}

.app-account strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-account .logout-form {
  margin: 0;
}

.app-account .logout-form button {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue-800);
  background: var(--blue-050);
  font-size: 12px;
}

.module-launcher {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 12px 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(9, 34, 85, 0.07);
  overflow-x: auto;
  scrollbar-width: thin;
}

.module-tile {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 44px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  text-align: left;
  white-space: nowrap;
}

.module-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(13, 99, 243, 0.06), transparent);
  opacity: 0;
}

.module-tile:hover,
.module-tile.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 16px 30px rgba(13, 99, 243, 0.24);
}

.module-tile:hover::after,
.module-tile.active::after {
  opacity: 1;
}

.module-tile .nav-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  color: currentColor;
}

.module-tile .nav-icon::before {
  width: 18px;
  height: 18px;
}

.module-tile strong {
  font-size: 13px;
  line-height: 1.15;
}

.app-main {
  min-width: 0;
  padding: 0;
}

.topbar {
  position: relative;
  top: auto;
  z-index: 1;
  display: block;
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar .title-block {
  padding: 18px 0 4px;
}

@media (max-width: 1280px) {
  .app-homebar {
    grid-template-columns: minmax(210px, 1fr) minmax(230px, 320px) minmax(230px, 1fr) 46px minmax(180px, auto);
  }

  .app-region-pill {
    display: none;
  }

  .app-homebar .global-search {
    grid-column: auto;
  }

  .app-homebar .center-select select,
  .app-homebar .global-search input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
    padding: 12px 12px 24px;
  }

  .app-homebar {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .app-brand {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .app-brand img {
    width: 44px;
    height: 44px;
  }

  .app-brand strong {
    font-size: 21px;
  }

  .app-homebar .center-select,
  .app-homebar .global-search,
  .app-account {
    grid-column: 1 / -1;
  }

  .bell-button {
    display: grid;
  }

  .app-account {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

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

  .module-tile {
    min-height: 0;
    padding: 10px 8px;
  }

  .app-main {
    padding: 0;
  }

  .topbar {
    margin: 0 0 14px;
    padding: 0;
  }
}

@media (max-width: 560px) {
  .app-brand small,
  .app-account span {
    display: none;
  }

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

  .module-tile strong {
    font-size: 12px;
  }

  .module-tile .nav-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  .module-tile .nav-icon::before {
    width: 27px;
    height: 27px;
  }
}

/* On-demand access menu and searchable selects */
.app-homebar {
  grid-template-columns: minmax(210px, 0.95fr) minmax(190px, 0.72fr) minmax(250px, 1.1fr) minmax(250px, 1fr) 46px minmax(190px, auto);
}

.module-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-800);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(9, 34, 85, 0.05);
}

.module-menu-button:hover,
.module-menu-button.is-open {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}

.module-menu-button .nav-icon {
  width: 24px;
  min-width: 24px;
  height: 24px;
}

.module-launcher[hidden] {
  display: none;
}

.module-launcher.is-open {
  animation: moduleMenuIn 0.16s ease-out;
}

@keyframes moduleMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.searchable-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.searchable-select > select {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.searchable-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.center-select .searchable-select-trigger {
  min-height: 52px;
}

.searchable-select-trigger span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select.has-empty-value .searchable-select-trigger span:first-child {
  color: var(--muted);
}

.searchable-select-caret {
  width: 10px;
  height: 10px;
  justify-self: end;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.65;
}

.searchable-select.is-open .searchable-select-caret {
  transform: rotate(225deg) translateY(-2px);
}

.searchable-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  padding: 8px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(9, 34, 85, 0.18);
}

.searchable-select-panel[hidden] {
  display: none;
}

.searchable-select-search {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
}

.searchable-select-search:focus,
.searchable-select-trigger:focus {
  border-color: rgba(13, 99, 243, 0.65);
  box-shadow: 0 0 0 3px rgba(13, 99, 243, 0.12);
}

.searchable-select-list {
  display: grid;
  gap: 4px;
  max-height: 240px;
  margin-top: 8px;
  overflow-y: auto;
}

.searchable-select-option {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.searchable-select-option:hover,
.searchable-select-option[aria-selected="true"] {
  color: var(--blue-800);
  background: var(--blue-100);
  font-weight: 800;
}

.searchable-select-option:disabled {
  color: #9ba9bf;
  cursor: not-allowed;
}

.searchable-select-empty {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.center-select .searchable-select {
  width: min(360px, 28vw);
  min-width: 260px;
}

.filter-bar .searchable-select {
  min-width: 160px;
}

.mini-form .searchable-select {
  min-width: 128px;
}

label .searchable-select,
.stack-form .searchable-select,
.operation-form .searchable-select,
.inline-form-grid .searchable-select,
.guided-form .searchable-select,
.evidence-modal-form .searchable-select {
  width: 100%;
}

@media (max-width: 1400px) {
  .app-homebar {
    grid-template-columns: minmax(210px, 1fr) minmax(230px, 320px) minmax(230px, 1fr) 46px minmax(180px, auto);
  }

  .app-region-pill {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-homebar {
    position: sticky;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .app-homebar .center-select,
  .app-homebar .global-search,
  .app-account {
    grid-column: 1 / -1;
  }

  .center-select .searchable-select,
  .filter-bar .searchable-select {
    width: 100%;
    min-width: 0;
  }

  .module-menu-button {
    display: inline-flex;
    width: 52px;
    padding: 0;
  }

  .module-menu-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .module-launcher {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: calc(100vh - 104px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .module-launcher.is-open {
    display: grid;
  }

  .module-tile {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    white-space: normal;
  }

  .module-tile strong {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .app-homebar {
    grid-template-columns: minmax(0, 1fr) 46px 46px;
  }

  .module-menu-button {
    width: 46px;
    min-height: 46px;
  }

  .module-launcher {
    grid-template-columns: 1fr;
  }

  .searchable-select-panel {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3000;
    max-height: min(460px, calc(100vh - 24px));
  }

.searchable-select-list {
    max-height: min(340px, calc(100vh - 130px));
  }
}

/* Compact top navigation */
.app-homebar {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  gap: 10px;
  padding: 8px 10px;
}

.app-brand {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
}

.app-brand img {
  width: 38px;
  height: 38px;
}

.app-brand strong {
  font-size: 17px;
}

.app-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-menu-button {
  display: inline-flex;
  min-height: 40px;
  width: auto;
  padding: 0 12px;
}

.module-menu-button span:last-child {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

.module-launcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-height: min(680px, calc(100vh - 86px));
  margin: 8px 0 14px;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
}

.module-launcher[hidden] {
  display: none;
}

.module-launcher.is-open {
  display: grid;
}

.module-menu-tools {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(250px, 1fr) minmax(260px, 1.2fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
}

.module-launcher .app-region-pill {
  display: grid;
}

.module-launcher .center-select .searchable-select,
.module-launcher .center-select select,
.module-launcher .global-search input {
  width: 100%;
  min-width: 0;
}

.module-menu-account {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.module-menu-account .bell-button {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.module-menu-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.module-menu-links .module-tile {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.module-menu-links .module-tile strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .module-menu-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-top: 8px;
  }

  .app-homebar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 7px 8px;
  }

  .app-brand {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .app-brand img {
    width: 34px;
    height: 34px;
  }

  .app-brand strong {
    font-size: 15px;
  }

  .app-brand small {
    display: none;
  }

  .module-menu-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .module-launcher {
    max-height: calc(100vh - 76px);
  }

  .module-menu-tools,
  .module-menu-links {
    grid-template-columns: 1fr;
  }

  .module-menu-account {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .module-menu-account .app-account {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .module-menu-links .module-tile {
    min-height: 44px;
  }
}

/* Field-first workflow */
.priority-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.priority-action {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 10px 24px rgba(9, 34, 85, 0.06);
}

.priority-action.primary,
.priority-action:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 16px 30px rgba(13, 99, 243, 0.22);
}

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

.priority-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.priority-action.primary small,
.priority-action:hover small {
  color: rgba(255, 255, 255, 0.82);
}

.visits-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.visit-feed {
  display: grid;
  gap: 12px;
}

.visit-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.visit-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.visit-card-head h3,
.visit-card-head p,
.visit-general-note {
  margin: 0;
}

.visit-card-head h3 {
  font-size: 18px;
}

.visit-card-head p,
.visit-meta,
.visit-general-note {
  color: var(--muted);
  font-size: 13px;
}

.visit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.visit-meta strong {
  color: var(--blue-900);
}

.visit-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.visit-notes-grid section {
  min-height: 112px;
  padding: 12px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.visit-notes-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.visit-notes-grid p {
  margin: 0;
  color: var(--text);
  line-height: 1.45;
}

.field-context-panel {
  position: sticky;
  top: 98px;
}

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

.context-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #fff;
}

.context-list p,
.context-list small,
.context-list em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.context-list em {
  padding-top: 4px;
  font-style: normal;
  line-height: 1.45;
}

.visit-capture-panel {
  margin-top: 18px;
}

.visit-capture-panel header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.visit-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.visit-form .field-textarea-large textarea {
  min-height: 132px;
}

@media (max-width: 1180px) {
  .priority-actions,
  .visits-workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-context-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .priority-actions,
  .visits-workspace,
  .visit-notes-grid,
  .visit-form {
    grid-template-columns: 1fr;
  }

  .visit-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .visit-card-head .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Floating menu and mobile bottom access bar */
body.module-menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 27, 70, 0.22);
  backdrop-filter: blur(2px);
}

.app-homebar {
  position: sticky;
  top: 8px;
  z-index: 90;
}

.module-launcher {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 80;
  width: min(1180px, calc(100vw - 24px));
  max-height: calc(100dvh - 94px);
  margin: 0;
  transform: translateX(-50%);
  box-shadow: 0 24px 60px rgba(6, 27, 70, 0.2);
}

.module-launcher.is-open {
  animation: floatingMenuIn 0.14s ease-out;
}

@keyframes floatingMenuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.bottom-access-nav {
  display: none;
}

@media (max-width: 980px) {
  .app-shell {
    padding-bottom: 88px;
  }

  .app-homebar {
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .module-launcher {
    top: 70px;
    width: min(430px, calc(100vw - 18px));
    max-height: calc(100dvh - 156px);
  }

  .bottom-access-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    min-height: 68px;
    padding: 6px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 34px rgba(9, 34, 85, 0.12);
    backdrop-filter: blur(14px);
  }

  .bottom-access-nav a {
    display: grid;
    grid-template-rows: 24px 1fr;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 4px 2px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  .bottom-access-nav a.active {
    color: var(--blue-700);
    background: var(--blue-100);
  }

  .bottom-access-nav .nav-icon {
    width: 22px;
    min-width: 22px;
    height: 22px;
  }

  .bottom-access-nav .nav-icon::before {
    width: 18px;
    height: 18px;
  }

  .bottom-access-nav strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .bottom-access-nav a {
    font-size: 9px;
  }
}

/* Incident detail workflow */
.text-row-button {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--blue-800);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.text-row-button:hover {
  color: var(--blue-600);
  text-decoration: underline;
}

.incident-modal-card {
  width: min(940px, 100%);
}

.incident-modal-card > header small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.incident-detail-grid section,
.incident-description,
.incident-manage-panel,
.incident-notes-panel {
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.incident-detail-grid section {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
}

.incident-detail-grid strong,
.incident-description strong {
  color: var(--blue-900);
  font-size: 12px;
  text-transform: uppercase;
}

.incident-detail-grid span,
.incident-description p {
  color: var(--text);
  line-height: 1.45;
}

.incident-description {
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}

.incident-description p {
  margin: 8px 0 0;
}

.incident-manage-panel,
.incident-notes-panel {
  padding: 14px;
  margin-top: 14px;
  background: #fff;
}

.incident-manage-panel h3,
.incident-notes-head h3 {
  margin: 0;
  font-size: 16px;
}

.incident-manage-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.incident-manage-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
}

.incident-manage-form .full-field {
  grid-column: 1 / -1;
}

.incident-manage-form select,
.incident-manage-form textarea,
.incident-note-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.incident-manage-form select {
  min-height: 42px;
  padding: 0 12px;
}

.incident-manage-form textarea,
.incident-note-form textarea {
  min-height: 82px;
  padding: 10px 12px;
  resize: vertical;
}

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

.incident-notes-head span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
}

.incident-note-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.incident-note-form .secondary-button {
  justify-self: start;
}

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

.incident-note-list article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e0e9f6;
  border-radius: 8px;
  background: #f8fbff;
}

.incident-note-list article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.incident-note-list time,
.incident-note-list small {
  color: var(--muted);
  font-size: 12px;
}

.incident-note-list p {
  margin: 0;
  line-height: 1.45;
}

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

  .incident-manage-form .primary-button {
    width: 100%;
  }
}

/* Global quick report */
.app-homebar {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.quick-report-button,
.module-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(9, 34, 85, 0.05);
}

.quick-report-button {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #15b96a);
}

.quick-report-button:hover {
  filter: brightness(1.03);
}

.quick-report-button .nav-icon,
.module-menu-button .nav-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
}

.quick-report-card {
  width: min(860px, 100%);
}

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

.quick-report-form [hidden] {
  display: none !important;
}

.quick-wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-wizard-progress span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 900;
}

.quick-wizard-progress span.is-active,
.quick-wizard-progress span.is-complete {
  color: #fff;
  border-color: transparent;
  background: var(--blue-600);
}

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

.quick-step[hidden] {
  display: none;
}

.quick-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.quick-type-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.quick-type-card:hover,
.quick-type-card.is-selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 14px 26px rgba(13, 99, 243, 0.18);
}

.quick-type-card .nav-icon {
  grid-row: span 2;
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.quick-type-card .nav-icon::before {
  width: 27px;
  height: 27px;
}

.quick-type-card strong,
.quick-type-card small {
  display: block;
  min-width: 0;
}

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

.quick-type-card:hover small,
.quick-type-card.is-selected small {
  color: rgba(255, 255, 255, 0.82);
}

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

.quick-type-panel[hidden] {
  display: none;
}

.quick-type-panel > .full-field,
.quick-added-asset.full-field {
  grid-column: 1 / -1;
}

.visit-location {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.visit-location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.visit-location-heading strong {
  font-size: 14px;
}

.visit-location > p,
.visit-location-fields > small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.visit-location-fields {
  display: grid;
  gap: 10px;
}

.visit-location-fields[hidden] {
  display: none;
}

.visit-location-fields > button {
  justify-self: start;
}

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

.visit-location-fields > small[data-state="error"] {
  color: var(--red);
}

.quick-added-asset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.quick-added-asset[hidden] {
  display: none;
}

.quick-added-asset legend {
  padding: 0 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
}

.quick-current-tech {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #bfe9cf;
  border-radius: 8px;
  color: #08743d;
  background: var(--green-soft);
}

.quick-current-tech .nav-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.quick-current-tech small,
.quick-current-tech strong {
  display: block;
}

.quick-current-tech small {
  color: rgba(8, 116, 61, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-tech-picker {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.quick-tech-picker legend {
  padding: 0 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
}

.quick-tech-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tech-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-tech-option {
  display: inline-flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #fff;
  color: var(--text) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.quick-tech-option input {
  width: 16px !important;
  height: 16px;
  min-height: 16px !important;
  margin: 0;
  padding: 0 !important;
  accent-color: var(--blue-600);
}

.quick-report-form label {
  display: grid;
  gap: 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
}

.quick-report-form .full-field {
  grid-column: 1 / -1;
}

.quick-center-selected {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #bfe9cf;
  border-radius: 8px;
  color: #08743d;
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 900;
}

.quick-center-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #f8fbff;
}

.quick-center-summary[hidden] {
  display: none;
}

.quick-summary-loading {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.quick-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.quick-summary-metrics span {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-summary-metrics strong {
  color: var(--blue-800);
  font-size: 20px;
}

.quick-summary-metrics small,
.quick-summary-latest,
.quick-summary-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quick-summary-latest {
  margin: 0;
  font-weight: 900;
}

.quick-summary-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-summary-details section {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-summary-details strong {
  color: var(--blue-900);
  font-size: 12px;
}

.quick-summary-list {
  display: grid;
  gap: 5px;
}

.quick-summary-list p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-center-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.quick-center-results > p {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd8ea;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  text-align: center;
}

.quick-center-results [data-quick-center-option] {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.quick-center-results [data-quick-center-option]:hover,
.quick-center-results [data-quick-center-option].is-selected {
  border-color: rgba(13, 99, 243, 0.45);
  background: var(--blue-100);
}

.quick-center-results [data-quick-center-option] strong {
  grid-row: span 2;
  color: var(--blue-800);
  font-size: 18px;
}

.quick-center-results [data-quick-center-option] span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-center-results [data-quick-center-option] small {
  color: var(--muted);
}

.quick-step-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-step-actions .primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.quick-report-form input,
.quick-report-form select,
.quick-report-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.quick-report-form input,
.quick-report-form select {
  min-height: 42px;
  padding: 0 12px;
}

.quick-report-form textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.quick-report-form input[type="file"] {
  padding: 9px 12px;
}

.quick-common-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px dashed #cbd8ea;
  border-radius: 8px;
  background: #fbfdff;
}

.quick-common-evidence[hidden] {
  display: none;
}

.quick-common-evidence legend {
  padding: 0 6px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 900;
}

.quick-report-form input:focus,
.quick-report-form select:focus,
.quick-report-form textarea:focus {
  border-color: rgba(13, 99, 243, 0.65);
  box-shadow: 0 0 0 3px rgba(13, 99, 243, 0.12);
}

@media (max-width: 720px) {
  .quick-report-button,
  .module-menu-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .quick-report-button span:last-child,
  .module-menu-button span:last-child {
    font-size: 12px;
  }

  .quick-report-card {
    max-height: calc(100dvh - 24px);
  }

  .quick-report-form {
    grid-template-columns: 1fr;
  }

  .quick-step {
    grid-template-columns: 1fr;
  }

  .quick-type-grid,
  .quick-type-panel,
  .quick-added-asset,
  .visit-location-coordinates,
  .quick-common-evidence,
  .quick-summary-metrics,
  .quick-summary-details {
    grid-template-columns: 1fr;
  }

  .quick-center-results [data-quick-center-option] {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .quick-step-actions,
  .quick-report-form .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .quick-report-button span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Installation entry points stay quiet until the browser confirms availability. */
.pwa-install-button[hidden],
.pwa-install-overlay[hidden] {
  display: none !important;
}

.pwa-install-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #0c9f53;
  border-radius: 8px;
  color: #086943;
  background: #f0fbf5;
  font-size: 14px;
  font-weight: 800;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
  background: #dff6e9;
}

.login-card > .pwa-install-button {
  width: 100%;
  margin-top: 14px;
}

.module-menu-account > .pwa-install-button {
  grid-column: 1 / -1;
  width: 100%;
}

.pwa-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 27, 70, 0.6);
}

.pwa-install-dialog {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(6, 27, 70, 0.22);
}

.pwa-install-dialog h2 {
  margin: 14px 0 16px;
  font-size: 20px;
  line-height: 1.25;
}

.pwa-install-dialog ol {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.55;
}

.pwa-install-dialog li + li {
  margin-top: 10px;
}

.pwa-install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 27px;
  line-height: 1;
}

.pwa-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pwa-install-actions button {
  min-height: 42px;
  flex: 1 1 120px;
}
