/* ==== 1. Design tokens: colors (light and dark), radius, fonts, motion ======================================= */
:root {
  --bg-amber-63-a12: rgba(176, 126, 23, 0.12);
  --bg-amber-74: #d5a33b;
  --bg-amber-80: #e0b77d;
  --bg-amber-87: #f0d46e;
  --bg-amber-97: #fff3d8;
  --bg-black-0: #000000;
  --bg-blue-26: #13204a;
  --bg-blue-29-a28: rgba(16, 47, 55, 0.28);
  --bg-blue-53-a12: rgba(74, 107, 174, 0.12);
  --bg-blue-59-a20: rgba(30, 127, 216, 0.2);
  --bg-blue-62: #5f86c8;
  --bg-blue-68: #1da1f2;
  --bg-blue-79: #8fc3ea;
  --bg-gray-17-a0: rgba(6, 18, 22, 0);
  --bg-gray-17-a42: rgba(6, 18, 22, 0.42);
  --bg-gray-21-a55: rgba(10, 26, 30, 0.55);
  --bg-gray-52: #5d6a72;
  --bg-gray-74: #a3aca8;
  --bg-gray-79: #b4bdaf;
  --bg-gray-85: #c5d1cc;
  --bg-gray-93: #e2ece4;
  --bg-green-34-a8: rgba(21, 64, 53, 0.08);
  --bg-green-40: #255044;
  --bg-green-40-a12: rgba(16, 86, 61, 0.12);
  --bg-green-47: #106d4a;
  --bg-green-56: #198963;
  --bg-green-63: #4c9b72;
  --bg-green-69: #1fb873;
  --bg-green-73: #6dba8b;
  --bg-green-75-a16: rgba(91, 196, 154, 0.16);
  --bg-green-84: #81e39b;
  --bg-green-90-a13: rgba(188, 238, 201, 0.13);
  --bg-orange-58-a12: rgba(190, 88, 48, 0.12);
  --bg-orange-71: #d8904f;
  --bg-orange-78: #efa451;
  --bg-purple-58: #a55e9b;
  --bg-red-51: #92505d;
  --bg-red-58-a10: rgba(215, 55, 47, 0.1);
  --bg-red-63-a35: rgba(229, 72, 77, 0.35);
  --bg-red-66: #df6859;
  --bg-red-70: #df8172;
  --bg-red-90: #f3d6d4;
  --bg-teal-20-a48: rgba(0, 27, 27, 0.48);
  --bg-teal-27: #0f2d2b;
  --bg-teal-32: #143a31;
  --bg-teal-51-a12: rgba(69, 112, 106, 0.12);
  --bg-teal-52: #3d7466;
  --bg-white-100: #ffffff;
  --bg-white-100-a10: rgba(255, 255, 255, 0.1);
  --bg-white-100-a13: rgba(255, 255, 255, 0.133);
  --bg-white-100-a69: rgba(255, 255, 255, 0.69);
  --bg-white-100-a7: rgba(255, 255, 255, 0.067);
  --bg-white-100-a84: rgba(255, 255, 255, 0.84);
  --bg-white-100-a90: rgba(255, 255, 255, 0.9);
  --bg-white-100-a97: rgba(255, 255, 255, 0.97);
  --line-amber-74: #d5a23f;
  --line-amber-90: #f0dcae;
  --line-blue-51: #1565c0;
  --line-gray-92-a90: rgba(219, 233, 222, 0.9);
  --line-gray-96: #edf2ee;
  --line-green-43: #0f5d43;
  --line-green-46: #3f6253;
  --line-green-56: #5c7d6e;
  --line-green-58: #2f8f67;
  --line-green-65: #699b8c;
  --line-green-69: #1fb873;
  --line-green-74: #7db999;
  --line-green-78: #7ecaa0;
  --line-green-78-a20: rgba(134, 199, 171, 0.196);
  --line-green-83: #9fd8b9;
  --line-green-90: #cfe2d6;
  --line-red-50: #b3261e;
  --line-red-58: #d7372f;
  --line-red-86: #e4c9c3;
  --line-teal-32: #143a31;
  --line-teal-42: #315450;
  --line-white-100-a15: rgba(255, 255, 255, 0.149);
  --line-white-100-a18: rgba(255, 255, 255, 0.18);
  --shadow-amber-74-a8: rgba(213, 163, 59, 0.08);
  --shadow-black-0-a20: rgba(0, 0, 0, 0.2);
  --shadow-black-0-a8: rgba(0, 0, 0, 0.08);
  --shadow-blue-62-a8: rgba(95, 134, 200, 0.08);
  --shadow-blue-68-a25: rgba(29, 161, 242, 0.25);
  --shadow-gray-21-a14: rgba(18, 26, 23, 0.14);
  --shadow-gray-82: #bcc9c0;
  --shadow-green-24-a2: rgba(15, 35, 25, 0.02);
  --shadow-green-24-a31: rgba(10, 36, 27, 0.314);
  --shadow-green-25-a24: rgba(16, 40, 32, 0.24);
  --shadow-green-27-a13: rgba(20, 43, 34, 0.129);
  --shadow-green-27-a16: rgba(10, 45, 33, 0.16);
  --shadow-green-28-a6: rgba(16, 48, 35, 0.06);
  --shadow-green-35-a5: rgba(19, 68, 48, 0.045);
  --shadow-green-35-a8: rgba(20, 70, 51, 0.08);
  --shadow-green-56-a19: rgba(25, 137, 99, 0.188);
  --shadow-green-56-a6: rgba(25, 137, 99, 0.06);
  --shadow-green-57: #208b61;
  --shadow-green-58-a30: rgba(20, 145, 90, 0.3);
  --shadow-green-69-a19: rgba(31, 184, 115, 0.188);
  --shadow-green-78-a16: rgba(117, 206, 156, 0.16);
  --shadow-green-80-a13: rgba(124, 213, 155, 0.13);
  --shadow-green-83-a4: rgba(108, 227, 153, 0.04);
  --shadow-green-91: #ccebd6;
  --shadow-orange-67-a8: rgba(217, 116, 72, 0.08);
  --shadow-teal-20-a44: rgba(7, 27, 23, 0.439);
  --shadow-teal-21-a50: rgba(0, 30, 29, 0.502);
  --shadow-teal-27-a35: rgba(15, 45, 43, 0.35);
  --shadow-teal-27-a9: rgba(15, 44, 38, 0.09);
  --shadow-teal-32-a13: rgba(21, 59, 52, 0.133);
  --shadow-teal-33-a22: rgba(13, 62, 54, 0.22);
  --shadow-teal-61-a8: rgba(98, 141, 135, 0.08);
  --shadow-white-100: #ffffff;
  --shadow-white-100-a55: rgba(255, 255, 255, 0.55);
  --shadow-white-100-a6: rgba(255, 255, 255, 0.06);
  --shadow-white-100-a70: rgba(255, 255, 255, 0.7);
  --text-amber-39: #5a4205;
  --text-amber-50: #765e3a;
  --text-amber-51: #8a5b0e;
  --text-amber-55: #86703f;
  --text-amber-66: #a07c28;
  --text-blue-43: #2c4f85;
  --text-blue-48: #52616c;
  --text-blue-53: #4c6f9c;
  --text-blue-58: #497faf;
  --text-blue-68: #709bc9;
  --text-gray-43: #45525c;
  --text-gray-89: #d0ddd9;
  --text-gray-96: #e8f5ed;
  --text-green-32: #173a2e;
  --text-green-41: #2d5544;
  --text-green-50: #187455;
  --text-green-52: #55705f;
  --text-green-55: #2e8560;
  --text-green-59: #5a7164;
  --text-green-63: #5e9877;
  --text-green-68: #5f7568;
  --text-on-dark-muted: #97ada1; /* muted text on the dark sidebar and dark panels */
  --text-green-80: #afc5bd;
  --text-green-82: #a2d2b2;
  --text-green-88: #a1edb0;
  --text-green-93: #cef5d7;
  --text-orange-48: #8b472c;
  --text-orange-57: #a96538;
  --text-orange-70: #c99065;
  --text-purple-61: #8474ca;
  --text-red-26: #3d1414;
  --text-red-45: #9b2226;
  --text-red-50: #a3401c;
  --text-red-50-2: #b3261e;
  --text-red-61: #bd6559;
  --text-red-67: #d57858;
  --text-white-100: #ffffff;
  --ink: #172a34;
  --muted: #5e6e77;
  --navydeep: #0a252d;
  --line: #e4ebe6;
  --shadow: 0 10px 36px rgba(15, 44, 38, 0.045);
  --body: Manrope, 'DM Sans', sans-serif;
  --layer-accent: #198963;
  --layer-soft: #eef8f3;
  --layer-strong: #0f5d43;
  --layer-line: #bfe6d1;
  --motion-snap: cubic-bezier(0.2, 0.72, 0.18, 1);
  --gw-focus: #237e9d;
  --gw-open: #178967;
  --gw-progress: #d5a23f;
  --gw-closed: #858f97;
  --bg-gray-95: #e5eefb;
  --bg-gray-97: #eef8f3;
  --bg-green-37-a8: rgba(22, 76, 55, 0.08);
  --bg-green-43: #0f5d43;
  --bg-green-53: #267c59;
  --bg-green-58: #0f7a4c;
  --bg-green-66: #3caa78;
  --bg-green-78-a14: rgba(117, 206, 156, 0.14);
  --bg-green-92: #cdeedb;
  --bg-red-93: #ffe2da;
  --bg-teal-35: #1a4242;
  --bg-teal-43: #2e5a51;
  --bg-white-100-a92: rgba(255, 255, 255, 0.92);
  --bg-white-100-a94: rgba(255, 255, 255, 0.941);
  --line-amber-86: #efca9c;
  --line-amber-88: #f0d58f;
  --line-gray-93: #e0e9e3;
  --line-green-57: #3b866d;
  --line-green-60: #64887b;
  --line-green-61: #2b9b65;
  --line-green-85: #bad5c5;
  --line-green-85-2: #a6e1a4;
  --line-green-88: #b6e3c7;
  --line-red-89: #efd3cc;
  --line-white-100: #ffffff;
}
/* The map layer you are looking at tints a few controls (active tab, counts). Street reports are the default. */
body[data-active-layer='air'] {
  --layer-accent: #d5a33b;
  --layer-soft: #fff8ea;
  --layer-strong: #8e6714;
  --layer-line: #f2ddb1;
}
body[data-active-layer='quakes'] {
  --layer-accent: #e8632b;
  --layer-soft: #fff2ec;
  --layer-strong: #9a3d14;
  --layer-line: #f6cdb9;
}
body[data-active-layer='fires'] {
  --layer-accent: #e5484d;
  --layer-soft: #fff0ef;
  --layer-strong: #9b2226;
  --layer-line: #f5c4c4;
}
body[data-active-layer='floods'] {
  --layer-accent: #1e7fd8;
  --layer-soft: #edf5fd;
  --layer-strong: #155a9c;
  --layer-line: #c3dcf5;
}

/* Dark theme: follows the device setting (or data-theme="dark" on <html>). Same token names, dark values:
   light surfaces turn dark with a faint green tint, dark text turns light (strong text near white, muted text dimmer),
   accent colors stay vivid, and surfaces that were already dark (the sidebar) stay dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg-gray-95: #171d26;
    --bg-gray-97: #141b17;
    --bg-green-37-a8: rgba(22, 76, 55, 0.08);
    --bg-green-43: #0f5d43;
    --bg-green-53: #267c59;
    --bg-green-58: #0f7a4c;
    --bg-green-66: #3caa78;
    --bg-green-78-a14: rgba(117, 206, 156, 0.14);
    --bg-green-92: #19251e;
    --bg-red-93: #281c19;
    --bg-teal-35: #1a4242;
    --bg-teal-43: #2e5a51;
    --bg-white-100-a92: rgba(16, 21, 19, 0.92);
    --bg-white-100-a94: rgba(16, 21, 19, 0.941);
    --line-amber-86: #4a3d2e;
    --line-amber-88: #433d2b;
    --line-gray-93: #323935;
    --line-green-57: #3b866d;
    --line-green-60: #335549;
    --line-green-61: #2b9b65;
    --line-green-85: #34463c;
    --line-green-85-2: #374537;
    --line-green-88: #304337;
    --line-red-89: #4a3732;
    --line-white-100: #ffffff;
    --bg-amber-63-a12: rgba(176, 126, 23, 0.12);
    --bg-amber-74: #d5a33b;
    --bg-amber-80: #e0b77d;
    --bg-amber-87: #2d2a1f;
    --bg-amber-97: #1d190f;
    --bg-black-0: #000000;
    --bg-blue-26: #13204a;
    --bg-blue-29-a28: rgba(16, 47, 55, 0.28);
    --bg-blue-53-a12: rgba(74, 107, 174, 0.12);
    --bg-blue-59-a20: rgba(30, 127, 216, 0.2);
    --bg-blue-62: #5f86c8;
    --bg-blue-68: #1da1f2;
    --bg-blue-79: #8fc3ea;
    --bg-gray-17-a0: rgba(6, 18, 22, 0);
    --bg-gray-17-a42: rgba(6, 18, 22, 0.42);
    --bg-gray-21-a55: rgba(10, 26, 30, 0.55);
    --bg-gray-52: #29353c;
    --bg-gray-74: #3e4643;
    --bg-gray-79: #434b3f;
    --bg-gray-85: #27312d;
    --bg-gray-93: #1a211c;
    --bg-green-34-a8: rgba(21, 64, 53, 0.08);
    --bg-green-40: #255044;
    --bg-green-40-a12: rgba(16, 86, 61, 0.12);
    --bg-green-47: #106d4a;
    --bg-green-56: #198963;
    --bg-green-63: #4c9b72;
    --bg-green-69: #1fb873;
    --bg-green-73: #6dba8b;
    --bg-green-75-a16: rgba(91, 196, 154, 0.16);
    --bg-green-84: #81e39b;
    --bg-green-90-a13: rgba(188, 238, 201, 0.13);
    --bg-orange-58-a12: rgba(190, 88, 48, 0.12);
    --bg-orange-71: #d8904f;
    --bg-orange-78: #efa451;
    --bg-purple-58: #a55e9b;
    --bg-red-51: #92505d;
    --bg-red-58-a10: rgba(215, 55, 47, 0.1);
    --bg-red-63-a35: rgba(229, 72, 77, 0.35);
    --bg-red-66: #df6859;
    --bg-red-70: #df8172;
    --bg-red-90: #2e2221;
    --bg-teal-20-a48: rgba(0, 27, 27, 0.48);
    --bg-teal-27: #0f2d2b;
    --bg-teal-32: #143a31;
    --bg-teal-51-a12: rgba(32, 56, 52, 0.12);
    --bg-teal-52: #223832;
    --bg-white-100: #101513;
    --bg-white-100-a10: rgba(255, 255, 255, 0.1);
    --bg-white-100-a13: rgba(255, 255, 255, 0.133);
    --bg-white-100-a69: rgba(16, 21, 19, 0.69);
    --bg-white-100-a7: rgba(255, 255, 255, 0.067);
    --bg-white-100-a84: rgba(16, 21, 19, 0.84);
    --bg-white-100-a90: rgba(16, 21, 19, 0.9);
    --bg-white-100-a97: rgba(16, 21, 19, 0.97);
    --line-amber-74: #d5a23f;
    --line-amber-90: #413a28;
    --line-blue-51: #1565c0;
    --line-gray-92-a90: rgba(48, 59, 51, 0.9);
    --line-gray-96: #303531;
    --line-green-43: #0f5d43;
    --line-green-46: #335547;
    --line-green-56: #355547;
    --line-green-58: #2f8f67;
    --line-green-65: #26574a;
    --line-green-69: #1fb873;
    --line-green-74: #7db999;
    --line-green-78: #7ecaa0;
    --line-green-78-a20: rgba(134, 199, 171, 0.196);
    --line-green-83: #35483e;
    --line-green-90: #303f36;
    --line-red-50: #b3261e;
    --line-red-58: #d7372f;
    --line-red-86: #4f3b36;
    --line-teal-32: #143a31;
    --line-teal-42: #315450;
    --line-white-100-a15: rgba(255, 255, 255, 0.149);
    --line-white-100-a18: rgba(255, 255, 255, 0.18);
    --shadow-amber-74-a8: rgba(213, 163, 59, 0.08);
    --shadow-black-0-a20: rgba(0, 0, 0, 0.6);
    --shadow-black-0-a8: rgba(0, 0, 0, 0.25);
    --shadow-blue-62-a8: rgba(95, 134, 200, 0.08);
    --shadow-blue-68-a25: rgba(29, 161, 242, 0.25);
    --shadow-gray-21-a14: rgba(0, 0, 0, 0.42);
    --shadow-gray-82: #bcc9c0;
    --shadow-green-24-a2: rgba(0, 0, 0, 0.25);
    --shadow-green-24-a31: rgba(0, 0, 0, 0.7);
    --shadow-green-25-a24: rgba(0, 0, 0, 0.7);
    --shadow-green-27-a13: rgba(0, 0, 0, 0.387);
    --shadow-green-27-a16: rgba(0, 0, 0, 0.48);
    --shadow-green-28-a6: rgba(0, 0, 0, 0.25);
    --shadow-green-35-a5: rgba(0, 0, 0, 0.25);
    --shadow-green-35-a8: rgba(0, 0, 0, 0.25);
    --shadow-green-56-a19: rgba(25, 137, 99, 0.188);
    --shadow-green-56-a6: rgba(25, 137, 99, 0.06);
    --shadow-green-57: #208b61;
    --shadow-green-58-a30: rgba(20, 145, 90, 0.3);
    --shadow-green-69-a19: rgba(31, 184, 115, 0.188);
    --shadow-green-78-a16: rgba(117, 206, 156, 0.16);
    --shadow-green-80-a13: rgba(124, 213, 155, 0.13);
    --shadow-green-83-a4: rgba(108, 227, 153, 0.04);
    --shadow-green-91: #1c2720;
    --shadow-orange-67-a8: rgba(217, 116, 72, 0.08);
    --shadow-teal-20-a44: rgba(0, 0, 0, 0.7);
    --shadow-teal-21-a50: rgba(0, 0, 0, 0.7);
    --shadow-teal-27-a35: rgba(0, 0, 0, 0.7);
    --shadow-teal-27-a9: rgba(0, 0, 0, 0.27);
    --shadow-teal-32-a13: rgba(0, 0, 0, 0.399);
    --shadow-teal-33-a22: rgba(0, 0, 0, 0.66);
    --shadow-teal-61-a8: rgba(98, 141, 135, 0.08);
    --shadow-white-100: #242424;
    --shadow-white-100-a55: rgba(36, 36, 36, 0.55);
    --shadow-white-100-a6: rgba(36, 36, 36, 0.06);
    --shadow-white-100-a70: rgba(36, 36, 36, 0.7);
    --text-amber-39: #e0c48d;
    --text-amber-50: #d3c6b4;
    --text-amber-51: #e6b26f;
    --text-amber-55: #cdb683;
    --text-amber-66: #d0a84d;
    --text-blue-43: #9ec6ff;
    --text-blue-48: #c3ccd3;
    --text-blue-53: #97bdef;
    --text-blue-58: #84bcef;
    --text-blue-68: #85b1e0;
    --text-gray-43: #ced7dd;
    --text-gray-89: #d0ddd9;
    --text-gray-96: #e8f5ed;
    --text-green-32: #ddf2e9;
    --text-green-41: #c9dfd4;
    --text-green-50: #7fd2ae;
    --text-green-52: #b9c9be;
    --text-green-55: #79cda4;
    --text-green-59: #abbab1;
    --text-green-63: #86c19e;
    --text-on-dark-muted: #97ada1;
    --text-green-68: #9ba7a0;
    --text-green-80: #afc5bd;
    --text-green-82: #a2d2b2;
    --text-green-88: #a1edb0;
    --text-green-93: #cef5d7;
    --text-orange-48: #f8aa8d;
    --text-orange-57: #eda376;
    --text-orange-70: #d69d71;
    --text-purple-61: #b3a4ff;
    --text-red-26: #ffe9e7;
    --text-red-45: #ff9f98;
    --text-red-50: #ff9f7e;
    --text-red-50-2: #ff9c8d;
    --text-red-61: #f49789;
    --text-red-67: #f19170;
    --text-white-100: #ffffff;
    --ink: #e9f1ec;
    --muted: #9eb0a7;
    --navydeep: #071a1f;
    --line: #26322d;
    --shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
    --layer-accent: #198963;
    --layer-soft: #141b17;
    --layer-strong: #90d7b7;
    --layer-line: #2e4137;
  }
  :root:not([data-theme='light']) body[data-active-layer='air'] {
    --layer-accent: #d5a33b;
    --layer-soft: #1b160c;
    --layer-strong: #ddb368;
    --layer-line: #413928;
  }
  :root:not([data-theme='light']) body[data-active-layer='quakes'] {
    --layer-accent: #e8632b;
    --layer-soft: #1f1713;
    --layer-strong: #ffa27c;
    --layer-line: #4b3930;
  }
  :root:not([data-theme='light']) body[data-active-layer='fires'] {
    --layer-accent: #e5484d;
    --layer-soft: #211716;
    --layer-strong: #ff9f98;
    --layer-line: #4e3939;
  }
  :root:not([data-theme='light']) body[data-active-layer='floods'] {
    --layer-accent: #1e7fd8;
    --layer-soft: #151a20;
    --layer-strong: #83c6ff;
    --layer-line: #303e4c;
  }
}
:root[data-theme='dark'] {
  --bg-gray-95: #171d26;
  --bg-gray-97: #141b17;
  --bg-green-37-a8: rgba(22, 76, 55, 0.08);
  --bg-green-43: #0f5d43;
  --bg-green-53: #267c59;
  --bg-green-58: #0f7a4c;
  --bg-green-66: #3caa78;
  --bg-green-78-a14: rgba(117, 206, 156, 0.14);
  --bg-green-92: #19251e;
  --bg-red-93: #281c19;
  --bg-teal-35: #1a4242;
  --bg-teal-43: #2e5a51;
  --bg-white-100-a92: rgba(16, 21, 19, 0.92);
  --bg-white-100-a94: rgba(16, 21, 19, 0.941);
  --line-amber-86: #4a3d2e;
  --line-amber-88: #433d2b;
  --line-gray-93: #323935;
  --line-green-57: #3b866d;
  --line-green-60: #335549;
  --line-green-61: #2b9b65;
  --line-green-85: #34463c;
  --line-green-85-2: #374537;
  --line-green-88: #304337;
  --line-red-89: #4a3732;
  --line-white-100: #ffffff;
  --bg-amber-63-a12: rgba(176, 126, 23, 0.12);
  --bg-amber-74: #d5a33b;
  --bg-amber-80: #e0b77d;
  --bg-amber-87: #2d2a1f;
  --bg-amber-97: #1d190f;
  --bg-black-0: #000000;
  --bg-blue-26: #13204a;
  --bg-blue-29-a28: rgba(16, 47, 55, 0.28);
  --bg-blue-53-a12: rgba(74, 107, 174, 0.12);
  --bg-blue-59-a20: rgba(30, 127, 216, 0.2);
  --bg-blue-62: #5f86c8;
  --bg-blue-68: #1da1f2;
  --bg-blue-79: #8fc3ea;
  --bg-gray-17-a0: rgba(6, 18, 22, 0);
  --bg-gray-17-a42: rgba(6, 18, 22, 0.42);
  --bg-gray-21-a55: rgba(10, 26, 30, 0.55);
  --bg-gray-52: #29353c;
  --bg-gray-74: #3e4643;
  --bg-gray-79: #434b3f;
  --bg-gray-85: #27312d;
  --bg-gray-93: #1a211c;
  --bg-green-34-a8: rgba(21, 64, 53, 0.08);
  --bg-green-40: #255044;
  --bg-green-40-a12: rgba(16, 86, 61, 0.12);
  --bg-green-47: #106d4a;
  --bg-green-56: #198963;
  --bg-green-63: #4c9b72;
  --bg-green-69: #1fb873;
  --bg-green-73: #6dba8b;
  --bg-green-75-a16: rgba(91, 196, 154, 0.16);
  --bg-green-84: #81e39b;
  --bg-green-90-a13: rgba(188, 238, 201, 0.13);
  --bg-orange-58-a12: rgba(190, 88, 48, 0.12);
  --bg-orange-71: #d8904f;
  --bg-orange-78: #efa451;
  --bg-purple-58: #a55e9b;
  --bg-red-51: #92505d;
  --bg-red-58-a10: rgba(215, 55, 47, 0.1);
  --bg-red-63-a35: rgba(229, 72, 77, 0.35);
  --bg-red-66: #df6859;
  --bg-red-70: #df8172;
  --bg-red-90: #2e2221;
  --bg-teal-20-a48: rgba(0, 27, 27, 0.48);
  --bg-teal-27: #0f2d2b;
  --bg-teal-32: #143a31;
  --bg-teal-51-a12: rgba(32, 56, 52, 0.12);
  --bg-teal-52: #223832;
  --bg-white-100: #101513;
  --bg-white-100-a10: rgba(255, 255, 255, 0.1);
  --bg-white-100-a13: rgba(255, 255, 255, 0.133);
  --bg-white-100-a69: rgba(16, 21, 19, 0.69);
  --bg-white-100-a7: rgba(255, 255, 255, 0.067);
  --bg-white-100-a84: rgba(16, 21, 19, 0.84);
  --bg-white-100-a90: rgba(16, 21, 19, 0.9);
  --bg-white-100-a97: rgba(16, 21, 19, 0.97);
  --line-amber-74: #d5a23f;
  --line-amber-90: #413a28;
  --line-blue-51: #1565c0;
  --line-gray-92-a90: rgba(48, 59, 51, 0.9);
  --line-gray-96: #303531;
  --line-green-43: #0f5d43;
  --line-green-46: #335547;
  --line-green-56: #355547;
  --line-green-58: #2f8f67;
  --line-green-65: #26574a;
  --line-green-69: #1fb873;
  --line-green-74: #7db999;
  --line-green-78: #7ecaa0;
  --line-green-78-a20: rgba(134, 199, 171, 0.196);
  --line-green-83: #35483e;
  --line-green-90: #303f36;
  --line-red-50: #b3261e;
  --line-red-58: #d7372f;
  --line-red-86: #4f3b36;
  --line-teal-32: #143a31;
  --line-teal-42: #315450;
  --line-white-100-a15: rgba(255, 255, 255, 0.149);
  --line-white-100-a18: rgba(255, 255, 255, 0.18);
  --shadow-amber-74-a8: rgba(213, 163, 59, 0.08);
  --shadow-black-0-a20: rgba(0, 0, 0, 0.6);
  --shadow-black-0-a8: rgba(0, 0, 0, 0.25);
  --shadow-blue-62-a8: rgba(95, 134, 200, 0.08);
  --shadow-blue-68-a25: rgba(29, 161, 242, 0.25);
  --shadow-gray-21-a14: rgba(0, 0, 0, 0.42);
  --shadow-gray-82: #bcc9c0;
  --shadow-green-24-a2: rgba(0, 0, 0, 0.25);
  --shadow-green-24-a31: rgba(0, 0, 0, 0.7);
  --shadow-green-25-a24: rgba(0, 0, 0, 0.7);
  --shadow-green-27-a13: rgba(0, 0, 0, 0.387);
  --shadow-green-27-a16: rgba(0, 0, 0, 0.48);
  --shadow-green-28-a6: rgba(0, 0, 0, 0.25);
  --shadow-green-35-a5: rgba(0, 0, 0, 0.25);
  --shadow-green-35-a8: rgba(0, 0, 0, 0.25);
  --shadow-green-56-a19: rgba(25, 137, 99, 0.188);
  --shadow-green-56-a6: rgba(25, 137, 99, 0.06);
  --shadow-green-57: #208b61;
  --shadow-green-58-a30: rgba(20, 145, 90, 0.3);
  --shadow-green-69-a19: rgba(31, 184, 115, 0.188);
  --shadow-green-78-a16: rgba(117, 206, 156, 0.16);
  --shadow-green-80-a13: rgba(124, 213, 155, 0.13);
  --shadow-green-83-a4: rgba(108, 227, 153, 0.04);
  --shadow-green-91: #1c2720;
  --shadow-orange-67-a8: rgba(217, 116, 72, 0.08);
  --shadow-teal-20-a44: rgba(0, 0, 0, 0.7);
  --shadow-teal-21-a50: rgba(0, 0, 0, 0.7);
  --shadow-teal-27-a35: rgba(0, 0, 0, 0.7);
  --shadow-teal-27-a9: rgba(0, 0, 0, 0.27);
  --shadow-teal-32-a13: rgba(0, 0, 0, 0.399);
  --shadow-teal-33-a22: rgba(0, 0, 0, 0.66);
  --shadow-teal-61-a8: rgba(98, 141, 135, 0.08);
  --shadow-white-100: #242424;
  --shadow-white-100-a55: rgba(36, 36, 36, 0.55);
  --shadow-white-100-a6: rgba(36, 36, 36, 0.06);
  --shadow-white-100-a70: rgba(36, 36, 36, 0.7);
  --text-amber-39: #e0c48d;
  --text-amber-50: #d3c6b4;
  --text-amber-51: #e6b26f;
  --text-amber-55: #cdb683;
  --text-amber-66: #d0a84d;
  --text-blue-43: #9ec6ff;
  --text-blue-48: #c3ccd3;
  --text-blue-53: #97bdef;
  --text-blue-58: #84bcef;
  --text-blue-68: #85b1e0;
  --text-gray-43: #ced7dd;
  --text-gray-89: #d0ddd9;
  --text-gray-96: #e8f5ed;
  --text-green-32: #ddf2e9;
  --text-green-41: #c9dfd4;
  --text-green-50: #7fd2ae;
  --text-green-52: #b9c9be;
  --text-green-55: #79cda4;
  --text-green-59: #abbab1;
  --text-green-63: #86c19e;
  --text-on-dark-muted: #97ada1;
  --text-green-68: #9ba7a0;
  --text-green-80: #afc5bd;
  --text-green-82: #a2d2b2;
  --text-green-88: #a1edb0;
  --text-green-93: #cef5d7;
  --text-orange-48: #f8aa8d;
  --text-orange-57: #eda376;
  --text-orange-70: #d69d71;
  --text-purple-61: #b3a4ff;
  --text-red-26: #ffe9e7;
  --text-red-45: #ff9f98;
  --text-red-50: #ff9f7e;
  --text-red-50-2: #ff9c8d;
  --text-red-61: #f49789;
  --text-red-67: #f19170;
  --text-white-100: #ffffff;
  --ink: #e9f1ec;
  --muted: #9eb0a7;
  --navydeep: #071a1f;
  --line: #26322d;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
  --layer-accent: #198963;
  --layer-soft: #141b17;
  --layer-strong: #90d7b7;
  --layer-line: #2e4137;
}
:root[data-theme='dark'] body[data-active-layer='air'] {
  --layer-accent: #d5a33b;
  --layer-soft: #1b160c;
  --layer-strong: #ddb368;
  --layer-line: #413928;
}
:root[data-theme='dark'] body[data-active-layer='quakes'] {
  --layer-accent: #e8632b;
  --layer-soft: #1f1713;
  --layer-strong: #ffa27c;
  --layer-line: #4b3930;
}
:root[data-theme='dark'] body[data-active-layer='fires'] {
  --layer-accent: #e5484d;
  --layer-soft: #211716;
  --layer-strong: #ff9f98;
  --layer-line: #4e3939;
}
:root[data-theme='dark'] body[data-active-layer='floods'] {
  --layer-accent: #1e7fd8;
  --layer-soft: #151a20;
  --layer-strong: #83c6ff;
  --layer-line: #303e4c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --map-icon-filter: invert(1) brightness(1.15);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --map-icon-filter: invert(1) brightness(1.15);
  color-scheme: dark;
}
/* Appearance set to Light on a dark device: native controls (selects, scroll bars) stay light too */
:root[data-theme='light'] {
  color-scheme: light;
}

