/* Public mobile pages. These colors follow the existing route and component boundaries. */
#root .gr-original-home,
#root .gr-amap-page,
#root :is(
  [code-path$="Square.tsx:109:5"],
  [code-path$="Square.tsx:176:5"],
  [code-path$="Square.tsx:446:5"],
  [code-path$="Activities.tsx:52:5"],
  [code-path$="Activities.tsx:151:5"],
  [code-path$="Demands.tsx:47:5"],
  [code-path$="Misc.tsx:173:5"]
) {
  background: var(--gr-ref-mist, linear-gradient(180deg, #edf1fc, #f5f7fb 320px)) !important;
}

#root :is(.gr-original-home, [code-path$="Activities.tsx:52:5"]) > [code-path$="ui.tsx:172:5"],
#root [code-path$="Misc.tsx:178:9"] {
  border-color: var(--gr-pro-line, #dbe3f1);
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgb(25 47 88 / 3%);
}

#root :is(
  [code-path$="Home.tsx:77:11"],
  [code-path$="Home.tsx:118:7"],
  [code-path$="Home.tsx:146:13"],
  [code-path$="Home.tsx:165:11"],
  [code-path$="ui.tsx:338:5"],
  [code-path$="Square.tsx:30:5"],
  [code-path$="Square.tsx:133:15"],
  [code-path$="Activities.tsx:57:7"],
  [code-path$="Activities.tsx:105:11"],
  [code-path$="Misc.tsx:159:5"]
) {
  border-color: var(--gr-pro-line, #dbe3f1);
  background: #fff !important;
  box-shadow: 0 1px 2px rgb(25 47 88 / 4%);
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:first-child {
  border-color: #d8e0f3;
  background: linear-gradient(135deg, #fff, var(--gr-ref-lavender, #ebeffb)) !important;
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:first-child [code-path$="Home.tsx:82:13"] {
  color: var(--gr-ref-cobalt, #3a65b3);
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:last-child {
  border-color: #eee1ce;
  background: linear-gradient(135deg, #fff, var(--gr-pro-gold-tint)) !important;
}

#root .gr-original-home [code-path$="Home.tsx:77:11"]:last-child [code-path$="Home.tsx:82:13"] {
  color: #8c6229;
}

#root :is(
  [code-path$="ui.tsx:160:7"],
  [code-path$="ui.tsx:343:13"],
  [code-path$="ui.tsx:351:9"],
  [code-path$="Home.tsx:79:15"],
  [code-path$="Home.tsx:124:17"],
  [code-path$="Home.tsx:152:17"],
  [code-path$="Square.tsx:35:13"],
  [code-path$="Square.tsx:136:19"],
  [code-path$="Square.tsx:451:11"],
  [code-path$="Activities.tsx:109:17"],
  [code-path$="Activities.tsx:162:11"],
  [code-path$="Misc.tsx:162:9"],
  [code-path$="Misc.tsx:169:5"],
  [code-path$="Misc.tsx:190:11"]
) {
  color: var(--gr-ref-night, #192f58) !important;
}

#root :is(
  [code-path$="ui.tsx:163:9"],
  [code-path$="Square.tsx:205:21"],
  [code-path$="Activities.tsx:88:11"],
  [code-path$="Activities.tsx:93:9"],
  [code-path$="Misc.tsx:185:9"]
) {
  color: var(--gr-ref-brand, #203b73) !important;
}

#root :is(
  [code-path$="ui.tsx:174:7"],
  [code-path$="ui.tsx:346:11"],
  [code-path$="Home.tsx:127:19"],
  [code-path$="Square.tsx:38:11"],
  [code-path$="Square.tsx:137:19"],
  [code-path$="Square.tsx:452:11"],
  [code-path$="Misc.tsx:163:9"],
  [code-path$="Misc.tsx:196:11"]
) {
  color: var(--gr-pro-secondary, #52617c) !important;
}

#root :is(
  [code-path$="Home.tsx:121:23"],
  [code-path$="Square.tsx:188:9"],
  [code-path$="Square.tsx:211:17"],
  [code-path$="Square.tsx:343:9"],
  [code-path$="Square.tsx:350:9"],
  [code-path$="Square.tsx:359:9"],
  [code-path$="Square.tsx:368:9"],
  [code-path$="Square.tsx:375:9"]
) {
  background-color: var(--gr-pro-line, #dbe3f1) !important;
}

#root [code-path$="Square.tsx:460:11"] {
  background: transparent !important;
}

#root :is(
  [code-path$="Square.tsx:110:7"],
  [code-path$="Square.tsx:448:7"],
  [code-path$="Misc.tsx:174:7"]
) {
  background: var(--gr-ref-header, linear-gradient(180deg, #edf1fc, #f8faff)) !important;
  box-shadow: inset 0 -1px var(--gr-pro-line, #dbe3f1);
}

#root :is(
  [code-path$="Square.tsx:112:11"],
  [code-path$="Activities.tsx:81:11"]
)[style*="font-weight: 700"] {
  border-bottom-color: var(--gr-ref-cobalt, #3a65b3);
  color: var(--gr-ref-brand, #203b73) !important;
}

#root [code-path$="Square.tsx:183:15"][style*="font-weight: 700"] {
  color: var(--gr-ref-brand, #203b73) !important;
}

#root [code-path$="Square.tsx:182:13"]:has([code-path$="Square.tsx:183:15"][style*="font-weight: 700"]) [code-path$="Square.tsx:184:15"] {
  background: var(--gr-ref-cobalt, #3a65b3) !important;
}

#root :is([code-path$="Square.tsx:230:7"], [code-path$="Square.tsx:377:7"], [code-path$="Activities.tsx:182:7"]) {
  border-top-color: var(--gr-pro-line, #dbe3f1) !important;
}

#root :is([code-path$="Square.tsx:231:9"], [code-path$="Square.tsx:326:13"], [code-path$="Square.tsx:334:13"]) {
  background: var(--gr-ref-lavender, #ebeffb) !important;
}

#root [code-path$="Square.tsx:334:13"] {
  color: var(--gr-ref-brand, #203b73) !important;
}

#root :is(
  [code-path$="Square.tsx:146:7"],
  [code-path$="Square.tsx:235:9"],
  [code-path$="Square.tsx:378:9"]
),
#root [code-path$="Activities.tsx:182:7"] > [code-path$="ui.tsx:304:5"] {
  background: var(--gr-ref-brand, #203b73) !important;
  color: #fff !important;
}

#root [code-path$="Square.tsx:15:5"] {
  background: var(--gr-ref-cobalt, #3a65b3) !important;
}

#root :is([code-path$="Square.tsx:66:22"], [code-path$="Square.tsx:68:9"]) {
  color: var(--gr-ref-cobalt) !important;
}

#root [code-path$="Square.tsx:146:7"] {
  box-shadow: 0 5px 13px rgb(25 47 88 / 24%);
}

#root :is([code-path$="Activities.tsx:155:9"], [code-path$="Activities.tsx:170:9"]) {
  box-shadow: inset 0 0 0 1px var(--gr-pro-line, #dbe3f1);
}

#root [code-path$="Activities.tsx:63:17"] svg {
  fill: var(--gr-ref-cobalt, #3a65b3);
}

#root [code-path$="Activities.tsx:63:17"]:has(span[style*="font-weight: 700"]),
#root [code-path$="Activities.tsx:87:9"],
#root [code-path$="Misc.tsx:191:11"] > * {
  border-color: var(--gr-pro-line, #dbe3f1);
  background: var(--gr-ref-lavender, #ebeffb) !important;
  color: var(--gr-ref-brand, #203b73) !important;
}

#root [code-path$="Misc.tsx:178:9"]:focus-within {
  outline-color: var(--gr-ref-brand, #203b73);
}

/* Supply and demand keep their individual accent and existing filter states. */
#root [code-path$="Demands.tsx:51:9"] {
  box-shadow: inset 0 0 0 1px var(--gr-pro-line);
}

#root [code-path$="Demands.tsx:64:13"]:first-child {
  background: linear-gradient(123deg, var(--gr-ref-brand), var(--gr-ref-cobalt)) !important;
}

#root [code-path$="Demands.tsx:64:13"]:last-child {
  background: linear-gradient(123deg, #79501f, #8c622f) !important;
}

#root :is([code-path$="Demands.tsx:78:13"], [code-path$="Demands.tsx:432:15"])[style*="color: rgb(255, 255, 255)"] {
  background: var(--gr-ref-brand) !important;
}

#root [code-path$="Demands.tsx:432:15"] {
  border-color: var(--gr-pro-line) !important;
}

#root :is([code-path$="Demands.tsx:96:13"][style*="font-weight: 700"], [code-path$="Demands.tsx:104:11"]) {
  color: var(--gr-ref-brand) !important;
}

#root [code-path$="ui.tsx:150:5"] {
  background: var(--gr-ref-cobalt) !important;
}

#root [code-path$="ui.tsx:150:5"][style*="240, 147, 43"] {
  background: var(--gr-pro-gold-tint) !important;
  color: var(--gr-pro-gold);
}

#root :is([code-path$="Demands.tsx:119:7"], [code-path$="ui.tsx:266:19"]) {
  background: var(--gr-ref-brand) !important;
}

