:root {
  --dci-navy: #082443;
  --dci-navy-2: #143b64;
  --dci-slate: #5a6f83;
  --dci-orange: #f36d08;
  --dci-amber: #ffb029;
  --dci-line: rgba(78, 111, 139, .2);
  --dci-pearl: rgba(248, 251, 253, .92);
  --dci-silver: rgba(226, 235, 241, .84);
  --dci-green: #18a869;
}

#dci-launch-nav,
#dci-toolbar-button,
#dci-record-button {
  position: relative;
}

/* Match the injected launcher to the native Workforce navigation geometry.
 * Native Lucide icons ship with an explicit 17px size; our inline SVG does not,
 * so without this constraint the browser uses its 300x150 default SVG size. */
#dci-launch-nav > svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  flex: 0 0 17px !important;
  margin: 0 !important;
  stroke-width: 2;
}

#dci-launch-nav > span {
  min-width: 0;
  white-space: nowrap;
}

#dci-toolbar-button,
#dci-record-button {
  background: linear-gradient(135deg, #ff9d18, #f26308) !important;
  border-color: rgba(255, 174, 48, .8) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(230, 103, 8, .22), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}

/* Match the native 15px Lucide icon used by Onboard Worker. Without an
 * explicit size, the injected inline SVG expands and makes this button taller. */
#dci-toolbar-button > svg,
#dci-record-button > svg {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  stroke-width: 2;
}

.dci-lock {
  overflow: hidden !important;
}

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

.dci-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(8, 24, 41, .42);
  backdrop-filter: blur(12px) saturate(.85);
  -webkit-backdrop-filter: blur(12px) saturate(.85);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dci-navy);
}

.dci-shell {
  isolation: isolate;
  position: relative;
  width: min(1448px, calc(100vw - 24px));
  height: min(1086px, calc(100vh - 24px));
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 28px;
  background:
    radial-gradient(circle at 93% 8%, rgba(255, 179, 44, .16), transparent 16%),
    radial-gradient(circle at 18% 100%, rgba(106, 159, 199, .14), transparent 28%),
    linear-gradient(135deg, #f8fbfd 0%, #edf3f6 42%, #f9fbfc 100%);
  box-shadow: 0 34px 90px rgba(2, 20, 38, .32), inset 0 1px 0 #fff;
}

.dci-shell::before,
.dci-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: .72;
}

.dci-shell::before {
  inset: 0;
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(250, 156, 22, .23) 47%, transparent 48%),
    linear-gradient(150deg, transparent 46%, rgba(250, 156, 22, .18) 47%, transparent 48%),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 176px 102px, 176px 102px, 4px 100%;
  background-position: -76px 8px, -76px 8px, 0 0;
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 36% 78%, #000 100%);
}

.dci-shell::after {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 45px;
  border: 1px solid rgba(240, 139, 18, .35);
  transform: rotate(30deg);
  background: repeating-linear-gradient(60deg, transparent 0 82px, rgba(255, 174, 39, .12) 83px 85px, transparent 86px 168px);
  filter: drop-shadow(0 0 7px rgba(255, 152, 22, .22));
}

.dci-topbar {
  height: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(80, 110, 135, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(232, 240, 245, .78));
  box-shadow: 0 8px 28px rgba(36, 67, 94, .08), inset 0 1px 0 #fff;
}

.dci-brand {
  display: flex;
  align-items: center;
  min-width: 250px;
}

.dci-brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 13px;
  filter: drop-shadow(0 5px 7px rgba(6, 37, 67, .16));
}

.dci-brand-mark::before,
.dci-brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
  background: conic-gradient(from 32deg, #f59b19, #ffd351, #f36b07 34%, #1c74b2 35%, #0a3f70 66%, #cbd9e1 67%, #eef4f7);
}

.dci-brand-mark::after {
  inset: 12px;
  background: #f7fafc;
}

.dci-brand-name {
  display: block;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}

.dci-brand-tag {
  display: block;
  margin-top: 6px;
  color: var(--dci-slate);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .31em;
}