/* ==== 2. Base: page, type, links, form controls, helpers ===================================================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--bg-white-100) 0%, var(--bg-white-100) 100%);
}
button {
  font: inherit;
  cursor: pointer;
}
input,
select {
  font: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--line-green-78);
  outline-offset: 2px;
}
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.eyebrow {
  color: var(--text-green-59);
  font-size: 0.6875rem;
  letter-spacing: 2px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 11px;
}
.eyebrow-line {
  display: inline-block;
  width: 19px;
  height: 1px;
  background: var(--bg-green-63);
}
.overline {
  font-size: 0.6875rem;
  letter-spacing: 1.65px;
  font-weight: 800;
  color: var(--text-green-59);
}
.text-link {
  background: none;
  border: 0;
  color: var(--text-green-55);
  font-size: 0.6875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.text-link svg {
  height: 13px;
  width: 13px;
}
.text-link:hover {
  color: var(--text-green-41);
  text-decoration: underline;
}
.tone-good {
  color: var(--text-green-55);
}
.tone-moderate {
  color: var(--text-amber-51);
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 770px) {
  .eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 1.6px;
  }
  /* type floor */
  .overline {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .text-link {
    min-height: 40px;
    align-items: center;
  }
}

/* ==== 3. App shell: sidebar, top bar, page layout, footer ==================================================== */
.shell {
  display: flex;
  min-height: 100vh;
}
/* Sidebar: scrolls when the window is short, so every item stays reachable */
.sidebar {
  width: 254px;
  flex: 0 0 254px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  background: var(--navydeep);
  color: var(--text-gray-89);
  padding: 33px 20px 26px;
  display: flex;
  flex-direction: column;
  z-index: 400;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-teal-43) transparent;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 9px 53px;
}
.brand-emblem {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-green-88);
}
.brand-emblem:before {
  content: '';
  position: absolute;
  width: 36px;
  height: 2px;
  background: currentColor;
  left: 2px;
  top: 19px;
}
.brand-emblem:after {
  content: '';
  position: absolute;
  width: 36px;
  height: 2px;
  background: currentColor;
  left: 2px;
  top: 19px;
  transform: rotate(90deg);
}
.brand-planet {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.brand-planet:before {
  content: '';
  position: absolute;
  width: 36px;
  height: 2px;
  background: currentColor;
  top: 19px;
  left: 2px;
  transform: rotate(45deg);
}
.brand-planet:after {
  content: '';
  position: absolute;
  width: 36px;
  height: 2px;
  background: currentColor;
  top: 19px;
  left: 2px;
  transform: rotate(-45deg);
}
.brand-word {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.75px;
  color: var(--text-gray-96);
}
.brand-word span {
  color: var(--text-green-88);
}
.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 1.6px;
  color: var(--text-green-80);
  margin-top: 8px;
  font-weight: 800;
}
.brand-mono {
  color: var(--text-on-dark-muted);
  margin-left: 3px;
}
.sidebar-section-label {
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 0 15px;
  margin: 0 0 15px;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-btn {
  border: 0;
  background: transparent;
  color: var(--text-green-80);
  min-height: 47px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 16px;
  font-size: 0.78125rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.22s var(--motion-snap),
    background 0.22s var(--motion-snap),
    color 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap);
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  color: var(--text-on-dark-muted);
}
.nav-btn:hover {
  background: var(--bg-teal-35);
  color: var(--text-white-100);
  transform: translateX(4px);
}
.nav-btn.active {
  background: var(--bg-green-40);
  color: var(--text-gray-96);
}
.nav-btn.active svg {
  color: var(--text-green-88);
}
.sidebar-resources {
  margin-top: 45px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 22px;
}
.sidebar-foot {
  font-size: 0.6875rem;
  letter-spacing: 0.85px;
  color: var(--text-on-dark-muted);
  line-height: 2;
  margin-top: 21px;
  padding-left: 7px;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 250;
  background: var(--bg-white-100-a97);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 39px;
  backdrop-filter: blur(14px);
  animation: fadeLift 0.45s var(--motion-snap);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 1.1px;
  font-weight: 800;
  color: var(--text-green-59);
  font-size: 0.6875rem;
}
.breadcrumb b {
  color: var(--text-green-32);
  font-weight: 800;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: var(--text-green-80);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.updated-at {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 700;
}
.top-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-52);
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 50px;
  padding: 10px 11px;
}
.workspace {
  max-width: 1640px;
  margin: 0 auto;
  padding: 42px 39px 0;
}
.view {
  display: none;
}
.view.shown {
  display: block;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 29px;
}
.version {
  background: var(--bg-gray-93);
  font-size: 0.6875rem;
  letter-spacing: 0.9px;
  color: var(--text-green-59);
  padding: 5px 9px;
  margin-left: 12px;
  border-radius: 4px;
}
.page-intro h1 {
  font-size: clamp(34px, 4.2vw, 57px);
  letter-spacing: -2.7px;
  font-weight: 800;
  line-height: 1.12;
  margin: 24px 0 12px;
}
.page-intro h1 span {
  color: var(--text-green-63);
}
.page-intro p,
.subpage-head p {
  font-size: 0.78125rem;
  line-height: 1.95;
  max-width: 540px;
  color: var(--text-green-59);
  font-weight: 600;
  margin: 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 37px 0 16px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: 1.1875rem;
  letter-spacing: -0.7px;
}
.footer {
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-green-68);
  letter-spacing: 0.8px;
  font-size: 0.6875rem;
  font-weight: 800;
}
.footer a {
  color: var(--text-green-55);
}
.large-note {
  margin: 15px 0 50px;
}
.subpage-head {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin: 10px 0 28px;
}
.subpage-head h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.15;
  margin: 19px 0 10px;
  letter-spacing: -2px;
}
.page-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--bg-gray-97);
  color: var(--text-green-59);
  border-radius: 22px;
}
.page-symbol svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.35;
}
.section-hint {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 700;
}
.panel-external {
  margin-left: auto;
  color: var(--text-green-68);
}
.panel-external svg {
  width: 16px;
  height: 16px;
}
.panel-illustration {
  width: 24px;
  height: 24px;
  display: block;
  filter: none !important;
}
.page-symbol img {
  filter: drop-shadow(0 8px 18px var(--bg-green-34-a8));
}
.circle-label .panel-illustration {
  width: 22px;
  height: 22px;
}
.workspace > .view {
  animation: fadeLift 0.45s var(--motion-snap);
}
.nav-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg-white-100-a7);
  box-shadow: inset 0 0 0 1px var(--shadow-white-100-a6);
}
.nav-icon-wrap img {
  width: 17px;
  height: 17px;
  display: block;
}
.nav-btn.active .nav-icon-wrap {
  background: var(--bg-green-78-a14);
  box-shadow: inset 0 0 0 1px var(--shadow-green-78-a16);
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-teal-43);
  border-radius: 8px;
  border: 2px solid var(--navydeep);
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--bg-teal-52);
}
/* Home: time-of-day skyline card */
.page-intro.intro-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
/* The GroundWatch logo is a link back to the top of Home */
a.brand {
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}
a.brand .brand-text,
a.brand .brand-word,
a.brand .brand-sub {
  display: block;
}
a.brand:hover .brand-word {
  color: var(--text-white-100);
}
a.brand:focus-visible {
  outline: 2px solid var(--line-green-85-2);
  outline-offset: 4px;
}
/* Top bar: shorter breadcrumb and a compact status chip as space runs out */
.breadcrumb .crumb-part {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 771px) and (max-width: 1099px) {
  a.brand .brand-text {
    display: none;
  }
  .main-nav {
    align-items: center;
    width: 100%;
  }
  .nav-btn > span:not(.nav-icon-wrap) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .sidebar-foot {
    display: none;
  }
}
@media (max-height: 860px) and (min-width: 771px) {
  .nav-btn {
    min-height: 44px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .nav-btn {
    width: 58px;
    min-height: 50px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
}
@media (max-height: 860px) and (min-width: 771px) {
  .sidebar-resources {
    margin-top: 26px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .sidebar-section-label {
    font-size: 0;
    line-height: 0;
    height: 1px;
    width: 40px;
    padding: 0;
    margin: 4px auto 14px;
    background: var(--bg-white-100-a10);
    letter-spacing: 0;
  }
  .sidebar-resources {
    margin-top: 18px;
  }
}
@media (max-width: 1300px) {
  .sidebar {
    width: 220px;
    flex-basis: 220px;
    padding: 32px 14px 23px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  /* Mid-size screens: the sidebar becomes an icon rail, so the content (and the map) get the room */
  .sidebar {
    width: 84px;
    flex: 0 0 84px;
    padding: 22px 10px 18px;
    align-items: center;
    overflow-x: hidden;
  }
}
@media (max-width: 1300px) {
  .brand {
    padding-left: 7px;
  }
}
@media (max-height: 860px) and (min-width: 771px) {
  .brand {
    padding-bottom: 30px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .brand {
    padding: 0 0 22px;
    justify-content: center;
    gap: 0;
  }
}
@media (max-width: 1300px) {
  .workspace {
    padding: 33px 25px 0;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .workspace {
    padding: 30px 24px 0;
  }
}
@media (max-width: 1300px) {
  .topbar {
    padding: 0 25px;
  }
  .page-intro h1 {
    font-size: 2.6875rem;
  }
}
@media (max-width: 1100px) {
  .page-intro.intro-overview {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 1000px) {
  .topbar .updated-at {
    display: none;
  }
}
@media (max-width: 1180px) {
  .topbar .updated-at {
    display: none;
  }
}
@media (max-width: 980px) {
  .nav-icon-wrap {
    width: 25px;
    height: 25px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .nav-icon-wrap {
    width: 32px;
    height: 32px;
  }
}
@media (max-width: 770px) {
  .shell {
    display: block;
  }
  /* one app bar: brand on the left, live status + sync on the right, stays at the top */
  .sidebar {
    height: auto;
    width: 100%;
    padding: 13px 13px 0;
    padding-bottom: 5px;
    overflow: visible;
    position: sticky;
    top: 0;
    z-index: 830;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 112px 0 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 6px 18px var(--shadow-gray-21-a14);
  }
  .brand {
    padding: 0 6px 12px;
    gap: 12px;
    padding-bottom: 7px;
  }
  .brand-emblem {
    width: 30px;
    height: 30px;
    transform: scale(0.78);
  }
  .sidebar-section-label,
  .sidebar-bottom {
    display: none;
  }
  .main-nav {
    flex-direction: row;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .nav-btn {
    min-height: 38px;
    gap: 7px;
    padding: 0 11px;
    white-space: nowrap;
    font-size: 0.6875rem;
  }
  .nav-btn svg {
    width: 15px;
    height: 15px;
  }
}
.nav-icon-wrap svg {
  width: 17px;
  height: 17px;
  display: block;
}
@media (max-width: 770px) {
  .topbar {
    height: 61px;
    padding: 0 17px;
  }
}
@supports (padding: max(0px)) {
  .topbar {
    padding-top: max(env(safe-area-inset-top), 0px);
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .topbar {
    padding: 0 24px;
  }
}
@media (max-width: 770px) {
  .breadcrumb {
    font-size: 0.6875rem;
    gap: 5px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-status {
    padding: 9px;
  }
}
@media (max-width: 960px) {
  .top-status {
    padding: 10px;
  }
}
@media (max-width: 770px) {
  .top-status span:last-child {
    display: none;
  }
}
@media (max-width: 960px) {
  .top-status span:last-child {
    display: none;
  }
}
@media (max-width: 770px) {
  /* page headers: shorter, no decorative badge */
  .workspace {
    padding: 24px 14px 0;
    padding-bottom: 93px;
    padding-top: 20px;
  }
  .page-intro {
    display: block;
  }
  .page-intro h1 {
    font-size: 2rem;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin: 12px 0 10px;
  }
  .section-head h2 {
    font-size: 1rem;
  }
  .section-head {
    margin-top: 27px;
  }
  .subpage-head h1 {
    font-size: 2rem;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin: 12px 0 10px;
  }
  .page-symbol {
    height: 55px;
    width: 55px;
    flex-shrink: 0;
    display: none;
  }
  .page-symbol svg {
    height: 26px;
    width: 26px;
  }
  /* footer: readable, every link easy to tap */
  .footer {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.3px;
    line-height: 1.75;
    padding-bottom: 24px;
  }
  .sidebar .main-nav {
    display: none;
  }
  .sidebar .brand {
    padding: 0 4px 0 0;
    margin: 0;
    gap: 9px;
    min-height: 44px;
    align-items: center;
  }
  .sidebar .brand-emblem {
    transform: scale(0.7);
    margin: 0 -4px 0 -6px;
  }
  .sidebar .brand-text {
    line-height: 1.25;
  }
  .sidebar .brand-sub {
    margin-top: 2px;
  }
  .brand-word {
    font-size: 0.875rem;
  }
  .brand-sub,
  .brand-mono {
    font-size: 0.6875rem;
    letter-spacing: 1.6px;
  }
  .topbar .breadcrumb,
  .topbar .updated-at {
    display: none;
  }
  .topbar .top-actions {
    gap: 8px;
  }
  .topbar .top-status {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    background: var(--bg-white-100-a7);
    border-color: var(--line-white-100-a15);
  }
  body.map-open .topbar {
    display: none;
  }
  .page-intro p,
  .subpage-head p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-green-59);
  }
  .version {
    display: none;
  }
  .section-hint {
    font-size: 0.71875rem;
  }
  .footer > span {
    display: block;
  }
  .footer > span:first-child {
    margin-bottom: 8px;
    letter-spacing: 1.4px;
  }
  .footer a {
    display: inline-block;
    padding: 9px 3px;
    margin: -4px 0;
  }
  /* Map tab: the map comes first; filters and extra layers follow it */
  #view-explore > .subpage-head {
    display: none;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .panel-external {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    margin: -9px -9px -9px 0;
  }
  .view p a {
    padding: 10px 0;
    margin: -10px 0;
  }
}
@media (max-width: 600px) {
  .topbar {
    min-width: 0;
    gap: 8px;
    overflow: hidden;
  }
}
@media (max-width: 770px) {
  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: auto;
    height: calc(56px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 831;
    overflow: visible;
    animation: none;
    box-shadow: none;
  }
}
@media (max-width: 600px) {
  .topbar .breadcrumb {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  .topbar .top-actions {
    flex: 0 0 auto;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .breadcrumb .crumb-state {
    display: none;
  }
}
/* the smallest phones: the version number makes room for the three top-bar buttons */
@media (max-width: 374px) {
  .sidebar .brand-mono {
    display: none;
  }
  .topbar .top-actions {
    gap: 4px;
  }
}
@media (max-width: 430px) {
  .nav-btn {
    padding: 0 10px;
  }
  .nav-btn span {
    font-size: 0.6875rem;
  }
  /* touch screens: pinch to zoom */
  .page-intro h1,
  .subpage-head h1 {
    font-size: 1.875rem;
  }
  .sidebar {
    padding-right: 104px;
  }
}
@media (max-width: 360px) {
  .breadcrumb .crumb-city {
    display: none;
  }
}

/* Top-bar buttons: Appearance, and Refresh (the app refreshes on its own; this button, and pull-to-refresh on
   phones, does it now). */
.top-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-gray-93);
  border-radius: 12px;
  background: var(--bg-white-100);
  color: var(--text-green-41);
  cursor: pointer;
}
.top-icon-btn:hover {
  background: var(--bg-gray-97);
}
.top-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.top-refresh.is-busy svg {
  animation: gwSpin 0.9s linear infinite;
}
/* Appearance: Match device, Light or Dark, from a small menu under its top-bar button */
.theme-control {
  position: relative;
}
.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 300;
  display: grid;
  gap: 2px;
  width: 252px;
  padding: 6px;
  border: 1px solid var(--line-gray-93);
  border-radius: 16px;
  background: var(--bg-white-100);
  box-shadow: 0 16px 40px var(--shadow-green-27-a16);
}
.theme-menu[hidden] {
  display: none;
}
.theme-menu-title {
  margin: 6px 10px 4px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-green-59);
}
.theme-menu button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--ink);
  font: 700 0.875rem/1.25 var(--body);
  text-align: left;
  cursor: pointer;
}
.theme-menu button:hover,
.theme-menu button[aria-checked='true'] {
  background: var(--bg-gray-97);
}
.theme-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-menu small {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
}
.theme-menu .theme-check {
  width: 18px;
  height: 18px;
  color: var(--text-green-41);
  visibility: hidden;
}
.theme-menu button[aria-checked='true'] .theme-check {
  visibility: visible;
}
.pull-refresh {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 64px);
  left: 50%;
  z-index: 820;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -52px 0 0 -20px;
  border-radius: 50%;
  background: var(--bg-white-100);
  box-shadow: 0 4px 16px var(--shadow-green-27-a16);
  color: var(--text-green-50);
  pointer-events: none;
}
.pull-refresh svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}
.pull-refresh.is-ready {
  color: var(--text-white-100);
  background: var(--bg-green-56);
}
@media (pointer: fine) {
  .pull-refresh {
    display: none;
  }
}
@media (max-width: 770px) {
  .topbar .top-icon-btn {
    background: var(--bg-white-100-a7);
    border-color: var(--line-white-100-a18);
    color: var(--text-gray-96);
  }
}
@media (pointer: coarse) {
  .top-icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* ==== 4. Phone tab bar and More menu ========================================================================= */
.gw-mobile-nav,
.gw-mobile-more {
  display: none;
}
.gw-mobile-nav button:focus-visible {
  outline: 3px solid var(--gw-focus);
  outline-offset: 2px;
}
.gw-mobile-more .gw-more-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-top: 1px solid var(--line-gray-96);
}
.gw-mobile-more .gw-more-link svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 770px) {
  .gw-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 810;
    background: var(--bg-white-100);
    border-top: 1px solid var(--line-gray-93);
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 30px var(--shadow-green-28-a6);
  }
}
@supports (padding: max(0px)) {
  .gw-mobile-nav {
    padding-bottom: max(env(safe-area-inset-bottom), 6px);
  }
}
@media (max-width: 770px) {
  .gw-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-green-59);
    font-size: 0.6875rem;
    font-weight: 800;
    min-height: 49px;
    cursor: pointer;
  }
  .gw-mobile-tab svg {
    width: 20px;
    height: 20px;
  }
  .gw-mobile-more:not([hidden]) {
    display: grid;
    position: fixed;
    z-index: 805;
    bottom: calc(68px + env(safe-area-inset-bottom));
    right: 9px;
    left: 9px;
    background: var(--bg-white-100);
    padding: 11px;
    border: 1px solid var(--line-gray-93);
    border-radius: 16px;
    box-shadow: 0 12px 42px var(--shadow-teal-33-a22);
  }
  .gw-mobile-more button {
    padding: 14px;
    border: 0;
    text-align: left;
    background: var(--bg-white-100);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-green-41);
    font-size: 0.8125rem;
    font-weight: 800;
    border-radius: 9px;
  }
  .gw-mobile-more button:hover {
    background: var(--bg-gray-97);
  }
  .gw-mobile-more svg {
    width: 20px;
    height: 20px;
  }
}

