/* MDRRMO EWS — mobile app */
:root {
  --m-bg: #062818;
  --m-bg2: #0a3d28;
  --m-card: rgba(255, 255, 255, 0.1);
  --m-border: rgba(134, 239, 172, 0.2);
  --m-text: #ecfdf5;
  --m-muted: rgba(209, 250, 229, 0.75);
  --m-accent: #4ade80;
  --m-accent2: #15803d;
  --m-danger: #f87171;
  --m-tab-pill-h: 3.65rem;
  --m-tab-lift: 1.05rem;
  /* Fixed clearance for fixed tab bar — do not use dvh/env (iOS resizes after load) */
  --m-tab-offset: calc(var(--m-tab-pill-h) + 0.5rem + var(--m-tab-lift) + 0.85rem);
  --m-main-pad-x: max(1.125rem, var(--m-safe-l), var(--m-safe-r));
  --m-main-pad-top: 0.85rem;
  --m-main-pad-bottom: 1.25rem;
  --m-header-h: 3.25rem;
  --m-safe-t: env(safe-area-inset-top, 0px);
  /* Bottom inset disabled — env() on iOS can apply after first paint and shifts the tab bar */
  --m-safe-b: 0px;
  --m-safe-l: env(safe-area-inset-left, 0px);
  --m-safe-r: env(safe-area-inset-right, 0px);
  /* Notch clearance only — do not add visualViewport.offsetTop (breaks keyboard layout) */
  --m-sheet-top-inset: max(var(--m-safe-t), 3.25rem);
  --m-glass-fill: rgba(4, 22, 15, 0.78);
  --m-glass-highlight: rgba(134, 239, 172, 0.12);
  --m-glass-border: rgba(74, 222, 128, 0.22);
  --m-glass-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(134, 239, 172, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

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

/* Components with display:flex must not override the hidden attribute */
[hidden] {
  display: none !important;
}

html {
  background: var(--m-bg);
}

html,
body.drrm-mobile-app {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  background: var(--m-bg);
  color: var(--m-text);
  -webkit-tap-highlight-color: transparent;
}

body.drrm-mobile-app:not(.drrm-m-login)::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9rem;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(21, 128, 61, 0.08), transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}

/* iOS/PWA: keep the status-bar (safe-area top) painted while scrolling */
body.drrm-mobile-app:not(.drrm-m-login)::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--m-safe-t);
  z-index: 199;
  pointer-events: none;
  background: var(--m-bg);
}

.drrm-m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: calc(var(--m-header-h) + var(--m-safe-t));
  padding: calc(0.5rem + var(--m-safe-t)) max(1rem, var(--m-safe-r)) 0.5rem max(1rem, var(--m-safe-l));
  background: var(--m-bg);
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-header::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-1 * var(--m-safe-t));
  height: var(--m-safe-t);
  background: var(--m-bg);
  pointer-events: none;
}

.drrm-m-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.drrm-m-header__logo-wrap {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drrm-m-header__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.drrm-m-header__title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.drrm-m-header__title span {
  color: var(--m-accent);
}

.drrm-m-header__page {
  display: block;
  font-size: 0.7rem;
  color: var(--m-muted);
}

.drrm-m-header__avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.45);
  background: rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.drrm-m-header__avatar:active {
  opacity: 0.9;
}

.drrm-m-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drrm-m-header__avatar-fallback {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #86efac;
  line-height: 1;
  user-select: none;
}

.drrm-m-main {
  padding: calc(var(--m-header-h) + var(--m-safe-t) + var(--m-main-pad-top)) var(--m-main-pad-x) calc(var(--m-main-pad-bottom) + var(--m-tab-offset));
  max-width: 36rem;
  margin: 0 auto;
  scroll-padding-top: calc(var(--m-header-h) + var(--m-safe-t) + 0.5rem);
  scroll-padding-bottom: var(--m-tab-offset);
}

.drrm-m-main--home {
  --m-main-pad-top: 1rem;
  --m-main-pad-bottom: 1.5rem;
}

/* ——— Liquid glass bottom dock (iOS-style) ——— */
.drrm-m-tabbar-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--m-tab-lift);
  z-index: 120;
  padding: 0 max(0.85rem, var(--m-safe-r)) 0.5rem max(0.85rem, var(--m-safe-l));
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
}

body.drrm-hub-open .drrm-m-tabbar-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.5rem) scale(0.94);
  pointer-events: none;
}

.drrm-m-tabbar,
.drrm-m-act-dock {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--m-glass-border);
  box-shadow: var(--m-glass-shadow);
  background-color: var(--m-glass-fill);
  background-image: linear-gradient(
    180deg,
    rgba(20, 55, 40, 0.55) 0%,
    rgba(6, 30, 20, 0.72) 48%,
    rgba(4, 22, 15, 0.85) 100%
  );
  -webkit-backdrop-filter: blur(36px) saturate(150%) brightness(0.88);
  backdrop-filter: blur(36px) saturate(150%) brightness(0.88);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.drrm-m-tabbar::before,
.drrm-m-act-dock::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(134, 239, 172, 0.14) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    transparent 55%
  );
  opacity: 0.75;
  z-index: 0;
}

.drrm-m-tabbar::after,
.drrm-m-act-dock::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08);
  z-index: 0;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .drrm-m-tabbar,
  .drrm-m-act-dock {
    background-color: rgba(6, 28, 19, 0.94);
    background-image: linear-gradient(
      180deg,
      rgba(20, 55, 40, 0.5) 0%,
      rgba(4, 22, 15, 0.95) 100%
    );
  }
}

.drrm-m-tabbar {
  min-height: var(--m-tab-pill-h);
  max-width: min(28rem, calc(100vw - 1.75rem));
  margin: 0 auto;
  padding: 0.38rem 0.55rem;
  pointer-events: auto;
}

.drrm-m-tabbar__item,
.drrm-m-act-dock__btn {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  padding: 0.35rem 0.2rem;
  border: none;
  background: transparent;
  color: rgba(167, 210, 190, 0.55);
  text-decoration: none;
  font: inherit;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;
}

.drrm-m-tabbar__item::before,
.drrm-m-act-dock__btn::before {
  content: '';
  position: absolute;
  inset: 0.1rem 0.06rem;
  border-radius: 999px;
  background: transparent;
  transition: background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  z-index: -1;
}

.drrm-m-tabbar__item:active,
.drrm-m-act-dock__btn:active {
  transform: scale(0.94);
}

.drrm-m-tabbar__icon,
.drrm-m-act-dock__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  font-size: 1.08rem;
  line-height: 1;
}

.drrm-m-tabbar__label,
.drrm-m-act-dock__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.2s ease;
  font-style: normal;
}

.drrm-m-act-dock__badge {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.25);
  color: var(--m-accent);
}

.drrm-m-tabbar__item.is-active,
.drrm-m-act-dock__btn.is-active {
  color: rgba(209, 250, 229, 0.95);
}

.drrm-m-tabbar__item.is-active::before,
.drrm-m-act-dock__btn.is-active::before {
  background: rgba(21, 128, 61, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(134, 239, 172, 0.18);
}

.drrm-m-tabbar__item.is-active .drrm-m-tabbar__label,
.drrm-m-act-dock__btn.is-active .drrm-m-act-dock__label {
  opacity: 1;
  font-weight: 700;
}

.drrm-m-tabbar__item.is-active .drrm-m-tabbar__icon,
.drrm-m-act-dock__btn.is-active .drrm-m-act-dock__icon {
  color: var(--m-accent);
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.28));
}

/* Activities list: subtle emphasis on Activities tab */
body[data-mobile-crud='activities'] .drrm-m-tabbar__item.is-active::before {
  background: rgba(21, 128, 61, 0.52);
  border-color: rgba(74, 222, 128, 0.38);
}

@media (max-width: 380px) {
  .drrm-m-tabbar__label,
  .drrm-m-act-dock__label {
    font-size: 0.5rem;
  }

  .drrm-m-tabbar,
  .drrm-m-act-dock {
    padding: 0.32rem 0.38rem;
  }
}

/* ——— Login (redesign) ——— */
html.drrm-m-login-html {
  height: 100%;
  height: -webkit-fill-available;
  background: #041f12;
}

html.drrm-bg-reduced.drrm-m-login-html {
  background: #eef3f6;
}

body.drrm-m-login {
  margin: 0;
  display: flex;
  flex-direction: column;
  /* Avoid 100vh alone — iOS leaves a bottom gap until scroll (toolbar resize) */
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  color: var(--m-text);
  background: #041f12;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

.drrm-m-login__bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.drrm-m-login__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(34, 197, 94, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(14, 116, 144, 0.18), transparent 50%),
    linear-gradient(165deg, #041f12 0%, #0a3d28 45%, #062818 100%);
}

.drrm-m-login__glow {
  position: absolute;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.drrm-m-login__glow--1 {
  top: -15%;
  right: -20%;
  background: rgba(74, 222, 128, 0.35);
  animation: m-login-float 14s ease-in-out infinite;
}

.drrm-m-login__glow--2 {
  bottom: 10%;
  left: -25%;
  background: rgba(56, 189, 248, 0.2);
  animation: m-login-float 18s ease-in-out infinite reverse;
}

.drrm-m-login__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(134, 239, 172, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 239, 172, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.drrm-m-login__dot {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.5);
  animation: m-login-rise 10s linear infinite;
}

.drrm-m-login__dot:nth-child(5) { left: 12%; animation-delay: 0s; animation-duration: 11s; }
.drrm-m-login__dot:nth-child(6) { left: 28%; animation-delay: -3s; animation-duration: 13s; }
.drrm-m-login__dot:nth-child(7) { left: 52%; animation-delay: -6s; animation-duration: 9s; }
.drrm-m-login__dot:nth-child(8) { left: 71%; animation-delay: -2s; animation-duration: 12s; }
.drrm-m-login__dot:nth-child(9) { left: 88%; animation-delay: -7s; animation-duration: 14s; }

@keyframes m-login-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-4%, 6%) scale(1.08); }
}

@keyframes m-login-rise {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

.drrm-m-login__page {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  gap: 1.25rem;
  box-sizing: border-box;
}

.drrm-m-login__hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  width: 100%;
}

.drrm-m-login__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  line-height: 0;
  max-width: min(4.5rem, 42vw);
  max-height: 4.5rem;
}

.drrm-m-login__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 4.5rem;
  max-height: 4.5rem;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.drrm-m-login__logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  border: 2px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.2);
  animation: m-login-pulse 2.5s ease-in-out infinite;
}

@keyframes m-login-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.drrm-m-login__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-accent);
}

.drrm-m-login__title {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.drrm-m-login__title span {
  color: var(--m-accent);
}

.drrm-m-login__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--m-muted);
}

.drrm-m-login__panel {
  flex-shrink: 0;
  width: 100%;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 1.25rem;
  background: rgba(8, 48, 30, 0.88);
  border: 1px solid rgba(134, 239, 172, 0.22);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.drrm-m-login__panel-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
}

.drrm-m-login__panel-sub {
  margin: 0.2rem 0 1.1rem;
  font-size: 0.8rem;
  color: var(--m-muted);
  text-align: center;
}

.drrm-m-login__form {
  margin: 0 auto;
  width: 100%;
  max-width: 20rem;
}

