:root {
  color-scheme: light;
  --ink: #141b4d;
  --muted: #66708f;
  --line: #d7e3ee;
  --surface: #ffffff;
  --field: #f5f9fc;
  --accent: #429fe0;
  --accent-strong: #4676ad;
  --success: #1f7a52;
  --warning: #bd5b00;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(20, 27, 77, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef5fa;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  border: 0;
}

.hidden {
  display: none !important;
}

.appShell {
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--field);
  box-shadow: 0 0 0 1px rgba(20, 27, 77, 0.06);
  position: relative;
}

.topBar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  padding: env(safe-area-inset-top) 14px 0;
  display: grid;
  grid-template-columns: 44px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  background: rgba(245, 249, 252, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 227, 238, 0.86);
  overflow: visible;
}

.topBar:has(#backButton.hidden) {
  grid-template-columns: auto 1fr auto auto auto;
}

.topBar:has(#backButton.hidden) .homeLogoButton {
  grid-column: 1;
}

.homeLogoButton {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  cursor: pointer;
}

.topLogo {
  width: 176px;
  max-width: 100%;
  display: block;
}

.stampLogo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.iconButton {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(20, 27, 77, 0.08);
  font-size: 32px;
  line-height: 1;
}

.syncPill {
  min-width: 92px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 27, 77, 0.08);
  font-weight: 700;
  font-size: 13px;
}

.connectionDot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
}

.connectionDot.offline {
  background: var(--warning);
}

main {
  padding-bottom: 92px;
}

.view {
  padding: 16px;
}

.loginView {
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: start;
  gap: 16px;
}

.heroPanel {
  min-height: 390px;
  padding: 22px;
  border-radius: 0 0 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(20, 27, 77, 0.2), rgba(20, 27, 77, 0.92)),
    url("/assets/field-team.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.heroLogo {
  width: 210px;
}