/* ==== 5. Buttons, chips, inputs, toasts and banners ========================================================== */
.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bg-gray-85);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--shadow-white-100-a6);
}
.pulse.green {
  background: var(--bg-green-84);
  box-shadow: 0 0 0 4px var(--shadow-green-80-a13);
}
.pulse.grey {
  background: var(--bg-gray-74);
}
.pulse.red {
  background: var(--bg-red-70);
}
.top-status .pulse {
  width: 6px;
  height: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 0.6875rem;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  background: var(--bg-teal-32);
  color: var(--text-gray-96);
}
.btn-dark {
  background: var(--bg-teal-32);
  color: var(--text-white-100);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  padding: 0 12px;
  flex: 1;
  min-width: 140px;
  border-radius: 14px;
  border-color: var(--line-gray-93);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.search-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--text-green-59);
}
.search-wrap input {
  border: 0;
  outline: none !important;
  background: none;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-41);
  padding: 12px 0;
  width: 100%;
  min-width: 0;
}
.search-wrap input::placeholder {
  color: var(--text-green-68);
}
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  padding: 0 10px;
  color: var(--text-green-68);
  border-radius: 14px;
  border-color: var(--line-gray-93);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.select-wrap span {
  font-size: 0.6875rem;
  font-weight: 800;
}
.select-wrap select {
  border: 0;
  outline: 0;
  background: none;
  appearance: none;
  color: var(--text-green-41);
  padding: 11px 22px 11px 4px;
  max-width: 160px;
  min-width: 100px;
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
}
.select-wrap svg {
  position: absolute;
  right: 9px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.empty-state {
  padding: 24px 18px;
  color: var(--text-green-68);
  line-height: 1.9;
  font-size: 0.6875rem;
  font-weight: 700;
}
.download-panel {
  background: var(--bg-gray-97);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-radius: 13px;
  padding: 22px 24px;
  margin: 25px 0 45px;
}
.download-panel h3 {
  margin: 0 0 7px;
  font-size: 0.875rem;
}
.download-panel p {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  margin: 0;
  line-height: 1.7;
  max-width: 570px;
}
.toast {
  position: fixed;
  z-index: 2500;
  bottom: 22px;
  right: 22px;
  background: var(--bg-teal-32);
  color: var(--text-white-100);
  border-radius: 10px;
  box-shadow: 0 10px 34px var(--shadow-black-0-a20);
  padding: 15px 20px;
  font-size: 0.6875rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
.notification-note {
  line-height: 1.75;
  color: var(--text-green-59);
  font-size: 0.6875rem;
}
.map-filter-row .select-wrap,
.map-filter-row .search-wrap {
  box-shadow: 0 1px 0 var(--shadow-green-24-a2);
}
.search-wrap:focus-within,
.select-wrap:focus-within {
  border-color: var(--layer-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--layer-accent) 14%, transparent);
}
.account-search-line .search-wrap {
  flex: 1;
}
.gw-inline input {
  width: 100%;
  border: 1px solid var(--line-green-90);
  border-radius: 10px;
  padding: 12px 13px;
  background: var(--bg-white-100);
  color: var(--text-green-32);
  font-size: 0.8125rem;
  min-width: 0;
}
.gw-inline input:focus-visible {
  outline: 3px solid var(--line-green-88);
  outline-offset: 1px;
}
.gw-soft-btn {
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
}
.gw-inline {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.gw-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  border: 2px solid var(--line-white-100);
  box-shadow: 0 0 0 1px var(--shadow-gray-82);
}
.gw-dot.open {
  background: var(--gw-open);
}
.gw-dot.progress {
  background: var(--gw-progress);
}
.map-freshness .live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-green-69);
  margin-right: 5px;
  vertical-align: 1px;
  box-shadow: 0 0 0 3px var(--shadow-green-69-a19);
}
.map-sheet .sheet-actions .btn {
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
}
/* offline banner, safe areas for installed app / phones with notches */
.offline-banner {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-amber-97);
  border: 1px solid var(--line-amber-88);
  color: var(--text-amber-39);
  font-size: 0.8125rem;
  font-weight: 700;
}
.offline-banner[hidden] {
  display: none;
}
.map-sheet .sheet-actions .btn svg {
  width: 16px;
  height: 16px;
}
.map-sheet .sheet-actions .btn-primary {
  flex: 1 1 100%;
}
.map-sheet .sheet-actions .gw-soft-btn {
  flex: 1 1 0;
}
.gw-addr-form .gw-inline input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-green-90);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 0.8125rem;
  color: var(--text-green-32);
  background: var(--bg-white-100);
}
.gw-addr-form .gw-inline input:focus {
  outline: 2px solid var(--line-green-58);
  outline-offset: 1px;
}
/* chips */
.gw-chip-btn {
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 38px;
}
.gw-chip-btn:hover {
  background: var(--bg-gray-97);
  border-color: var(--line-green-83);
}
.gw-chip {
  position: relative;
  display: inline-flex;
}
.gw-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
.gw-chip span {
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.6875rem;
  font-weight: 800;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}
.gw-chip input:checked + span {
  background: var(--bg-teal-32);
  border-color: var(--line-teal-32);
  color: var(--text-gray-96);
}
.gw-chip input:focus-visible + span {
  outline: 2px solid var(--line-green-58);
  outline-offset: 2px;
}
.gw-mail-send .btn {
  min-height: 42px;
}
@media (max-width: 1300px) {
  .select-wrap select {
    min-width: 70px;
  }
}
@media (max-width: 850px) {
  .notification-note {
    margin-top: -5px;
  }
}
@media (max-width: 770px) {
  .btn-primary {
    padding: 10px;
    font-size: 0.6875rem;
  }
  .btn-primary svg {
    height: 14px;
    width: 14px;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .select-wrap {
    flex: 1;
  }
  .select-wrap select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .download-panel {
    display: block;
  }
  .download-panel .btn {
    margin-top: 16px;
  }
}
.gw-handoff-actions .btn {
  margin: 0;
  text-decoration: none;
}
@media (max-width: 770px) {
  .notification-note {
    font-size: 0.71875rem;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .btn {
    min-height: 44px;
  }
}
@media (max-width: 640px) {
  .gw-mail-send .btn {
    flex: 1 1 calc(50% - 8px);
  }
  .gw-addr-form .gw-inline {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .topbar .btn-primary {
    padding: 9px 8px;
    font-size: 0;
    min-width: 37px;
  }
  .topbar .btn-primary svg {
    width: 16px;
    height: 16px;
  }
  .topbar .btn-primary span {
    display: none;
  }
}
@media (max-width: 430px) {
  .gw-inline {
    flex-wrap: wrap;
  }
  .gw-inline .btn {
    width: 100%;
  }
}
@container gwboard (max-width:880px) {
  .map-board .map-filter-row .search-wrap {
    grid-column: 1/-1;
    min-width: 0;
  }
  .map-board .map-filter-row .select-wrap {
    min-width: 0;
    flex: none;
  }
  .map-board .map-filter-row .select-wrap select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}
@container gwboard (max-width:560px) {
  .map-board.map-fullscreen .map-filter-row .select-wrap {
    display: none;
  }
}

/* First-run welcome: three lines on what the app does, shown once per device. */
.gw-welcome {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--bg-white-100);
  color: var(--text-green-41);
  box-shadow: 0 30px 80px var(--shadow-teal-21-a50);
}
.gw-welcome::backdrop {
  background: var(--bg-teal-20-a48);
}
.gw-welcome-art {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.gw-welcome-body {
  padding: 20px 22px 22px;
}
.gw-welcome h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-green-32);
}
.gw-welcome ul {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.gw-welcome li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.45;
}
.gw-welcome li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: var(--text-green-50);
  stroke-width: 1.8;
}
.gw-welcome li b {
  display: block;
  color: var(--text-green-32);
}
.gw-welcome-fine {
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--text-green-52);
}
.gw-welcome-go {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 0.9375rem;
}