.drrm-m-field--icon {
  margin-bottom: 0.9rem;
}

.drrm-m-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 0.65rem;
  border: 1px solid rgba(134, 239, 172, 0.18);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.drrm-m-input-wrap:focus-within {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.drrm-m-input-icon {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.drrm-m-field.drrm-m-field--icon input {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  margin: 0;
  padding: 0.8rem 0.65rem 0.8rem 0.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--m-text);
  font-size: 1rem;
  box-shadow: none;
}

.drrm-m-field.drrm-m-field--icon input::placeholder {
  color: rgba(209, 250, 229, 0.4);
}

.drrm-m-field.drrm-m-field--icon input:focus {
  outline: none;
}

.drrm-m-field.drrm-m-field--icon input:-webkit-autofill,
.drrm-m-field.drrm-m-field--icon input:-webkit-autofill:hover,
.drrm-m-field.drrm-m-field--icon input:-webkit-autofill:focus,
.drrm-m-field.drrm-m-field--icon input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--m-text) !important;
  caret-color: var(--m-text);
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.38) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.38) inset !important;
  transition: background-color 99999s ease-out 0s;
}

.drrm-m-input-toggle {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--m-muted);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 0.4rem;
}

.drrm-m-input-toggle:active {
  color: var(--m-accent);
}

.drrm-m-login__submit {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.drrm-m-login__submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.drrm-m-login__submit-busy[hidden],
.drrm-m-login__submit-label[hidden] {
  display: none !important;
}

.drrm-m-alert i {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.drrm-m-login__foot {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(134, 239, 172, 0.1);
  text-align: center;
}

.drrm-m-login__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-accent);
  text-decoration: none;
}

.drrm-m-login__link:active {
  opacity: 0.85;
}

.drrm-m-login__copy {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  color: rgba(209, 250, 229, 0.45);
}

@media (min-height: 700px) {
  .drrm-m-login__page {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drrm-m-login__glow,
  .drrm-m-login__dot,
  .drrm-m-login__logo-ring {
    animation: none;
  }

  .drrm-m-tabbar__item,
  .drrm-m-tabbar__item::before,
  .drrm-m-tabbar__label,
  .drrm-m-act-dock__btn,
  .drrm-m-act-dock__btn::before,
  .drrm-m-tabbar-float {
    transition: none;
  }

  .drrm-m-tabbar__item:active,
  .drrm-m-act-dock__btn:active {
    transform: none;
  }
}

.drrm-m-field {
  margin-bottom: 1rem;
}

.drrm-m-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--m-muted);
}

.drrm-m-field:not(.drrm-m-field--icon) input {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--m-text);
  font-size: 1rem;
}

/* Native date/time pickers default to a fixed width on iOS/Android */
.drrm-m-field:not(.drrm-m-field--icon) input[type="date"],
.drrm-m-field:not(.drrm-m-field--icon) input[type="time"],
.drrm-m-field:not(.drrm-m-field--icon) input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 2.75rem;
  -webkit-min-logical-width: 0;
}

.drrm-m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.drrm-m-btn--primary {
  background: linear-gradient(135deg, var(--m-accent2), var(--m-accent));
  color: #052e16;
}

.drrm-m-btn--ghost {
  background: transparent;
  border: 1px solid var(--m-border);
  color: var(--m-text);
}

.drrm-m-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.drrm-m-alert--error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.drrm-m-alert--rain {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

/* ——— Home dashboard spacing ——— */
#drrm-mobile-home {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

#drrm-mobile-home > * {
  margin-bottom: 0;
}

#drrm-mobile-home .drrm-m-greet {
  margin: 0;
}

#drrm-mobile-home .drrm-m-greet-sub {
  margin: 0.15rem 0 0;
}

#drrm-mobile-home .drrm-m-weather-wrap {
  margin-bottom: 0;
}

#drrm-mobile-home .drrm-m-stats {
  margin-bottom: 0;
}

#drrm-mobile-home .drrm-m-actions {
  margin-bottom: 0;
}

#drrm-mobile-home .drrm-m-feeds {
  gap: 1.15rem;
}

.drrm-m-rain-banner {
  padding: 0.9rem 1rem;
}

.drrm-m-feed.drrm-m-card > .drrm-m-list--cards {
  padding: 0.7rem 0.85rem 1rem;
  gap: 0.65rem;
}

.drrm-m-feed.drrm-m-card > .drrm-m-empty {
  margin: 0;
  padding: 1.15rem 1rem 1.25rem;
}

/* Home stats */
.drrm-m-greet {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--m-muted);
}

.drrm-m-greet strong {
  color: var(--m-text);
}

.drrm-m-weather-wrap {
  margin-bottom: 1rem;
}

.drrm-m-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.drrm-m-stat {
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
}

.drrm-m-stat__val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--m-accent);
  line-height: 1.1;
}

.drrm-m-stat__lbl {
  font-size: 0.68rem;
  color: var(--m-muted);
  margin-top: 0.2rem;
}

.drrm-m-card {
  border-radius: 0.75rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.drrm-m-card__head {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-bottom: 1px solid var(--m-border);
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drrm-m-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drrm-m-list--cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.15rem 0 0.65rem;
}

.drrm-m-list.drrm-m-card.drrm-m-list--cards {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 0;
}

.drrm-m-list--cards > .drrm-m-list__item,
.drrm-m-list--cards > .drrm-m-empty,
.drrm-m-list--cards > .drrm-m-loading {
  border-radius: 0.9rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.drrm-m-list--cards > .drrm-m-empty,
.drrm-m-list--cards > .drrm-m-loading {
  padding: 1.5rem 1rem;
  border-bottom: none;
}

.drrm-m-list__item {
  display: block;
  padding: 0;
  border-bottom: none;
  color: inherit;
  text-decoration: none;
}

.drrm-m-feed .drrm-m-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drrm-m-feed .drrm-m-list--cards > .drrm-m-list__item {
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.12);
  box-shadow: none;
  padding: 0;
}

.drrm-m-feed .drrm-m-list__item--link .drrm-m-row {
  padding: 0.85rem 1rem;
  min-height: 3.35rem;
}

.drrm-m-feed .drrm-m-list__item:active {
  background: rgba(255, 255, 255, 0.08);
}

.drrm-m-list__item--link {
  padding: 0;
}

.drrm-m-list__item--link:active {
  background: rgba(255, 255, 255, 0.06);
}

.drrm-m-list__item:active {
  background: transparent;
}

.drrm-m-list__title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.drrm-m-list__meta {
  font-size: 0.75rem;
  color: var(--m-muted);
}

/* List row (card items) */
.drrm-m-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.35rem;
}

.drrm-m-row__icon {
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 1.12rem;
  background: rgba(74, 222, 128, 0.15);
  color: var(--m-accent);
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.drrm-m-sched-cancelled-note {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--m-radius);
  font-size: 0.85rem;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.35);
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.drrm-m-field-hint {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.78rem;
  color: var(--m-muted);
}

.drrm-m-sched-personnel-select {
  width: 100%;
  min-height: 7rem;
}

.drrm-m-sheet__foot .drrm-m-sheet__secondary {
  flex-shrink: 0;
  white-space: nowrap;
}

.drrm-m-row__icon--cancelled {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.drrm-m-calendar-wrap .fc-event.drrm-sched-event--cancelled {
  opacity: 0.72;
  border-style: dashed !important;
}

.drrm-m-row__icon--schedule {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.25);
}

.drrm-m-row__icon--advisory {
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
  border-color: rgba(250, 204, 21, 0.25);
}

.drrm-m-row__icon--profile {
  background: rgba(167, 139, 250, 0.15);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.25);
}

.drrm-m-row__icon--vehicle {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}

.drrm-m-row__icon--trip {
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.25);
}

.drrm-m-row__icon--tent {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.drrm-m-row__icon--rain {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
}

.drrm-m-row__icon--report {
  background: rgba(251, 146, 60, 0.12);
  color: #fdba74;
}

.drrm-m-row__icon--incoming {
  background: rgba(5, 150, 105, 0.16);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.28);
}

.drrm-m-row__icon--outgoing {
  background: rgba(37, 99, 235, 0.16);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.28);
}

.drrm-m-row__icon--log-add {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.drrm-m-row__icon--log-edit {
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
}

.drrm-m-row__icon--log-delete {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.drrm-m-row__icon--log-auth {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
}

.drrm-m-row__icon--log-default {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.drrm-m-row__main {
  flex: 1;
  min-width: 0;
}

.drrm-m-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.drrm-m-row__title {
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--m-text);
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.drrm-m-row__when {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--m-muted);
  text-align: right;
  line-height: 1.3;
  max-width: 42%;
}

.drrm-m-row__sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--m-muted);
  line-height: 1.4;
}

.drrm-m-row__sub:empty {
  display: none;
}

.drrm-m-row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.3rem;
}

.drrm-m-row__foot:empty {
  display: none;
  margin-top: 0;
}

.drrm-m-row__meta {
  font-size: 0.76rem;
  color: var(--m-muted);
  line-height: 1.35;
}

.drrm-m-row__badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drrm-m-row__chev {
  flex-shrink: 0;
  margin-top: 0;
  opacity: 0.35;
  font-size: 0.75rem;
  color: var(--m-muted);
}

.drrm-m-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.2);
  color: var(--m-accent);
  margin-left: 0.35rem;
}

.drrm-m-badge--live {
  background: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
  animation: m-pulse 1.2s ease infinite;
}

@keyframes m-pulse {
  50% { opacity: 0.6; }
}

.drrm-m-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--m-muted);
  font-size: 0.9rem;
}

.drrm-m-loading {
  padding: 2rem;
  text-align: center;
  color: var(--m-muted);
}

.drrm-m-loading::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  border: 2px solid var(--m-border);
  border-top-color: var(--m-accent);
  border-radius: 50%;
  animation: m-spin 0.65s linear infinite;
  vertical-align: middle;
}

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

.drrm-m-menu-section {
  margin-bottom: 1.25rem;
}

.drrm-m-menu-section h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-muted);
  margin: 0 0 0.5rem 0.35rem;
}

.drrm-m-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.drrm-m-menu-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  color: var(--m-text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.drrm-m-menu-tile i {
  font-size: 1.25rem;
  color: var(--m-accent);
}

.drrm-m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.drrm-m-actions .drrm-m-btn {
  width: auto;
  flex: 1;
  min-width: calc(50% - 0.25rem);
  font-size: 0.82rem;
  padding: 0.55rem 0.65rem;
}

.drrm-m-toolbar {
  margin-bottom: 0.85rem;
}

.drrm-m-toolbar--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.drrm-m-toolbar--wrap .drrm-m-btn {
  width: auto;
  flex: 1;
  min-width: calc(50% - 0.25rem);
  font-size: 0.82rem;
}

.drrm-m-list__item--tap {
  position: relative;
  padding: 0;
}

.drrm-m-list__tap {
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem 1.05rem 1rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
  box-sizing: border-box;
}

.drrm-m-list--cards,
.drrm-m-list-wrap,
.drrm-m-activity-hub__body {
  touch-action: pan-y;
}

.drrm-m-list__tap:active {
  background: rgba(255, 255, 255, 0.06);
}

.drrm-m-list__item--tap .drrm-m-list__chev {
  display: none;
}

.drrm-m-feed .drrm-m-row {
  padding: 0.85rem 1rem;
}

.drrm-m-list__chev {
  display: none;
}

.drrm-m-btn--danger {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  width: auto;
}

.drrm-m-btn--warning {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  width: auto;
}

.drrm-m-req {
  color: #f87171;
}

.drrm-m-field select,
.drrm-m-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--m-text);
  font-size: 1rem;
  font-family: inherit;
}