#root [code-path$="ui.tsx:265:5"]:has(> [code-path$="ui.tsx:266:19"]) {
  border-color: var(--gr-ref-brand) !important;
}

#root :is([code-path$="Demands.tsx:394:9"], [code-path$="Demands.tsx:400:9"], [code-path$="Demands.tsx:427:9"]) {
  background: var(--gr-pro-line) !important;
}

#root :is([code-path$="Demands.tsx:418:13"], [code-path$="Demands.tsx:442:11"], [code-path$="Demands.tsx:449:11"]) {
  background: var(--gr-ref-lavender) !important;
  color: var(--gr-ref-brand) !important;
}

#root [code-path$="Demands.tsx:461:7"] {
  border-top-color: var(--gr-pro-line) !important;
}

/* Preserve the map tiles, legend colors, and heat layer. Style the panels and controls. */
#root :is(.gr-amap-card, .gr-amap-page) {
  --gr-map-ink: var(--gr-ref-night, #192f58);
  --gr-map-brand: var(--gr-ref-brand, #203b73);
  --gr-map-tint: var(--gr-ref-lavender, #ebeffb);
}

#root :is(.gr-amap-card, .gr-amap-company, .gr-amap-list, .gr-amap-zoom) {
  box-shadow: 0 1px 2px rgb(25 47 88 / 5%);
}

#root :is(.gr-amap-card-head, .gr-amap-page-header) {
  background: linear-gradient(180deg, #edf1fc, #fff);
}

#root .gr-amap-placeholder {
  background: linear-gradient(180deg, #f8faff, var(--gr-ref-lavender, #ebeffb));
}

#root .gr-amap-context > span {
  background: var(--gr-map-tint);
}

#root .gr-amap-pin::before {
  box-shadow: 0 0 0 1px var(--gr-map-brand);
}

#root .gr-amap-card :is(button, a):focus-visible {
  outline: 2px solid var(--gr-map-brand);
  outline-offset: 2px;
}