/* ==== 6. Home ================================================================================================ */
.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.resource-links a {
  display: flex;
  align-items: center;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--text-green-80);
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.resource-links a:hover {
  color: var(--text-white-100);
  background: var(--bg-white-100-a7);
  transform: translateX(3px);
}
.resource-links svg {
  height: 16px;
  width: 16px;
}
.resource-links .trailing {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--text-on-dark-muted);
}
.status-orb {
  background: var(--bg-teal-32);
  border: 1px solid var(--line-teal-42);
  border-radius: 13px;
  padding: 16px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.status-orb b {
  font-size: 0.6875rem;
  color: var(--text-gray-96);
}
.status-orb small {
  font-size: 0.6875rem;
  display: block;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  background: var(--bg-white-100);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  padding: 21px 20px 17px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: fadeLift 0.45s var(--motion-snap);
  border-color: var(--line-gray-96);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap),
    border-color 0.22s var(--motion-snap);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  border-color: var(--line-green-85);
  transform: translateY(-4px);
  box-shadow: 0 18px 28px var(--shadow-green-28-a6);
}
.stat-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--bg-gray-97);
  color: var(--text-green-55);
  overflow: hidden;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px var(--shadow-white-100-a55),
    0 8px 18px var(--shadow-green-28-a6);
}
.stat-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.stat-icon.air {
  background: var(--bg-gray-97);
  color: var(--text-purple-61);
}
.stat-icon.warning {
  background: var(--bg-gray-97);
  color: var(--text-orange-70);
}
.stat-icon.earthquake {
  background: var(--bg-gray-95);
  color: var(--text-blue-68);
}
.stat-micro {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 800;
  letter-spacing: 0.85px;
  white-space: normal;
  line-height: 1.5;
}
.stat-number {
  font-size: 2.375rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.7px;
  margin-top: 22px;
}
.stat-label {
  font-size: 0.71875rem;
  color: var(--text-green-41);
  font-weight: 800;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-label svg {
  width: 12px;
  height: 12px;
  color: var(--text-green-68);
}
.stat-meta {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 600;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-gray-96);
  min-height: 28px;
}
.below-map {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 14px 0 38px;
}
.mini-btn {
  border: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  border-radius: 8px;
  color: var(--text-green-52);
  padding: 10px 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.mini-btn:hover {
  background: var(--bg-gray-97);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px var(--shadow-green-28-a6);
}
.mini-btn svg {
  height: 14px;
  width: 14px;
}
.source-card-top .stat-icon {
  height: 38px;
  width: 38px;
}
.station-panel {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 16px;
  padding: 19px 22px;
  margin: 18px 0 24px;
  animation: fadeLift 0.45s var(--motion-snap);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap);
}
.station-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.station-panel-title a {
  color: var(--text-green-50);
  letter-spacing: 0;
}
.station-observations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 10px;
}
.station-panel p {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  margin: 6px 0 0;
}
.resource-illustration {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: block;
}
.stat-illustration {
  width: 20px;
  height: 20px;
  display: block;
  filter: none !important;
}
.stat-icon .stat-illustration {
  width: 18px;
  height: 18px;
}
.resource-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-white-100-a7);
}
.resource-icon-wrap svg,
.resource-icon-wrap img {
  width: 15px;
  height: 15px;
  display: block;
}
.stat-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--card-accent, var(--bg-gray-93));
}
.stat-card[data-theme='street'] {
  --card-accent: var(--bg-green-56);
}
.stat-card[data-theme='air'] {
  --card-accent: var(--bg-amber-74);
}
.stat-card[data-theme='weather'] {
  --card-accent: var(--bg-amber-80);
}
.stat-card[data-theme='quake'] {
  --card-accent: var(--bg-blue-62);
}
.stat-icon.street {
  background: var(--bg-gray-97);
}
.stat-icon.air {
  background: var(--bg-white-100);
}
.stat-icon.warning,
.stat-icon.earthquake {
  background: var(--bg-gray-97);
}
.station-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px var(--shadow-green-28-a6);
}
.accountability-teaser .teaser-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--bg-gray-93);
  color: var(--text-green-50);
}
.accountability-teaser .teaser-mark svg {
  width: 27px;
  height: 27px;
}
.teaser-cta {
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-green-40);
  color: var(--text-white-100);
  border-radius: 10px;
  padding: 14px 17px;
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
}
.teaser-cta svg {
  width: 13px;
  height: 13px;
}
.teaser-cta:hover {
  background: var(--bg-green-47);
}
.gw-action-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 15px;
}
.gw-action-feature {
  border: 1px solid var(--line-gray-93);
  border-radius: 15px;
  background: var(--bg-white-100);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 15px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.gw-action-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--shadow-green-28-a6);
  border-color: var(--line-green-83);
}
.gw-action-feature > svg {
  width: 23px;
  height: 23px;
  color: var(--text-green-50);
  flex-shrink: 0;
}
.gw-action-feature > svg:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--text-green-68);
}
.gw-action-feature span {
  min-width: 0;
}
.gw-action-feature strong {
  display: block;
  font-size: 0.75rem;
  color: var(--text-green-32);
}
.gw-action-feature small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  line-height: 1.5;
  margin-top: 5px;
}
.gw-skyline {
  flex: 0 0 min(480px, 44%);
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  background: var(--bg-white-100);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px var(--shadow-teal-27-a9);
  overflow: hidden;
}
.gw-sky-art {
  position: relative;
  aspect-ratio: 16/11;
  min-height: 150px;
  overflow: hidden;
  background: var(--sky-bg, var(--bg-blue-79));
}
.gw-sky-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.gw-sky-photo.is-on {
  opacity: 1;
}
.gw-sky-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, var(--bg-gray-17-a42), var(--bg-gray-17-a0));
  pointer-events: none;
}
.gw-sky-time {
  position: absolute;
  z-index: 1;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-gray-21-a55);
  color: var(--text-white-100);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1px;
  backdrop-filter: blur(4px);
}
.gw-skyline figcaption {
  padding: 18px 22px;
}
.gw-skyline figcaption b {
  display: block;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: var(--text-green-32);
}
.gw-skyline figcaption span {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-green-59);
  font-weight: 600;
}
/* while a photo loads, the frame shows the sky color of that time of day */
.gw-skyline[data-phase='dawn'] {
  --sky-bg: var(--bg-amber-80);
}
.gw-skyline[data-phase='dusk'] {
  --sky-bg: var(--bg-orange-71);
}
.gw-skyline[data-phase='night'] {
  --sky-bg: var(--bg-blue-26);
}
.gw-home-mapcard {
  display: none;
}
@media (min-width: 771px) and (max-width: 1099px) {
  .resource-links {
    align-items: center;
    width: 100%;
  }
  .resource-links .trailing {
    display: none;
  }
  .status-orb {
    padding: 14px 0;
    justify-content: center;
    width: 58px;
    border-radius: 12px;
  }
  .status-orb > div {
    display: none;
  }
}
@media (max-height: 860px) and (min-width: 771px) {
  .resource-links a {
    padding: 10px 14px;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .resource-links a {
    width: 58px;
    justify-content: center;
    padding: 11px 0;
    font-size: 0;
    gap: 0;
  }
}
@media (max-width: 1300px) {
  .stat-card {
    padding: 19px 14px;
  }
  .stat-micro {
    font-size: 0.6875rem;
  }
}
@media (max-width: 1100px) {
  .gw-skyline {
    flex-basis: auto;
    margin-top: 0;
  }
}
@media (max-width: 1050px) {
  .station-observations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gw-action-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  /* Home and other pages at mid widths */
  .gw-action-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 771px) and (max-width: 900px) {
  .gw-action-strip {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) {
  .gw-action-feature:last-child {
    grid-column: 1/-1;
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .gw-action-feature:last-child {
    grid-column: auto;
  }
}
@media (max-width: 1000px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 771px) and (max-width: 1099px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .teaser-cta {
    margin-left: 0;
  }
}
@media (max-width: 770px) {
  .resource-links {
    display: none;
  }
  .stat-grid {
    gap: 9px;
  }
  .stat-number {
    font-size: 1.875rem;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-micro {
    font-size: 0.6875rem;
  }
  .stat-label,
  .stat-meta {
    font-size: 0.71875rem;
  }
  .map-top-actions .mini-btn {
    font-size: 0;
    gap: 0;
    padding: 9px;
  }
  .map-top-actions .mini-btn svg {
    height: 18px;
    width: 18px;
  }
  .below-map {
    display: block;
  }
  .below-map .text-link {
    margin-top: 11px;
  }
  .gw-action-strip {
    grid-template-columns: 1fr;
  }
  .gw-action-feature:last-child {
    grid-column: auto;
  }
  .gw-action-feature {
    padding: 14px;
  }
  /* Home: a calm card instead of a second full map (the Map tab has it) */
  .gw-home-mapcard {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 26px 0 6px;
    padding: 16px;
    border: 1px solid var(--line-gray-93);
    border-radius: 16px;
    background: linear-gradient(120deg, var(--bg-white-100), var(--bg-white-100) 70%);
    box-shadow: var(--shadow);
    text-align: left;
    cursor: pointer;
    color: inherit;
  }
  .gw-home-mapcard-art {
    display: grid;
    grid-template-columns: repeat(2, 26px);
    gap: 5px;
    padding: 9px;
    border-radius: 14px;
    background: var(--bg-gray-97);
    flex-shrink: 0;
  }
  .gw-home-mapcard-art img {
    width: 26px;
    height: 26px;
  }
  .gw-home-mapcard-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .gw-home-mapcard-go {
    width: 18px;
    height: 18px;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-green-55);
  }
  .gw-home-map-head,
  #overviewMapMount {
    display: none;
  }
  #view-overview .below-map {
    margin-top: 14px;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .map-top-actions .mini-btn {
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
  }
  .station-panel-title a {
    padding: 12px 0;
    margin: -12px 0;
  }
}
@media (max-width: 560px) {
  .station-observations,
  .gw-skyline {
    grid-template-columns: 1fr;
  }
  .gw-skyline figcaption {
    padding: 14px 16px;
  }
  .gw-skyline figcaption b {
    font-size: 1.0625rem;
  }
}
@media (max-width: 500px) {
  .teaser-cta {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 460px) {
  .map-top-actions .mini-btn {
    padding: 7px;
  }
}
@media (max-width: 430px) {
  .stat-top {
    align-items: flex-start;
  }
  .stat-micro {
    line-height: 1.3;
  }
}
@media (max-width: 770px) {
  .stat-micro {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
}
@media (max-width: 430px) {
  .stat-card {
    min-height: 173px;
  }
}
@container gwboard (max-width:560px) {
  .map-board .map-top-actions .mini-btn {
    font-size: 0;
    gap: 0;
    padding: 9px;
  }
  .map-board .map-top-actions .mini-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 770px) {
  /* phones: a wide, shorter photo so Home's actions show up sooner */
  .gw-sky-art {
    aspect-ratio: 2/1;
    min-height: 0;
  }
}

/* ==== 7. Map board: header, layers, canvas, controls, key ==================================================== */
/* Map is shared between Overview and Explore; map instance is never destroyed. */
.map-workspace {
  width: 100%;
}
.map-board {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  container: gwboard / inline-size;
  animation: fadeLift 0.45s var(--motion-snap);
}
.map-top {
  padding: 22px 23px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.map-title-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.map-title-row h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.8px;
  margin: 5px 0 0;
}
.map-point-label {
  border-radius: 30px;
  padding: 5px 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  margin-top: 5px;
  transition:
    background 0.22s ease,
    color 0.22s ease;
  background: var(--layer-soft);
  color: var(--layer-strong);
  border: 1px solid var(--layer-line);
}
.map-top-actions {
  display: flex;
  gap: 8px;
}
.layer-row {
  display: flex;
  gap: 5px;
  padding: 0 23px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.layer-tab {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: var(--bg-white-100);
  color: var(--text-green-59);
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.6875rem;
  box-shadow: inset 0 0 0 1px transparent;
  gap: 10px;
}
.layer-tab svg {
  height: 16px;
  width: 16px;
}
.layer-tab-glyph {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.86;
  object-fit: contain;
}
.layer-tab.active {
  background: var(--bg-teal-32);
  color: var(--text-gray-96);
  box-shadow: 0 8px 22px var(--shadow-teal-32-a13);
}
.layer-tab.active .layer-tab-glyph {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
  filter: none !important;
}
.layer-tab:hover:not(.active) {
  border-color: var(--line-gray-93);
  color: var(--text-green-41);
  background: var(--bg-white-100);
}
.map-filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 21px;
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-white-100));
  border-top: 1px solid var(--line-gray-96);
  border-bottom: 1px solid var(--line-gray-96);
}
.filter-clear {
  padding: 12px 12px;
}
.map-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  height: 470px;
}
.map-canvas {
  overflow: hidden;
  background: var(--bg-gray-97);
  isolation: isolate;
  position: relative;
  min-width: 0;
}
.map-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-white-100);
  border-left: 1px solid var(--line-gray-96);
}
.map-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 22px 18px 14px;
}
.map-side-head h4 {
  margin: 7px 0 0;
  font-size: 0.8125rem;
  letter-spacing: -0.25px;
  transition: color 0.22s ease;
  color: var(--layer-strong);
}
.map-side-count {
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  background: var(--layer-soft);
  color: var(--layer-strong);
  border: 1px solid var(--layer-line);
}
.map-results {
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
}
.map-side-footer {
  padding: 12px 17px;
  background: var(--bg-white-100);
  border-top: 1px solid var(--line-gray-96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-green-68);
  font-size: 0.6875rem;
  font-weight: 800;
}
.map-side-footer svg {
  height: 15px;
  width: 15px;
  color: var(--text-green-63);
}
.map-workspace-large .map-content {
  height: min(68vh, 700px);
}
.map-workspace-large .map-board {
  border-radius: 16px;
}
.map-fullscreen {
  position: fixed !important;
  inset: 14px !important;
  z-index: 1000 !important;
  width: auto !important;
  box-shadow: 0 20px 80px var(--shadow-teal-21-a50);
  border-radius: 16px;
}
.map-fullscreen .map-board {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.map-fullscreen .map-content {
  flex: 1;
  height: auto;
  min-height: 0;
}
.map-fullscreen .map-top {
  padding-top: 15px;
  padding-bottom: 12px;
}
.map-fullscreen .layer-row {
  padding-bottom: 12px;
}
body.map-open:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--bg-teal-20-a48);
}
body.map-open {
  overflow: hidden;
}
@media (max-width: 770px) {
  body.layers-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 990;
    background: var(--bg-teal-20-a48);
  }
}
.map-point {
  border: 2px solid var(--line-white-100);
  border-radius: 50%;
  background: var(--bg-green-56);
  box-shadow: 0 2px 8px var(--shadow-green-24-a31);
}
.map-board {
  border: 1px solid var(--line-gray-96);
  box-shadow: 0 18px 50px var(--shadow-green-28-a6);
  overflow: hidden;
}
.map-top {
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-white-100));
}
.scale-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.scale-bar span {
  height: 12px;
  background: var(--bg-green-69);
}
.scale-bar span:nth-child(2) {
  background: var(--bg-amber-87);
}
.scale-bar span:nth-child(3) {
  background: var(--bg-orange-78);
}
.scale-bar span:nth-child(4) {
  background: var(--bg-red-66);
}
.scale-bar span:nth-child(5) {
  background: var(--bg-purple-58);
}
.scale-bar span:nth-child(6) {
  background: var(--bg-red-51);
}
.scale-bar span:first-child {
  border-radius: 6px 0 0 6px;
}
.scale-bar span:last-child {
  border-radius: 0 6px 6px 0;
}
.scale-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  color: var(--text-gray-89);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.8;
  margin-top: 11px;
}
.map-tile-status {
  position: absolute;
  top: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-gray-92-a90);
  color: var(--text-green-52);
  border-radius: 9px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 9px 11px;
  box-shadow: 0 4px 16px var(--shadow-green-27-a13);
  max-width: min(63%, 370px);
  backdrop-filter: saturate(160%) blur(12px);
  z-index: 6;
  border-color: var(--layer-line);
  background: var(--bg-white-100-a94);
}
.map-tile-status[data-level='error'] {
  border-color: var(--line-amber-86);
  background: var(--bg-white-100-a97);
  color: var(--text-amber-51);
}
.map-tile-status[data-level='ok'] {
  background: var(--bg-white-100-a90);
}
.map-tile-status button {
  border: 0;
  border-radius: 6px;
  background: var(--bg-green-40);
  color: var(--text-white-100);
  padding: 5px 7px;
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
}
#mapZoom {
  border-left: 1px solid var(--line-gray-93);
  padding-left: 8px;
  white-space: nowrap;
  color: var(--text-green-59);
}
#liveMap .maplibregl-canvas {
  outline: none;
}
#liveMap .maplibregl-control-container .maplibregl-ctrl-bottom-left {
  z-index: 1;
}
#liveMap .maplibregl-ctrl-attrib {
  font: 0.6875rem/1.4 var(--body) !important;
  background: var(--bg-white-100-a84) !important;
  max-width: 84%;
}
#liveMap .maplibregl-ctrl-attrib a {
  text-decoration: underline;
}
#liveMap .maplibregl-ctrl-bottom-right {
  bottom: 58px;
}
#liveMap .maplibregl-ctrl-top-right {
  top: 60px;
  right: 4px;
}
#liveMap .maplibregl-ctrl-group {
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 14px var(--shadow-green-27-a16);
  background: var(--bg-white-100);
}
#liveMap .maplibregl-ctrl-group button + button {
  border-top-color: var(--line-gray-96);
}
#liveMap .maplibregl-ctrl-icon {
  filter: var(--map-icon-filter, none); /* the map library's own icons are dark: flipped in dark mode */
}
#liveMap .maplibregl-popup-content {
  border-radius: 12px;
  padding: 14px 18px;
  font: 0.6875rem/1.6 var(--body);
  max-width: 300px;
  box-shadow: 0 12px 38px var(--shadow-green-27-a16);
}
#liveMap .maplibregl-ctrl-attrib {
  font-size: 0.6875rem !important;
  line-height: 1.5 !important;
  background: var(--bg-white-100-a92);
  box-shadow: 0 1px 8px var(--shadow-green-27-a13);
}
#liveMap .maplibregl-popup-content h4 {
  font-size: 0.8125rem;
  margin: 0 0 5px;
}
#liveMap .maplibregl-popup-content p {
  margin: 5px 0;
  color: var(--text-green-59);
}
#liveMap .maplibregl-popup-content a {
  color: var(--text-green-50);
  font-weight: 800;
}
/* Protect map controls and attribution from overlapping overlay cards. */
#liveMap .maplibregl-ctrl-bottom-left {
  bottom: 0;
  left: 0;
}
.symbol-illustration {
  width: 40px;
  height: 40px;
  display: block;
  filter: none !important;
}
.layer-tab:not(.active) .layer-tab-glyph {
  opacity: 0.95;
}
.map-title-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.layer-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px var(--shadow-green-28-a6);
}
.layer-tab::after {
  content: '';
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.22s ease;
}
.layer-tab[data-layer='street'] .layer-tab-glyph {
  filter: drop-shadow(0 6px 12px var(--bg-green-40-a12));
}
.layer-tab[data-layer='air'] .layer-tab-glyph {
  filter: drop-shadow(0 6px 12px var(--bg-amber-63-a12));
}
.layer-tab[data-layer='quakes'] .layer-tab-glyph {
  filter: drop-shadow(0 6px 12px var(--bg-blue-53-a12));
}
.layer-tab[data-layer='fires'] .layer-tab-glyph {
  filter: drop-shadow(0 6px 12px var(--bg-orange-58-a12));
}
.layer-tab.active::after {
  background: var(--layer-accent);
}
body[data-active-layer='street'] .map-canvas {
  box-shadow: inset 0 0 0 1px var(--shadow-green-56-a6);
}
body[data-active-layer='air'] .map-canvas {
  box-shadow: inset 0 0 0 1px var(--shadow-amber-74-a8);
}
body[data-active-layer='quakes'] .map-canvas {
  box-shadow: inset 0 0 0 1px var(--shadow-blue-62-a8);
}
body[data-active-layer='fires'] .map-canvas {
  box-shadow: inset 0 0 0 1px var(--shadow-orange-67-a8);
}
.layer-tab .layer-tab-glyph {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none !important;
}
.map-track-link {
  color: var(--text-green-50);
  font-weight: 800;
  text-decoration: underline;
}
.map-result-follow {
  border: 1px solid var(--line-green-85);
  border-radius: 7px;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin: 0 12px 13px 17px;
}
.map-result-follow svg {
  height: 13px;
  width: 13px;
}
.map-result-follow:hover {
  background: var(--bg-gray-93);
}
.map-top-intro {
  max-width: 620px;
}
.gw-map-key {
  position: absolute;
  z-index: 8;
  bottom: 50px;
  left: 14px;
  width: min(328px, calc(100% - 28px));
  background: var(--bg-white-100-a94);
  border: 1px solid var(--line-gray-93);
  border-radius: 12px;
  box-shadow: 0 8px 28px var(--shadow-teal-32-a13);
  max-height: 60%;
  overflow: auto;
}
.gw-map-key summary::after {
  content: '⌄';
  float: right;
}
.gw-map-key[open] summary::after {
  content: '⌃';
}
.gw-map-key-body {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  display: block;
  padding: 10px 12px;
  max-height: 340px;
  overflow: auto;
}
.gw-map-key-body > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-green-41);
  line-height: 1.25;
}
.gw-map-key-body img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: none;
}
.gw-key-status {
  grid-column: 1/-1;
  border-top: 1px solid var(--line-gray-96);
  padding-top: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.6875rem;
}
#mapBoard :is(button, select, input):focus-visible {
  outline: 3px solid var(--gw-focus);
  outline-offset: 2px;
}
/* "Map ready" chip: never stretched, and it fades away once the map is ready */
.map-canvas .map-tile-status {
  top: 14px;
  bottom: auto;
  right: 62px;
  left: auto;
  max-width: min(330px, calc(100% - 250px));
  height: auto;
  transition: opacity 0.4s ease;
}
.gw-map-context-bar {
  border-top: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-green-52);
  min-height: 58px;
}
.gw-map-method-link {
  padding: 9px 12px;
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  border-radius: 9px;
  color: var(--text-green-50);
  cursor: pointer;
  font-weight: 750;
  font-size: 0.6875rem;
  min-height: 42px;
}
.gw-map-method-link:hover {
  background: var(--bg-gray-97);
}
#liveMap .maplibregl-ctrl-attrib.maplibregl-compact {
  min-height: 25px;
  min-width: 25px;
}
/* balanced map key, "just in" reports, live freshness line */
.key-cluster {
  flex: none;
  border-radius: 50%;
  place-items: center;
  font: 800 0.6875rem/1 var(--body);
  font-style: normal;
  color: var(--text-white-100);
  box-sizing: border-box;
  display: inline-grid;
  width: 24px;
  height: 24px;
  font-size: 0.6875rem;
  vertical-align: middle;
  margin-right: 4px;
  background: var(--bg-teal-27);
  border: 3px solid var(--line-green-57);
  box-shadow: none;
}
.map-new-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-green-69);
  color: var(--text-white-100);
  font-size: 0.6875rem;
  font-weight: 800;
  animation: gwPop 0.4s ease-out;
}
.map-new-chip[hidden] {
  display: none;
}
.map-freshness {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-green-52);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
/* details card */
.map-sheet {
  position: absolute;
  z-index: 12;
  left: 14px;
  bottom: 14px;
  width: min(360px, calc(100% - 28px));
  max-height: min(62%, 420px);
  overflow: auto;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 16px;
  box-shadow: 0 14px 40px var(--shadow-teal-33-a22);
  padding: 16px 16px 14px;
  animation: gwSheet 0.22s ease-out;
}
.map-sheet[hidden] {
  display: none;
}
.map-sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-gray-97);
  color: var(--text-green-41);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
}
/* near me */
.map-near-btn {
  font-weight: 800;
}
.map-near-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-green-83);
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  font: 800 0.6875rem var(--body);
  cursor: pointer;
  min-height: 30px;
}
.map-near-chip[hidden] {
  display: none;
}
/* Combine layers: every source, with live counts; the main layer is marked */
.gw-key-head {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-green-59);
  margin: 8px 0 6px;
}
.gw-key-head:first-child {
  margin-top: 0;
}
.gw-key-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.gw-key-grid > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.6875rem;
  color: var(--text-green-41);
  line-height: 1.25;
}
.gw-key-area {
  display: inline-block;
  width: 16px;
  height: 11px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-left: 6px;
}
.gw-key-area.fire {
  background: var(--bg-red-63-a35);
  border: 2px solid var(--line-red-50);
}
.gw-key-area.flag {
  background: var(--bg-red-58-a10);
  border: 2px dashed var(--line-red-58);
}
.gw-key-area.flood {
  background: var(--bg-blue-59-a20);
  border: 2px dashed var(--line-blue-51);
}
.layer-tab .flood-glyph {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
.maplibregl-marker.gw-near-handle {
  z-index: 3;
}
.map-near-btn.is-on {
  background: var(--bg-gray-97);
  border-color: var(--line-green-83);
  color: var(--text-green-50);
}
/* Map credits: a white round button around the black "i"; tap to open the credits, tap again to close them */
/* 6.2.2: bottom left, away from the zoom, location and Layers buttons on the right, so they never collide on a short
   map; the credits open to the right of the button as one slim line */
#liveMap .gw-info-ctrl {
  position: relative;
  margin: 0 0 10px 10px;
  clear: both;
  float: left;
}
.gw-info-btn {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--bg-white-100);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 2px 10px var(--shadow-green-25-a24),
    0 0 0 1px var(--shadow-green-28-a6);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.gw-info-btn:hover {
  transform: scale(1.07);
  box-shadow:
    0 4px 14px var(--shadow-green-24-a31),
    0 0 0 1px var(--shadow-teal-27-a9);
}
.gw-info-btn:focus-visible {
  outline: 3px solid var(--line-green-78);
  outline-offset: 2px;
}
.gw-info-btn svg.gw-info-dot {
  width: 16px;
  height: 16px;
  stroke: none;
  display: block;
}
.gw-info-btn::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
}
/* small to look at, easy to tap */
.gw-info-ctrl.is-open .gw-info-btn {
  box-shadow:
    0 0 0 2px var(--shadow-gray-21-a14),
    0 2px 8px var(--shadow-green-25-a24);
}
.gw-info-panel {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  width: max-content;
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 16px;
  padding: 8px 14px;
  font: 600 0.6875rem/1.45 var(--body);
  box-shadow:
    0 4px 16px var(--shadow-green-27-a16),
    0 0 0 1px var(--shadow-green-28-a6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-10px, -50%) scale(0.96);
  transform-origin: left center;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0s linear 0.22s;
}
.gw-info-panel a {
  color: var(--text-green-41);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gw-info-ctrl.is-open .gw-info-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
/* small maps (6.2.2): slimmer still */
.gw-info-ctrl.is-narrow .gw-info-panel {
  padding: 4px 9px;
  border-radius: 10px;
  line-height: 1.3;
}
.gw-info-panel p {
  margin: 0;
}
.gw-map-context-bar .gw-map-key summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 4px 2px;
  list-style: none;
  cursor: pointer;
  justify-content: flex-start;
}
.gw-map-context-bar .gw-map-key summary::-webkit-details-marker {
  display: none;
}
.gw-map-context-bar .gw-map-key summary::after {
  content: none;
}
.gw-key-sum-pins {
  display: flex;
  align-items: flex-end;
  flex: none;
}
.gw-key-sum-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.gw-key-sum-text small {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gw-key-sum-chev {
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 2px solid var(--line-green-56);
  border-bottom: 2px solid var(--line-green-56);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
  margin-left: 2px;
}
.gw-map-key[open] .gw-key-sum-chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.gw-map-context-bar .gw-map-key-body {
  display: block;
  max-height: none;
  overflow: visible;
  padding: 4px 2px 12px;
}
.gw-map-context-bar .gw-key-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px 14px;
}
.gw-map-context-bar .gw-key-head {
  margin-top: 10px;
}
.gw-map-context-bar .gw-map-method-link {
  flex: none;
  margin-top: 6px;
  min-height: 36px;
  padding: 7px 12px;
}
.gw-map-key summary:focus-visible {
  outline: 3px solid var(--line-green-78);
  outline-offset: 2px;
  border-radius: 8px;
}
.map-canvas .map-tile-status.is-quiet {
  opacity: 0;
  pointer-events: none;
}
/* full screen (the board itself gets .map-fullscreen): the map fills the window, the list stays scrollable */
.map-board.map-fullscreen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.map-board.map-fullscreen .map-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
.map-board.map-fullscreen .map-canvas {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
}
.map-board.map-fullscreen .map-side {
  flex: 0 0 auto;
  height: min(32vh, 300px);
  min-height: 0;
}
/* in full screen the map comes first: no section intro, add-on layers in one sideways row, compact header */
.map-board.map-fullscreen .map-freshness {
  display: none;
}
.map-board.map-fullscreen .map-top {
  padding: 10px 14px;
}
.map-board.map-fullscreen .layer-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 14px 8px;
}
.map-board.map-fullscreen .layer-tab {
  flex: 0 0 auto;
}
.map-board.map-fullscreen .gw-map-context-bar .gw-map-key-body {
  max-height: 38vh;
  overflow: auto;
}
@media (max-width: 1300px) {
  .map-content {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .map-filter-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 1090px) {
  .map-tile-status {
    top: auto;
    bottom: 58px;
    right: 10px;
  }
}
@media (max-width: 1000px) {
  .map-content {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .map-side-head {
    padding: 18px 13px;
  }
}
@media (max-width: 980px) {
  .map-title-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
.map-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 900px) {
  .symbol-illustration {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 770px) {
  .map-content {
    height: auto;
    display: block;
  }
  .map-canvas {
    height: 430px;
  }
  .map-side {
    height: 295px;
    border-left: 0;
    border-top: 1px solid var(--line-gray-96);
  }
}
.map-side {
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-white-100));
  border-left: 1px solid var(--line-gray-96);
}
@media (max-width: 770px) {
  .map-side-head {
    padding: 15px;
  }
  .map-filter-row {
    gap: 7px;
    padding: 10px;
  }
  .map-top {
    padding: 14px;
  }
  .layer-row {
    padding: 0 12px 12px;
  }
}
.layer-row {
  padding-top: 10px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
@media (max-width: 770px) {
  .layer-tab {
    padding: 9px 10px;
  }
}
.layer-tab {
  position: relative;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap),
    border-color 0.22s var(--motion-snap),
    background 0.22s var(--motion-snap),
    color 0.22s var(--motion-snap);
}
@media (max-width: 980px) {
  .layer-tab {
    min-height: 44px;
    padding: 10px 12px;
  }
}
.layer-tab {
  font-size: 0.75rem;
  min-height: 44px;
  gap: 8px;
}
@media (max-width: 770px) {
  .map-workspace-large .map-content {
    height: auto;
  }
  .map-workspace-large .map-canvas {
    height: calc(100svh - 330px);
    min-height: 370px;
  }
}
.map-fullscreen .map-canvas {
  min-height: 0;
}
@media (max-width: 770px) {
  .map-fullscreen {
    inset: 6px !important;
  }
  .map-fullscreen .map-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .map-fullscreen .map-canvas {
    height: 50%;
    flex: 1;
  }
  .map-fullscreen .map-side {
    height: 135px;
    flex: 0 0 135px;
    min-height: 0;
  }
  .map-fullscreen .layer-row {
    padding: 0 9px 8px;
  }
  .map-fullscreen .map-filter-row {
    padding: 5px;
  }
  .map-content .map-canvas {
    min-height: 340px;
  }
  .map-fullscreen .map-canvas {
    min-height: 180px;
  }
  .map-tile-status {
    left: auto;
    right: 9px;
    bottom: 58px;
    max-width: 65%;
    font-size: 0.6875rem;
    padding: 7px;
  }
  .map-tile-status #mapZoom {
    display: none;
  }
  #liveMap .maplibregl-ctrl-bottom-right {
    bottom: 80px;
  }
}
/* The OpenMapTiles/OSM attribution remains visible in the map corner, unobstructed. */
#liveMap .maplibregl-ctrl-bottom-right {
  z-index: 4;
  bottom: 0;
  right: 0;
}
@media (max-width: 770px) {
  #liveMap .maplibregl-ctrl-top-right {
    top: 68px;
    right: 0;
  }
  .layer-tab-glyph {
    width: 16px;
    height: 16px;
  }
}
.layer-tab-glyph {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 0.22s ease;
}
@media (max-width: 770px) {
  .map-canvas .gw-map-key:not([open]) {
    width: 180px;
  }
  .gw-map-context-bar {
    padding: 10px 12px;
    align-items: flex-start;
  }
}
/* Map key & symbols: in the bar under the map (no longer covering it), opens downward */
.gw-map-context-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 14px 6px 16px;
  min-height: 0;
  flex-wrap: nowrap;
}
@media (max-width: 770px) {
  .map-sheet {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 70%;
    border-radius: 18px;
  }
}
/* Map details card */
.map-sheet {
  width: min(390px, calc(100% - 28px));
  max-height: min(80%, 600px);
}
@media (max-width: 770px) {
  .map-sheet {
    max-height: 80%;
  }
  .gw-key-head {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
  .map-point-label,
  .map-side-count,
  .gw-key-status,
  .key-cluster,
  #mapSourceText,
  #mapTileText {
    font-size: 0.71875rem;
  }
  .scale-labels span {
    font-size: 0.6875rem;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) {
    display: flex;
    flex-direction: column;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) > .map-top {
    order: 1;
    padding: 12px 14px 8px;
    flex-wrap: nowrap;
    align-items: center;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) > .layer-row {
    order: 2;
    padding: 0 12px 10px;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) > .map-content {
    display: contents;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) .map-canvas {
    order: 3;
    height: calc(100svh - 330px);
    min-height: 340px;
    max-height: 640px;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) > .map-filter-row {
    order: 4;
    border-top: 1px solid var(--line-gray-96);
  }
  #exploreMapMount .map-board:not(.map-fullscreen) .map-side {
    order: 5;
    height: 340px;
  }
  #exploreMapMount .map-board:not(.map-fullscreen) > .gw-map-context-bar {
    order: 6;
  }
  #exploreMapMount .map-title-row h3 {
    font-size: 1.125rem;
    margin: 0;
  }
  #exploreMapMount .map-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
  }
  #exploreMapMount .map-title-meta {
    margin: 0;
  }
  #exploreMapMount .map-freshness {
    flex-basis: 100%;
    font-size: 0.71875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
  }
  #exploreMapMount .map-top-intro {
    flex: 1;
  }
  #exploreMapMount .map-top-actions {
    width: auto;
    flex-shrink: 0;
    gap: 6px;
  }
  .map-tile-status[data-level='ok'] {
    display: none;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .maplibregl-ctrl-group button {
    width: 44px !important;
    height: 44px !important;
  }
  .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
    background-size: 24px;
  }
  .map-result-follow {
    min-height: 44px;
  }
  .map-track-link,
  .gw-info-panel a {
    padding: 10px 0;
    margin: -10px 0;
  }
  #mapBasemap {
    min-height: 36px;
  }
  /* desktop notifications don't apply on phones */
  #mapWheel {
    display: none !important;
  }
}
@media (max-width: 620px) {
  .map-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}