.drrm-m-sheet {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  visibility: hidden;
}

.drrm-m-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.drrm-m-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drrm-m-sheet.is-open .drrm-m-sheet__backdrop {
  opacity: 1;
}

.drrm-m-sheet__panel {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  width: 100%;
  /* margin-top keeps header below notch; parent height set via visualViewport when open */
  margin-top: var(--m-sheet-top-inset);
  max-height: calc(100% - var(--m-sheet-top-inset));
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0a3d28;
  border-radius: 1rem 1rem 0 0;
  border: 1px solid var(--m-border);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  padding-bottom: max(0.75rem, var(--m-safe-b));
  padding-left: max(0px, var(--m-safe-l));
  padding-right: max(0px, var(--m-safe-r));
}

.drrm-m-sheet.is-open .drrm-m-sheet__panel {
  transform: translateY(0);
}

.drrm-m-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem max(1rem, var(--m-safe-r)) 0.5rem max(1rem, var(--m-safe-l));
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-sheet__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.drrm-m-sheet__close {
  background: none;
  border: none;
  color: var(--m-muted);
  font-size: 1.25rem;
  padding: 0.35rem;
}

.drrm-m-sheet__form {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 1rem;
}

.drrm-m-sheet__foot {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.75rem max(1rem, var(--m-safe-r)) max(1rem, var(--m-safe-b)) max(1rem, var(--m-safe-l));
  border-top: 1px solid var(--m-border);
}

.drrm-m-sheet__foot .drrm-m-btn--primary {
  flex: 1;
}

.drrm-m-sheet--tall .drrm-m-sheet__panel {
  max-height: calc(100% - var(--m-sheet-top-inset));
}

.drrm-m-sheet__foot--ops {
  flex-wrap: wrap;
}

.drrm-m-sheet__foot--ops .drrm-m-btn--primary {
  min-width: 8rem;
}

.drrm-m-form-section {
  margin-bottom: 0.75rem;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  background: rgba(255, 255, 255, 0.03);
}

.drrm-m-form-section summary {
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.drrm-m-form-section summary::-webkit-details-marker {
  display: none;
}

.drrm-m-form-section__body {
  padding: 0 0.75rem 0.75rem;
}

.drrm-m-time-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.drrm-m-time-row input[type="time"] {
  flex: 1;
}

.drrm-m-ampm {
  min-width: 4.5rem;
}

body.drrm-sheet-open {
  overflow: hidden;
}

body.drrm-sheet-open .drrm-m-toast {
  bottom: max(1.25rem, var(--m-safe-b));
  z-index: 1200;
}

.drrm-m-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--m-tab-offset) + 1rem);
  transform: translateX(-50%) translateY(1rem);
  z-index: 1200;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(6, 40, 24, 0.95);
  border: 1px solid var(--m-border);
  color: var(--m-text);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
  text-align: center;
}

.drrm-m-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.drrm-m-toast--error {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.drrm-m-toast--success {
  border-color: rgba(74, 222, 128, 0.35);
  color: #ecfdf5;
}

.drrm-m-confirm {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.drrm-m-confirm.is-open {
  pointer-events: auto;
  opacity: 1;
}

.drrm-m-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
}

.drrm-m-confirm__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  padding: 1rem 1rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--m-border);
  background: var(--m-bg2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.drrm-m-confirm__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--m-text);
}

.drrm-m-confirm__msg {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--m-muted);
}

.drrm-m-confirm__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.drrm-m-confirm__actions .drrm-m-btn {
  width: auto;
  min-width: 5.5rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

.drrm-m-greet-sub {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--m-muted);
}

.drrm-m-stat__sub {
  font-size: 0.62rem;
  color: var(--m-muted);
  margin-top: 0.15rem;
}

.drrm-m-feeds {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drrm-m-feed .drrm-m-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.drrm-m-feed .drrm-m-feed__head a {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--m-accent);
  text-decoration: none;
}

/* Searchable lists */
.drrm-m-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.drrm-m-list-wrap .drrm-m-list--cards {
  margin-top: 0.15rem;
}

.drrm-m-list-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drrm-m-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
}

.drrm-m-search i {
  color: var(--m-muted);
  font-size: 0.85rem;
}

.drrm-m-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--m-text);
  font-size: 0.95rem;
  outline: none;
}

.drrm-m-search__input::placeholder {
  color: var(--m-muted);
}

.drrm-m-list-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--m-muted);
}

.drrm-m-list-footer {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.5rem;
}

.drrm-m-load-more {
  width: 100%;
  max-width: 16rem;
}

.drrm-m-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--m-muted);
  line-height: 1.4;
}

/* Schedule calendar / list toggle */
.drrm-m-toolbar--sched {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.2rem 0.65rem 0;
  margin-bottom: 0.65rem;
}

.drrm-m-seg {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.55rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
}

.drrm-m-seg__btn {
  border: 0;
  background: transparent;
  color: var(--m-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.45rem;
  cursor: pointer;
}

.drrm-m-seg__btn.is-active {
  background: var(--m-accent2);
  color: var(--m-text);
}

.drrm-m-sched-panel {
  margin-top: 0.5rem;
}

.drrm-m-sched-sheet-tabs {
  width: 100%;
  margin-bottom: 0.65rem;
}

.drrm-m-sched-sheet-tabs .drrm-m-seg__btn {
  flex: 1;
  text-align: center;
}

.drrm-m-sched-overview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drrm-m-sched-overview__badge {
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.drrm-m-sched-overview__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-sched-overview__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.drrm-m-sched-overview__lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m-muted);
}

.drrm-m-sched-overview__val {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--m-text);
  word-break: break-word;
}

.drrm-m-sched-overview__block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.drrm-m-sched-overview__notes {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--m-text);
  white-space: pre-wrap;
}