.eyebrow,
.sectionLabel {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.heroPanel .eyebrow {
  color: #aee1ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.loginCard,
.detailPanel,
.protocolCard,
.siteCard,
.statusStrip {
  border: 1px solid rgba(215, 227, 238, 0.96);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loginCard {
  padding: 16px;
}

.adminTextButton {
  width: max-content;
  justify-self: center;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
}

.roleGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.roleButton,
.primaryButton,
.secondaryButton,
.tradeButton,
.photoButton {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 800;
}

.roleButton {
  color: var(--ink);
  background: #edf5fb;
}

.roleButton.active {
  color: #ffffff;
  background: var(--ink);
}

.fieldLabel {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
}

input,
select,
textarea {
  min-width: 0;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.primaryButton {
  width: 100%;
  color: #ffffff;
  background: var(--accent-strong);
}

.secondaryButton {
  width: 100%;
  color: var(--ink);
  background: #edf5fb;
}

.primaryButton:disabled,
.secondaryButton:disabled,
.tradeButton:disabled,
.photoButton:disabled {
  color: #7a839d;
  background: #dce5ee;
  cursor: not-allowed;
  box-shadow: none;
}

.pageIntro {
  padding: 8px 2px 2px;
}

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

.statusStrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 0;
  overflow: hidden;
  box-shadow: none;
}

.statusStrip div {
  padding: 14px 8px;
  display: grid;
  gap: 4px;
  text-align: center;
  background: #ffffff;
}

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

.statusStrip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.siteList {
  display: grid;
  gap: 12px;
}

.siteCard {
  min-height: 170px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.siteCardHeader {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.siteCard h2 {
  margin: 0;
  font-size: 22px;
}

.badge {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: #e7f4fd;
  font-size: 12px;
  font-weight: 800;
}

.badge.warning,
.badge.openBadge {
  color: #7a3b00;
  background: #fff1dc;
}

.badge.openBadge {
  color: #8a1f17;
  background: #ffe6e3;
}

.badge.doneBadge {
  color: #0f5f3b;
  background: #def7e8;
}

.metaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metaItem {
  padding: 10px;
  border-radius: 8px;
  background: #f6f9fc;
}

.metaItem span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metaItem strong {
  font-size: 14px;
  line-height: 1.25;
}

.siteActions {
  display: flex;
  gap: 8px;
}

.siteActions button {
  flex: 1;
}

.detailHero {
  min-height: 170px;
  margin: -16px -16px 16px;
  padding: 18px 16px;
  display: flex;
  align-items: end;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  position: relative;
}

.detailHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 27, 77, 0.15), rgba(20, 27, 77, 0.86));
}

.detailHeroContent {
  position: relative;
}

.detailHero h1 {
  font-size: 30px;
}

.detailPanel,
.protocolCard {
  padding: 14px;
  margin-bottom: 12px;
}

.detailList {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detailList div {
  display: grid;
  gap: 4px;
}

.detailList dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detailList dd {
  margin: 0;
  line-height: 1.35;
}

.projectImagesPanel .mutedSmall {
  margin-bottom: 10px;
}

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

.projectImageButton {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  font-weight: 800;
}

.projectImageButton img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.projectImageButton span {
  padding: 0 9px 9px;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.imageLightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 16, 40, 0.82);
}

.imageLightbox figure {
  width: min(920px, 100%);
  margin: 0;
  color: #ffffff;
}

.imageLightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.imageLightbox figcaption {
  margin-top: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.imageLightboxClose {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.tradeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tradeButton {
  padding: 14px 10px;
  color: #ffffff;
  background: var(--ink);
}

.tradeButton.electric {
  background: var(--accent-strong);
}

.protocolStartPanel {
  display: grid;
  place-items: center;
}

.protocolStartButton {
  width: min(100%, 440px);
}

.progressWrap {
  margin-bottom: 14px;
}

.progressTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progressTrack {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: #dbe9f3;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: inherit;
  background: var(--success);
}

.stepHeader {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.stepHeader h2 {
  margin-bottom: 6px;
}

.stepDescription {
  color: var(--muted);
  line-height: 1.42;
}

.requirementBlock {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.requirementBlock h3 {
  margin: 0 0 9px;
  font-size: 15px;
}

.formField {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: var(--ink);
  font-weight: 800;
}

.formField span,
.yesNoGroup legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formField input,
.formField select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  appearance: auto;
}

.yesNoGroup {
  margin: 12px 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.yesNoGroup legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.yesNoGroup label {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  position: relative;
}

.yesNoGroup input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yesNoGroup label:has(input:checked) {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: var(--accent-strong);
}

.miniCheck {
  min-height: 42px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.miniCheck + .miniCheck {
  border-top: 1px solid rgba(215, 227, 238, 0.72);
}

.miniCheck input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.miniCheck.signature {
  color: var(--accent-strong);
}

.photoRequirement {
  margin: 8px 0 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f6f9fc;
}

.photoRequirement p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.photoRequirement small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.photoActionGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.photoActionGrid .photoButton {
  margin-bottom: 0;
}

.photoActionGrid .photoButton:only-child {
  grid-column: 1 / -1;
}

.segmentedControl {
  margin: -4px 0 14px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.segmentedControl label {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 7px 4px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.segmentedControl input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmentedControl label:has(input:checked) {
  border-color: var(--accent-strong);
  color: #ffffff;
  background: var(--accent-strong);
}

.signaturePadWrap {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.signaturePadHead {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.signaturePadHead strong {
  font-size: 14px;
  line-height: 1.3;
}

.linkAction {
  padding: 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.signaturePad {
  width: 100%;
  aspect-ratio: 2.9 / 1;
  border: 1px dashed var(--accent-strong);
  border-radius: 8px;
  display: block;
  background: #ffffff;
  touch-action: none;
}

.photoButton {
  width: 100%;
  margin-bottom: 10px;
  color: var(--ink);
  background: #e7f4fd;
}

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

.stepList {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.stepListItem {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  background: #f6f9fc;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.stepListItem.done {
  color: var(--success);
  background: #e9f8ef;
  border-color: #b9e8cc;
}

.stepListItem.open {
  color: #9b2c22;
  background: #fff0ee;
  border-color: #ffd0ca;
}

.stepListItem.active {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.bottomNav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  width: min(520px, 100%);
  transform: translateX(-50%);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.languageSwitcher {
  width: max-content;
  margin: 0;
  height: 36px;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(203, 220, 236, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(20, 27, 77, 0.06);
}

.languageButton {
  width: 31px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  opacity: 0.72;
  transition: width 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease;
}

.languageButton.active {
  width: 42px;
  height: 30px;
  background: #ffffff;
  opacity: 1;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 3px 8px rgba(48, 114, 190, 0.14);
  font-size: 20px;
}

.adminNotificationWrap {
  position: relative;
  z-index: 45;
}

.adminNotificationButton {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 27, 77, 0.08);
  font-size: 18px;
}

.adminNotificationCount {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: absolute;
  top: -5px;
  right: -5px;
  color: #ffffff;
  background: var(--danger);
  font-size: 11px;
  font-weight: 900;
}

.adminNotificationPanel {
  width: min(360px, calc(100vw - 28px));
  max-height: 430px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: 0 20px 54px rgba(20, 27, 77, 0.2);
}

.notificationPanelHeader {
  padding: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notificationPanelTop {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.notificationTextButton {
  padding: 3px 0;
  color: var(--accent-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.notificationItem {
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  color: var(--ink);
  background: #f7fbfe;
  text-align: left;
}

.notificationItemUnread {
  border-color: #9fc9ea;
  background: #eef7ff;
}

.notificationItemRead {
  opacity: 0.72;
}

.notificationItemTopline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notificationItemState {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: #e5f1fb;
  font-size: 11px;
  font-weight: 900;
}

.notificationItem small,
.emptyText {
  color: var(--muted);
  font-weight: 700;
}

.notificationOpenButton {
  margin-top: 4px;
}

.adminPanel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(215, 227, 238, 0.96);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.adminPanelHeader h2 {
  margin: 0;
  min-width: 0;
}

.smallButton {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.adminInlineNotifications,
.notificationCenterList {
  max-height: 320px;
  overflow-y: auto;
}

.notificationCenterList {
  max-height: none;
}

.adminSiteList {
  display: grid;
  gap: 10px;
}

.adminSiteCard {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  background: #f7fbfe;
}

.adminSiteCardTop {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.adminSiteCardTop > div {
  min-width: 0;
}

.adminStatusBadges {
  min-width: 128px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.tradeStatusBadge {
  white-space: nowrap;
}

.adminSiteCard h3 {
  margin-bottom: 4px;
}

.adminSiteCard p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.adminSiteMeta {
  padding: 10px;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  background: #ffffff;
}

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

.adminTradeRows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.adminTradeButton {
  min-height: 54px;
  padding: 10px;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  color: #ffffff;
  background: var(--accent-strong);
  font-weight: 900;
  text-align: left;
}

.adminTradeButton.electric {
  background: var(--ink);
}

.adminTradeButton small {
  color: rgba(255, 255, 255, 0.82);
}

.adminLogoutButton,
.dashboardLogoutButton {
  margin: 4px auto 14px;
  display: block;
}

.navButton {
  min-height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.navButton span {
  font-size: 22px;
  line-height: 1;
}

.navButton.active {
  color: var(--ink);
  background: #edf5fb;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 40;
  width: min(472px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 14px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 20px 44px rgba(20, 27, 77, 0.28);
  font-weight: 800;
}

.appLoadingModal {
  position: fixed;
  inset: 0;
  z-index: 68;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(20, 27, 77, 0.36);
  backdrop-filter: blur(4px);
}

.appLoadingModalCard {
  width: min(420px, 100%);
  padding: 26px 22px 22px;
  border: 1px solid rgba(215, 227, 238, 0.96);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(20, 27, 77, 0.24);
  text-align: center;
}

.appLoadingModalSpinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  animation: pretzelSpin 0.8s linear infinite;
}

.appLoadingModalCard h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.appLoadingModalCard p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

@keyframes pretzelSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 760px) {
  body {
    padding: 24px 0;
    background:
      linear-gradient(90deg, rgba(20, 27, 77, 0.92), rgba(20, 27, 77, 0.46)),
      url("/assets/service-vehicle.jpg");
    background-size: cover;
    background-attachment: fixed;
  }

  .appShell {
    min-height: calc(100vh - 48px);
    border-radius: 8px;
    overflow: hidden;
  }

  .topBar {
    position: relative;
  }
}

@media (max-width: 430px) {
  .appShell {
    width: 100%;
  }

  .topBar {
    padding-left: 10px;
    padding-right: 10px;
    gap: 7px;
  }

  .topLogo {
    width: 124px;
  }

  .stampLogo {
    width: 42px;
  }

  .syncPill {
    min-width: 72px;
    padding: 0 8px;
    font-size: 12px;
  }

  .adminNotificationPanel {
    right: 0;
    width: min(340px, calc(100vw - 18px));
  }

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

  .notificationTextButton {
    text-align: left;
  }

  .view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .requirementBlock,
  .protocolCard,
  .detailPanel,
  .siteCard,
  .adminPanel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .formField input,
  .formField select,
  .formField textarea,
  input[type="datetime-local"] {
    width: 100%;
    font-size: 15px;
  }

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

  .adminPanelHeader {
    align-items: stretch;
  }

  .adminPanelHeader .smallButton {
    width: 100%;
  }

  .adminSiteCardTop {
    display: grid;
  }

  .adminStatusBadges {
    min-width: 0;
    justify-content: flex-start;
  }

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