.map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
@media (max-width: 620px) {
  .map-top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .map-top-intro {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .gw-map-key {
    left: 10px;
    bottom: 45px;
    max-height: 40%;
  }
  .gw-map-key:not([open]) {
    width: 145px;
  }
}
.map-canvas .gw-map-key {
  left: 14px;
  bottom: 14px;
  z-index: 9;
  width: min(308px, calc(100% - 110px));
  max-height: 65%;
  background: var(--bg-white-100-a97);
  border: 1px solid var(--line-gray-93);
  box-shadow: 0 7px 24px var(--shadow-green-27-a16);
  overflow: auto;
  backdrop-filter: blur(14px);
}
.gw-map-key:not([open]) {
  width: 185px;
}
@media (max-width: 770px) {
  .map-canvas .gw-map-key {
    bottom: 14px;
    left: 9px;
    width: min(280px, calc(100% - 86px));
    max-height: 62%;
  }
}
.gw-map-context-bar .gw-map-key {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-height: none;
  overflow: visible;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  z-index: auto;
}
@media (max-width: 600px) {
  .gw-map-key-body {
    grid-template-columns: 1fr 1fr;
  }
}
.gw-map-key-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .map-filter-row {
    gap: 8px;
  }
  .gw-map-context-bar {
    padding: 4px 10px 4px 12px;
    gap: 8px;
  }
  .gw-key-sum-text small {
    display: none;
  }
  .gw-map-context-bar .gw-key-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .gw-map-context-bar .gw-map-method-link {
    font-size: 0;
    padding: 7px 10px;
  }
  .gw-map-context-bar .gw-map-method-link::after {
    content: 'Sources ↗';
    font-size: 0.6875rem;
  }
}
@media (max-width: 460px) {
  .map-top-actions {
    gap: 4px;
  }
  .map-tile-status {
    max-width: 70%;
  }
}
@media (max-width: 770px) {
  .map-tile-status {
    bottom: auto;
    top: 10px;
    max-width: 66%;
  }
}
@media (max-width: 460px) {
  .map-tile-status #mapTileText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.map-tile-status #mapTileText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
@media (max-width: 430px) {
  .map-title-row {
    display: block;
  }
}
.map-title-row {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 430px) {
  .map-point-label {
    display: inline-block;
    margin-top: 6px;
  }
}
@media (max-width: 430px) {
  .map-filter-row .filter-clear {
    display: none;
  }
  .scale-labels {
    font-size: 0.6875rem;
  }
}
@media (max-width: 380px) {
  .map-tile-status {
    font-size: 0.6875rem;
  }
  .map-canvas .gw-map-key:not([open]) {
    width: 163px;
  }
}
.gw-map-context-bar .gw-map-key:not([open]) {
  width: auto;
}
@media (max-width: 380px) {
  #exploreMapMount .map-title-row h3 {
    font-size: 1rem;
  }
}
@container gwboard (max-width:880px) {
  /* The map board adapts to its own width */
  .map-board .map-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }
  .map-board .map-canvas {
    height: clamp(360px, 62vh, 560px);
  }
  .map-board .map-side {
    height: 360px;
    border-left: 0;
    border-top: 1px solid var(--line-gray-96);
  }
  .map-board .map-filter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 8px;
    padding: 10px 14px;
  }
  .map-board .map-top {
    flex-wrap: wrap;
    padding: 16px;
  }
  .map-board .map-title-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .map-board .layer-row {
    padding: 0 16px 12px;
  }
}
@container gwboard (max-width:560px) {
  .map-board .map-filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .map-board .map-filter-row .filter-clear {
    min-height: 40px;
  }
  .map-board .map-canvas {
    height: clamp(340px, 56vh, 480px);
  }
  .map-board .map-side {
    height: 320px;
  }
  .map-board .map-top-actions {
    flex-wrap: wrap;
  }
  .map-canvas .map-tile-status {
    max-width: calc(100% - 140px);
  }
  /* phones: layers and add-ons scroll sideways in one row, so the map comes up sooner */
  .map-board .layer-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, var(--bg-black-0) 88%, transparent);
    mask-image: linear-gradient(90deg, var(--bg-black-0) 88%, transparent);
  }
}
.map-board.map-fullscreen > * {
  flex-shrink: 0;
}
@container gwboard (max-width:560px) {
  .map-board .layer-row::-webkit-scrollbar {
    display: none;
  }
  .map-board .layer-tab {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
  .map-board.map-fullscreen .map-filter-row .filter-clear {
    display: none;
  }
  .map-board.map-fullscreen .map-side {
    height: min(26vh, 220px);
  }
  .map-board.map-fullscreen .map-title-meta {
    display: none;
  }
}
@container gwboard (min-width:881px) {
  .map-board.map-fullscreen .map-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: minmax(0, 1fr);
  }
  .map-board.map-fullscreen .map-canvas {
    height: 100%;
    min-height: 0;
  }
  .map-board.map-fullscreen .map-side {
    height: auto;
  }
}

/* Layers: one button on the map, like other map apps. It opens what else to show, how street reports look and the
   map style; on phones it opens as a bottom sheet. */
.gw-layers-btn {
  display: grid;
  place-items: center;
  color: var(--text-green-32);
}
.gw-layers-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}
.gw-layers-btn[aria-expanded='true'] {
  background: var(--bg-gray-97);
}
.map-layers {
  position: absolute;
  top: 10px;
  right: 54px;
  z-index: 8;
  width: min(320px, calc(100% - 72px));
  max-height: calc(100% - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 16px;
  box-shadow: 0 18px 44px var(--shadow-green-27-a16);
  padding: 12px 14px 10px;
}
.map-layers[hidden] {
  display: none;
}
.map-layers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.map-layers-head h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-green-32);
}
.map-layers-close {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 1.375rem;
  color: var(--text-green-52);
  cursor: pointer;
}
.map-layers section {
  padding: 10px 0;
  border-top: 1px solid var(--line-gray-96);
}
.map-layers section[hidden] {
  display: none;
}
.map-layers h5 {
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-green-52);
}
.overlay-options {
  display: grid;
  gap: 2px;
}
.overlay-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-green-41);
  cursor: pointer;
}
.overlay-chip:hover {
  background: var(--bg-gray-97);
}
.overlay-chip:has(input:focus-visible) {
  outline: 3px solid var(--line-green-83);
  outline-offset: 1px;
}
.overlay-chip input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bg-green-53);
  cursor: pointer;
}
.overlay-chip input:disabled {
  opacity: 1;
  cursor: default;
}
.overlay-chip img {
  flex: none;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.overlay-chip > svg {
  flex: none;
  width: 18px;
  height: 22px;
  margin: 0 2px;
}
.overlay-name {
  flex: 1;
}
.overlay-count {
  min-width: 30px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-gray-97);
  color: var(--text-green-52);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}
.overlay-chip.is-main {
  cursor: default;
}
.overlay-chip.is-main:hover {
  background: none;
}
.overlay-chip.is-main .overlay-count {
  background: var(--layer-accent, var(--bg-green-56));
  color: var(--text-white-100);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.map-mode,
.map-styles {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-gray-97);
}
.mode-btn,
.map-style-btn {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--text-green-52);
  cursor: pointer;
}
.mode-btn.selected,
.map-style-btn[aria-checked='true'] {
  background: var(--bg-teal-32);
  color: var(--text-white-100);
}
.map-wheel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 8px;
  border-top: 1px solid var(--line-gray-96);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-green-41);
  cursor: pointer;
}
.map-wheel-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bg-green-53);
}
@media (pointer: coarse) {
  .map-wheel-row {
    display: none;
  }
}
@media (max-width: 770px) {
  .map-layers {
    position: fixed;
    inset: auto 0 0;
    width: auto;
    max-height: 78vh;
    z-index: 995;
    border-radius: 20px 20px 0 0;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px var(--shadow-green-27-a16);
  }
}

/* ==== 8. Pins, groups and Find my location =================================================================== */
.circle-label {
  height: 35px;
  width: 35px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px var(--shadow-green-28-a6);
}
.circle-label.weather {
  background: var(--bg-amber-97);
  color: var(--text-orange-70);
}
.circle-label.seismic {
  background: var(--bg-gray-97);
  color: var(--text-blue-68);
}
.circle-label.fires {
  background: var(--bg-amber-97);
  color: var(--text-red-67);
}
.circle-label svg {
  width: 20px;
  height: 20px;
}
/* cluster bubbles with status ring. The OUTER element (.gw-cluster-anchor) is positioned by MapLibre with a
   transform every frame, so it must not get position or transition rules (that caused the drift). */
.gw-cluster-anchor {
  cursor: pointer;
  line-height: 0;
}
/* Group markers: stacked pins + count badge with the status ring */
.gw-cluster {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  width: calc(var(--pin) * 1.9);
  height: calc(var(--pin) * 1.12);
  border-radius: 0;
  filter: none;
}
.gw-cluster:hover {
  transform: scale(1.06);
}
.gw-cluster .gw-cluster-new {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-green-69);
  border: 2px solid var(--line-white-100);
  box-sizing: border-box;
  animation: gwBlink 1.6s ease-in-out infinite;
  top: -4px;
  left: auto;
  right: 24px;
  z-index: 4;
}
/* Pins in lists, keys, chips and cards */
.gw-pin-svg {
  display: block;
  flex: none;
  overflow: visible;
  filter: drop-shadow(0 1px 1.5px var(--bg-blue-29-a28));
}
.map-sheet .sheet-kicker .gw-pin-svg {
  margin: -4px 0;
}
/* Find my location (6.2.2): one slim bar on the map with the count, a size menu and × to turn it off. It used to be
   a card with five size buttons and a hint that covered a big part of a phone's map. */
.gw-near-panel {
  position: absolute;
  z-index: 8;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(340px, calc(100% - 76px));
  background: var(--bg-white-100-a97);
  border: 1px solid var(--line-gray-93);
  border-radius: 14px;
  box-shadow: 0 6px 20px var(--shadow-green-27-a16);
  padding: 4px 4px 4px 12px;
  backdrop-filter: blur(12px);
}
.gw-near-panel[hidden] {
  display: none;
}
.gw-near-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-blue-68);
  border: 2px solid var(--line-white-100);
  box-shadow: 0 0 0 3px var(--shadow-blue-68-a25);
  flex: none;
}
.gw-near-title {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.2;
}
.gw-near-title small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  font-weight: 700;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gw-near-size {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  min-height: 36px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--line-gray-93);
  border-radius: 10px;
  background-color: var(--bg-gray-97);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-green-52) 50%),
    linear-gradient(135deg, var(--text-green-52) 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 52%,
    calc(100% - 10px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--text-green-32);
  font: 800 0.75rem var(--body);
  cursor: pointer;
}
.gw-near-off {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-gray-93);
  border-radius: 10px;
  background: var(--bg-white-100);
  color: var(--text-green-41);
  cursor: pointer;
}
.gw-near-off svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.gw-near-off:hover {
  background: var(--bg-red-93);
  color: var(--text-red-50);
}
.gw-near-handle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-white-100);
  border: 2px solid var(--line-green-58);
  box-shadow: 0 3px 10px var(--shadow-green-24-a31);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
}
.gw-near-handle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-green-55);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gw-near-handle:focus-visible {
  outline: 3px solid var(--line-green-83);
  outline-offset: 2px;
}
.gw-key-sum-pins .gw-pin-svg {
  margin-right: -5px;
}

/* ==== 9. Results list beside the map ========================================================================= */
.result {
  display: block;
  width: 100%;
  border-top: 1px solid var(--line-gray-96);
  text-align: left;
  background: var(--bg-white-100);
  padding: 15px 18px;
  border-radius: 16px;
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap),
    background 0.22s var(--motion-snap),
    border-color 0.22s var(--motion-snap);
  border: 1px solid var(--line-gray-96);
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.result:hover,
.result.selected {
  background: var(--bg-white-100);
}
.result:hover {
  transform: translateX(3px);
  box-shadow: 0 14px 24px var(--shadow-green-28-a6);
  border-color: var(--layer-line);
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-white-100));
}
.result-top {
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.result-tag {
  color: var(--text-green-63);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.7px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 800;
}
.result-tag svg {
  width: 12px;
  height: 12px;
}
.result-time {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  white-space: nowrap;
}
.result h5 {
  color: var(--text-green-41);
  font-size: 0.6875rem;
  line-height: 1.5;
  margin: 8px 0 3px;
  font-weight: 800;
}
.result-desc {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.result-footer {
  margin-top: 8px;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-green-68);
}
.result-footer svg {
  height: 12px;
  width: 12px;
}
.result-empty {
  padding: 24px 18px;
  color: var(--text-green-68);
  line-height: 1.9;
  font-size: 0.6875rem;
  font-weight: 700;
}
.result-tag-street {
  background: var(--bg-gray-97);
  color: var(--text-green-41);
}
.result-tag-air {
  background: var(--bg-white-100);
  color: var(--text-amber-51);
}
.result-tag-quakes {
  background: var(--bg-gray-97);
  color: var(--text-blue-43);
}
.result-tag-fires {
  background: var(--bg-gray-97);
  color: var(--text-orange-48);
}
.result-tag-fires {
  background: var(--bg-red-93);
  color: var(--text-red-45);
}
.result-top svg {
  width: 13px;
  height: 13px;
}
#mapResults .result-empty {
  border-radius: 14px;
  background: var(--bg-white-100);
  border: 1px dashed var(--line-gray-93);
}
.result-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--bg-white-100);
  border-radius: 9px;
}
.result-symbol img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.result-top .result-time {
  margin-left: auto;
}
.result-tag.status-open {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.result-tag.status-progress {
  background: var(--bg-amber-97);
  color: var(--text-amber-51);
}
.result-tag.status-closed {
  background: var(--bg-gray-97);
  color: var(--text-blue-48);
}
.result-tag.status-unknown {
  background: var(--bg-gray-97);
  color: var(--text-green-59);
}
.result-new {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-left: 6px;
}
.map-sheet .sheet-kicker .result-tag {
  letter-spacing: 0;
}
.result-symbol.result-pin {
  background: none;
  width: 30px;
  height: 34px;
  flex-basis: 30px;
}
.result-tag.status-fire {
  background: var(--bg-red-93);
  color: var(--text-red-45);
}
.result-tag.status-alert,
.result-tag-floods {
  background: var(--bg-gray-97);
  color: var(--text-blue-43);
}
/* Results list: endless scrolling */
.result-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px 22px;
  color: var(--text-green-59);
  font-size: 0.75rem;
  font-weight: 700;
}
.result-more small {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 700;
}
.result-more-btn {
  margin-top: 4px;
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 10px;
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.75rem;
}
.result-more-note {
  display: block;
  max-width: 240px;
  text-align: center;
  line-height: 1.45;
  margin-top: 4px;
}
@media (max-width: 1000px) {
  .result {
    padding: 13px;
  }
}
@media (max-width: 770px) {
  .result-tag,
  .result-new {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
  .result-time {
    font-size: 0.71875rem;
  }
  .result-desc {
    font-size: 0.75rem;
    line-height: 1.55;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .result-more-btn {
    min-height: 44px;
  }
}

/* ==== 10. Details sheet ======================================================================================= */
.map-sheet .sheet-dist {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
  background: var(--bg-gray-97);
  padding: 4px 8px;
  border-radius: 999px;
}
.map-sheet .sheet-content h4 {
  margin: 0 40px 4px 0;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--text-green-32);
}
.map-sheet .sheet-content p {
  margin: 4px 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-green-52);
}
.map-sheet .sheet-content a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
  color: var(--text-green-50);
}
.map-sheet .sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.map-sheet .sheet-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--text-green-59);
  margin: 2px 44px 6px 0;
  flex-wrap: wrap;
}
.map-sheet .sheet-kicker img {
  width: 26px;
  height: 26px;
}
.map-sheet .sheet-title {
  margin: 6px 0 3px;
  font-size: 1.3125rem;
  line-height: 1.2;
  color: var(--text-green-32);
  letter-spacing: -0.4px;
}
.map-sheet .sheet-address {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: var(--text-green-52);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.sheet-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 12px;
  padding: 0;
  --step: var(--bg-green-56);
}
.sheet-steps.stage-2 {
  --step: var(--bg-amber-74);
}
.sheet-steps.stage-3 {
  --step: var(--bg-gray-52);
}
.sheet-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--text-green-68);
}
.sheet-steps li:before {
  content: '';
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--bg-gray-93);
}
.sheet-steps li:first-child:before {
  display: none;
}
.sheet-steps li i {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-white-100);
  border: 3px solid var(--line-green-90);
  position: relative;
  z-index: 1;
}
.sheet-steps li.done i {
  background: var(--step);
  border-color: var(--step);
}
.sheet-steps li.done:before,
.sheet-steps li.current:before {
  background: var(--step);
}
.sheet-steps li.current i {
  border-color: var(--step);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--step) 20%, transparent);
}
.sheet-steps li.current span {
  color: var(--text-green-32);
  font-weight: 800;
}
.sheet-rows {
  margin: 0;
  border-top: 1px solid var(--line-gray-96);
}
.sheet-rows > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line-gray-96);
  font-size: 0.78125rem;
  align-items: center;
}
.sheet-rows dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-green-59);
  font-weight: 700;
}
.sheet-rows dt svg {
  width: 15px;
  height: 15px;
  color: var(--text-green-68);
}
.sheet-rows dd {
  margin: 0;
  color: var(--text-green-32);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}