/* Mobile schedules — FullCalendar (OEWS dark green theme) */
.drrm-m-calendar-wrap {
  padding: 0.5rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(10, 61, 40, 0.45) 0%, rgba(6, 40, 24, 0.2) 100%);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc.fc-theme-standard {
  --fc-border-color: rgba(74, 222, 128, 0.16);
  --fc-page-bg-color: transparent;
  --fc-page-text-color: var(--m-text);
  --fc-neutral-bg-color: rgba(6, 38, 28, 0.55);
  --fc-neutral-text-color: var(--m-muted);
  --fc-today-bg-color: rgba(52, 211, 153, 0.12);
  --fc-now-indicator-color: #fbbf24;
  --fc-highlight-color: rgba(52, 211, 153, 0.22);
  --fc-list-event-hover-bg-color: rgba(52, 211, 153, 0.14);
  --fc-event-text-color: #ffffff;
  --fc-event-border-color: transparent;
  --fc-more-link-text-color: #6ee7b7;
  --fc-more-link-bg-color: rgba(6, 78, 59, 0.75);
  --fc-button-text-color: var(--m-text);
  --fc-button-bg-color: rgba(15, 95, 72, 0.92);
  --fc-button-border-color: rgba(110, 231, 183, 0.32);
  --fc-button-hover-bg-color: rgba(21, 128, 96, 0.98);
  --fc-button-hover-border-color: rgba(134, 239, 172, 0.5);
  --fc-button-active-bg-color: #059669;
  --fc-button-active-border-color: rgba(167, 243, 208, 0.55);
  --fc-button-disabled-bg-color: rgba(4, 40, 28, 0.55);
  --fc-button-disabled-border-color: rgba(52, 211, 153, 0.12);
  --fc-button-disabled-text-color: rgba(167, 243, 208, 0.45);
  --fc-small-font-size: 0.56rem;
  font-size: 0.62rem;
  color: var(--m-text);
  font-family: inherit;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc table,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc a {
  color: rgba(236, 253, 245, 0.92);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-toolbar.fc-header-toolbar,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-toolbar.fc-footer-toolbar {
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem !important;
  padding: 0.4rem 0.45rem;
  background: rgba(4, 32, 22, 0.65);
  border: 1px solid rgba(110, 231, 183, 0.14);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-toolbar.fc-footer-toolbar {
  margin: 0.65rem 0 0 !important;
  justify-content: center;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-toolbar-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--m-text);
  padding: 0 0.15rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-button {
  padding: 0.32rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: none;
  border-radius: 0.5rem !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-button-primary:not(:disabled) {
  color: var(--m-text) !important;
  background-color: rgba(15, 95, 72, 0.92) !important;
  border-color: rgba(110, 231, 183, 0.32) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-button-primary:not(:disabled):hover {
  background-color: rgba(21, 128, 96, 0.98) !important;
  border-color: rgba(134, 239, 172, 0.5) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-prev-button .fc-icon,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-next-button .fc-icon {
  color: var(--m-text) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-today-button {
  background: rgba(45, 212, 191, 0.22) !important;
  border-color: rgba(110, 231, 183, 0.35) !important;
  min-width: 5.5rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-scrollgrid {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 183, 0.2);
  background: rgba(2, 22, 15, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-scrollgrid td,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-scrollgrid th {
  border-color: rgba(52, 211, 153, 0.12);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-col-header-cell {
  background: linear-gradient(180deg, rgba(13, 72, 52, 0.95) 0%, rgba(8, 48, 35, 0.98) 100%);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-col-header-cell-cushion {
  padding: 0.3rem 0.1rem;
  font-size: 0.54rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(220, 252, 231, 0.92) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day-frame {
  background: rgba(3, 28, 19, 0.35);
  min-height: 5rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.fc-day-sat .fc-daygrid-day-frame,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.fc-day-sun .fc-daygrid-day-frame {
  background: rgba(8, 42, 32, 0.45);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-m-fc-day--today .fc-daygrid-day-frame {
  background: rgba(52, 211, 153, 0.14);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.35);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-m-fc-day--past .fc-daygrid-day-number {
  opacity: 0.65;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc a.fc-daygrid-day-number,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day-number {
  color: var(--m-text) !important;
  font-weight: 600;
  font-size: 0.58rem;
  padding: 0.12rem 0.28rem;
  margin: 0.1rem;
  border-radius: 0.3rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: rgba(74, 222, 128, 0.25);
  color: #fff !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
  color: rgba(167, 243, 208, 0.35) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-event {
  margin: 0 1px 0;
  border-radius: 0.25rem;
  border: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .drrm-m-fc-event,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-event {
  cursor: pointer;
  font-size: 0.52rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0 2px;
  background: var(--drrm-ev-color, var(--m-accent2)) !important;
  border-color: transparent !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-event-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-event-time {
  font-size: 0.5rem;
  font-weight: 500;
  opacity: 0.92;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-more-link {
  color: #6ee7b7 !important;
  font-weight: 700;
  font-size: 0.52rem;
  background: rgba(6, 78, 59, 0.75);
  border-radius: 0.25rem;
  padding: 0 0.25rem;
  margin: 1px;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-popover {
  background: rgba(4, 32, 22, 0.98);
  border: 1px solid rgba(110, 231, 183, 0.25);
  border-radius: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-popover-header {
  background: rgba(13, 72, 52, 0.95);
  color: var(--m-text);
  padding: 0.35rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-popover-body {
  padding: 0.25rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-popover .fc-event {
  font-size: 0.54rem;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-now-indicator-line {
  border-color: #fbbf24;
  border-width: 2px;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.drrm-m-calendar-wrap .drrm-m-cal-error {
  padding: 1rem;
  text-align: center;
}

.drrm-m-calendar-wrap .drrm-m-cal-hint {
  margin: 0 0 0.4rem;
  font-size: 0.64rem;
  color: var(--m-muted);
  text-align: center;
}

/* Philippines holidays — red highlight on mobile calendars */
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday .fc-daygrid-day-frame {
  background-color: rgba(248, 113, 113, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.45) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.drrm-m-fc-day--today .fc-daygrid-day-frame,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.fc-day-today .fc-daygrid-day-frame,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.fc-day-sat .fc-daygrid-day-frame,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.fc-day-sun .fc-daygrid-day-frame {
  background-color: rgba(248, 113, 113, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.45) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday .fc-daygrid-day-number,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday a.fc-daygrid-day-number {
  color: #dc2626 !important;
  font-weight: 700;
  background: rgba(254, 226, 226, 0.95) !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.fc-day-today .fc-daygrid-day-number,
.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.drrm-m-fc-day--today .fc-daygrid-day-number {
  background: #dc2626 !important;
  color: #fff !important;
}

.drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .drrm-m-ph-holiday-label {
  display: block;
  margin: 0 2px 2px;
  padding: 0 3px;
  font-size: 0.48rem;
  font-weight: 700;
  line-height: 1.2;
  color: #991b1b;
  background: rgba(254, 226, 226, 0.95);
  border-radius: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday .fc-daygrid-day-frame,
html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.drrm-m-fc-day--today .fc-daygrid-day-frame,
html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday.fc-day-today .fc-daygrid-day-frame {
  background-color: #fee2e2 !important;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35) !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday .fc-daygrid-day-number,
html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .fc-daygrid-day.drrm-cal-ph-holiday a.fc-daygrid-day-number {
  color: #b91c1c !important;
  background: #fecaca !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc .drrm-m-ph-holiday-label {
  color: #991b1b;
  background: #fecaca;
}

/* Module detail sheet */
.drrm-m-detail-body {
  padding: 0 0 0.5rem;
}

.drrm-m-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-detail-row__lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--m-muted);
}

.drrm-m-detail-row__val {
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: break-word;
}

/* Activity hub */
.drrm-m-activity-hub {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  flex-direction: column;
}

.drrm-m-activity-hub.is-open {
  display: flex;
  flex-direction: column;
  padding-top: var(--m-safe-t);
  padding-left: var(--m-safe-l);
  padding-right: var(--m-safe-r);
  box-sizing: border-box;
}

.drrm-m-activity-hub__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.drrm-m-activity-hub.is-open:not(.backdrop-ready) .drrm-m-activity-hub__backdrop {
  pointer-events: none !important;
}

.drrm-m-sheet.is-open:not(.backdrop-active) .drrm-m-sheet__backdrop {
  pointer-events: none;
}

.drrm-m-activity-hub__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: auto;
  max-height: 100%;
  background: var(--m-bg);
  border-radius: 1rem 1rem 0 0;
  border-top: 1px solid var(--m-border);
  overflow: hidden;
}

body.drrm-hub-open {
  overflow: hidden;
}

.drrm-m-activity-hub__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-activity-hub__back {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--m-card);
  color: var(--m-text);
  font-size: 1rem;
}

.drrm-m-activity-hub__titles h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.drrm-m-activity-hub__titles p {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--m-muted);
}

.drrm-m-act-dock-float {
  flex-shrink: 0;
  padding: 0.55rem 0.65rem calc(0.55rem + var(--m-safe-b));
  background: linear-gradient(to top, rgba(6, 40, 24, 0.95) 0%, rgba(6, 40, 24, 0.6) 55%, transparent 100%);
}

.drrm-m-act-dock {
  min-height: 3.5rem;
  padding: 0.32rem 0.35rem;
  gap: 0.15rem;
}

.drrm-m-act-dock__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.drrm-m-activity-hub__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.drrm-m-act-pane {
  padding: 0.25rem 0;
}

.drrm-m-act-pane--participants .drrm-m-toolbar--act-parts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.05rem;
}

@media (min-width: 380px) {
  .drrm-m-act-pane--participants .drrm-m-toolbar--act-parts {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}

.drrm-m-act-edit-form .drrm-m-field {
  margin-bottom: 0.85rem;
}

.drrm-m-act-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--m-border);
}

.drrm-m-act-edit-actions .drrm-m-btn--primary {
  flex: 1;
  min-width: 8rem;
}

.drrm-m-act-view .drrm-m-detail-row:last-child {
  border-bottom: none;
}

.drrm-m-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.drrm-m-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--m-card);
}

.drrm-m-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drrm-m-photo-thumb__del {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fecaca;
  font-size: 0.75rem;
}

.drrm-m-photo-upload-btn {
  display: inline-flex;
  cursor: pointer;
}

.drrm-m-photo-upload-btn input {
  display: none;
}

/* Equipment inventory — list thumbs & full-screen preview */
.drrm-m-list__item--eq {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0;
}

.drrm-m-list__item--eq > .drrm-m-eq-thumb {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  margin: 0.5rem 0 0.5rem 1rem;
  padding: 0;
  border: none;
  border-radius: 0.45rem;
  overflow: hidden;
  background: var(--m-card);
  align-self: center;
}

.drrm-m-list__item--eq > .drrm-m-eq-thumb img {
  width: 100%;
  height: 3.25rem;
  object-fit: cover;
  display: block;
}

.drrm-m-list__item--eq > .drrm-m-list__tap {
  flex: 1 1 auto;
  min-width: 0;
}

.drrm-m-row--eq-list .drrm-m-row__main {
  min-width: 0;
}

.drrm-m-eq-photo-preview {
  margin-bottom: 0.5rem;
}

.drrm-m-eq-photo-preview img {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: contain;
  border-radius: 0.5rem;
  background: var(--m-card);
}

.drrm-m-detail-hero--eq .drrm-m-eq-hero-photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: var(--m-card);
}

.drrm-m-detail-hero--eq .drrm-m-eq-hero-photo img {
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  display: block;
}

.drrm-m-detail-hero--eq .drrm-m-detail-hero__title,
.drrm-m-detail-hero--eq > .drrm-m-hint {
  padding-left: 1rem;
  padding-right: 1rem;
}

.drrm-m-detail-hero--eq .drrm-m-detail-hero__title {
  padding-top: 1rem;
}

.drrm-m-detail-hero--eq:has(.drrm-m-eq-hero-photo) .drrm-m-detail-hero__title {
  padding-top: 0.85rem;
}

.drrm-m-detail-hero--eq > .drrm-m-hint {
  padding-bottom: 1rem;
  margin: 0;
}

.drrm-m-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
}

.drrm-m-photo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.drrm-m-photo-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
}

body.drrm-photo-lightbox-open {
  overflow: hidden;
}

.drrm-m-lookup-results {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: -0.35rem 0 0.85rem;
  max-height: min(12rem, 35vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: #0c3324;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.drrm-m-lookup-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--m-border);
  border-radius: 0;
  background: transparent;
  color: var(--m-text);
  font-size: 0.9rem;
  cursor: pointer;
}

.drrm-m-lookup-item:last-child {
  border-bottom: none;
}

.drrm-m-lookup-item:active {
  background: rgba(56, 189, 248, 0.15);
}

.drrm-m-lookup-item__title {
  display: block;
  font-weight: 600;
}

.drrm-m-lookup-item__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--m-muted);
}

.drrm-m-lookup-empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--m-muted);
}

.drrm-m-act-onboard-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.drrm-m-act-onboard-row__main {
  flex: 1;
  min-width: 0;
}

.drrm-m-act-onboard-del {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 0.45rem;
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  cursor: pointer;
}

.drrm-m-act-onboard-del:active {
  background: rgba(248, 113, 113, 0.28);
}

.drrm-m-cert-sign {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--m-text);
  font-size: 0.9rem;
}

/* History logs */
.drrm-m-log-badge,
.drrm-m-row__badge.drrm-m-log-badge--add,
.drrm-m-row__badge.drrm-m-log-badge--edit,
.drrm-m-row__badge.drrm-m-log-badge--delete,
.drrm-m-row__badge.drrm-m-log-badge--auth,
.drrm-m-row__badge.drrm-m-log-badge--default {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.drrm-m-row__badge.drrm-m-log-badge--add,
.drrm-m-log-badge--add {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.drrm-m-row__badge.drrm-m-log-badge--edit,
.drrm-m-log-badge--edit {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}

.drrm-m-row__badge.drrm-m-log-badge--delete,
.drrm-m-log-badge--delete {
  background: rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.drrm-m-row__badge.drrm-m-log-badge--auth,
.drrm-m-log-badge--auth {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.drrm-m-row__badge.drrm-m-log-badge--default,
.drrm-m-log-badge--default {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.drrm-m-list__title--log {
  font-size: 0.88rem;
  line-height: 1.35;
}

.drrm-m-log-full {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
}

.drrm-m-detail-row--stack .drrm-m-detail-row__val {
  margin-top: 0.35rem;
}

/* Settings */
.drrm-m-settings-account {
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.drrm-m-settings-account__label {
  font-size: 0.75rem;
  color: var(--m-muted);
  margin: 0 0 0.25rem;
}

.drrm-m-settings-account__name {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.drrm-m-settings-account__meta {
  font-size: 0.85rem;
  color: var(--m-muted);
}

.drrm-m-account-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0 0.25rem;
}

.drrm-m-account-photo__preview {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(74, 222, 128, 0.4);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.drrm-m-account-photo__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drrm-m-account-photo__initials {
  font-size: 1.35rem;
  font-weight: 800;
  color: #86efac;
  letter-spacing: 0.04em;
}

.drrm-m-account-photo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}

.drrm-m-account-photo__actions .drrm-m-btn {
  width: auto;
  min-width: 8rem;
}

.drrm-m-account-photo-upload {
  position: relative;
  overflow: hidden;
}

.drrm-m-account-photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drrm-m-eq-files {
  border-top: 1px solid var(--m-border);
  padding-top: 0.75rem;
}

.drrm-m-eq-file-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.drrm-m-eq-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.drrm-m-eq-file-item a {
  color: #86efac;
  text-decoration: none;
  word-break: break-word;
}

.drrm-m-eq-file-del {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #f87171;
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
}

.drrm-m-eq-file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.drrm-m-eq-file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drrm-m-settings-panel {
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.drrm-m-settings-panel h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.drrm-m-settings-panel h3 i {
  margin-right: 0.35rem;
  color: var(--m-accent);
}

.drrm-m-theme-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.drrm-m-theme-toggle__btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--m-radius);
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--m-text);
  font-weight: 600;
}

.drrm-m-theme-toggle__btn.is-active {
  border-color: var(--m-accent);
  background: rgba(34, 197, 94, 0.15);
  color: var(--m-accent);
}

.drrm-m-nav-pick {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  border-radius: 0.65rem;
  border: 1px solid var(--m-border);
  overflow: hidden;
}

.drrm-m-nav-pick__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--m-border);
  font-size: 0.9rem;
  cursor: pointer;
}

.drrm-m-nav-pick li:last-child .drrm-m-nav-pick__label {
  border-bottom: none;
}

.drrm-m-nav-pick__cb {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--m-accent);
}

.drrm-m-nav-pick__label i {
  width: 1.15rem;
  text-align: center;
  color: var(--m-muted);
}

.drrm-m-nav-pick__meta {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--m-muted);
}

.drrm-m-nav-pick__meta--warn {
  color: #fca5a5;
}

.drrm-m-nav-picker .drrm-m-btn {
  width: auto;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.drrm-m-nav-picker .drrm-m-btn--primary {
  width: 100%;
  margin-right: 0;
}

.drrm-m-settings-form .drrm-m-field {
  margin-bottom: 0.65rem;
}

.drrm-m-settings-form .drrm-m-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Profile / name picker (iOS-friendly; replaces datalist) */
.drrm-m-profile-pick__wrap {
  position: relative;
}

.drrm-m-profile-pick__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--m-text);
  font-size: 1rem;
}

.drrm-m-profile-pick__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: min(14rem, 40vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: #0c3324;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.drrm-m-profile-pick__item {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--m-border);
  background: transparent;
  color: var(--m-text);
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.drrm-m-profile-pick__item:last-child {
  border-bottom: none;
}

.drrm-m-profile-pick__item:active,
.drrm-m-profile-pick__item:focus {
  background: rgba(56, 189, 248, 0.15);
  outline: none;
}

.drrm-m-profile-pick__empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  color: var(--m-muted);
}

.drrm-m-suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.drrm-m-suggest-chip {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--m-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  text-align: left;
}

.drrm-m-suggest-chip:active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--m-accent);
  color: var(--m-text);
}

/* Rain gauge page */
.drrm-m-rain-page {
  margin: -0.25rem 0 0;
}

.drrm-m-rain-hero {
  position: relative;
  padding: 1.35rem 1.15rem 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(12, 45, 68, 0.95) 0%, rgba(8, 28, 42, 0.98) 55%, rgba(6, 22, 34, 1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.drrm-m-rain-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.18), transparent 65%);
  pointer-events: none;
}

.drrm-m-rain-hero.is-live {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 36px rgba(14, 116, 144, 0.35);
}

.drrm-m-rain-hero__visual {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
}

.drrm-m-rain-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 2rem;
  color: #7dd3fc;
  transition: transform 0.35s ease, color 0.35s ease;
}

.drrm-m-rain-hero.is-live .drrm-m-rain-hero__icon {
  color: #bae6fd;
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.drrm-m-rain-hero__drops {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.drrm-m-rain-hero__drops span {
  position: absolute;
  top: 28%;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, #38bdf8);
  opacity: 0;
  animation: drrm-rain-drop 1.1s ease-in infinite;
}

.drrm-m-rain-hero__drops span:nth-child(1) { left: 22%; animation-delay: 0s; }
.drrm-m-rain-hero__drops span:nth-child(2) { left: 38%; animation-delay: 0.25s; height: 12px; }
.drrm-m-rain-hero__drops span:nth-child(3) { left: 52%; animation-delay: 0.5s; }
.drrm-m-rain-hero__drops span:nth-child(4) { left: 66%; animation-delay: 0.15s; height: 9px; }
.drrm-m-rain-hero__drops span:nth-child(5) { left: 78%; animation-delay: 0.4s; }

@keyframes drrm-rain-drop {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(28px); }
}

.drrm-m-rain-hero__eyebrow {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.75);
}

.drrm-m-rain-hero__title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: -0.02em;
}

.drrm-m-rain-hero__sub {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(186, 230, 253, 0.85);
  line-height: 1.45;
}

.drrm-m-rain-hero__elapsed {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.drrm-m-rain-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.drrm-m-rain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.drrm-m-rain-btn--start {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #f0f9ff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.drrm-m-rain-btn--stop {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff7ed;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.drrm-m-rain-btn--add {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(186, 230, 253, 0.25);
  color: #e0f2fe;
}

.drrm-m-rain-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.drrm-m-rain-stat {
  padding: 0.7rem 0.5rem;
  border-radius: 0.65rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  text-align: center;
}

.drrm-m-rain-stat__val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #7dd3fc;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.drrm-m-rain-stat__lbl {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  color: var(--m-muted);
  line-height: 1.25;
}

.drrm-m-rain-history__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.drrm-m-rain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drrm-m-rain-page .drrm-m-list-wrap {
  margin: 0;
}

.drrm-m-rain-page .drrm-m-list-toolbar {
  margin-bottom: 0.65rem;
}

.drrm-m-rain-page .drrm-m-list-wrap .drrm-m-rain-list.drrm-m-list--cards {
  background: transparent;
  border: none;
  overflow: visible;
}

.drrm-m-rain-page .drrm-m-list--cards > .drrm-m-list__item {
  border-bottom: none;
}

.drrm-m-rain-page .drrm-m-list__tap {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.drrm-m-rain-page .drrm-m-rain-row {
  width: 100%;
}

.drrm-m-rain-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0;
}

.drrm-m-rain-row__icon {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  font-size: 1.15rem;
}

.drrm-m-rain-row__icon--none {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.drrm-m-rain-row__icon--live {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.drrm-m-rain-row__icon--trace {
  background: rgba(125, 211, 252, 0.14);
  color: #bae6fd;
}

.drrm-m-rain-row__icon--light {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}

.drrm-m-rain-row__icon--moderate {
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
}

.drrm-m-rain-row__icon--heavy {
  background: rgba(2, 132, 199, 0.22);
  color: #0284c7;
}

.drrm-m-rain-row__icon--storm {
  background: rgba(234, 179, 8, 0.16);
  color: #facc15;
}

.drrm-m-rain-row--live {
  background: rgba(56, 189, 248, 0.06);
}

.drrm-m-rain-row__main {
  min-width: 0;
  flex: 1;
}

.drrm-m-rain-row__date {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--m-text);
}

.drrm-m-rain-row__time {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--m-muted);
}

.drrm-m-rain-row__who {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--m-muted);
  line-height: 1.35;
}

.drrm-m-rain-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.drrm-m-rain-row__pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.drrm-m-rain-row__pill--live {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.drrm-m-rain-row__inches {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
}

.drrm-m-rain-row__dur {
  font-size: 0.72rem;
  color: var(--m-muted);
}

.drrm-m-rain-row__chev {
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: var(--m-muted);
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .drrm-m-rain-hero__drops span {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 360px) {
  .drrm-m-rain-stats {
    grid-template-columns: 1fr;
  }

  .drrm-m-rain-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 0.65rem 0.85rem;
  }

  .drrm-m-rain-stat__lbl {
    margin-top: 0;
    max-width: 55%;
  }
}

/* MDRRMO employee roster */
.drrm-m-roster-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.drrm-m-roster-stats__on {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--m-accent);
}

.drrm-m-roster-stats__total {
  font-size: 0.85rem;
  color: var(--m-muted);
}

.drrm-m-roster-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.drrm-m-roster-filter {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--m-border);
  background: var(--m-card);
  color: var(--m-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.drrm-m-roster-filter.is-active {
  background: rgba(74, 222, 128, 0.2);
  border-color: var(--m-accent);
  color: var(--m-accent);
}

.drrm-m-roster-list .drrm-m-roster-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drrm-m-roster-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-roster-item:last-child {
  border-bottom: none;
}

.drrm-m-row--roster {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.drrm-m-row--roster .drrm-m-row__chev {
  display: none;
}

.drrm-m-row__badge--ok {
  color: var(--m-accent);
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
}

.drrm-m-roster-switch {
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.55rem;
  cursor: pointer;
}

.drrm-m-roster-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.drrm-m-roster-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--m-border);
  transition: background 0.2s ease;
}

.drrm-m-roster-switch__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.drrm-m-roster-switch__input:checked + .drrm-m-roster-switch__track {
  background: var(--m-accent2);
  border-color: var(--m-accent);
}

.drrm-m-roster-switch__input:checked + .drrm-m-roster-switch__track::after {
  transform: translateX(1.15rem);
}

.drrm-m-roster-switch__input:disabled + .drrm-m-roster-switch__track {
  opacity: 0.5;
}

/* Tent borrowing picker */
.drrm-m-borrow-picker {
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--m-border);
  border-radius: 0.65rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 0.5rem;
}

.drrm-m-borrow-tent {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-borrow-tent:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.drrm-m-borrow-tent__title {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  cursor: pointer;
  list-style: none;
}

.drrm-m-borrow-tent__title::-webkit-details-marker {
  display: none;
}

.drrm-m-borrow-tent__body {
  padding: 0 0 0.5rem;
}

.drrm-m-borrow-part-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0;
  border-radius: 0.4rem;
}

.drrm-m-borrow-part-row.is-selected {
  background: rgba(74, 222, 128, 0.08);
}

.drrm-m-borrow-part-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin: 0;
}

.drrm-m-borrow-stock {
  font-size: 0.72rem;
  color: var(--m-muted);
  white-space: nowrap;
}

.drrm-m-borrow-part-qty {
  width: 3.25rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.4rem;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--m-text);
  font-size: 0.85rem;
}

.drrm-m-row__badge--warn {
  color: #fde68a;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.12);
}

/* Weather advisories list */
.drrm-m-page-advisories .drrm-m-list-wrap {
  margin-bottom: 0.5rem;
}

.drrm-m-page-advisories .drrm-m-row__sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drrm-m-list__item--has-links .drrm-m-list__tap {
  padding-bottom: 0.7rem;
}

.drrm-m-page-advisories .drrm-m-list__item-links {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
  padding: 0;
}

.drrm-m-page-advisories .drrm-m-advisory-fb-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.85rem 1rem 0.9rem 3.2rem;
  box-sizing: border-box;
  font-size: 0.88rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(96, 165, 250, 0.25);
}

.drrm-m-page-advisories .drrm-m-advisory-fb-link__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.drrm-m-page-advisories .drrm-m-advisory-fb-link__label {
  flex: 1;
  min-width: 0;
}

.drrm-m-page-advisories .drrm-m-advisory-fb-link__ext {
  flex-shrink: 0;
  font-size: 0.72rem;
  opacity: 0.65;
}

.drrm-m-page-advisories .drrm-m-advisory-fb-link:active {
  background: rgba(96, 165, 250, 0.14);
}

/* Employee shifts */
.drrm-m-esch-legend {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.drrm-m-esch-legend__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-muted);
}

.drrm-m-esch-legend__items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drrm-m-esch-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--m-muted);
}