.dci-top-message {
  margin-left: auto;
  color: #173653;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dci-user-zone {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dci-icon-button,
.dci-close {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(91, 118, 142, .22);
  border-radius: 13px;
  color: var(--dci-navy);
  background: linear-gradient(145deg, rgba(255,255,255,.93), rgba(220,230,236,.9));
  box-shadow: 0 6px 14px rgba(22, 49, 73, .13), inset 0 1px 0 #fff;
  cursor: pointer;
}

.dci-icon-button:hover,
.dci-close:hover { border-color: rgba(242, 109, 8, .65); color: var(--dci-orange); }

.dci-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a4100;
  font-weight: 800;
  background: linear-gradient(145deg, #ffd277, #ff9d20);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(245,139,17,.65), 0 8px 18px rgba(173,91,9,.2);
}

.dci-user-copy { line-height: 1.2; min-width: 116px; }
.dci-user-copy strong { display: block; font-size: 13px; }
.dci-user-copy span { color: var(--dci-slate); font-size: 11px; }

.dci-frame {
  height: calc(100% - 76px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.dci-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 13px 20px;
  border-right: 1px solid rgba(73, 104, 129, .19);
  background: linear-gradient(150deg, rgba(249,252,253,.86), rgba(219,231,238,.72));
  box-shadow: 10px 0 24px rgba(27, 59, 86, .07), inset -1px 0 rgba(255,255,255,.75);
  overflow: hidden;
}

.dci-sidebar::before {
  content: "";
  position: absolute;
  inset: auto -78px 120px -82px;
  height: 340px;
  opacity: .75;
  background:
    linear-gradient(30deg, transparent 48%, rgba(255,160,24,.38) 49%, transparent 50%),
    linear-gradient(150deg, transparent 48%, rgba(255,160,24,.28) 49%, transparent 50%);
  background-size: 150px 86px;
  filter: drop-shadow(0 0 5px rgba(249,135,11,.22));
  pointer-events: none;
}

.dci-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.dci-nav-button {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #173957;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.dci-nav-button svg { width: 22px; height: 22px; stroke-width: 1.9; }
.dci-nav-button:hover { background: rgba(255,255,255,.65); }
.dci-nav-button.active {
  color: #082a4c;
  border-color: rgba(255, 172, 50, .62);
  background: linear-gradient(145deg, rgba(255,248,235,.95), rgba(255,255,255,.88));
  box-shadow: 0 0 0 4px rgba(255,167,38,.08), 0 8px 20px rgba(21,54,82,.11), inset 0 1px 0 #fff, inset 0 -2px 5px rgba(249,142,11,.1);
}
.dci-nav-button.active svg { color: var(--dci-orange); }

.dci-side-brand {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 18px 16px 2px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--dci-orange), transparent) 1;
}
.dci-side-brand strong { display: block; font-size: 15px; }
.dci-side-brand > span { display: block; font-size: 12px; color: var(--dci-slate); }
.dci-side-values { margin: 20px 0; color: #2c5374; font-size: 9px; line-height: 1.55; font-weight: 800; letter-spacing: .25em; }
.dci-side-slogan { color: #294b68; font-size: 10px; line-height: 1.45; font-weight: 800; letter-spacing: .18em; }

.dci-main {
  min-width: 0;
  padding: 12px 14px 20px;
  overflow: auto;
  scrollbar-color: rgba(28,87,127,.32) transparent;
}

.dci-page-head {
  min-height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(226,236,242,.8));
  box-shadow: 0 8px 20px rgba(30,62,88,.09), inset 0 1px 0 #fff;
}
.dci-page-head h1 { margin: 0; font-size: clamp(27px, 2.1vw, 37px); line-height: 1; letter-spacing: -.04em; }
.dci-page-head p { margin: 5px 0 0; color: #42617c; font-size: 16px; }

.dci-callout {
  min-width: 380px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(224,234,239,.84));
  box-shadow: 0 10px 22px rgba(20,51,78,.11), inset 0 1px 0 #fff;
}
.dci-callout svg { width: 44px; height: 44px; color: var(--dci-orange); }
.dci-callout strong { display: block; font-size: 16px; }
.dci-callout span { display: block; margin-top: 4px; color: #355775; font-size: 11px; letter-spacing: .06em; }

.dci-panel {
  position: relative;
  margin-bottom: 9px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 50%, rgba(41,68,90,.012) 50%),
    linear-gradient(145deg, rgba(252,253,254,.9), rgba(221,232,239,.83) 56%, rgba(246,250,251,.91));
  background-size: 3px 100%, 100% 100%;
  box-shadow: 0 9px 22px rgba(26,59,86,.1), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(64,90,111,.12);
  overflow: visible;
}

.dci-panel-head {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(87,113,135,.17);
}
.dci-step {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff !important;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(145deg, #ffb42e, #f25f00);
  border: 2px solid rgba(255,255,255,.88);
  box-shadow: 0 3px 10px rgba(205,88,4,.28), inset 0 1px 0 rgba(255,255,255,.5);
}
.dci-panel-head h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.dci-panel-head-note { margin-left: auto; color: #4e6980; font-size: 11px; }
.dci-panel-body { padding: 12px 17px 15px; }

.dci-grid { display: grid; gap: 13px; }
.dci-grid.employee { grid-template-columns: 1.45fr 1fr 1fr; }
.dci-grid.work { grid-template-columns: .85fr 1fr 1.05fr 1fr; }
.dci-grid.evidence { grid-template-columns: 1fr 1.45fr; }

.dci-field { min-width: 0; position: relative; }
.dci-field > label,
.dci-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px 4px;
  color: #163958;
  font-size: 13px;
  font-weight: 800;
}
.dci-field > label svg,
.dci-field-label svg { width: 20px; height: 20px; color: var(--dci-orange); }
.dci-required { color: #e9472c; }
.dci-help { color: var(--dci-slate); font-size: 10px; }

.dci-control,
.dci-field input,
.dci-field select,
.dci-field textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 13px;
  border: 1px solid rgba(81,111,135,.25);
  border-radius: 11px;
  outline: 0;
  color: var(--dci-navy);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(228,236,241,.8));
  box-shadow: inset 0 1px 2px rgba(18,47,72,.08), 0 1px 0 #fff;
  font: inherit;
  font-size: 13px;
}
.dci-field textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.dci-field input:focus,
.dci-field select:focus,
.dci-field textarea:focus,
.dci-control:focus-within { border-color: rgba(242,110,7,.67); box-shadow: 0 0 0 3px rgba(246,128,13,.11), inset 0 1px 2px rgba(18,47,72,.06); }
.dci-field input[readonly] { color: #254b6b; background: rgba(234,241,245,.74); }

.dci-building-control { position: relative; }
.dci-building-button {
  justify-content: space-between;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.dci-building-button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dci-picker-popover,
.dci-wo-popover {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  padding: 8px;
  border: 1px solid rgba(75,106,131,.25);
  border-radius: 12px;
  background: rgba(249,252,253,.98);
  box-shadow: 0 18px 35px rgba(12,41,66,.23), inset 0 1px #fff;
}
.dci-picker-popover[hidden], .dci-wo-popover[hidden] { display: none; }
.dci-picker-tip { padding: 3px 8px 8px; color: var(--dci-slate); font-size: 10px; }
.dci-check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.dci-check-row:hover { background: rgba(235,113,12,.08); }
.dci-check-row input { width: 16px; min-height: 16px; accent-color: var(--dci-orange); }

.dci-work-order { grid-column: 1 / 3; }
.dci-evidence-stack { grid-column: 3 / 5; display: grid; grid-template-columns: .95fr 1.35fr; gap: 13px; }
.dci-wo-combo { position: relative; }
.dci-wo-popover { max-height: 248px; overflow: auto; padding: 5px; }
@media (min-width: 761px) {
  .dci-wo-popover { position: static; max-height: 164px; margin-top: 5px; }
}
.dci-wo-option {
  width: 100%;
  display: block;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #173a59;
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.dci-wo-option:hover, .dci-wo-option.active { color: #8b3e00; background: rgba(248,137,20,.13); }
.dci-no-options { padding: 12px; color: var(--dci-slate); font-size: 12px; }

.dci-upload,
.dci-location {
  min-height: 158px;
  border: 1px solid rgba(75,107,132,.27);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(226,235,240,.68));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 4px 12px rgba(17,50,77,.08);
}
.dci-upload {
  position: relative;
  display: grid;
  place-items: center;
  padding: 11px;
  border-style: dashed;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}
.dci-upload.drag { border-color: var(--dci-orange); background: rgba(255,245,228,.84); }
.dci-upload svg { width: 42px; height: 42px; color: #2b5e87; }
.dci-upload strong { display: block; margin-top: 5px; font-size: 12px; }
.dci-upload span { display: block; margin-top: 3px; color: var(--dci-slate); font-size: 10px; }
.dci-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dci-upload img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; border-radius: 11px; background: #eef3f6; }
.dci-upload-change { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 7px 10px; border: 0; border-radius: 9px; color: #fff; background: rgba(5,35,62,.82); font-size: 10px; font-weight: 800; }

.dci-location { position: relative; padding: 8px; overflow: hidden; }
.dci-location-map {
  position: relative;
  height: 82px;
  overflow: hidden;
  border-radius: 11px;
  background:
    linear-gradient(25deg, transparent 44%, rgba(82,145,187,.22) 45% 48%, transparent 49%),
    linear-gradient(155deg, transparent 41%, rgba(69,138,180,.18) 42% 45%, transparent 46%),
    linear-gradient(90deg, rgba(123,190,143,.19) 12%, transparent 12% 62%, rgba(123,190,143,.22) 62% 73%, transparent 73%),
    linear-gradient(#edf4f6, #dfeaf0);
  background-size: 120px 75px, 150px 90px, 100% 100%, 100% 100%;
}
.dci-pin {
  position: absolute;
  left: 52%;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -60%);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #1478ee;
  box-shadow: 0 4px 12px rgba(0,72,160,.35);
  rotate: -45deg;
}
.dci-pin::after { content:""; position:absolute; width:5px; height:5px; left:3.5px; top:3.5px; border-radius:50%; background:#fff; }
.dci-location-status {
  position: absolute;
  right: 13px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 99px;
  color: #fff;
  background: #788b9b;
  box-shadow: 0 4px 9px rgba(12,44,67,.18);
  font-size: 9px;
  font-weight: 800;
}
.dci-location-status.good { background: linear-gradient(90deg, #169a5f, #2ebd70); }
.dci-location-status.bad { background: #d94d42; }
.dci-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 7px; }
.dci-coordinate { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.55); color: #325571; font-size: 9px; }
.dci-coordinate b { display: block; color: #153958; font-size: 10px; }

.dci-location-button,
.dci-secondary,
.dci-primary,
.dci-mini-button {
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.dci-location-button { width: 100%; margin-top: 7px; padding: 8px; color: #174365; background: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(72,106,132,.2); font-size: 10px; }
.dci-location-button:hover { color: #8a3f00; box-shadow: inset 0 0 0 1px rgba(242,109,8,.42); }

.dci-notes-wrap { position: relative; }
.dci-counter { position: absolute; right: 11px; bottom: 8px; color: var(--dci-slate); font-size: 10px; }

.dci-submit-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  margin-top: 9px;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(250,252,253,.94), rgba(221,232,239,.86));
  box-shadow: 0 9px 23px rgba(23,55,82,.11), inset 0 1px #fff;
}
.dci-mail-note { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dci-mail-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #ffad24, #f16106); box-shadow: 0 6px 15px rgba(225,97,7,.23); }
.dci-mail-icon svg { width: 23px; height: 23px; }
.dci-mail-copy { min-width: 0; color: #284b68; font-size: 11px; }
.dci-mail-copy strong { display: block; margin-bottom: 4px; color: #153858; font-size: 12px; }
.dci-recipient-list { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.dci-recipient-list span { overflow-wrap: anywhere; }

.dci-primary {
  min-width: 286px;
  min-height: 51px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  color: #fff !important;
  background: linear-gradient(135deg, #ffb02a 0%, #ff870e 45%, #f05c02 100%);
  border: 1px solid rgba(255, 190, 69, .95);
  box-shadow: 0 0 0 4px rgba(255,167,26,.12), 0 10px 22px rgba(211,83,0,.29), inset 0 1px 0 rgba(255,255,255,.55);
  font-size: 16px;
  text-shadow: 0 1px 1px rgba(105,42,0,.3);
}
.dci-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 5px rgba(255,167,26,.15), 0 13px 25px rgba(211,83,0,.31), inset 0 1px 0 rgba(255,255,255,.58); }
.dci-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.dci-primary svg { width: 25px; height: 25px; flex: 0 0 auto; color: #fff !important; }
.dci-mini-button svg { width: 15px; height: 15px; flex: 0 0 auto; }
.dci-submit-caption { margin-top: 7px; color: #3b5c77; font-size: 10px; text-align: center; }
.dci-status { min-height: 18px; margin-top: 8px; font-size: 11px; font-weight: 700; }
.dci-status.error { color: #c63f35; }
.dci-status.success { color: #138958; }

/* Submission requirements: identify the exact control that needs attention. */
#dci-form .dci-requirement-error {
  position: relative;
  border-radius: 13px;
  outline: 3px solid rgba(193, 54, 43, .78);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(193, 54, 43, .1);
}
#dci-form [aria-invalid="true"] { border-color: #bd362f !important; }

/* v4 reference-fidelity layout: measured against the supplied 1448×1086
 * Pro-Tel artwork. The form remains live HTML and keeps every control usable. */
.dci-overlay {
  padding: 0;
  background: rgba(12, 30, 46, .46);
}

.dci-shell {
  width: min(1448px, 100vw);
  height: min(1086px, 100dvh);
  border-radius: 27px;
  background:
    radial-gradient(circle at 86% 6%, rgba(255, 178, 43, .15), transparent 16%),
    linear-gradient(135deg, #f9fbfc 0%, #e8eff4 49%, #f8fafb 100%);
}

.dci-shell::before {
  opacity: .82;
  background-image:
    linear-gradient(30deg, transparent 46.8%, rgba(255, 156, 18, .25) 47.2%, transparent 47.8%),
    linear-gradient(150deg, transparent 46.8%, rgba(255, 156, 18, .18) 47.2%, transparent 47.8%),
    linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
  background-size: 178px 103px, 178px 103px, 4px 100%;
  background-position: -70px 1px, -70px 1px, 0 0;
}

.dci-topbar {
  height: 78px;
  padding: 0 30px;
  border-radius: 27px 27px 18px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(226,235,241,.91));
  box-shadow: 0 8px 20px rgba(35,63,84,.14), inset 0 1px 0 #fff, inset 0 -2px 0 rgba(247,154,21,.16);
}

.dci-brand { min-width: 352px; }
.dci-brand-mark { width: 57px; height: 57px; margin-right: 10px; }
.dci-brand-name { font-size: 39px; letter-spacing: -.045em; }
.dci-brand-tag { margin-top: 4px; font-size: 8px; letter-spacing: .36em; }
.dci-top-message { padding-right: 27px; border-right: 1px solid rgba(44,74,100,.27); font-size: 14px; }
.dci-user-zone { gap: 16px; }
.dci-icon-button { border: 0; background: transparent; box-shadow: none; }
.dci-avatar { width: 45px; height: 45px; }
.dci-user-copy { min-width: 120px; }
.dci-user-copy strong { font-size: 14px; }
.dci-user-copy span { margin-top: 4px; font-size: 12px; }
.dci-close { width: 38px; border: 0; background: transparent; box-shadow: none; }
.dci-close svg { width: 24px; height: 24px; stroke-width: 2.4; }

.dci-frame { height: calc(100% - 78px); grid-template-columns: 233px minmax(0, 1fr); }
.dci-sidebar { padding: 16px 10px 18px; border-radius: 22px; }
.dci-nav { gap: 6px; }
.dci-nav-button { min-height: 52px; gap: 17px; padding: 0 21px; border-radius: 15px; font-size: 14px; }
.dci-nav-button svg { width: 25px; height: 25px; }
.dci-nav-button.active { min-height: 68px; font-size: 15px; }
.dci-side-brand { padding: 14px 20px 4px; }
.dci-side-brand strong { font-size: 16px; }
.dci-side-brand > span { font-size: 13px; }
.dci-side-values { margin: 20px 0 24px; font-size: 10px; line-height: 1.55; }
.dci-side-slogan { font-size: 10.5px; line-height: 1.48; }

.dci-main {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 10px;
  overflow: auto;
}

.dci-page-head {
  flex: 0 0 90px;
  min-height: 90px;
  padding: 10px 30px;
  margin-bottom: 8px;
  border-radius: 22px;
}
.dci-page-head h1 { font-size: 39px; }
.dci-page-head p { margin-top: 3px; font-size: 18px; }
.dci-callout { min-width: 415px; padding: 12px 28px; border-radius: 25px; }
.dci-callout svg { width: 48px; height: 48px; }
.dci-callout strong { font-size: 17px; }
.dci-callout span { font-size: 12px; }

#dci-form {
  flex: 1 0 892px;
  min-height: 892px;
  display: grid;
  grid-template-rows: 150px 640px 86px;
  gap: 8px;
  padding: 0;
}

.dci-panel { margin: 0; border-radius: 22px; }
.dci-employee-panel { min-height: 150px; }
.dci-panel-head { min-height: 47px; height: 47px; padding: 0 26px; gap: 14px; }
.dci-step { width: 36px; height: 36px; font-size: 20px; }
.dci-panel-head h2 { font-size: 21px; }
.dci-panel-head-note { font-size: 12px; }
.dci-panel-body { padding: 11px 28px 14px; }
.dci-grid.employee { grid-template-columns: 1.45fr 1fr .92fr; gap: 66px; }
.dci-field > label,
.dci-field-label { gap: 9px; margin: 0 0 7px 0; font-size: 15px; }
.dci-field > label svg,
.dci-field-label svg { width: 24px; height: 24px; stroke-width: 2.1; }
.dci-control,
.dci-field input,
.dci-field select,
.dci-field textarea { min-height: 36px; padding: 7px 12px; border-radius: 9px; font-size: 14px; }
.dci-help { font-size: 10px; }

.dci-work-panel { min-height: 640px; overflow: hidden; }
.dci-work-body { height: calc(100% - 47px); padding: 10px 10px 11px 28px; }
.dci-top-fields {
  height: 209px;
  display: grid;
  grid-template-columns: 258fr 241fr 302fr 262fr;
  gap: 22px;
  align-items: start;
}
.dci-catalog-control,
.dci-building-control { margin-left: 36px; width: calc(100% - 36px); }
.dci-catalog-button { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.dci-catalog-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dci-catalog-list,
.dci-picker-popover {
  position: static;
  display: block;
  padding: 2px 7px 6px;
  border: 1px solid rgba(75,106,131,.19);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(145deg, rgba(250,252,253,.95), rgba(225,234,240,.91));
  box-shadow: 0 8px 15px rgba(22,52,77,.11), inset 0 1px #fff;
}
.dci-catalog-control.collapsed .dci-catalog-list,
.dci-picker-popover.collapsed { display: none; }
.dci-catalog-option {
  width: 100%;
  min-height: 22px;
  display: block;
  padding: 2px 10px;
  border: 0;
  border-radius: 7px;
  color: #173a59;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.dci-catalog-option:hover,
.dci-catalog-option.selected { color: #8a3e00; background: rgba(247,138,21,.09); }
.dci-catalog-control[data-dci-catalog="task"] .dci-catalog-list { padding-top: 1px; padding-bottom: 1px; }
.dci-catalog-control[data-dci-catalog="task"] .dci-catalog-option {
  min-height: 19px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 19px;
}
.dci-picker-popover { padding: 1px 7px 3px; }
.dci-picker-tip { padding: 0; white-space: nowrap; font-size: 9px; line-height: 11px; }
.dci-check-row { min-height: 18px; margin: 0; padding: 0 8px; font-size: 13px; line-height: 18px; }
.dci-check-row input { width: 14px; min-height: 14px; }

.dci-lower-layout {
  height: calc(100% - 209px);
  display: grid;
  grid-template-columns: 447fr 684fr;
  gap: 14px;
  min-height: 0;
}
.dci-work-order { grid-column: auto; min-height: 0; }
.dci-work-order .dci-wo-combo { margin-left: 36px; width: calc(100% - 36px); }
.dci-work-order .dci-wo-popover {
  position: static;
  height: calc(100% - 41px);
  max-height: none;
  margin-top: 0;
  padding: 3px 7px 5px;
  border-radius: 0 0 10px 10px;
}
.dci-wo-combo { height: calc(100% - 31px); }
.dci-wo-option { min-height: 24px; padding: 3px 7px; font-size: 13px; line-height: 1.2; }
.dci-right-stack {
  min-height: 0;
  display: grid;
  grid-template-rows: 226px minmax(0, 1fr);
  gap: 9px;
}
.dci-evidence-stack {
  grid-column: auto;
  display: grid;
  grid-template-columns: 260fr 414fr;
  gap: 10px;
  min-height: 0;
}
.dci-evidence-stack .dci-field-label { margin-bottom: 5px; }
.dci-evidence-stack .dci-step { width: 36px; height: 36px; margin-right: 1px; }
.dci-upload,
.dci-location { min-height: 0; height: 181px; border-radius: 16px; }
.dci-upload { padding: 10px; }
.dci-upload svg { width: 48px; height: 48px; }
.dci-upload strong { font-size: 13px; }
.dci-upload span { font-size: 10.5px; }

.dci-location { padding: 7px; overflow: visible; }
.dci-location-map {
  height: 83px;
  border: 1px solid rgba(87,117,141,.18);
  background:
    linear-gradient(25deg, transparent 44%, rgba(82,145,187,.22) 45% 48%, transparent 49%),
    linear-gradient(155deg, transparent 41%, rgba(69,138,180,.18) 42% 45%, transparent 46%),
    linear-gradient(90deg, rgba(123,190,143,.19) 12%, transparent 12% 62%, rgba(123,190,143,.22) 62% 73%, transparent 73%),
    linear-gradient(#edf4f6, #dfeaf0);
}
.dci-location-map .leaflet-control-zoom { margin: 0 5px 5px 0; border: 0; box-shadow: 0 3px 9px rgba(18,52,79,.18); }
.dci-location-map .leaflet-control-zoom a { width: 22px; height: 20px; line-height: 20px; color: #183f62; font-size: 14px; }
.dci-location-map .leaflet-tile-pane { filter: saturate(.7) brightness(1.05); }
.dci-location-status { top: -38px; right: 9px; padding: 6px 13px; font-size: 10px; }
.dci-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #45647e;
  background: rgba(232,240,245,.9);
  pointer-events: none;
  font-size: 9px;
  font-weight: 800;
}
.dci-map-placeholder[hidden] { display: none; }
.dci-map-placeholder svg { width: 21px; height: 21px; color: #f27808; }
.dci-map-placeholder span { max-width: 92%; padding: 0 5px; line-height: 1.35; text-align: center; }
.dci-location-map.tiles-degraded .dci-map-placeholder { display: grid; opacity: .72; }
.dci-map-center {
  position: absolute;
  z-index: 700;
  left: 7px;
  bottom: 7px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54,89,116,.24);
  border-radius: 8px;
  color: #1768c5;
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 9px rgba(18,52,79,.18);
}
.dci-map-center[hidden] { display: none; }
.dci-map-center svg { width: 16px; height: 16px; }
.dci-live-marker-wrap { background: transparent; border: 0; }
.dci-live-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #176ee8;
  box-shadow: 0 0 0 8px rgba(36,122,235,.18), 0 5px 12px rgba(4,58,133,.38);
}
.dci-live-marker i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.dci-coordinates { margin-top: 5px; gap: 7px; }
.dci-coordinate { min-height: 34px; padding: 3px 8px; font-size: 9px; }
.dci-coordinate b { display: inline; float: right; margin-left: 5px; font-size: 11px; }
.dci-location-meta { display: flex; justify-content: space-between; gap: 5px; margin: 3px 3px 0; color: #45647e; font-size: 8px; }
.dci-location-button { min-height: 24px; margin-top: 3px; padding: 4px 8px; font-size: 9px; }

.dci-notes-panel {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(252,253,254,.92), rgba(222,232,239,.86));
  box-shadow: 0 7px 17px rgba(26,59,86,.1), inset 0 1px 0 #fff;
}
.dci-notes-panel .dci-panel-head { height: 47px; min-height: 47px; padding: 0 17px; }
.dci-notes-panel .dci-panel-body { padding: 8px 17px 10px; }
.dci-notes-panel textarea { min-height: 61px; height: 61px; resize: none; }

.dci-submit-bar {
  min-height: 86px;
  margin: 0;
  padding: 9px 21px 8px 28px;
  border-radius: 22px;
}
.dci-mail-icon { width: 45px; height: 45px; }
.dci-mail-copy { font-size: 12px; }
.dci-mail-copy strong { font-size: 13px; }
.dci-primary { min-width: 346px; min-height: 54px; font-size: 18px; }
.dci-submit-caption { margin-top: 5px; font-size: 10.5px; }
.dci-status { min-height: 0; margin: 0; }

.dci-content-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(252,253,254,.92), rgba(223,233,239,.86));
  box-shadow: 0 10px 24px rgba(27,59,86,.1), inset 0 1px #fff;
}
.dci-content-title { margin: 0 0 5px; font-size: 25px; }
.dci-content-sub { margin: 0 0 20px; color: var(--dci-slate); font-size: 13px; }

.dci-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.dci-kpi { padding: 16px; border: 1px solid rgba(255,255,255,.9); border-radius: 15px; background: rgba(255,255,255,.56); box-shadow: 0 6px 15px rgba(32,63,89,.08), inset 0 1px #fff; }
.dci-kpi b { display: block; font-size: 25px; }
.dci-kpi span { color: var(--dci-slate); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.dci-table-wrap { overflow: auto; border: 1px solid var(--dci-line); border-radius: 14px; background: rgba(255,255,255,.54); }
.dci-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.dci-table th { padding: 11px 12px; color: #3c5a73; background: rgba(224,233,239,.8); font-size: 9px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.dci-table td { padding: 12px; border-top: 1px solid rgba(77,108,132,.13); color: #183a58; font-size: 11px; vertical-align: top; }
.dci-table td strong { font-size: 12px; }
.dci-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; color: #2b506d; background: rgba(218,230,237,.82); font-size: 9px; font-weight: 800; }
.dci-pill.sent { color: #067649; background: rgba(43,193,119,.13); }
.dci-pill.failed { color: #b83b2f; background: rgba(232,74,60,.12); }
.dci-mini-button { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 6px 10px; color: #164162; background: rgba(255,255,255,.74); box-shadow: inset 0 0 0 1px rgba(75,108,133,.22); font-size: 10px; text-decoration: none; }
.dci-mini-button:hover { color: #8c3e00; box-shadow: inset 0 0 0 1px rgba(240,107,6,.48); }

.dci-resource-grid, .dci-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.dci-resource, .dci-team-card { padding: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,255,255,.56); box-shadow: 0 6px 16px rgba(28,59,84,.08), inset 0 1px #fff; }
.dci-resource svg { width: 31px; height: 31px; color: var(--dci-orange); }
.dci-resource h3, .dci-team-card h3 { margin: 12px 0 6px; font-size: 15px; }
.dci-resource p, .dci-team-card p { margin: 0; color: var(--dci-slate); font-size: 11px; line-height: 1.55; }

.dci-empty { padding: 42px 20px; text-align: center; color: var(--dci-slate); }
.dci-empty svg { width: 46px; height: 46px; margin-bottom: 10px; color: #8ca1b2; }
.dci-alert { padding: 11px 13px; margin: 0 0 14px; border-radius: 12px; color: #78400d; background: rgba(255,190,80,.15); border: 1px solid rgba(238,145,23,.28); font-size: 11px; }

.dci-toast {
  position: absolute;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: 390px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 13px;
  color: #fff;
  background: rgba(8,39,65,.94);
  box-shadow: 0 14px 32px rgba(5,25,43,.27);
  font-size: 12px;
  font-weight: 700;
}
.dci-toast.good { background: rgba(10,118,72,.95); }
.dci-toast.bad { background: rgba(167,48,40,.96); }

@media (max-width: 1100px) {
  .dci-shell { width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .dci-frame { grid-template-columns: 190px minmax(0, 1fr); }
  .dci-grid.work { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dci-work-order { grid-column: 1 / -1; }
  .dci-evidence-stack { grid-column: 1 / -1; }
  .dci-callout { min-width: 310px; }
  .dci-top-message { display: none; }
}

@media (max-width: 760px) {
  .dci-overlay { padding: 0; }
  .dci-shell { width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .dci-topbar { height: 62px; padding: 0 13px; gap: 10px; }
  .dci-brand { min-width: 0; }
  .dci-brand-mark { width: 36px; height: 36px; margin-right: 8px; }
  .dci-brand-name { font-size: 20px; }
  .dci-brand-tag { display: none; }
  .dci-user-copy { display: none; }
  .dci-avatar { width: 35px; height: 35px; font-size: 12px; }
  .dci-icon-button, .dci-close { width: 35px; height: 35px; border-radius: 11px; }
  .dci-frame { height: calc(100% - 62px); display: flex; flex-direction: column; }
  .dci-sidebar { order: 2; flex: 0 0 auto; display: block; padding: 6px; border: 0; border-top: 1px solid rgba(74,106,132,.2); overflow-x: auto; }
  .dci-nav { display: flex; width: max-content; min-width: 100%; gap: 4px; }
  .dci-nav-button { width: auto; min-height: 44px; padding: 0 12px; gap: 7px; font-size: 10px; white-space: nowrap; }
  .dci-nav-button svg { width: 17px; height: 17px; }
  .dci-side-brand { display: none; }
  .dci-main { order: 1; flex: 1 1 auto; padding: 7px; }
  .dci-page-head { min-height: 60px; padding: 10px 13px; border-radius: 15px; }
  .dci-page-head h1 { font-size: 25px; }
  .dci-page-head p { font-size: 12px; }
  .dci-callout { display: none; }
  .dci-panel { border-radius: 15px; }
  .dci-panel-head { min-height: 43px; padding: 0 12px; }
  .dci-panel-head h2 { font-size: 16px; }
  .dci-panel-head-note { display: none; }
  .dci-step { width: 28px; height: 28px; font-size: 14px; }
  .dci-panel-body { padding: 11px; }
  .dci-grid.employee, .dci-grid.work, .dci-grid.evidence, .dci-evidence-stack { grid-template-columns: 1fr; }
  .dci-work-order, .dci-evidence-stack { grid-column: auto; }
  .dci-upload, .dci-location { min-height: 180px; }
  .dci-submit-bar { grid-template-columns: 1fr; padding: 13px; }
  .dci-mail-note { align-items: flex-start; }
  .dci-recipient-list { display: grid; gap: 2px; }
  .dci-primary { width: 100%; min-width: 0; }
  .dci-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dci-resource-grid, .dci-team-grid { grid-template-columns: 1fr; }
  .dci-content-card { padding: 15px; border-radius: 15px; }
  .dci-content-title { font-size: 22px; }
}

@media (max-width: 390px) {
  .dci-brand-name { font-size: 18px; }
  .dci-user-zone { gap: 7px; }
  .dci-avatar { display: none; }
  .dci-page-head h1 { font-size: 22px; }
  .dci-panel-head h2 { font-size: 15px; }
}

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

/* Reference-fidelity responsive reflow. Keep the full option catalog visible on
   desktop, then turn it into a conventional anchored picker on touch layouts. */
@media (max-width: 1100px) {
  .dci-frame { grid-template-columns: 190px minmax(0, 1fr); }
  .dci-main { display: block; padding: 8px; }
  .dci-page-head { height: auto; min-height: 76px; }
  #dci-form { display: block; min-height: 0; padding: 0; }
  .dci-employee-panel,
  .dci-work-panel,
  .dci-submit-bar { height: auto; min-height: 0; margin-bottom: 8px; }
  .dci-work-panel { overflow: visible; }
  .dci-work-body { height: auto; padding: 12px; }
  .dci-top-fields {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
  }
  .dci-lower-layout { height: auto; grid-template-columns: 1fr; }
  .dci-work-order .dci-wo-combo { height: auto; }
  .dci-work-order .dci-wo-popover { height: 260px; }
  .dci-right-stack { grid-template-rows: auto auto; }
  .dci-evidence-stack {
    grid-column: auto;
    grid-template-columns: minmax(220px, 1fr) minmax(330px, 1.4fr);
  }
  .dci-notes-panel { min-height: 150px; }
}

@media (max-width: 760px) {
  .dci-shell { width: 100vw; height: 100dvh; }
  .dci-main { display: block; }
  #dci-form { display: block; min-height: 0; }
  .dci-employee-panel,
  .dci-work-panel,
  .dci-submit-bar { height: auto; min-height: 0; margin-bottom: 8px; }
  .dci-top-fields { display: grid; grid-template-columns: 1fr; height: auto; }
  .dci-catalog-control,
  .dci-building-control,
  .dci-work-order .dci-wo-combo { width: 100%; margin-left: 0; }
  .dci-catalog-control,
  .dci-building-control { position: relative; }
  .dci-catalog-list,
  .dci-picker-popover {
    position: absolute;
    z-index: 60;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: none;
    max-height: 240px;
    overflow: auto;
    border: 1px solid rgba(62, 94, 120, .24);
    border-radius: 10px;
    background: rgba(246, 250, 252, .98);
    box-shadow: 0 14px 30px rgba(17, 50, 77, .22), inset 0 1px 0 #fff;
  }
  .dci-catalog-control.open .dci-catalog-list,
  .dci-picker-popover.open { display: block; }
  .dci-lower-layout { display: grid; grid-template-columns: 1fr; height: auto; }
  .dci-work-order .dci-wo-popover { height: auto; max-height: 260px; }
  .dci-right-stack { display: grid; grid-template-rows: auto auto; }
  .dci-evidence-stack { grid-template-columns: 1fr; }
  .dci-upload,
  .dci-location { height: auto; min-height: 180px; }
  .dci-location { min-height: 220px; }
  .dci-location-status { top: 10px; }
}

/* The host portal adds global light-theme form and label rules after this
   stylesheet. Reassert the popup's measured controls so production matches the
   isolated reference render and checkbox rows cannot expand into section 3. */
body.arb-portal-light .dci-overlay .dci-field input:not([type="checkbox"]):not([type="file"]),
body.arb-portal-light .dci-overlay .dci-field select,
body.arb-portal-light .dci-overlay .dci-field textarea {
  border: 1px solid rgba(75, 107, 132, .22) !important;
  border-radius: 9px !important;
  color: #173a59 !important;
  background: rgba(247, 250, 252, .72) !important;
  box-shadow: inset 0 1px 2px rgba(18, 47, 72, .06), 0 1px 0 rgba(255, 255, 255, .86) !important;
}
body.arb-portal-light .dci-overlay .dci-check-row {
  margin: 0 !important;
  color: #173a59 !important;
}
body.arb-portal-light .dci-overlay .dci-check-row input[type="checkbox"] {
  box-sizing: border-box !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #6f879a !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  accent-color: var(--dci-orange);
}

/* v7 fidelity material: use the supplied pearl/ice-blue faceted hex wall as
   the visual substrate, with live translucent controls layered above it. */
.dci-shell {
  border-color: rgba(255,255,255,.98);
  background:
    linear-gradient(112deg, rgba(250,253,255,.82), rgba(229,238,245,.78) 46%, rgba(251,252,253,.86)),
    url("/protel-hex-wall.webp?v=1") center 42% / 530px auto repeat;
  box-shadow:
    0 34px 92px rgba(5,25,43,.34),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(114,145,168,.12);
}
.dci-shell::before {
  inset: 0;
  opacity: .38;
  background:
    linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%, rgba(255,189,87,.08)),
    url("/protel-hex-wall.webp?v=1") center 52% / 480px auto repeat;
  mask-image: none;
  filter: saturate(.82) contrast(.98) brightness(1.03);
}
.dci-shell::after {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  opacity: .72;
  background:
    radial-gradient(circle at 24% 9%, rgba(255,255,255,.76), transparent 21%),
    radial-gradient(circle at 82% 2%, rgba(255,177,46,.18), transparent 19%),
    linear-gradient(110deg, transparent 0 67%, rgba(255,174,39,.09) 70%, transparent 74%);
  filter: none;
}
.dci-topbar {
  border-bottom-color: rgba(107,132,152,.23);
  background:
    linear-gradient(90deg, rgba(251,253,254,.73), rgba(228,238,245,.62) 42%, rgba(250,251,252,.78)),
    url("/protel-hex-wall.webp?v=1") center 35% / 480px auto repeat;
  box-shadow: 0 8px 26px rgba(23,55,81,.13), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,172,43,.23);
}
.dci-brand-name { color: #233f67; text-shadow: 0 1px 0 #fff; }
.dci-brand-tag { color: #294b6c; letter-spacing: .29em; }
.dci-sidebar {
  border-right-color: rgba(100,127,149,.2);
  background:
    linear-gradient(155deg, rgba(249,252,254,.55), rgba(220,232,240,.57)),
    url("/protel-hex-wall.webp?v=1") 46% center / cover no-repeat;
  box-shadow: 10px 0 26px rgba(24,56,82,.1), inset -1px 0 rgba(255,255,255,.86);
}
.dci-sidebar::before {
  inset: 0;
  height: auto;
  opacity: .36;
  background: linear-gradient(180deg, rgba(255,255,255,.38), transparent 26% 72%, rgba(255,255,255,.36));
  filter: none;
}
.dci-nav-button {
  color: #173a61;
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.dci-nav-button.active {
  border-color: rgba(255,157,27,.7);
  background: linear-gradient(140deg, rgba(255,249,239,.9), rgba(255,255,255,.72));
  box-shadow: 0 0 0 5px rgba(255,159,24,.08), 0 8px 22px rgba(23,55,81,.16), inset 0 1px 0 #fff, inset 0 -2px 8px rgba(249,137,12,.12);
}
.dci-page-head {
  border-color: rgba(255,255,255,.96);
  background:
    linear-gradient(110deg, rgba(255,255,255,.88), rgba(232,240,246,.78) 62%, rgba(255,255,255,.82)),
    url("/protel-hex-wall.webp?v=1") 72% 49% / 430px auto repeat;
  box-shadow: 0 8px 22px rgba(22,54,80,.12), inset 0 1px 0 #fff, inset 0 -1px rgba(241,150,25,.18);
}
.dci-callout,
.dci-panel,
.dci-notes-panel,
.dci-submit-bar,
.dci-content-card {
  border-color: rgba(255,255,255,.97);
  background:
    linear-gradient(132deg, rgba(255,255,255,.965), rgba(226,236,243,.935) 48%, rgba(248,251,252,.965)),
    url("/protel-hex-wall.webp?v=1") right 44% / 520px auto no-repeat;
  box-shadow:
    0 9px 22px rgba(27,59,85,.12),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(77,106,129,.13),
    0 0 16px rgba(255,158,26,.045);
}
.dci-callout { width: 415px; min-width: 415px; min-height: 80px; padding-inline: 20px; background-position: center, right 48%; background-size: auto, 390px auto; }
.dci-callout strong { font-size: 15px; white-space: nowrap; }
.dci-callout span { font-size: 11px; }
.dci-panel-head { border-bottom-color: rgba(82,111,134,.17); background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 64%, rgba(255,176,42,.045)); }
.dci-control,
.dci-field input,
.dci-field select,
.dci-field textarea,
.dci-catalog-list,
.dci-picker-popover,
.dci-wo-popover {
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(226,235,241,.82));
  border-color: rgba(70,104,132,.24);
  box-shadow: inset 0 1px 2px rgba(14,44,69,.07), 0 2px 6px rgba(30,63,88,.06), inset 0 1px 0 rgba(255,255,255,.92);
}
.dci-upload,
.dci-location {
  background: linear-gradient(145deg, rgba(255,255,255,.83), rgba(223,234,241,.75));
  border-color: rgba(79,109,133,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 14px rgba(20,52,78,.11);
}
.dci-step,
.dci-mail-icon {
  box-shadow: 0 0 0 2px rgba(255,186,74,.18), 0 5px 13px rgba(208,85,0,.3), inset 0 1px 0 rgba(255,255,255,.58);
}
.dci-primary {
  box-shadow: 0 0 0 4px rgba(255,166,29,.16), 0 0 19px rgba(255,144,17,.34), 0 11px 22px rgba(202,76,0,.29), inset 0 1px 0 rgba(255,255,255,.64);
}

@media (min-width: 1101px) {
  .dci-page-head { padding: 5px 0 5px 26px; }
  .dci-grid.employee { grid-template-columns: 374fr 364fr 326fr; gap: 32px; }
  .dci-grid.employee .dci-field > input,
  .dci-grid.employee .dci-field > select { width: calc(100% - 36px); margin-left: 36px; }
  .dci-grid.employee .dci-field:last-child > input { width: 221px; }
  .dci-grid.employee .dci-field:last-child > .dci-help { display: block; width: 221px; margin-left: 36px; text-align: center; }
  .dci-top-fields { margin-right: 18px; }
  .dci-wo-option { min-height: 18px; padding: 1px 7px; line-height: 16.5px; font-size: 12.5px; }
}

/* Inline preview exposes the larger operational map without changing the
   reference panel geometry. */
.dci-map-expand {
  position: absolute;
  z-index: 700;
  left: 7px;
  right: auto;
  top: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54,89,116,.24);
  border-radius: 8px;
  color: #e96f05;
  background: rgba(255,255,255,.95);
  box-shadow: 0 3px 9px rgba(18,52,79,.18);
  cursor: pointer;
}
.dci-map-expand svg { width: 15px; height: 15px; }
.dci-location-button-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
.dci-location-button-row .dci-location-button { min-width: 0; }
.dci-map-select { width: auto; padding-inline: 9px; color: #8b4207; }

.dci-shell.dci-map-open > .dci-topbar,
.dci-shell.dci-map-open > .dci-frame { pointer-events: none; filter: saturate(.65) brightness(.78); }
.dci-map-workspace {
  position: absolute;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: min(900px, calc(100% - 44px));
  height: min(660px, calc(100% - 44px));
  min-width: 520px;
  min-height: 390px;
  display: grid;
  grid-template-rows: auto minmax(180px,1fr) auto;
  overflow: visible;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.98);
  border-radius: 24px;
  color: #102f50;
  background:
    linear-gradient(132deg, rgba(255,255,255,.96), rgba(220,232,240,.94) 52%, rgba(250,252,253,.96)),
    url("/protel-hex-wall.webp?v=1") center / 440px auto repeat;
  box-shadow: 0 0 0 9999px rgba(5,23,39,.48), 0 28px 75px rgba(3,22,39,.42), inset 0 1px 0 #fff, 0 0 24px rgba(255,160,26,.15);
}
.dci-map-workspace-head {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px 10px 22px;
  border-bottom: 1px solid rgba(67,99,124,.18);
  border-radius: 23px 23px 0 0;
  background: linear-gradient(90deg, rgba(255,255,255,.64), rgba(235,242,247,.52));
}
.dci-map-workspace-head b { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.dci-map-workspace-head b svg { width: 27px; height: 27px; color: #f27808; }
.dci-map-workspace-head span { display: block; margin: 4px 0 0 37px; color: #506b82; font-size: 11px; }
.dci-map-workspace-head button {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(69,100,124,.22);
  border-radius: 12px;
  color: #173d60;
  background: linear-gradient(145deg,#fff,#dce7ed);
  box-shadow: 0 5px 12px rgba(18,50,75,.13), inset 0 1px #fff;
  cursor: pointer;
}
.dci-map-workspace-head button svg { width: 20px; height: 20px; }
.dci-map-workspace-search { padding: 11px 18px; border-bottom: 1px solid rgba(70,101,125,.16); background: rgba(248,251,253,.7); }
.dci-map-workspace-search label { display: block; margin-bottom: 5px; color: #284d6c; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dci-map-workspace-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
.dci-map-workspace-search input,
.dci-map-workspace-search button,
.dci-map-workspace-foot button {
  min-height: 40px;
  border: 1px solid rgba(66,98,123,.23);
  border-radius: 11px;
  color: #163b5d;
  background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(220,231,238,.9));
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(21,52,77,.09);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.dci-map-workspace-search input { padding: 0 13px; font-weight: 500; }
.dci-map-workspace-search button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; cursor: pointer; }
.dci-map-workspace-search button svg { width: 17px; height: 17px; color: #ed7408; }
.dci-map-workspace-canvas { min-height: 0; border-block: 1px solid rgba(255,255,255,.84); background: #dfe9ef; }
.dci-map-workspace-canvas .leaflet-container { width: 100%; height: 100%; }
.dci-map-workspace-canvas .leaflet-tile-pane { filter: saturate(.78) brightness(1.03); }
.dci-map-workspace-foot {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 18px;
  border-radius: 0 0 23px 23px;
  background: linear-gradient(90deg,rgba(255,255,255,.74),rgba(228,237,243,.8));
}
.dci-map-workspace-foot strong { display: block; max-width: 610px; color: #183e60; font-size: 12px; }
.dci-map-workspace-foot span { display: block; margin-top: 4px; color: #5c7285; font-size: 10px; }
.dci-map-workspace-foot button { flex: 0 0 auto; min-width: 180px; padding: 0 16px; color: #fff; border-color: #ffb33d; background: linear-gradient(135deg,#ffac24,#f06405); cursor: pointer; }
.dci-map-workspace-foot button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.dci-map-workspace-foot button svg { width: 17px; height: 17px; }
.dci-map-workspace-foot button:disabled { color: #6d7f8e; border-color: rgba(74,104,128,.18); background: linear-gradient(145deg,#edf2f5,#d6e0e6); cursor: not-allowed; }
.dci-manual-marker { background: #f47b0b; box-shadow: 0 0 0 8px rgba(255,145,27,.18),0 5px 12px rgba(128,55,0,.38); }
.dci-map-resize { position: absolute; z-index: 1100; width: 26px; height: 26px; touch-action: none; }
.dci-map-resize::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: #ef790d; filter: drop-shadow(0 1px 1px #fff); }
.dci-map-resize.nw { left: -5px; top: -5px; cursor: nwse-resize; }
.dci-map-resize.ne { right: -5px; top: -5px; cursor: nesw-resize; }
.dci-map-resize.sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.dci-map-resize.se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.dci-map-resize.nw::after { left: 5px; top: 5px; border-left: 3px solid #ef790d; border-top: 3px solid #ef790d; }
.dci-map-resize.ne::after { right: 5px; top: 5px; border-right: 3px solid #ef790d; border-top: 3px solid #ef790d; }
.dci-map-resize.sw::after { left: 5px; bottom: 5px; border-left: 3px solid #ef790d; border-bottom: 3px solid #ef790d; }
.dci-map-resize.se::after { right: 5px; bottom: 5px; border-right: 3px solid #ef790d; border-bottom: 3px solid #ef790d; }

@media (max-width: 760px) {
  .dci-shell { background-size: auto, 360px auto; }
  .dci-topbar { background-size: auto, 350px auto; }
  .dci-location-button-row { grid-template-columns: 1fr; }
  .dci-map-workspace {
    inset: 5px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    transform: none !important;
    border-radius: 18px;
    grid-template-rows: auto minmax(210px,1fr) auto;
  }
  .dci-map-workspace-head { min-height: 60px; padding: 10px 10px 8px 14px; border-radius: 17px 17px 0 0; }
  .dci-map-workspace-head b { font-size: 15px; }
  .dci-map-workspace-head span { margin-left: 0; font-size: 9px; }
  .dci-map-workspace-search { padding: 9px; }
  .dci-map-workspace-search > div { grid-template-columns: 1fr auto; }
  .dci-map-workspace-search #dci-map-device-retry { grid-column: 1 / -1; }
  .dci-map-workspace-foot { min-height: 104px; display: grid; padding: 9px; border-radius: 0 0 17px 17px; }
  .dci-map-workspace-foot button { width: 100%; min-height: 38px; }
  .dci-map-resize { display: none; }
}

/* The authenticated portal has a legacy !important rule for every
   [role="dialog"]. Restore the reference material only for this popup and its
   nested ArcGIS workspace without changing any other application modal. */
body.arb-portal-light .dci-overlay > .dci-shell {
  border-color: rgba(255,255,255,.98) !important;
  border-radius: 27px !important;
  background:
    linear-gradient(112deg, rgba(250,253,255,.82), rgba(229,238,245,.78) 46%, rgba(251,252,253,.86)),
    url("/protel-hex-wall.webp?v=1") center 42% / 530px auto repeat !important;
  box-shadow:
    0 34px 92px rgba(5,25,43,.34),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(114,145,168,.12) !important;
}
body.arb-portal-light .dci-shell .dci-map-workspace {
  color: #102f50 !important;
  border-color: rgba(255,255,255,.98) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(132deg, rgba(255,255,255,.96), rgba(220,232,240,.94) 52%, rgba(250,252,253,.96)),
    url("/protel-hex-wall.webp?v=1") center / 440px auto repeat !important;
  box-shadow:
    0 0 0 9999px rgba(5,23,39,.48),
    0 28px 75px rgba(3,22,39,.42),
    inset 0 1px 0 #fff,
    0 0 24px rgba(255,160,26,.15) !important;
}
body.arb-portal-light .dci-shell .dci-map-workspace.arb-dialog-enter {
  animation: none !important;
}
body.arb-portal-light .dci-overlay .dci-primary,
body.arb-portal-light .dci-overlay .dci-primary > span,
body.arb-portal-light .dci-shell .dci-map-workspace #dci-map-confirm:not(:disabled) {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(105,42,0,.3) !important;
}
body.arb-portal-light .dci-shell .dci-map-workspace #dci-map-confirm:not(:disabled) {
  border-color: #ffb33d !important;
  background: linear-gradient(135deg,#ffac24,#f06405) !important;
  box-shadow: 0 0 0 3px rgba(255,166,29,.13), 0 8px 18px rgba(188,73,0,.23), inset 0 1px 0 rgba(255,255,255,.55) !important;
}
body.arb-portal-light .dci-shell .dci-map-workspace #dci-map-confirm {
  transition: transform .16s ease, box-shadow .18s ease, background-color .18s ease !important;
}
body.arb-portal-light .dci-shell .dci-map-workspace #dci-map-confirm:disabled {
  color: #6d7f8e !important;
  background: linear-gradient(145deg,#edf2f5,#d6e0e6) !important;
  text-shadow: none !important;
}

@media (max-width: 760px) {
  body.arb-portal-light .dci-shell .dci-map-workspace { border-radius: 18px !important; }
}