.sheet-rows dd small {
  color: var(--text-green-59);
  font-weight: 600;
}
.sheet-case {
  font-variant-numeric: tabular-nums;
}
.sheet-copy {
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.6875rem;
  font-weight: 800;
}
.sheet-nearby {
  margin-top: 16px;
}
.sheet-nearby h5 {
  margin: 0 0 8px;
  font-size: 0.84375rem;
  color: var(--text-green-32);
}
.sheet-near-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  border-radius: 12px;
  padding: 9px 10px;
  margin-bottom: 6px;
  color: inherit;
  transition: background 0.15s;
}
.sheet-near-row:not(:disabled):hover {
  background: var(--bg-gray-97);
}
.sheet-near-row:disabled {
  opacity: 1;
  cursor: default;
}
.sheet-near-row img {
  width: 28px;
  height: 28px;
  flex: none;
}
.sheet-near-row span {
  flex: 1;
  min-width: 0;
}
.sheet-near-row small {
  display: block;
  font-size: 0.71875rem;
  color: var(--text-green-59);
  margin-top: 2px;
  line-height: 1.4;
}
.sheet-near-row svg {
  width: 15px;
  height: 15px;
  color: var(--text-green-68);
}
.map-sheet .sheet-note {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  margin: 10px 0 0;
  line-height: 1.5;
}
/* Wildfire details card */
.sheet-contain {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
}
.sheet-contain > div {
  flex: 1;
  height: 8px;
  border-radius: 8px;
  background: var(--bg-red-90);
  overflow: hidden;
}
.sheet-contain > div span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-green-53), var(--bg-green-56));
  border-radius: 8px;
}
.acc-block .sheet-steps {
  margin: 6px 0 4px;
}
@media (max-width: 770px) {
  .sheet-rows > div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

/* ==== 11. Report a problem ==================================================================================== */
.gw-heading {
  margin-bottom: 28px;
}
.gw-honest-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  line-height: 1.6;
  margin: 0 0 25px;
}
.gw-honest-banner svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.gw-service-banner {
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 18px;
  color: var(--text-green-52);
}
.gw-service-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.gw-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.gw-steps span {
  border-radius: 10px;
  border: 1px solid var(--line-gray-93);
  padding: 12px 14px;
  background: var(--bg-white-100);
  color: var(--text-green-59);
  font-size: 0.6875rem;
  font-weight: 800;
}
.gw-steps span.active {
  color: var(--text-green-41);
  border-color: var(--line-green-78);
  background: var(--bg-gray-97);
}
.gw-steps span.done {
  color: var(--text-green-55);
  background: var(--bg-white-100);
}
.gw-report-panel {
  padding: 28px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 18px;
  box-shadow: 0 18px 38px var(--shadow-teal-32-a13);
}
.gw-report-stage h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.gw-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gw-category {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-gray-96);
  padding: 19px;
  cursor: pointer;
  min-width: 0;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.gw-category:has(input:checked) {
  background: var(--bg-gray-97);
  border-color: var(--line-green-78);
  box-shadow: 0 0 0 2px var(--shadow-green-91);
}
.gw-category:focus-within {
  outline: 3px solid var(--line-green-83);
  outline-offset: 2px;
}
.gw-category input {
  position: absolute;
  top: 16px;
  right: 16px;
  accent-color: var(--bg-green-53);
  width: 16px;
  height: 16px;
}
.gw-category small {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-green-59);
  max-width: 180px;
}
.gw-cat-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-gray-97);
  color: var(--text-green-59);
  font-size: 1.5625rem;
}
.gw-cat-symbol svg {
  width: 21px;
  height: 21px;
}
.gw-next {
  margin-top: 22px;
}
.gw-next svg,
.gw-stage-actions svg {
  width: 14px;
  height: 14px;
}
.gw-evidence-notice {
  margin: 16px 0;
  padding: 13px;
  border-left: 3px solid var(--line-amber-74);
  background: var(--bg-white-100);
  color: var(--text-amber-50);
  font-size: 0.6875rem;
  line-height: 1.65;
  border-radius: 0 10px 10px 0;
}
.gw-possible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}
.gw-possible-head h3 {
  font-size: 1.0625rem;
  color: var(--text-green-32);
  letter-spacing: -0.3px;
  margin: 0;
}
.gw-fine {
  font-size: 0.6875rem !important;
  margin: 8px 0 16px !important;
}
.gw-matches {
  background: var(--bg-white-100);
  border-radius: 13px;
  border: 1px dashed var(--line-gray-93);
  padding: 13px;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-green-59);
}
.gw-match {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-white-100);
  padding: 11px;
  margin: 7px 0;
  border: 1px solid var(--line-gray-96);
  border-radius: 10px;
}
.gw-match strong {
  display: block;
  color: var(--text-green-41);
}
.gw-match small {
  display: block;
  color: var(--text-green-68);
  margin-top: 4px;
}
.gw-match button {
  white-space: nowrap;
  border: 1px solid var(--line-gray-93);
  border-radius: 8px;
  padding: 10px;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  cursor: pointer;
  font-weight: 750;
}
.gw-stage-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 22px;
}
.gw-handoff-card {
  border: 1px solid var(--line-gray-93);
  background: linear-gradient(140deg, var(--bg-gray-97), var(--bg-white-100));
  padding: 22px;
  border-radius: 15px;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-green-52);
}
.gw-handoff-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--text-green-32);
}
.gw-handoff-card a {
  margin-top: 15px;
}
.gw-city-status[hidden] {
  display: none !important;
}
.gw-report-intro {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 15px;
  padding: 17px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-green-41);
}
.gw-report-intro span {
  font-size: 0.75rem;
  color: var(--text-green-52);
  line-height: 1.65;
}
.gw-case-count-note {
  margin: 10px 0 22px;
  color: var(--text-green-59);
  font-size: 0.75rem;
  line-height: 1.6;
}
.gw-cluster .gw-cl-stack {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 100%;
}
.gw-cluster .gw-cl-stack i {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r));
  transform-origin: 50% 100%;
}
.gw-cl-stack i:last-child {
  z-index: 2;
}
.gw-cl-count {
  position: absolute;
  right: -2px;
  top: -6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px var(--shadow-teal-27-a35);
}
.gw-cl-count span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--bg-teal-27);
  color: var(--text-white-100);
  display: grid;
  place-items: center;
  font: 800 0.6875rem/1 var(--body);
  letter-spacing: -0.2px;
}
/* address result card (Report step 2 and My Cases search) */
.gw-addr-form label span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
  margin-bottom: 2px;
}
.gw-addr-result {
  margin: 4px 0 14px;
}
.gw-addr-card {
  display: grid;
  gap: 4px;
  border-radius: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  margin: 10px 0;
}
.gw-addr-card span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-green-41);
}
.gw-addr-card small {
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-green-59);
}
.gw-addr-card.tone-ok {
  background: var(--bg-gray-97);
  border-color: var(--line-green-88);
}
.gw-addr-card.tone-ok b {
  color: var(--text-green-50);
}
.gw-addr-card.tone-warn {
  background: var(--bg-gray-97);
  border-color: var(--line-amber-90);
}
.gw-addr-card.tone-warn b {
  color: var(--text-amber-51);
}
.gw-addr-card.tone-bad {
  background: var(--bg-gray-97);
  border-color: var(--line-red-86);
}
.gw-addr-card.tone-bad b {
  color: var(--text-red-50);
}
.gw-addr-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0 8px;
  font-size: 0.6875rem;
  color: var(--text-green-59);
}
.gw-manual {
  margin: 6px 0 14px;
}
.gw-manual label span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
  margin-bottom: 6px;
}
.gw-manual select {
  border: 1px solid var(--line-green-90);
  border-radius: 9px;
  padding: 10px;
  background: var(--bg-white-100);
  color: var(--text-green-41);
  max-width: 100%;
}
.gw-dup-tip {
  background: var(--bg-gray-97);
  border: 1px solid var(--line-amber-90);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-amber-51);
  font-size: 0.6875rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.gw-match > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}
.gw-match-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gw-handoff-where {
  display: grid;
  gap: 3px;
  margin: 4px 0 10px;
}
.gw-handoff-where span {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-50);
}
.gw-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}
@media (max-width: 1050px) {
  .gw-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 770px) {
  .gw-report-panel {
    padding: 17px;
  }
  .gw-steps span {
    font-size: 0.6875rem;
    padding: 10px 8px;
  }
  .gw-possible-head {
    flex-direction: column;
    align-items: stretch;
  }
  .gw-heading {
    margin-top: 12px;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  #reportNext1 {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .gw-city-status {
    min-width: 145px;
    flex: 1 1 145px;
  }
}
@media (max-width: 430px) {
  .gw-category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gw-category {
    padding: 13px;
  }
  .gw-category small {
    font-size: 0.6875rem;
  }
  .gw-cat-symbol {
    width: 31px;
    height: 31px;
  }
  .gw-steps span {
    font-size: 0.6875rem;
  }
}
@media (max-width: 770px) {
  .gw-steps span {
    font-size: 0.6875rem;
    line-height: 1.35;
  }
}
@media (max-width: 430px) {
  .gw-match {
    align-items: flex-start;
    flex-direction: column;
  }
}
.gw-match {
  flex-wrap: wrap;
}
@media (max-width: 430px) {
  .gw-match {
    gap: 8px;
  }
  .gw-match button {
    width: 100%;
  }
  .gw-match > div:first-child {
    flex: 0 0 auto;
    width: 100%;
  }
  .gw-match-btns {
    width: 100%;
    flex-wrap: nowrap;
  }
  .gw-match-btns button {
    flex: 1;
    width: auto;
    min-height: 44px;
  }
  .gw-matches {
    font-size: 0.75rem;
  }
}
@container gwboard (max-width:880px) {
  .map-board .map-filter-row .gw-city-status {
    min-width: 0;
  }
}

/* ==== 12. My Cases ============================================================================================ */
.account-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  background: radial-gradient(circle at 78% 22%, var(--bg-green-75-a16), transparent 38%),
    linear-gradient(135deg, var(--bg-teal-27), var(--bg-teal-35) 78%);
  color: var(--text-white-100);
  border-radius: 19px;
  padding: 30px 34px;
  margin: 14px 0 25px;
  box-shadow: 0 22px 46px var(--shadow-teal-32-a13);
}
.account-hero h2 {
  font-size: clamp(23px, 2.3vw, 34px);
  letter-spacing: -1.1px;
  margin: 12px 0;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  gap: 9px;
}
.account-stats div {
  border-radius: 13px;
  border: 1px solid var(--line-green-78-a20);
  background: var(--bg-white-100-a7);
  padding: 22px 15px;
}
.account-stats span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-80);
  margin-top: 4px;
  line-height: 1.5;
}
.account-search-card {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 17px;
  box-shadow: 0 14px 32px var(--shadow-green-35-a5);
  padding: 23px;
  margin-bottom: 19px;
}
.account-case-column {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 17px;
  box-shadow: 0 14px 32px var(--shadow-green-35-a5);
  padding: 22px 16px;
  position: sticky;
  top: 90px;
}
.account-detail-column {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 17px;
  box-shadow: 0 14px 32px var(--shadow-green-35-a5);
  padding: 24px;
}
.account-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.account-card-heading h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.6px;
  margin: 8px 0;
}
.acc-local-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  border: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  border-radius: 999px;
  padding: 9px 11px;
  color: var(--text-green-50);
  font-weight: 800;
  font-size: 0.6875rem;
}
.acc-local-chip svg {
  width: 15px;
  height: 15px;
}
.account-search-line {
  display: flex;
  gap: 10px;
  align-items: center;
}
.account-search-line input {
  min-width: 0;
  width: 100%;
}
.account-search-line button {
  white-space: nowrap;
  min-height: 46px;
}
.account-search-results {
  margin-top: 10px;
}
.acc-help {
  display: block;
  padding: 10px 4px;
  color: var(--text-green-68);
  font-size: 0.6875rem;
  line-height: 1.7;
}
.account-workspace {
  display: grid;
  grid-template-columns: minmax(235px, 0.82fr) minmax(0, 1.55fr);
  gap: 17px;
  align-items: start;
  margin-bottom: 22px;
}
.account-case-column .account-card-heading {
  padding: 0 6px;
}
.account-case-column .account-card-heading h2 {
  margin: 4px 0;
}
.account-text-btn {
  border: 0;
  background: none;
  padding: 8px;
  color: var(--text-green-50);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 800;
}
.account-text-btn:hover {
  text-decoration: underline;
}
.account-text-btn.danger {
  color: var(--text-red-50);
}
.account-case-list {
  display: grid;
  gap: 9px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}
.account-case {
  border: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  text-align: left;
  width: 100%;
  padding: 17px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border 0.18s ease,
    background 0.18s ease;
}
.account-case:hover {
  transform: translateY(-2px);
  border-color: var(--line-green-85);
}
.account-case.is-active {
  border-color: var(--line-green-78);
  background: var(--bg-gray-97);
  box-shadow: inset 3px 0 0 var(--shadow-green-57);
}
.account-case-row {
  display: flex;
  gap: 8px;
  align-items: start;
  justify-content: space-between;
}
.account-case strong {
  font-size: 0.75rem;
  color: var(--text-green-41);
  line-height: 1.5;
}
.account-case > span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  margin-top: 8px;
  line-height: 1.6;
}
.account-case > small {
  display: block;
  color: var(--text-green-59);
  margin-top: 8px;
  line-height: 1.6;
  font-size: 0.6875rem;
}
.account-status-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 999px;
  background: var(--bg-gray-97);
  color: var(--text-green-55);
  padding: 5px 7px;
}
.account-status-pill.closed {
  background: var(--bg-gray-97);
  color: var(--text-green-59);
}
.account-empty {
  padding: 40px 15px;
  text-align: center;
  color: var(--text-green-68);
  font-size: 0.75rem;
  line-height: 1.8;
}
.account-detail-placeholder {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 90px 15px;
  color: var(--text-green-68);
}
.account-detail-placeholder h3 {
  color: var(--text-green-41);
  font-size: 1.1875rem;
}
.account-placeholder-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: var(--bg-gray-97);
  border-radius: 17px;
  color: var(--text-green-55);
}
.account-placeholder-icon svg {
  width: 29px;
  height: 29px;
}
.acc-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.acc-detail-top h2 {
  font-size: clamp(19px, 1.9vw, 26px);
  letter-spacing: -0.7px;
  margin: 8px 0;
}
.acc-city-chip {
  background: var(--bg-gray-97);
  border: 1px solid var(--line-gray-93);
  padding: 12px;
  border-radius: 12px;
  text-align: right;
  min-width: 130px;
  align-self: start;
}
.acc-city-chip span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  margin-bottom: 6px;
}
.acc-city-chip strong {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-41);
}
.acc-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 21px 0;
}
.acc-facts > div {
  border-radius: 10px;
  background: var(--bg-white-100);
  padding: 12px;
}
.acc-facts span {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-68);
}
.acc-small {
  color: var(--text-green-68);
  font-size: 0.6875rem;
  line-height: 1.8;
}
.acc-detail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line-gray-96);
  padding-top: 20px;
  margin-top: 22px;
}
.acc-detail-foot a {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-50);
  text-decoration: none;
  padding: 8px;
}
.account-disclaimer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 13px;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  line-height: 1.85;
  margin-bottom: 50px;
}
.account-disclaimer svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--text-amber-66);
}
.account-disclaimer a {
  color: var(--text-green-50);
  font-weight: 800;
}
.acc-queue-status {
  font-size: 0.6875rem;
  color: var(--text-green-50);
  margin-top: 12px;
  font-weight: 700;
}
.accountability-teaser {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line-green-90);
  border-radius: 16px;
  padding: 23px 24px;
  background: linear-gradient(105deg, var(--bg-gray-97) 0%, var(--bg-white-100) 80%);
  margin: 20px 0 30px;
}
.accountability-teaser h2 {
  font-size: 1.0625rem;
  color: var(--text-green-32);
  letter-spacing: -0.5px;
  margin: 7px 0;
}
.gw-follow-bridge label {
  display: grid;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
}
.gw-follow-bridge h3 {
  font-size: 1.0625rem;
  color: var(--text-green-32);
  letter-spacing: -0.3px;
  margin: 0;
}
.gw-follow-bridge {
  border-top: 1px solid var(--line-gray-96);
  margin: 25px 0;
  padding: 24px 0;
}
.gw-follow-bridge > p {
  font-size: 0.75rem;
  color: var(--text-green-59);
  line-height: 1.7;
}
.gw-follow-bridge small {
  display: block;
  margin-top: 9px;
  color: var(--text-green-59);
  line-height: 1.6;
}
.gw-status-summary > div {
  min-width: 0;
}
.gw-follow-filter-label {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.gw-follow-filter-label select {
  border: 1px solid var(--line-gray-93);
  border-radius: 9px;
  padding: 9px;
  color: var(--text-green-41);
  font: inherit;
  background: var(--bg-white-100);
  max-width: 100%;
}
.account-status-pill.status-open {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.account-status-pill.status-progress {
  background: var(--bg-amber-97);
  color: var(--text-amber-51);
}
.account-status-pill.status-closed {
  background: var(--bg-gray-97);
  color: var(--text-blue-48);
}
.acc-device-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
}
.acc-device-row .acc-queue-status {
  margin: 0;
  flex: 1 1 260px;
}
.acc-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc-device-actions .account-text-btn {
  min-height: 40px;
}
.acc-same {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-amber-51);
  background: var(--bg-amber-97);
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: 4px;
  vertical-align: middle;
}
.acc-mini {
  border: 1px solid var(--line-green-90);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 34px;
}
.acc-mini:hover {
  background: var(--bg-gray-97);
}
.acc-mini.is-on {
  background: var(--bg-gray-97);
  border-color: var(--line-green-83);
}
.acc-mini.danger {
  color: var(--text-red-50);
  border-color: var(--line-red-89);
  background: var(--bg-white-100);
}
.account-stats div:last-child {
  grid-column: span 2;
}
.acc-report-main b.acc-same {
  display: inline-block;
  font-size: 0.6875rem;
  margin: 3px 0 0;
}
.acc-other-ways {
  margin-top: 6px !important;
}
.acc-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-gray-96);
}
.acc-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 1rem;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  color: var(--text-green-41);
}
.acc-block h3 small {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-68);
  letter-spacing: 0;
}
.acc-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
}
.acc-ask {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-gray-97);
  border: 1px solid var(--line-amber-90);
  border-radius: 12px;
  padding: 14px;
}
.acc-ask-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.acc-said {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-50);
  margin: 6px 0 0;
}
.acc-tell a {
  color: var(--text-green-50);
  font-weight: 800;
}
.acc-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.acc-quick-note {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.acc-quick-note input {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line-gray-93);
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 0.6875rem;
  color: var(--text-green-41);
}
.acc-quick-note select {
  border: 1px solid var(--line-gray-93);
  border-radius: 9px;
  padding: 9px;
  font-size: 0.6875rem;
  color: var(--text-green-41);
  background: var(--bg-white-100);
}
.acc-timeline {
  display: grid;
  gap: 0;
}
.acc-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding: 0 0 16px 0;
}
.acc-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--bg-gray-93);
}
.acc-dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
  font-size: 0.75rem;
  font-weight: 800;
}
.acc-item.is-email .acc-dot {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.acc-item.is-city .acc-dot {
  background: var(--bg-gray-97);
  color: var(--text-blue-53);
}
.acc-item.is-note .acc-dot {
  background: var(--bg-gray-97);
  color: var(--text-amber-51);
}
.acc-item-body {
  min-width: 0;
  flex: 1;
}
.acc-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.acc-case-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--text-green-50);
  cursor: pointer;
  margin-left: 4px;
}
button.acc-case-link:hover {
  text-decoration: underline;
}
.acc-pill {
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
}
.acc-pill.sent {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.acc-pill.opened {
  background: var(--bg-amber-97);
  color: var(--text-amber-51);
}
.acc-pill.draft {
  background: var(--bg-gray-97);
  color: var(--text-blue-48);
}
.acc-item details {
  margin-top: 6px;
}
.acc-mail-full {
  margin-top: 8px;
  border: 1px solid var(--line-gray-96);
  border-radius: 10px;
  background: var(--bg-white-100);
  padding: 10px 12px;
}
.acc-mail-full p span {
  display: inline-block;
  width: 56px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-green-68);
}
.acc-mail-full pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font: inherit;
  font-size: 0.6875rem;
  line-height: 1.65;
  color: var(--text-green-41);
  margin: 8px 0;
  max-height: 280px;
  overflow: auto;
}
.acc-mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc-near {
  display: grid;
  gap: 7px;
}
.acc-report-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
  border-radius: 11px;
  padding: 11px 12px;
  margin-top: 7px;
}
.acc-report-main {
  flex: 1 1 200px;
  min-width: 0;
}
.acc-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.3px;
  color: var(--text-green-52);
  margin: 14px 0 2px;
}
.acc-mail-count {
  color: var(--text-green-50);
}
.account-history-card {
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 17px;
  box-shadow: 0 14px 32px var(--shadow-green-35-a5);
  padding: 23px;
  margin-bottom: 19px;
}
.acc-hfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.acc-hfilters button {
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  color: var(--text-green-52);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 36px;
}
.acc-hfilters button[aria-pressed='true'] {
  background: var(--bg-teal-32);
  color: var(--text-gray-96);
  border-color: var(--line-teal-32);
}
#accHistory {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 1080px) {
  .account-workspace {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.3fr);
  }
  .account-hero {
    grid-template-columns: 1fr;
  }
  .account-stats {
    max-width: 600px;
  }
}
@media (max-width: 980px) {
  .accountability-teaser {
    flex-wrap: wrap;
  }
}
@media (max-width: 770px) {
  .account-workspace {
    grid-template-columns: 1fr;
  }
  .account-case-column {
    position: static;
  }
  .account-case-list {
    max-height: 280px;
  }
  .account-search-line {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .account-hero {
    padding: 23px;
  }
  .account-detail-column {
    padding: 16px;
  }
  .acc-detail-top,
  .account-card-heading {
    flex-wrap: wrap;
  }
  /* under the title on a phone: one left-aligned line, "City says Open · Reported" */
  .acc-city-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-width: 0;
    text-align: left;
  }
  .acc-city-chip span {
    margin-bottom: 0;
  }
  .acc-local-chip,
  .acc-small,
  .acc-queue-status {
    font-size: 0.71875rem;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  #accRefresh {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .gw-follow-filter-label {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .accountability-teaser {
    padding: 17px;
  }
}
@media (max-width: 420px) {
  .account-search-line {
    grid-template-columns: 1fr;
  }
  .account-stats {
    gap: 6px;
  }
}
.gw-status-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1000px) {
  .gw-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .gw-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* My Cases 6.0 */
.account-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 420px) {
  .account-stats div {
    padding: 13px 10px;
  }
  .acc-facts {
    grid-template-columns: 1fr 1fr;
  }
  .account-detail-column {
    padding: 13px;
  }
}