.drrm-m-esch-legend__swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.drrm-m-esch-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.drrm-m-esch-filter {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--m-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--m-text);
  font-size: 0.82rem;
}

.drrm-m-toolbar--esch {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.drrm-m-toolbar--esch .drrm-m-seg {
  flex: 1;
}

.drrm-m-row__icon--graveyard {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.35);
}

.drrm-m-row__icon--day {
  background: rgba(13, 148, 136, 0.2);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.35);
}

.drrm-m-row__icon--evening {
  background: rgba(234, 88, 12, 0.18);
  color: #fdba74;
  border-color: rgba(251, 146, 60, 0.35);
}

/* Dashboard announcements */
.drrm-m-announcements {
  margin-bottom: 0.75rem;
}

.drrm-m-announcements__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.drrm-m-announcements__manage {
  font-size: 0.8rem;
  color: var(--m-accent, #4ade80);
  text-decoration: none;
}

.drrm-m-announcements__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem 0.75rem;
}

.drrm-m-ann-card {
  border-radius: 0.65rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(120, 53, 15, 0.25);
  padding: 0.65rem 0.75rem;
}

.drrm-m-ann-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fef3c7;
}

.drrm-m-ann-card__meta {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: rgba(254, 243, 199, 0.7);
}

.drrm-m-ann-card__body {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #fde68a;
}

.drrm-m-fb-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.drrm-m-fb-feed__open {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--m-accent);
  text-decoration: none;
}

.drrm-m-fb-feed__body {
  padding: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.drrm-m-fb-feed__frame {
  display: block;
  width: 100% !important;
  min-width: 100%;
  max-width: 100%;
  height: 42rem;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  vertical-align: top;
}

/* Admin — dashboard notes */
.drrm-m-page-dash-notes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.drrm-m-dash-notes-intro {
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.14);
}

.drrm-m-dash-notes-intro__text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--m-muted);
}

.drrm-m-dash-notes-intro__text strong {
  color: var(--m-accent);
  font-weight: 600;
}

.drrm-m-dash-notes-add {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  border-radius: 0.85rem;
}

.drrm-m-dash-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drrm-m-dash-notes-empty {
  margin: 0;
  padding: 1.75rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--m-muted);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(134, 239, 172, 0.2);
}

.drrm-m-dash-notes-empty strong {
  color: var(--m-text);
}

.drrm-m-dash-notes-empty code {
  font-size: 0.78rem;
  color: #fde68a;
}

.drrm-m-dash-notes-list > .drrm-m-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--m-muted);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--m-border);
}

.drrm-m-dash-note-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.9rem 0.85rem 0.9rem 0.9rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(69, 26, 3, 0.55), rgba(15, 40, 28, 0.85));
  color: var(--m-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drrm-m-dash-note-card--hidden {
  border-color: rgba(148, 163, 184, 0.25);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 40, 28, 0.75));
  opacity: 0.88;
}

.drrm-m-dash-note-card:active {
  background: linear-gradient(145deg, rgba(92, 38, 8, 0.65), rgba(20, 55, 38, 0.9));
  border-color: rgba(251, 191, 36, 0.45);
}

.drrm-m-dash-note-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  font-size: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.drrm-m-dash-note-card--hidden .drrm-m-dash-note-card__icon {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

.drrm-m-dash-note-card__body {
  flex: 1;
  min-width: 0;
}

.drrm-m-dash-note-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.drrm-m-dash-note-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #fffbeb;
  word-break: break-word;
}

.drrm-m-dash-note-card--hidden .drrm-m-dash-note-card__title {
  color: var(--m-text);
}

.drrm-m-dash-note-card__badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
}

.drrm-m-dash-note-card__badge--active {
  background: rgba(34, 197, 94, 0.28);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.drrm-m-dash-note-card__preview {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #fde68a;
}

.drrm-m-dash-note-card--hidden .drrm-m-dash-note-card__preview {
  color: var(--m-muted);
}

.drrm-m-dash-note-card__meta {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(209, 250, 229, 0.55);
}

.drrm-m-dash-note-card__chev {
  flex-shrink: 0;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(253, 230, 138, 0.45);
}

.drrm-m-toolbar--split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.drrm-m-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.drrm-m-detail-hero {
  margin-bottom: 0.75rem;
}

.drrm-m-detail-hero__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.drrm-m-list--flat .drrm-m-list__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drrm-m-list__item--static {
  padding: 0.65rem 0.85rem;
}

.drrm-m-list__item--btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
}