/* ==== 13. Email to LA 311 ===================================================================================== */
/* Tell LA 311 composer */
.gw-mail {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: visible;
}
.gw-mail::backdrop {
  background: var(--bg-teal-20-a48);
}
.gw-mail-card {
  background: var(--bg-white-100);
  border-radius: 18px;
  box-shadow: 0 30px 70px var(--shadow-green-24-a31);
  padding: 22px 22px 18px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.gw-mail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.gw-mail-head h2 {
  margin: 6px 0 4px;
  font-size: 1.3125rem;
  letter-spacing: -0.6px;
  color: var(--text-green-32);
}
.gw-mail-about {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  line-height: 1.5;
}
.gw-mail-x {
  border: 0;
  background: var(--bg-gray-97);
  color: var(--text-green-41);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.gw-mail-reasons {
  border: 0;
  padding: 0;
  margin: 16px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gw-mail-reasons legend {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
  margin-bottom: 8px;
  padding: 0;
}
.gw-mail-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.gw-mail-field span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-41);
  margin-bottom: 5px;
}
.gw-mail-field small {
  font-weight: 600;
  color: var(--text-green-68);
}
.gw-mail-field textarea,
.gw-mail-field input {
  width: 100%;
  border: 1px solid var(--line-gray-93);
  border-radius: 9px;
  padding: 10px;
  font: inherit;
  font-size: 0.75rem;
  color: var(--text-green-32);
  resize: vertical;
}
.gw-mail-preview {
  border: 1px solid var(--line-gray-93);
  border-radius: 12px;
  background: var(--bg-white-100);
  overflow: hidden;
}
.gw-mail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-gray-96);
  font-size: 0.75rem;
}
.gw-mail-row > span {
  width: 58px;
  flex: none;
  color: var(--text-green-68);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.gw-mail-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--text-green-32);
  padding: 3px 0;
}
.gw-mail-msg textarea {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-green-32);
  resize: vertical;
  min-height: 170px;
}
.gw-mail-row input:focus,
.gw-mail-msg textarea:focus {
  outline: 2px solid var(--line-green-58);
  outline-offset: -2px;
}
.gw-mail-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--line-gray-96);
}
.gw-mail-meta small {
  font-size: 0.6875rem;
  color: var(--text-green-68);
}
.gw-mail-meta small.is-warn {
  color: var(--text-amber-51);
  font-weight: 700;
}
.gw-mail-link {
  border: 0;
  background: none;
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gw-mail-fine {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  line-height: 1.6;
  margin: 10px 0;
}
.gw-mail-send {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gw-mail-noteonly {
  display: block;
  margin-top: 8px;
}
.gw-mail-confirm {
  text-align: center;
  padding: 14px 4px 4px;
}
.gw-mail-confirm h3 {
  font-size: 1.25rem;
  color: var(--text-green-32);
  margin: 8px 0;
}
.gw-mail-confirm .gw-mail-send {
  justify-content: center;
}
.gw-mail-big {
  font-size: 2.125rem;
  color: var(--text-green-50);
}
.gw-mail [hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .gw-mail-fields {
    grid-template-columns: 1fr;
  }
  .gw-mail-card {
    padding: 18px 15px 14px;
    border-radius: 16px;
  }
}

/* ==== 14. Conditions and air quality ========================================================================== */
.air-symbol {
  background: var(--bg-gray-95);
  color: var(--text-purple-61);
}
.air-hero {
  background: var(--bg-teal-32);
  border-radius: 17px;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 30px;
  color: var(--text-white-100);
}
.air-hero .overline {
  color: var(--text-green-82);
}
.air-big {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-top: 16px;
}
.air-big strong {
  font-size: 4.875rem;
  letter-spacing: -4px;
  line-height: 1.1;
}
.air-big span {
  font-size: 0.6875rem;
  color: var(--text-green-80);
  font-weight: 800;
}
.air-condition {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-green-88);
  margin-top: 7px;
}
.air-hero p {
  color: var(--text-green-80);
  font-size: 0.6875rem;
  line-height: 1.8;
  margin-top: 10px;
}
.aqi-scale {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.aqi-scale-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.6875rem;
}
.aqi-scale-head span {
  color: var(--text-green-80);
  font-size: 0.6875rem;
  font-weight: 800;
}
.air-areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.air-area {
  background: var(--bg-white-100);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.air-area h3 {
  font-size: 0.75rem;
  margin: 0 0 8px;
}
.air-area p {
  color: var(--text-green-68);
  font-size: 0.6875rem;
  margin: 0;
}
.air-area strong {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.air-area .aqi-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.aqi-badge.good {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.aqi-badge.moderate {
  background: var(--bg-amber-97);
  color: var(--text-amber-51);
}
.aqi-badge.unhealthy {
  background: var(--bg-red-93);
  color: var(--text-red-61);
}
.airnow-box {
  margin: 17px 0 44px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 12px;
  padding: 18px;
  color: var(--text-green-59);
  font-weight: 700;
  font-size: 0.6875rem;
  line-height: 1.8;
}
.airnow-box strong {
  color: var(--text-green-41);
}
.gw-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.gw-condition-tile {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-96);
  border-radius: 16px;
  padding: 24px 20px;
  min-width: 0;
  cursor: pointer;
}
.gw-condition-tile:hover:not(.gw-static-tile) {
  background: var(--bg-white-100);
  border-color: var(--line-green-83);
}
.gw-condition-tile > svg,
.gw-condition-tile > img {
  width: 30px;
  height: 30px;
  color: var(--text-green-55);
  flex-shrink: 0;
}
.gw-condition-tile span {
  flex: 1;
  min-width: 0;
}
.gw-condition-tile small {
  display: block;
  color: var(--text-green-59);
  line-height: 1.6;
  font-size: 0.6875rem;
  margin-top: 5px;
}
.gw-condition-tile strong {
  font-size: 1.25rem;
  color: var(--text-green-55);
}
.gw-condition-tile a {
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
}
.gw-conditions-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--bg-teal-32);
  color: var(--text-white-100);
  flex-wrap: wrap;
}
.gw-conditions-action .overline {
  color: var(--text-on-dark-muted);
}
.gw-conditions-action h2 {
  font-size: 1.3125rem;
  margin: 8px 0;
}
.gw-conditions-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}
.gw-conditions-ctas button {
  border: 1px solid var(--line-green-65);
  background: var(--bg-teal-43);
  border-radius: 10px;
  color: var(--text-white-100);
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.6875rem;
  min-height: 44px;
}
.gw-conditions-ctas button:hover {
  background: var(--bg-green-53);
}
.gw-conditions-ctas button:focus-visible {
  outline: 3px solid var(--gw-focus);
  outline-offset: 2px;
}
.gw-conditions-source-link {
  display: flex;
  justify-content: flex-end;
  padding: 5px 0 15px;
}
.gw-conditions-source-link button {
  min-height: 40px;
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  border-radius: 9px;
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 10px 13px;
  cursor: pointer;
}
/* official NWS forecast */
.forecast-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 4px;
}
.forecast-areas button {
  border: 1px solid var(--line-gray-93);
  background: var(--bg-white-100);
  color: var(--text-green-41);
  border-radius: 999px;
  padding: 7px 12px;
  font: 700 0.75rem var(--body);
  cursor: pointer;
  min-height: 36px;
}
.forecast-areas button[aria-selected='true'] {
  background: var(--bg-green-43);
  border-color: var(--line-green-43);
  color: var(--text-white-100);
}
.forecast-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.forecast-period {
  border: 1px solid var(--line-gray-96);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-white-100);
}
.forecast-period .fp-name {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-52);
  letter-spacing: 0.02em;
}
.forecast-period .fp-temp {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-green-32);
  line-height: 1.05;
}
.forecast-period .fp-temp small {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-59);
  margin-left: 4px;
}
.forecast-period .fp-short {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-green-41);
}
.forecast-period .fp-meta {
  font-size: 0.6875rem;
  color: var(--text-green-59);
}
.forecast-period.night {
  background: var(--bg-white-100);
}
.station-observations .wx-meta {
  font-size: 0.6875rem;
  color: var(--text-green-59);
}
@media (max-width: 1050px) {
  .forecast-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .air-hero {
    grid-template-columns: 1fr;
  }
  .air-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 770px) {
  .air-hero {
    padding: 24px;
  }
  .air-areas {
    grid-template-columns: 1fr 1fr;
  }
  .gw-conditions-grid {
    grid-template-columns: 1fr;
  }
  .aqi-badge {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
  .wx-meta,
  #forecastIssued,
  #airHeroTimestamp {
    font-size: 0.71875rem;
  }
  .air-area .aqi-badge {
    font-size: 0.6875rem;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .gw-condition-tile a {
    padding: 12px 0;
    margin: -12px 0;
  }
}
@media (max-width: 600px) {
  .gw-conditions-action {
    padding: 18px;
  }
}
@media (max-width: 430px) {
  .air-areas {
    grid-template-columns: 1fr;
  }
  .aqi-scale-head {
    font-size: 0.6875rem;
  }
  .air-big strong {
    font-size: 4.375rem;
  }
}

/* ==== 15. News and alerts ===================================================================================== */
#liveMap {
  z-index: 1;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg-gray-97);
}
.hazard-symbol {
  background: var(--bg-gray-93);
  color: var(--text-orange-70);
}
.hazard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 48px;
}
.hazard-panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-white-100);
  box-shadow: var(--shadow);
  animation: fadeLift 0.45s var(--motion-snap);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap);
}
.hazard-panel-wide {
  grid-column: 1/-1;
}
.hazard-panel-head {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-gray-96);
}
.hazard-panel-head h2 {
  font-size: 0.9375rem;
  letter-spacing: -0.35px;
  margin: 0;
}
.hazard-panel-head span {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 700;
  display: block;
  margin-top: 5px;
}
.hazard-list {
  max-height: 375px;
  overflow: auto;
}
.hazard-item {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-gray-96);
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
}
.hazard-item strong {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.7;
}
.hazard-item small {
  display: block;
  color: var(--text-green-68);
  font-size: 0.6875rem;
  margin-top: 4px;
  font-weight: 700;
}
.hazard-item a {
  color: var(--text-green-55);
  font-size: 0.6875rem;
  white-space: nowrap;
  font-weight: 800;
}
.hazard-item a:hover {
  text-decoration: underline;
}
.newsroom {
  --ink: var(--bg-teal-27);
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 12px 35px var(--shadow-green-28-a6);
  margin: 25px 0 29px;
}
.newsroom-top {
  padding: 24px 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: linear-gradient(115deg, var(--bg-teal-32), var(--bg-green-40));
  color: var(--text-white-100);
}
.newsroom-top-title {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  min-width: 0;
}
.newsroom-top .overline {
  color: var(--text-green-82);
  font-size: 0.6875rem;
  letter-spacing: 2px;
}
.live-beacon {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-green-84);
  box-shadow: 0 0 0 6px var(--shadow-green-80-a13);
  flex: none;
  margin: 7px 0 0 5px;
  animation: softPulse 2.2s infinite;
}
.newsroom h2 {
  color: inherit;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 5px 0 8px;
}
.news-count {
  font-size: 0.6875rem;
  background: var(--bg-green-90-a13);
  color: var(--text-green-93);
  padding: 5px 8px;
  border-radius: 20px;
  letter-spacing: 0;
  vertical-align: middle;
  display: inline-block;
}
.newsroom-top p {
  color: var(--text-green-80);
  font-size: 0.6875rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}
.newsroom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.news-freshness {
  font-size: 0.6875rem;
  color: var(--text-green-82);
  font-weight: 700;
}
.news-action {
  border: 1px solid var(--line-green-60);
  border-radius: 8px;
  background: var(--bg-white-100-a7);
  color: var(--text-white-100);
  font: 700 0.6875rem var(--body);
  cursor: pointer;
  padding: 11px 14px;
  white-space: nowrap;
}
.news-action:hover {
  background: var(--bg-white-100-a13);
}
.newsroom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-gray-96);
  background: var(--bg-white-100);
}
.news-filter-set {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.news-filter {
  font: 700 0.6875rem var(--body);
  color: var(--text-green-52);
  background: transparent;
  border: 1px solid transparent;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 11px;
  min-height: 43px;
}
.news-filter.active {
  background: var(--bg-gray-93);
  color: var(--text-green-41);
  border-color: var(--line-green-90);
}
.news-filter:hover {
  background: var(--bg-gray-97);
}
.news-topic-control {
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--text-green-59);
  display: flex;
  align-items: center;
  gap: 11px;
}
.news-topic-control select {
  font: 700 0.6875rem var(--body);
  color: var(--text-green-32);
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  padding: 9px;
  border-radius: 7px;
  max-width: 240px;
  min-width: 160px;
}
.news-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  min-height: 320px;
}
.bulletin-list {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-color: var(--bg-gray-85) transparent;
  overscroll-behavior: contain;
}
.bulletin-item {
  padding: 20px 25px 18px;
  border-bottom: 1px solid var(--line-gray-96);
  transition: background 0.17s ease;
}
.bulletin-item:hover {
  background: var(--bg-white-100);
}
.bulletin-item h3 {
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: -0.3px;
  color: var(--text-green-32);
  font-weight: 800;
  margin: 10px 0 13px;
  overflow-wrap: anywhere;
}
.bulletin-item.community h3 {
  font-weight: 600;
}
.bulletin-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kind-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 6px 8px;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.4px;
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.kind-pill.social {
  background: var(--bg-amber-97);
  color: var(--text-amber-55);
}
.topic-pill {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  background: var(--bg-gray-97);
  padding: 5px 7px;
  border-radius: 5px;
}
.bulletin-meta time {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-68);
}
.bulletin-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-green-68);
  font-size: 0.6875rem;
  font-weight: 700;
}
.bulletin-bottom span {
  overflow-wrap: anywhere;
}
.bulletin-bottom a {
  font-size: 0.6875rem;
  color: var(--text-green-50);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bulletin-bottom a:hover {
  text-decoration: underline;
}
.bulletin-bottom svg {
  width: 12px;
  height: 12px;
}
.news-empty {
  padding: 45px 29px;
  color: var(--text-green-52);
  font-size: 0.8125rem;
  line-height: 1.7;
  min-height: 195px;
}
.news-empty p {
  max-width: 520px;
}
.desk-sidebar {
  background: var(--bg-white-100);
  border-left: 1px solid var(--line-gray-96);
  padding: 22px 20px;
}
.desk-sidebar-title {
  font-weight: 800;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  letter-spacing: 1.5px;
  margin-bottom: 17px;
}
.feed-health {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.feed-dot {
  margin-top: 5px;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-gray-79);
}
.feed-dot.ok {
  background: var(--bg-green-66);
}
.feed-dot.error {
  background: var(--bg-orange-71);
}
.feed-health small {
  display: block;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  margin-top: 3px;
  line-height: 1.5;
}
.feed-health em {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-orange-57);
  line-height: 1.55;
  max-height: 55px;
  overflow: auto;
  word-break: break-word;
  margin-top: 6px;
  font-style: normal;
}
.desk-method {
  border-top: 1px solid var(--line-gray-93);
  margin-top: 14px;
  padding-top: 17px;
}
.desk-method p {
  line-height: 1.75;
  color: var(--text-green-59);
  font-size: 0.6875rem;
}
.desk-method a {
  color: var(--text-green-50);
  font-size: 0.6875rem;
  font-weight: 800;
}
.news-notify {
  width: 100%;
  background: var(--bg-gray-93);
  border: 1px solid var(--line-green-90);
  color: var(--text-green-41);
  border-radius: 8px;
  padding: 11px 7px;
  font-weight: 800;
  font-size: 0.6875rem;
  cursor: pointer;
  margin-top: 22px;
}
.news-notify:hover {
  background: var(--bg-gray-93);
}
.newsroom-official-label {
  margin-top: 17px !important;
}
.breaking-toast[hidden] {
  display: none !important;
}
.breaking-toast {
  position: fixed;
  bottom: 23px;
  right: 22px;
  z-index: 2600;
  width: min(470px, calc(100vw - 25px));
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--bg-teal-32);
  color: var(--text-white-100);
  border: 1px solid var(--line-green-46);
  border-left: 5px solid var(--line-green-85-2);
  border-radius: 13px;
  padding: 16px 13px 16px 18px;
  box-shadow: 0 18px 54px var(--shadow-teal-20-a44);
}
.breaking-toast > div {
  min-width: 0;
  flex: 1;
}
.breaking-toast small {
  display: block;
  color: var(--text-green-88);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.breaking-toast strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 5px 0;
}
.breaking-toast span {
  display: block;
  color: var(--text-green-80);
  font-size: 0.6875rem;
}
.breaking-toast button {
  border: 0;
  background: var(--bg-gray-93);
  border-radius: 6px;
  color: var(--text-green-41);
  padding: 8px 10px;
  font-weight: 800;
  font-size: 0.6875rem;
  cursor: pointer;
}
.breaking-toast button:last-child {
  background: transparent;
  color: var(--text-white-100);
  font-size: 1.3125rem;
  padding: 5px;
}
.station-observations .hazard-item {
  border: 1px solid var(--line-gray-96);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.station-observations .hazard-item strong {
  font-size: 0.75rem;
}
.station-observations .hazard-item small {
  font-size: 0.6875rem;
  line-height: 1.6;
}
.station-observations .hazard-item a {
  font-size: 0.6875rem;
  color: var(--text-green-50);
}
.hazard-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px var(--shadow-green-28-a6);
}
.reference-panel {
  padding: 21px 24px;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 16px;
  margin: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.reference-panel h3 {
  font-size: 1.0625rem;
  margin: 7px 0;
}
.reference-panel p {
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--text-green-59);
  max-width: 590px;
}
.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 500px;
}
.reference-links a {
  font-size: 0.6875rem;
  padding: 9px 11px;
  color: var(--text-green-50);
  font-weight: 800;
  background: var(--bg-white-100);
  border: 1px solid var(--line-gray-93);
  border-radius: 9px;
}
.reference-links a:hover {
  background: var(--bg-gray-97);
}
.kind-pill.agency {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.bulletin-item.agency-report {
  border-left: 3px solid var(--line-green-61);
}
/* Civic Desk source cards */
.gw-desk-sources {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.gw-desk-sources:empty {
  display: none;
}
.gw-desk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--bg-white-100);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  color: var(--ink);
  min-width: 0;
}
.gw-desk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--shadow-teal-27-a9);
}
.gw-desk-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.gw-desk-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg-gray-97);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--text-blue-48);
}
.gw-desk-icon img {
  width: 26px;
  height: 26px;
}
.gw-desk-card small {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 2px;
}
.gw-desk-text {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-green-52);
  flex: 1;
}
.gw-desk-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.71875rem;
  font-weight: 800;
  padding: 6px 8px 6px 11px;
  border-radius: 999px;
  background: var(--bg-gray-97);
  color: var(--text-green-41);
  max-width: 100%;
}
.gw-desk-pill svg {
  width: 13px;
  height: 13px;
}
.tone-weather .gw-desk-pill {
  background: var(--bg-gray-97);
  color: var(--text-red-50);
}
.tone-air .gw-desk-pill {
  background: var(--bg-amber-97);
  color: var(--text-amber-51);
}
.tone-quake .gw-desk-pill {
  background: var(--bg-gray-95);
  color: var(--text-blue-43);
}
.tone-fire .gw-desk-pill {
  background: var(--bg-red-93);
  color: var(--text-red-50);
}
.tone-news .gw-desk-pill {
  background: var(--bg-gray-97);
  color: var(--text-gray-43);
}
.hazard-pin {
  flex: none;
  margin-right: -4px;
}
.hazard-item > div {
  flex: 1;
  min-width: 0;
}
.hazard-foot {
  padding: 12px 22px;
  font-size: 0.6875rem;
  color: var(--text-green-59);
}
.hazard-foot a {
  color: var(--text-red-50-2);
  font-weight: 800;
}
@media (max-width: 1350px) {
  .gw-desk-sources {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1160px) {
  .news-desk-grid {
    grid-template-columns: minmax(0, 1fr) 222px;
  }
  .newsroom-top {
    align-items: flex-start;
  }
  .newsroom-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }
  .newsroom-controls {
    padding: 13px;
  }
}
@media (max-width: 850px) {
  .news-desk-grid {
    grid-template-columns: 1fr;
  }
  .desk-sidebar {
    border-top: 1px solid var(--line-gray-96);
    border-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }
  .desk-sidebar-title {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .desk-method {
    margin-top: 0;
  }
  .news-notify {
    margin-top: 4px;
  }
  .newsroom-top {
    display: block;
  }
  .newsroom-actions {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 17px;
  }
}
@media (max-width: 780px) {
  .reference-panel {
    padding: 17px;
  }
  .reference-links {
    gap: 6px;
  }
}
@media (max-width: 770px) {
  .hazard-grid {
    grid-template-columns: 1fr;
  }
  .hazard-panel-wide {
    grid-column: auto;
  }
  .desk-sidebar-title {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .hazard-item a {
    padding: 12px 0;
    margin: -12px 0;
  }
  .desk-method a {
    padding: 10px 0;
    margin: -10px 0;
  }
  .news-notify {
    display: none;
  }
}
@media (max-width: 640px) {
  .gw-desk-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .gw-desk-text {
    display: none;
  }
  .gw-desk-card {
    padding: 13px 12px;
  }
}
@media (max-width: 550px) {
  .newsroom {
    border-radius: 12px;
    margin: 17px 0;
  }
  .newsroom-top {
    padding: 21px 15px;
  }
  .newsroom h2 {
    font-size: 1.1875rem;
  }
  .newsroom-top p {
    font-size: 0.6875rem;
  }
  .newsroom-controls {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
  .news-filter-set {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }
}
.news-filter-set {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 550px) {
  .news-filter {
    white-space: normal;
    font-size: 0.6875rem;
    padding: 8px 4px;
  }
}
@media (max-width: 770px) {
  .news-filter {
    font-size: 0.6875rem;
  }
}
@media (max-width: 550px) {
  .news-topic-control {
    justify-content: space-between;
  }
  .news-topic-control select {
    max-width: 70%;
  }
  .bulletin-item {
    padding: 18px 16px;
  }
  .bulletin-item h3 {
    font-size: 0.8125rem;
  }
  .bulletin-list {
    max-height: 560px;
  }
  .desk-sidebar {
    display: block;
    padding: 20px 16px;
  }
  .newsroom-actions {
    flex-wrap: wrap;
  }
  .news-freshness {
    font-size: 0.6875rem;
  }
}
@media (max-width: 770px) {
  .news-freshness {
    font-size: 0.71875rem;
  }
}
@media (max-width: 550px) {
  .breaking-toast {
    bottom: 8px;
    right: 8px;
  }
  .newsroom-official-label {
    display: block;
  }
}

/* ==== 16. About the data ====================================================================================== */
.region-symbol {
  font-size: 1.125rem;
  color: var(--text-green-55);
  margin-right: 4px;
}
.information-strip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  line-height: 1.8;
  font-weight: 600;
}
.information-strip svg {
  color: var(--text-green-63);
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.information-strip strong {
  color: var(--text-green-41);
}
.source-symbol {
  background: var(--bg-gray-93);
  color: var(--text-green-59);
}
.source-footnote {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 600;
  margin: 19px 0 17px;
  line-height: 2;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.source-footnote svg {
  height: 15px;
  width: 15px;
}
.source-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-teal-32);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text-white-100);
  margin-bottom: 33px;
}
.source-summary > div {
  padding: 24px;
  border-right: 1px solid var(--line-green-46);
}
.source-summary > div:last-child {
  border: 0;
}
.source-summary b {
  display: block;
  font-size: 1.625rem;
  letter-spacing: -0.8px;
}
.source-summary span {
  font-size: 0.6875rem;
  color: var(--text-green-80);
  font-weight: 700;
  margin-top: 8px;
  display: block;
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.source-card {
  background: var(--bg-white-100);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 14px;
  animation: fadeLift 0.45s var(--motion-snap);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap);
}
.source-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.source-card h3 {
  margin: 0;
  font-size: 0.75rem;
}
.source-card .src-sub {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  margin-top: 5px;
}
.source-state {
  margin-left: auto;
  font-size: 0.6875rem;
  white-space: nowrap;
  font-weight: 800;
  border-radius: 30px;
  background: var(--bg-gray-97);
  color: var(--text-green-59);
  padding: 7px 9px;
}
.source-state.healthy {
  background: var(--bg-gray-97);
  color: var(--text-green-50);
}
.source-state.problem {
  background: var(--bg-red-93);
  color: var(--text-red-61);
}
.source-card p {
  line-height: 1.9;
  color: var(--text-green-59);
  font-size: 0.6875rem;
  font-weight: 600;
  margin: 15px 0;
}
.source-last {
  font-size: 0.6875rem;
  color: var(--text-green-68);
  font-weight: 700;
  border-top: 1px solid var(--line-gray-96);
  padding-top: 11px;
}
.source-card a {
  font-weight: 800;
  font-size: 0.6875rem;
  color: var(--text-green-55);
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.source-card a svg {
  height: 12px;
  width: 12px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.method-card {
  background: var(--bg-white-100);
  border-radius: 13px;
  padding: 22px;
  animation: fadeLift 0.45s var(--motion-snap);
  border: 1px solid var(--line-gray-96);
  transition:
    transform 0.22s var(--motion-snap),
    box-shadow 0.22s var(--motion-snap);
}
.method-card > svg {
  color: var(--text-green-55);
  width: 21px;
  height: 21px;
}
.method-card h3 {
  font-size: 0.75rem;
  margin: 15px 0 7px;
}
.method-card p {
  font-size: 0.6875rem;
  line-height: 1.85;
  font-weight: 600;
  color: var(--text-green-68);
  margin: 0;
}
.source-top-evidence {
  margin-bottom: 13px;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-white-100);
  color: var(--text-green-52);
  font-weight: 800;
  font-size: 0.6875rem;
}
.source-card .source-top-evidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.method-illustration {
  width: 28px;
  height: 28px;
  display: block;
  margin-bottom: 8px;
  filter: none !important;
}
.method-card .method-illustration {
  filter: drop-shadow(0 8px 18px var(--bg-green-37-a8));
}
.source-icon {
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px var(--shadow-white-100-a55),
    0 8px 18px var(--shadow-green-28-a6);
}
.source-card[data-source='city'] .source-icon {
  background: var(--bg-gray-97);
}
.source-card[data-source='air'] .source-icon,
.source-card[data-source='airnow'] .source-icon {
  background: var(--bg-white-100);
}
.source-card[data-source='nws'] .source-icon,
.source-card[data-source='weather'] .source-icon,
.source-card[data-source='usgs'] .source-icon,
.source-card[data-source='fires'] .source-icon,
.source-card[data-source='news'] .source-icon,
.source-card[data-source='social'] .source-icon {
  background: var(--bg-gray-97);
}
.method-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px var(--shadow-green-35-a5);
}
.method-card[data-theme='street'],
.method-card[data-theme='air'] {
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-white-100));
}
.source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px var(--shadow-green-28-a6);
}
.source-illustration {
  width: 18px;
  height: 18px;
  display: block;
  filter: none !important;
}
.source-card[data-source='firms'] .source-icon {
  background: var(--bg-gray-97);
}
.source-coverage {
  margin-top: 12px;
  font-size: 0.6875rem;
  color: var(--text-green-59);
}
.source-coverage summary {
  cursor: pointer;
  color: var(--text-orange-57);
  font-weight: 800;
}
.source-coverage p {
  margin: 7px 0;
}
.source-why {
  font-size: 0.75rem;
  color: var(--muted, var(--text-green-52));
  margin-top: 4px;
}
@media (max-width: 900px) {
  .method-illustration {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 770px) {
  .source-grid {
    grid-template-columns: 1fr;
  }
  .source-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .source-state {
    font-size: 0.6875rem;
    letter-spacing: 0.9px;
  }
  .source-last,
  .source-top-evidence,
  .src-sub,
  .source-footnote {
    font-size: 0.71875rem;
  }
  #view-explore .information-strip {
    margin-top: 14px;
  }
  .source-card .src-sub {
    font-size: 0.71875rem;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .source-card > a {
    min-height: 40px;
  }
}
@media (max-width: 430px) {
  .date-select span {
    display: none;
  }
}

/* ==== 17. Animations and reduced motion ======================================================================= */
@media (prefers-reduced-motion: reduce) {
  .live-beacon {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stat-card {
    animation: none !important;
    transition: none !important;
  }
  .source-card,
  .map-board,
  .hazard-panel,
  .station-panel {
    animation: none !important;
  }
  .account-case,
  .nav-btn {
    animation: none !important;
    transition: none !important;
  }
  .gw-action-feature,
  .gw-category,
  .gw-condition-tile {
    transition: none !important;
  }
  .layer-tab,
  .result,
  .gw-conditions-ctas button {
    animation: none !important;
    transition: none !important;
  }
  .map-new-chip,
  .gw-cluster .gw-cluster-new,
  .map-sheet {
    animation: none;
  }
  .gw-cluster,
  .gw-sky-photo,
  .gw-info-panel,
  .gw-info-btn {
    transition: none;
  }
}

/* ==== 18. Late overrides: these change earlier rules of the same specificity, so they must stay last ========== */
.news-empty b {
  display: block;
  font-size: 1rem;
  color: var(--text-green-32);
  margin-bottom: 10px;
}
.feed-health b {
  display: block;
  color: var(--text-green-41);
  font-size: 0.6875rem;
}
.desk-method b {
  color: var(--text-green-41);
  font-size: 0.75rem;
}
.nav-btn.active {
  box-shadow: 0 12px 24px var(--shadow-teal-33-a22);
}
.page-symbol {
  background: linear-gradient(180deg, var(--bg-white-100), var(--bg-gray-97));
  box-shadow:
    0 18px 32px var(--shadow-green-35-a8),
    inset 0 0 0 1px var(--shadow-white-100-a70);
}
.layer-tab.active {
  background: var(--layer-soft);
  color: var(--layer-strong);
  border-color: var(--layer-line);
  box-shadow: 0 12px 26px var(--shadow-green-28-a6);
}
.account-hero .overline {
  color: var(--text-green-82);
}
.account-hero p {
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-gray-89);
  max-width: 510px;
}
.account-stats b {
  display: block;
  font-size: clamp(25px, 2.5vw, 38px);
  letter-spacing: -1px;
}
.account-card-heading p {
  color: var(--text-green-68);
  font-size: 0.6875rem;
  line-height: 1.7;
  max-width: 650px;
}
.account-detail-placeholder p {
  font-size: 0.6875rem;
  line-height: 1.8;
  max-width: 350px;
}
.acc-detail-top p {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  line-height: 1.6;
  margin: 0 0 12px;
}
.acc-facts b {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-41);
  margin-top: 7px;
  line-height: 1.5;
}
.accountability-teaser p {
  font-size: 0.6875rem;
  line-height: 1.7;
  color: var(--text-green-59);
  max-width: 620px;
}
.gw-service-banner p {
  font-size: 0.75rem;
  line-height: 1.7;
  margin: 0;
}
.gw-report-stage > p {
  font-size: 0.75rem;
  color: var(--text-green-59);
  line-height: 1.75;
  margin: 0 0 22px;
}
.gw-category b {
  font-size: 0.8125rem;
  color: var(--text-green-41);
}
.gw-coral {
  background: var(--bg-gray-97);
  color: var(--text-red-61);
}
.gw-gold {
  background: var(--bg-gray-97);
  color: var(--text-amber-66);
}
.gw-blue {
  background: var(--bg-gray-97);
  color: var(--text-blue-58);
}
.gw-forest {
  background: var(--bg-gray-97);
  color: var(--text-green-55);
}
.gw-condition-tile b {
  display: block;
  color: var(--text-green-32);
  font-size: 0.9375rem;
}
.gw-static-tile {
  cursor: default;
}
.gw-map-key summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-green-41);
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
}
.gw-dot.closed {
  background: var(--gw-closed);
}
.gw-report-intro b {
  padding: 0 7px;
  color: var(--text-green-55);
}
.gw-conditions-action p {
  max-width: 580px;
  color: var(--text-gray-89);
  font-size: 0.75rem;
  line-height: 1.6;
}
.gw-dot.fresh {
  background: transparent;
  border: 2px solid var(--line-green-69);
  box-sizing: border-box;
}
.map-freshness b {
  color: var(--text-green-32);
}
.gw-dot.progress-pulse {
  background: transparent;
  border: 2px solid var(--line-amber-74);
  box-sizing: border-box;
}
.gw-desk-card b {
  display: block;
  font-size: 0.84375rem;
  letter-spacing: -0.2px;
}
.sheet-near-row b {
  display: block;
  font-size: 0.78125rem;
  color: var(--text-green-32);
}
.tone-unhealthy {
  color: var(--text-red-61);
}
.sheet-contain b {
  font-size: 0.75rem;
  color: var(--text-red-26);
  white-space: nowrap;
}
.gw-near-title b {
  display: block;
  font-size: 0.78125rem;
  color: var(--text-green-32);
  letter-spacing: -0.2px;
}
.gw-key-sum-text b {
  font-size: 0.78125rem;
  color: var(--text-green-41);
  letter-spacing: -0.1px;
  white-space: nowrap;
}
.gw-addr-card b {
  font-size: 0.8125rem;
  color: var(--text-green-41);
}
.gw-handoff-where b {
  font-size: 0.875rem;
  color: var(--text-green-32);
}
.gw-mail-head .overline {
  font-size: 0.6875rem;
  letter-spacing: 1.6px;
  color: var(--text-green-55);
}
.gw-mail-row b {
  color: var(--text-green-41);
}
.gw-mail-confirm p {
  font-size: 0.75rem;
  color: var(--text-green-59);
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 14px;
}
.gw-addr-result [hidden] {
  display: none !important;
}
.acc-ask small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-amber-55);
  margin-top: 4px;
  line-height: 1.6;
}
.acc-tell > p {
  font-size: 0.6875rem;
  color: var(--text-green-59);
  line-height: 1.7;
  margin: 0 0 10px;
}
.acc-item-body > small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-68);
  margin-top: 3px;
  line-height: 1.5;
}
.acc-item-body p {
  font-size: 0.6875rem;
  color: var(--text-green-52);
  line-height: 1.65;
  margin: 5px 0 0;
}
span.acc-case-link {
  cursor: default;
  color: var(--text-green-59);
}
.acc-item summary {
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-green-41);
  line-height: 1.5;
  list-style-position: outside;
  margin-left: 14px;
}
.acc-mail-full p {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  color: var(--text-green-41);
}
.acc-report-main small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-green-59);
  margin-top: 3px;
  line-height: 1.5;
}
@media (max-width: 770px) {
  .gw-mobile-tab.active {
    color: var(--text-green-41);
    background: var(--bg-gray-97);
  }
  .view small {
    font-size: 0.71875rem;
  }
  .gw-home-mapcard-text small {
    font-size: 0.78125rem;
    line-height: 1.45;
    color: var(--text-green-59);
  }
  .hazard-panel .overline,
  .desk-sidebar .overline {
    font-size: 0.6875rem;
  }
}
@media (max-width: 770px) and (pointer: coarse) {
  .acc-detail a {
    padding: 10px 0;
    margin: -10px 0;
  }
}
@media (max-width: 640px) {
  .acc-ask-btns .btn {
    flex: 1 1 auto;
  }
}
@media (max-width: 430px) {
  .gw-category b {
    font-size: 0.6875rem;
  }
}
@media (max-width: 420px) {
  .account-stats b {
    font-size: 1.6875rem;
  }
}
.acc-ask b {
  display: block;
  font-size: 0.75rem;
  color: var(--text-amber-39);
}
.acc-item-body b {
  font-size: 0.75rem;
  color: var(--text-green-41);
}
.acc-report-main b {
  display: block;
  font-size: 0.75rem;
  color: var(--text-green-41);
}
@media (max-width: 770px) {
  .gw-home-mapcard-text b {
    font-size: 1.0625rem;
    letter-spacing: -0.4px;
    color: var(--text-green-32);
  }
}

/* -- The map on phones (6.2.2): the map gets the room ------------------------------------------------------------
   One header row (title, a short count, three buttons) over one freshness line; the Near-you chip moves onto the map
   as its slim bar; the map fills the screen down to the tab bar; the map key sits right under the map and reads like a
   list. In full screen the results fold into one line ("Show list") so the map takes the screen, and the key and the
   list take turns in the space under it, never on top of the map. */
.map-list-toggle,
.count-short {
  display: none;
}
@media (max-width: 770px) {
  .count-long {
    display: none;
  }
  .count-short {
    display: inline;
  }
  #mapBoard .map-near-chip {
    display: none;
  }
  #mapBoard > .map-top {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
  }
  #mapBoard .map-top-intro {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }
  #mapBoard .map-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    min-width: 0;
  }
  #mapBoard .map-title-row h3 {
    flex: none;
    margin: 0;
    font-size: 1.0625rem;
  }
  #mapBoard .map-title-meta {
    display: flex;
    flex: 1 1 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
  }
  #mapBoard .map-point-label,
  #mapBoard .map-new-chip {
    white-space: nowrap;
  }
  #mapBoard .map-freshness {
    flex-basis: 100%;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #mapBoard .map-top-actions {
    flex: none;
    width: auto;
    gap: 4px;
  }
  #mapBoard > .layer-row {
    padding-bottom: 8px;
  }
  /* the smallest phones: the Near-you bar keeps just the count, so it stays one line */
  @media (max-width: 360px) {
    .gw-near-title b {
      display: none;
    }
  }
  /* the zoom, location and Layers buttons start at the top of the map (the Near-you bar keeps to their left) */
  #mapBoard #liveMap .maplibregl-ctrl-top-right {
    top: 4px;
  }
  /* the Map page: the map reaches the tab bar; the key comes right after it, then search and the list */
  #exploreMapMount #mapBoard:not(.map-fullscreen) .map-canvas {
    height: calc(100svh - 262px - env(safe-area-inset-bottom, 0px));
    min-height: 260px;
    max-height: 760px;
  }
  #exploreMapMount #mapBoard:not(.map-fullscreen) > .gw-map-context-bar {
    order: 4;
    border-top: 1px solid var(--line-gray-96);
    border-bottom: 1px solid var(--line-gray-96);
  }
  #exploreMapMount #mapBoard:not(.map-fullscreen) > .map-filter-row {
    order: 5;
    border-top: 0;
  }
  #exploreMapMount #mapBoard:not(.map-fullscreen) .map-side {
    order: 6;
  }
  /* a report's details: a card at the bottom of the map that leaves the zoom, location and Layers buttons free */
  #mapBoard .map-sheet {
    left: 8px;
    right: auto;
    bottom: 8px;
    width: calc(100% - 70px);
    max-height: min(58%, 380px);
  }
  /* the key: two readable columns on a solid background, in the page (it pushes things down, it doesn't cover);
     open, it takes the full width and the Sources link moves under it */
  #mapBoard .gw-map-context-bar {
    flex-wrap: wrap;
    background: var(--bg-white-100);
  }
  #mapBoard .gw-map-context-bar .gw-map-key[open] {
    flex-basis: 100%;
  }
  #mapBoard .gw-map-context-bar .gw-map-key[open] ~ .gw-map-method-link {
    margin: 0 0 10px auto;
  }
  #mapBoard .gw-map-context-bar .gw-map-key-body {
    padding: 2px 0 12px;
  }
  #mapBoard .gw-map-context-bar .gw-key-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
  }
  #mapBoard .gw-key-grid > span {
    gap: 8px;
    min-height: 34px;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--text-green-32);
  }
  #mapBoard .gw-key-grid .gw-pin-svg {
    flex: none;
  }
  #mapBoard .gw-map-context-bar .gw-key-head {
    margin: 12px 0 4px;
  }
  #mapBoard .gw-key-status {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-green-41);
  }
  /* full screen: edge to edge, the map flexes, the list is one line until opened */
  #mapBoard.map-fullscreen {
    inset: 0 !important;
    border: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #mapBoard.map-fullscreen > .map-top {
    padding: 8px 12px 6px;
  }
  #mapBoard.map-fullscreen .map-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  #mapBoard.map-fullscreen .map-canvas {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  #mapBoard.map-fullscreen .map-side {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
  }
  #mapBoard.map-fullscreen.list-open .map-side {
    flex-basis: 46svh;
    height: 46svh;
  }
  #mapBoard.map-fullscreen:not(.list-open) .map-results,
  #mapBoard.map-fullscreen:not(.list-open) .map-side-footer {
    display: none;
  }
  #mapBoard.map-fullscreen .map-side-head {
    padding: 4px 6px 4px 14px;
  }
  #mapBoard.map-fullscreen .map-side-head .overline {
    display: none;
  }
  #mapBoard.map-fullscreen .map-side-head h4 {
    margin: 0;
  }
  #mapBoard.map-fullscreen .map-list-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-green-41);
    font: 800 0.75rem var(--body);
    cursor: pointer;
  }
  #mapBoard.map-fullscreen .map-list-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }
  #mapBoard.map-fullscreen.list-open .map-list-toggle svg {
    transform: none;
  }
  #mapBoard.map-fullscreen .gw-map-context-bar {
    flex: 0 0 auto;
    padding: 0 12px;
    min-height: 0;
  }
  /* open in full screen, the key takes the place of search and the list, and leaves the map about 280 px or more,
     so the map's buttons never collide */
  #mapBoard.map-fullscreen.key-open .map-filter-row,
  #mapBoard.map-fullscreen.key-open .map-side,
  #mapBoard.map-fullscreen .gw-map-key[open] ~ .gw-map-method-link {
    display: none;
  }
  #mapBoard.map-fullscreen .gw-map-context-bar .gw-map-key-body {
    max-height: min(42svh, max(120px, calc(100svh - 470px)));
    overflow: auto;
    overscroll-behavior: contain;
  }
}

/* ==== 19. Touch screens: 44-point targets ===================================================================== */
/* Apple's minimum touch target is 44 x 44 points. On touch screens every control gets at least that (map pins and
   group markers keep their compact drawing but get an invisible 44-point tap area; pins drawn on the map canvas use
   a forgiving tap test in map-pins.js). ':root' and the last place in the file let these beat the compact desktop
   sizes. */
@media (pointer: coarse) {
  :root :is(button, .btn, select, summary, .text-link, .acc-case-link):not(.gw-cluster),
  :root input:not([type='checkbox'], [type='radio'], [type='range']) {
    min-height: 44px;
  }
  :root
    :is(.mini-btn, .map-sheet-close, .gw-mail-x, .panel-external, .gw-info-btn, .sheet-copy, .acc-mini, .gw-near-off),
  :root :is(.acc-hfilters button, .hazard-item a[href]) {
    min-width: 44px;
    min-height: 44px;
  }
  :root
    :is(
      .footer,
      .bulletin-bottom,
      .station-panel-title,
      .hazard-item,
      .source-card,
      .gw-static-tile,
      .result,
      .reference-links,
      .acc-detail-foot,
      .desk-method,
      .sheet-content
    )
    a[href],
  :root .gw-more-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  :root .gw-chip {
    min-height: 44px;
  }
  /* the handle that resizes the Find my location circle: a 30 px dot with a 44 px grip (inset from inside the border) */
  :root .gw-near-handle::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
  }
  :root .footer a[href] {
    min-width: 44px;
    justify-content: center;
  }
  /* group markers on the map: the drawing stays compact, the tap area is at least 44 x 44 */
  :root .gw-cluster::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
    transform: translate(-50%, -50%);
  }
  /* links inside a sentence: taller tap area without moving the text */
  :root .hazard-foot a[href] {
    padding-block: 15px;
  }
}

/* ==== 20. Keyframes ========================================================================================== */
@keyframes softPulse {
  50% {
    box-shadow: 0 0 0 10px var(--shadow-green-83-a4);
  }
}
@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulseDot {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.75;
  }
}
@keyframes gwPop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes gwBlink {
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}
@keyframes gwSheet {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes gwSpin {
  to {
    transform: rotate(360deg);
  }
}