.drrm-m-link-row {
  display: block;
  padding: 0.5rem 0;
  color: var(--m-accent, #4ade80);
  word-break: break-word;
}

.drrm-m-empty-li {
  padding: 0.75rem 0.85rem;
  color: var(--m-muted);
  font-size: 0.88rem;
  list-style: none;
}

.drrm-m-week-line {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drrm-m-week-line__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.drrm-m-btn--sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
}

.drrm-m-eq-summary {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.drrm-m-eq-summary__mag {
  flex-shrink: 0;
  text-align: center;
  min-width: 4.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.drrm-m-eq-summary__mag-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fecaca;
}

.drrm-m-eq-summary__mag-lbl {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(254, 202, 202, 0.75);
  margin-top: 0.2rem;
}

.drrm-m-eq-summary__location {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.drrm-m-eq-chips {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drrm-m-eq-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--m-muted, #94a3b8);
}

.drrm-m-eq-subhead {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.drrm-m-eq-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
}

.drrm-m-eq-gallery__item {
  margin: 0;
}

.drrm-m-eq-gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.drrm-m-eq-gallery__name {
  display: block;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drrm-m-eq-gallery figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drrm-m-eq-upload {
  margin-bottom: 0.75rem;
}

.drrm-m-eq-report {
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ——— Appearance settings (motion choice cards) ——— */
.drrm-m-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drrm-m-motion-choice {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.drrm-m-motion-choice__card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem;
  border: 2px solid rgba(134, 239, 172, 0.18);
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.drrm-m-motion-choice__card:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

.drrm-m-motion-choice__card.is-selected {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.2);
}

.drrm-m-motion-choice__preview {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(134, 239, 172, 0.15);
}

.drrm-m-motion-choice__preview--full {
  background:
    radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.55), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(59, 130, 246, 0.45), transparent 50%),
    linear-gradient(145deg, #042415 0%, #0a3d28 100%);
}

.drrm-m-motion-choice__preview--reduced {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
}

.drrm-m-motion-choice__label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.drrm-m-motion-choice__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--m-text);
}

.drrm-m-motion-choice__desc {
  font-size: 0.75rem;
  color: var(--m-muted);
  line-height: 1.35;
}

.drrm-m-motion-choice__check {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.2);
  color: var(--m-accent);
  font-size: 0.65rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.drrm-m-motion-choice__card.is-selected .drrm-m-motion-choice__check {
  opacity: 1;
  transform: scale(1);
}

/* ——— Reduced motion / xEco light (matches desktop appearance setting) ——— */
html.drrm-bg-reduced {
  color-scheme: light;
  --m-bg: #eef3f6;
  --m-bg2: #e1eaef;
  --m-card: #ffffff;
  --m-border: #e1eaef;
  --m-text: #1b2932;
  --m-muted: #607582;
  --m-accent: #308a5a;
  --m-accent2: #27754d;
  --m-danger: #dc2626;
  --m-glass-fill: rgba(255, 255, 255, 0.94);
  --m-glass-highlight: rgba(48, 138, 90, 0.1);
  --m-glass-border: rgba(27, 41, 50, 0.12);
  --m-glass-shadow:
    0 4px 24px rgba(15, 23, 42, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced body.drrm-mobile-app,
html.drrm-bg-reduced body.drrm-mobile-app .drrm-m-main,
html.drrm-bg-reduced .drrm-m-header {
  background-color: #eef3f6;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-header__title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-header__title span {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-header__page,
html.drrm-bg-reduced .drrm-m-greet,
html.drrm-bg-reduced .drrm-m-hint {
  color: var(--m-muted);
}

html.drrm-bg-reduced .drrm-m-greet strong {
  color: #1b2932;
}

html.drrm-bg-reduced body.drrm-mobile-app::after,
html.drrm-bg-reduced body.drrm-mobile-app::before {
  display: none;
}

html.drrm-bg-reduced .drrm-m-tabbar,
html.drrm-bg-reduced .drrm-m-act-dock {
  background-image: linear-gradient(180deg, #ffffff 0%, #f5f8fa 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.drrm-bg-reduced .drrm-m-tabbar::before,
html.drrm-bg-reduced .drrm-m-act-dock::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 55%);
  opacity: 0.5;
}

html.drrm-bg-reduced .drrm-m-tabbar::after,
html.drrm-bg-reduced .drrm-m-act-dock::after {
  box-shadow: inset 0 0 0 1px rgba(27, 41, 50, 0.06);
}

html.drrm-bg-reduced .drrm-m-tabbar__item,
html.drrm-bg-reduced .drrm-m-act-dock__btn {
  color: rgba(27, 41, 50, 0.55);
}

html.drrm-bg-reduced .drrm-m-tabbar__item.is-active,
html.drrm-bg-reduced .drrm-m-act-dock__btn.is-active {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-tabbar__item.is-active::before,
html.drrm-bg-reduced .drrm-m-act-dock__btn.is-active::before {
  background: rgba(48, 138, 90, 0.14);
  border: 1px solid rgba(48, 138, 90, 0.28);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html.drrm-bg-reduced .drrm-m-tabbar__item.is-active .drrm-m-tabbar__icon,
html.drrm-bg-reduced .drrm-m-act-dock__btn.is-active .drrm-m-act-dock__icon {
  filter: none;
}

html.drrm-bg-reduced .drrm-m-btn--primary {
  color: #fff;
  box-shadow: 0 4px 14px rgba(48, 138, 90, 0.28);
}

html.drrm-bg-reduced .drrm-m-list--cards > .drrm-m-list__item,
html.drrm-bg-reduced .drrm-m-list--cards > .drrm-m-empty,
html.drrm-bg-reduced .drrm-m-list--cards > .drrm-m-loading {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-m-feed .drrm-m-list--cards > .drrm-m-list__item {
  background: #fff;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-feed .drrm-m-list__item:active {
  background: #f5f8fa;
}

html.drrm-bg-reduced .drrm-m-list__item--link:active {
  background: #f5f8fa;
}

html.drrm-bg-reduced .drrm-m-row__icon {
  background: rgba(48, 138, 90, 0.12);
  border-color: rgba(48, 138, 90, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--schedule {
  background: rgba(14, 116, 144, 0.12);
  color: #0e7490;
  border-color: rgba(14, 116, 144, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--advisory {
  background: rgba(180, 83, 9, 0.1);
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--profile {
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
  border-color: rgba(109, 40, 217, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--vehicle {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
  border-color: rgba(71, 85, 105, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--trip {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--tent {
  background: rgba(48, 138, 90, 0.1);
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-row__icon--rain {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--report {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

html.drrm-bg-reduced .drrm-m-row__icon--log-add {
  background: rgba(48, 138, 90, 0.12);
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-row__icon--log-edit {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

html.drrm-bg-reduced .drrm-m-row__icon--log-delete {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

html.drrm-bg-reduced .drrm-m-row__icon--log-auth {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

html.drrm-bg-reduced .drrm-m-row__icon--log-default,
html.drrm-bg-reduced .drrm-m-row__icon--cancelled {
  background: rgba(71, 85, 105, 0.1);
  color: #64748b;
}

html.drrm-bg-reduced .drrm-m-alert--error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

html.drrm-bg-reduced .drrm-m-alert--rain {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0369a1;
}

html.drrm-bg-reduced .drrm-m-sheet__panel {
  background: #fff;
}

html.drrm-bg-reduced .drrm-m-field input,
html.drrm-bg-reduced .drrm-m-field select,
html.drrm-bg-reduced .drrm-m-field textarea {
  background: #fff;
  border-color: #e1eaef;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-toolbar input[type='search'],
html.drrm-bg-reduced .drrm-m-list-search {
  background: #fff;
  border-color: #e1eaef;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-account-photo__preview {
  border-color: rgba(48, 138, 90, 0.35);
  background: #f5f8fa;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

html.drrm-bg-reduced .drrm-m-account-photo__initials {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-motion-choice__card {
  background: #fff;
  border-color: rgba(27, 41, 50, 0.12);
}

html.drrm-bg-reduced .drrm-m-motion-choice__card.is-selected {
  border-color: rgba(48, 138, 90, 0.55);
  box-shadow: 0 0 0 1px rgba(48, 138, 90, 0.2), 0 4px 14px rgba(48, 138, 90, 0.1);
}

html.drrm-bg-reduced .drrm-m-motion-choice__check {
  background: rgba(48, 138, 90, 0.15);
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-eq-file-item {
  border-bottom-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-eq-file-item a {
  color: #308a5a;
}

/* Login — xEco light when reduced motion is on */
html.drrm-bg-reduced body.drrm-m-login {
  background: #eef3f6;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-login__bg {
  display: none;
}

html.drrm-bg-reduced .drrm-m-login__logo-ring {
  display: none;
}

html.drrm-bg-reduced .drrm-m-login__eyebrow {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-login__title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-login__title span {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-login__tagline {
  color: #607582;
}

html.drrm-bg-reduced .drrm-m-login__panel {
  background: #fff;
  border-color: #e1eaef;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.drrm-bg-reduced .drrm-m-login__panel-title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-login__panel-sub {
  color: #607582;
}

html.drrm-bg-reduced body.drrm-m-login .drrm-m-field label {
  color: #607582;
}

html.drrm-bg-reduced .drrm-m-input-wrap {
  border-color: #e1eaef;
  background: #f5f8fa;
}

html.drrm-bg-reduced .drrm-m-input-wrap:focus-within {
  border-color: rgba(48, 138, 90, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(48, 138, 90, 0.12);
}

html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon .drrm-m-input-icon,
html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon .drrm-m-input-toggle {
  color: #607582;
}

html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon .drrm-m-input-toggle:active {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input::placeholder {
  color: rgba(27, 41, 50, 0.4);
}

html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input:-webkit-autofill,
html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input:-webkit-autofill:hover,
html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input:-webkit-autofill:focus,
html.drrm-bg-reduced .drrm-m-field.drrm-m-field--icon input:-webkit-autofill:active {
  -webkit-text-fill-color: #1b2932 !important;
  caret-color: #1b2932;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

html.drrm-bg-reduced .drrm-m-login__foot {
  border-top-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-login__link {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-login__copy {
  color: rgba(27, 41, 50, 0.45);
}

html.drrm-bg-reduced body.drrm-m-login .drrm-m-btn--primary,
html.drrm-bg-reduced .drrm-m-login__submit {
  color: #fff;
  box-shadow: 0 4px 14px rgba(48, 138, 90, 0.28);
}

/* Delete / danger actions */
html.drrm-bg-reduced .drrm-m-btn--danger,
html.drrm-bg-reduced .drrm-m-sheet__foot .drrm-m-btn--danger,
html.drrm-bg-reduced .drrm-m-sheet__delete {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

html.drrm-bg-reduced .drrm-m-toast {
  background: #fff;
  border: 1px solid #dbe6ed;
  color: #1b2932;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

html.drrm-bg-reduced .drrm-m-toast--success {
  border-color: rgba(48, 138, 90, 0.28);
  color: #236441;
}

html.drrm-bg-reduced .drrm-m-toast--error {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b91c1c;
}

html.drrm-bg-reduced .drrm-m-confirm__panel {
  background: #fff;
  border-color: #e1eaef;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

html.drrm-bg-reduced .drrm-m-confirm__title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-confirm__msg {
  color: #64748b;
}

html.drrm-bg-reduced .drrm-m-confirm__actions .drrm-m-btn--ghost {
  background: #f5f8fa;
  border-color: #dbe6ed;
  color: #475569;
}

html.drrm-bg-reduced .drrm-m-btn--warning {
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.3);
  color: #b45309;
}

html.drrm-bg-reduced .drrm-m-req {
  color: #dc2626;
}

html.drrm-bg-reduced .drrm-m-eq-file-del {
  color: #dc2626;
}

html.drrm-bg-reduced .drrm-m-photo-thumb__del {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

html.drrm-bg-reduced .drrm-m-log-badge--delete,
html.drrm-bg-reduced .drrm-m-row__badge.drrm-m-log-badge--delete {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

html.drrm-bg-reduced .drrm-m-log-badge--add,
html.drrm-bg-reduced .drrm-m-row__badge.drrm-m-log-badge--add {
  background: rgba(48, 138, 90, 0.12);
  color: #27754d;
}

html.drrm-bg-reduced .drrm-m-log-badge--edit,
html.drrm-bg-reduced .drrm-m-row__badge.drrm-m-log-badge--edit {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
}

html.drrm-bg-reduced .drrm-m-log-badge--auth,
html.drrm-bg-reduced .drrm-m-row__badge.drrm-m-log-badge--auth {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

/* Segmented controls (schedules / employee shifts) */
html.drrm-bg-reduced .drrm-m-seg {
  background: #fff;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-seg__btn.is-active {
  background: #308a5a;
  color: #fff;
}

html.drrm-bg-reduced .drrm-m-sched-cancelled-note {
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.25);
}

html.drrm-bg-reduced .drrm-m-sched-overview__badge {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
}

html.drrm-bg-reduced .drrm-m-esch-filter {
  background: #fff;
  border-color: #e1eaef;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-form-section {
  background: #f5f8fa;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-row__icon--graveyard {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--day {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  border-color: rgba(13, 148, 136, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--evening {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.2);
}

/* Dashboard weather forecast (drrm-weather.css) */
html.drrm-bg-reduced .drrm-weather {
  color: #1b2932;
  border-color: #cfe0e8;
  background: linear-gradient(155deg, #ffffff 0%, #f5f8fa 55%, #eef3f6 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-weather__bg {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(48, 138, 90, 0.08), transparent 50%);
}

html.drrm-bg-reduced .drrm-weather--error {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(155deg, #fff5f5, #fef2f2);
}

html.drrm-bg-reduced .drrm-weather__state-inner {
  color: #607582;
}

html.drrm-bg-reduced .drrm-weather__state-inner i {
  color: #0284c7;
}

html.drrm-bg-reduced .drrm-weather__pin {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

html.drrm-bg-reduced .drrm-weather__title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-weather__sub,
html.drrm-bg-reduced .drrm-weather__days-label,
html.drrm-bg-reduced .drrm-weather__foot {
  color: #607582;
}

html.drrm-bg-reduced .drrm-weather__live {
  color: #27754d;
  background: rgba(48, 138, 90, 0.1);
  border-color: rgba(48, 138, 90, 0.25);
}

html.drrm-bg-reduced .drrm-weather__live-dot {
  background: #308a5a;
  box-shadow: 0 0 8px rgba(48, 138, 90, 0.45);
}

html.drrm-bg-reduced .drrm-weather__hero,
html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__hero {
  background: #f5f8fa;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__hero::before {
  background: radial-gradient(circle, rgba(250, 204, 21, 0.12) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
}

html.drrm-bg-reduced .drrm-weather__hero-icon,
html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__hero-icon {
  color: #d97706;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(14, 116, 144, 0.08));
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-weather__hero-num,
html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__hero-num {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-weather__hero-unit,
html.drrm-bg-reduced .drrm-weather__hero-cond {
  color: #607582;
}

html.drrm-bg-reduced .drrm-weather__hero-rain-lbl {
  color: #607582;
}

html.drrm-bg-reduced .drrm-weather__hero-rain-lbl i {
  color: #0284c7;
}

html.drrm-bg-reduced .drrm-weather__hero-rain-val {
  color: #0369a1;
}

html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__hero-rain {
  background: #fff;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-weather__bar {
  background: rgba(27, 41, 50, 0.08);
}

html.drrm-bg-reduced .drrm-weather-period,
html.drrm-bg-reduced .drrm-weather-day {
  background: #fff;
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-weather-period--morning {
  border-color: rgba(180, 83, 9, 0.25);
  background: linear-gradient(165deg, rgba(250, 204, 21, 0.08), #fff);
}

html.drrm-bg-reduced .drrm-weather-period--afternoon {
  border-color: rgba(2, 132, 199, 0.25);
  background: linear-gradient(165deg, rgba(56, 189, 248, 0.08), #fff);
}

html.drrm-bg-reduced .drrm-weather-period--evening {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.08), #fff);
}

html.drrm-bg-reduced .drrm-weather-period__label,
html.drrm-bg-reduced .drrm-weather-day__label {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-weather-period__time,
html.drrm-bg-reduced .drrm-weather-period__cond {
  color: #607582;
}

html.drrm-bg-reduced .drrm-weather-period__icon,
html.drrm-bg-reduced .drrm-weather-day__icon {
  color: #0284c7;
}

html.drrm-bg-reduced .drrm-weather-period--morning .drrm-weather-period__icon {
  color: #d97706;
}

html.drrm-bg-reduced .drrm-weather-period__rain,
html.drrm-bg-reduced .drrm-weather-day__rain {
  color: #0369a1;
}

html.drrm-bg-reduced .drrm-weather-day--today {
  border-color: rgba(48, 138, 90, 0.45);
  background: rgba(48, 138, 90, 0.08);
  box-shadow: 0 0 0 1px rgba(48, 138, 90, 0.12);
}

html.drrm-bg-reduced .drrm-weather-day--today .drrm-weather-day__label {
  color: #308a5a;
}

html.drrm-bg-reduced .drrm-weather--mobile {
  border-color: #cfe0e8;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__bg {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(48, 138, 90, 0.08), transparent 55%);
}

html.drrm-bg-reduced .drrm-weather--mobile .drrm-weather__pin {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(14, 116, 144, 0.08));
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-weather__foot {
  border-top-color: #e1eaef;
}

/* Schedules & employee shifts — FullCalendar xEco light */
html.drrm-bg-reduced .drrm-m-calendar-wrap {
  background: #f5f8fa;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-schedules-calendar.fc,
html.drrm-bg-reduced .drrm-m-calendar-wrap .drrm-m-esch-calendar.fc,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc.fc-theme-standard {
  --fc-border-color: #e1eaef;
  --fc-page-bg-color: transparent;
  --fc-page-text-color: #1b2932;
  --fc-neutral-bg-color: #f5f8fa;
  --fc-neutral-text-color: #607582;
  --fc-today-bg-color: rgba(48, 138, 90, 0.1);
  --fc-now-indicator-color: #ea580c;
  --fc-highlight-color: rgba(48, 138, 90, 0.12);
  --fc-list-event-hover-bg-color: rgba(48, 138, 90, 0.08);
  --fc-event-text-color: #ffffff;
  --fc-more-link-text-color: #308a5a;
  --fc-more-link-bg-color: rgba(48, 138, 90, 0.12);
  --fc-button-text-color: #ffffff;
  --fc-button-bg-color: #308a5a;
  --fc-button-border-color: #27754d;
  --fc-button-hover-bg-color: #27754d;
  --fc-button-hover-border-color: #1f5f42;
  --fc-button-active-bg-color: #1f5f42;
  --fc-button-active-border-color: #1a5239;
  --fc-button-disabled-bg-color: #e1eaef;
  --fc-button-disabled-border-color: #d5e0e7;
  --fc-button-disabled-text-color: #94a3b8;
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc table,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc a {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-toolbar.fc-header-toolbar,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-toolbar.fc-footer-toolbar {
  background: #fff;
  border-color: #e1eaef;
  backdrop-filter: none;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-toolbar-title {
  color: #1b2932;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-button-primary:not(:disabled) {
  color: #fff !important;
  background-color: #308a5a !important;
  border-color: #27754d !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-button-primary:not(:disabled):hover {
  background-color: #27754d !important;
  border-color: #1f5f42 !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-prev-button .fc-icon,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-next-button .fc-icon {
  color: #fff !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-today-button {
  background: rgba(48, 138, 90, 0.12) !important;
  border-color: rgba(48, 138, 90, 0.28) !important;
  color: #27754d !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-scrollgrid {
  border-color: #e1eaef;
  background: #fff;
  box-shadow: none;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-scrollgrid td,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-scrollgrid th {
  border-color: #e1eaef;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-col-header-cell {
  background: linear-gradient(180deg, #f5f8fa 0%, #eef3f6 100%);
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-col-header-cell-cushion {
  color: #607582 !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day-frame {
  background: #fff;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day.fc-day-sat .fc-daygrid-day-frame,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day.fc-day-sun .fc-daygrid-day-frame {
  background: #f8fafb;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day.drrm-m-fc-day--today .fc-daygrid-day-frame {
  background: rgba(48, 138, 90, 0.08);
  box-shadow: inset 0 0 0 1px rgba(48, 138, 90, 0.28);
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc a.fc-daygrid-day-number,
html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day-number {
  color: #1b2932 !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: #308a5a;
  color: #fff !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-day.fc-day-other .fc-daygrid-day-number {
  color: #94a3b8 !important;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-daygrid-more-link {
  color: #308a5a !important;
  background: rgba(48, 138, 90, 0.1);
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-popover {
  background: #fff;
  border-color: #e1eaef;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.drrm-bg-reduced .drrm-m-calendar-wrap .fc .fc-popover-header {
  background: #f5f8fa;
  color: #1b2932;
}

@media (prefers-reduced-motion: reduce) {
  html.drrm-bg-reduced .drrm-m-motion-choice__card,
  html.drrm-bg-reduced .drrm-m-motion-choice__check {
    transition: none;
  }

  html.drrm-bg-reduced .drrm-weather__live-dot {
    animation: none;
  }
}

/* Documents — mobile page, filters, list, view sheet, calendar */
.drrm-m-doc-page {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.drrm-m-doc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  margin-bottom: 0.15rem;
  border-radius: 0.85rem;
  background: var(--m-card);
  border: 1px solid var(--m-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.drrm-m-doc-toolbar__top {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.drrm-m-doc-toolbar__top .drrm-m-seg--grow {
  flex: 1 1 0;
  display: flex;
  width: auto;
  min-width: 0;
}

.drrm-m-seg--grow .drrm-m-seg__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.5rem 0.45rem;
  font-size: 0.76rem;
}

.drrm-m-doc-toolbar__add {
  width: auto;
  flex: 0 0 auto;
  align-self: stretch;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  min-height: 0;
  white-space: nowrap;
  border-radius: 0.55rem;
}

.drrm-m-doc-filter {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.05rem;
}

.drrm-m-doc-filter::-webkit-scrollbar {
  display: none;
}

.drrm-m-doc-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-shrink: 0;
  border: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--m-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.drrm-m-doc-filter__btn i {
  font-size: 0.78rem;
  opacity: 0.9;
}

.drrm-m-doc-filter__btn.is-active {
  color: #ecfdf5;
  background: #047857;
  border-color: #047857;
}

.drrm-m-doc-filter__btn--incoming.is-active {
  color: #ecfdf5;
  background: #059669;
  border-color: #059669;
}

.drrm-m-doc-filter__btn--outgoing.is-active {
  color: #eff6ff;
  background: #2563eb;
  border-color: #2563eb;
}

.drrm-m-doc-panel {
  margin-top: 0;
}

.drrm-m-doc-panel .drrm-m-list-wrap {
  margin-top: 0;
  margin-bottom: 0;
  gap: 0.5rem;
}

body[data-mobile-crud="documents"] .drrm-m-doc-panel .drrm-m-list--cards {
  border-radius: 0.85rem;
  overflow: hidden;
}

body[data-mobile-crud="documents"] .drrm-m-row__sub {
  font-size: 0.78rem;
  color: var(--m-muted);
}

body[data-mobile-crud="documents"] .drrm-m-row__foot {
  margin-top: 0.2rem;
}

body[data-mobile-crud="documents"] .drrm-m-doc-badge {
  font-size: 0.58rem;
  padding: 0.1rem 0.36rem;
}

body[data-mobile-crud="documents"] .drrm-m-row__when {
  font-size: 0.68rem;
  color: var(--m-muted);
  max-width: 38%;
}

.drrm-m-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.drrm-m-doc-badge--incoming {
  color: #6ee7b7;
  background: rgba(5, 150, 105, 0.18);
  border-color: rgba(16, 185, 129, 0.28);
}

.drrm-m-doc-badge--outgoing {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(59, 130, 246, 0.28);
}

.drrm-m-doc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.35rem;
  padding: 0 0.15rem;
}

.drrm-m-doc-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.drrm-m-doc-legend__item--incoming {
  color: rgba(167, 243, 208, 0.92);
}

.drrm-m-doc-legend__item--outgoing {
  color: rgba(191, 219, 254, 0.92);
}

.drrm-m-calendar-wrap--documents {
  background: linear-gradient(
    165deg,
    rgba(12, 74, 110, 0.18) 0%,
    rgba(6, 78, 59, 0.32) 52%,
    rgba(6, 40, 24, 0.22) 100%
  );
}

.drrm-m-doc-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.drrm-m-doc-view__hero {
  padding: 0.85rem;
  border-radius: 0.85rem;
  color: #fff;
  overflow: hidden;
}

.drrm-m-doc-view--incoming .drrm-m-doc-view__hero {
  background: linear-gradient(135deg, #064e3b 0%, #059669 52%, #10b981 100%);
}

.drrm-m-doc-view--outgoing .drrm-m-doc-view__hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 52%, #3b82f6 100%);
}

.drrm-m-doc-view__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.drrm-m-doc-view--incoming .drrm-m-doc-view__pill {
  color: #065f46;
}

.drrm-m-doc-view--outgoing .drrm-m-doc-view__pill {
  color: #1e40af;
}

.drrm-m-doc-view__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.drrm-m-doc-view__meta {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.88;
}

.drrm-m-doc-view__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.drrm-m-doc-view__tile {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 0.72rem;
  border: 1px solid var(--m-border);
  background: var(--m-card);
}

.drrm-m-doc-view__tile--wide {
  grid-column: 1 / -1;
}

.drrm-m-doc-view--incoming .drrm-m-doc-view__tile {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(5, 150, 105, 0.08);
}

.drrm-m-doc-view--outgoing .drrm-m-doc-view__tile {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(37, 99, 235, 0.08);
}

.drrm-m-doc-view__tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--m-muted);
}

.drrm-m-doc-view--incoming .drrm-m-doc-view__tile-icon {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.drrm-m-doc-view--outgoing .drrm-m-doc-view__tile-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

.drrm-m-doc-view__tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.drrm-m-doc-view__tile-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m-muted);
}

.drrm-m-doc-view__tile-value {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--m-text);
  word-break: break-word;
}

.drrm-m-doc-view__panel {
  border-radius: 0.72rem;
  border: 1px solid var(--m-border);
  background: var(--m-card);
  overflow: hidden;
}

.drrm-m-doc-view--incoming .drrm-m-doc-view__panel {
  border-color: rgba(16, 185, 129, 0.18);
}

.drrm-m-doc-view--outgoing .drrm-m-doc-view__panel {
  border-color: rgba(59, 130, 246, 0.18);
}

.drrm-m-doc-view__panel-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m-muted);
  border-bottom: 1px solid var(--m-border);
}

.drrm-m-doc-view__panel-body {
  padding: 0.65rem 0.72rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--m-text);
}

.drrm-m-doc-files {
  margin-top: 0.15rem;
  padding: 0.75rem;
  border-radius: 0.72rem;
  border: 1px solid var(--m-border);
  background: var(--m-card);
}

.drrm-m-doc-files__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--m-text);
}

.drrm-m-doc-files__empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--m-muted);
}

html.drrm-bg-reduced .drrm-m-doc-toolbar {
  background: #fff;
  border-color: #e1eaef;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.drrm-bg-reduced .drrm-m-doc-filter__btn {
  background: #f5f8fa;
  border-color: #dbe6ed;
  color: #64748b;
}

html.drrm-bg-reduced .drrm-m-doc-filter__btn.is-active {
  color: #fff;
  background: #308a5a;
  border-color: #308a5a;
}

html.drrm-bg-reduced .drrm-m-doc-filter__btn--incoming.is-active {
  color: #fff;
  background: #059669;
  border-color: #059669;
}

html.drrm-bg-reduced .drrm-m-doc-filter__btn--outgoing.is-active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

html.drrm-bg-reduced .drrm-m-row__icon--incoming {
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.2);
}

html.drrm-bg-reduced .drrm-m-row__icon--outgoing {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.2);
}

html.drrm-bg-reduced .drrm-m-doc-badge--incoming {
  color: #047857;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
}

html.drrm-bg-reduced .drrm-m-doc-badge--outgoing {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

html.drrm-bg-reduced .drrm-m-doc-legend__item--incoming {
  color: #047857;
}

html.drrm-bg-reduced .drrm-m-doc-legend__item--outgoing {
  color: #1d4ed8;
}

html.drrm-bg-reduced .drrm-m-calendar-wrap--documents {
  background: #fff;
}

html.drrm-bg-reduced .drrm-m-doc-view--incoming .drrm-m-doc-view__hero {
  background: linear-gradient(135deg, #047857 0%, #059669 52%, #34d399 100%);
}

html.drrm-bg-reduced .drrm-m-doc-view--outgoing .drrm-m-doc-view__hero {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #60a5fa 100%);
}

html.drrm-bg-reduced .drrm-m-doc-view--incoming .drrm-m-doc-view__tile {
  background: #f5fbf8;
  border-color: #cbe2d6;
}

html.drrm-bg-reduced .drrm-m-doc-view--incoming .drrm-m-doc-view__tile-icon {
  background: #d1fae5;
  color: #047857;
}

html.drrm-bg-reduced .drrm-m-doc-view--outgoing .drrm-m-doc-view__tile {
  background: #f5f8ff;
  border-color: #c7d9f7;
}

html.drrm-bg-reduced .drrm-m-doc-view--outgoing .drrm-m-doc-view__tile-icon {
  background: #dbeafe;
  color: #1d4ed8;
}

@media (max-width: 380px) {
  .drrm-m-doc-view__tiles {
    grid-template-columns: 1fr;
  }

  .drrm-m-doc-filter__btn span {
    font-size: 0.7rem;
  }
}

