/*  Reset  */
    *, *::before, *::after { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: 'Manrope', system-ui, sans-serif;
      background: #060e1e;
      color: #e8eefc;
      min-height: 100vh;
    }

    /* """"""""""""""""""""""""""""""""""""""
       LOGIN
    """""""""""""""""""""""""""""""""""""" */
    .login-wrap {
      min-height: 100vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 32px 16px;
      background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(47,107,255,.22) 0%, transparent 100%),
        radial-gradient(ellipse 50% 35% at 85% 95%, rgba(100,50,220,.18) 0%, transparent 100%),
        #060e1e;
    }

    .login-brand {
      display: flex; flex-direction: column; align-items: center; gap: 14px;
      margin-bottom: 32px;
    }
    .login-brand-icon {
      width: 64px; height: 64px; border-radius: 18px;
      background: linear-gradient(135deg, #3571ff 0%, #1a3fa8 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 30px; line-height: 1;
      box-shadow: 0 12px 32px rgba(47,107,255,.45), 0 0 0 1px rgba(120,160,255,.2);
    }
    .login-brand-name {
      font-size: 26px; font-weight: 900; color: #f0f7ff;
      letter-spacing: -.03em; text-align: center; line-height: 1;
    }
    .login-brand-name span { color: #4a80ff; }
    .login-brand-sub {
      font-size: 13px; color: #5a7aab; text-align: center; margin-top: -4px;
    }

    .login-card {
      width: 100%; max-width: 390px;
      background: rgba(11,22,48,.9);
      backdrop-filter: blur(24px);
      border: 1px solid rgba(47,107,255,.18);
      border-radius: 22px;
      padding: 30px 26px 24px;
      box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
    }
    .login-field-label {
      display: block; font-size: 11px; font-weight: 700; color: #5a7aab;
      text-transform: uppercase; letter-spacing: .07em; margin-bottom: 7px;
    }
    .login-input-wrap { position: relative; margin-bottom: 18px; }
    .login-input-wrap input {
      width: 100%; padding: 12px 42px 12px 14px; border-radius: 11px;
      border: 1px solid rgba(47,107,255,.2); background: rgba(6,14,32,.8); color: #e8eefc;
      font-size: 15px; font-family: inherit; outline: none;
      transition: border-color .2s, box-shadow .2s;
    }
    .login-input-wrap input:focus {
      border-color: #3571ff;
      box-shadow: 0 0 0 3px rgba(53,113,255,.18);
    }
    .login-input-wrap input::placeholder { color: #3a5070; }
    .toggle-pass {
      position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer; padding: 4px;
      color: #4a6a94; transition: color .15s; font-size: 17px; line-height: 1;
      display: flex; align-items: center;
    }
    .toggle-pass:hover { color: #8ab0e0; }

    .btn-login {
      width: 100%; padding: 14px; border: none; border-radius: 13px; cursor: pointer;
      font-size: 15px; font-weight: 800; font-family: inherit; letter-spacing: .01em;
      background: linear-gradient(135deg, #3571ff 0%, #1e48d4 100%);
      color: #fff;
      box-shadow: 0 8px 26px rgba(47,107,255,.38);
      transition: filter .15s, transform .15s, box-shadow .15s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-login:hover:not(:disabled) {
      filter: brightness(1.1); transform: translateY(-1px);
      box-shadow: 0 12px 32px rgba(47,107,255,.48);
    }
    .btn-login:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
    .btn-login .spinner {
      display: none; width: 16px; height: 16px; border-radius: 50%;
      border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
      animation: spin .7s linear infinite;
    }
    .btn-login.loading .spinner { display: block; }
    .btn-login.loading .btn-txt { opacity: .7; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .login-divider { height: 1px; background: rgba(47,107,255,.12); margin: 20px 0; }
    .login-note {
      font-size: 12px; color: #3d5578; text-align: center;
      display: flex; align-items: center; justify-content: center; gap: 5px;
    }
    .login-note-icon { font-size: 14px; }

    .alert-ok, .alert-err {
      width: 100%; max-width: 390px;
      border-radius: 13px; padding: 13px 16px; margin-bottom: 16px;
      font-size: 14px; font-weight: 600;
      display: flex; align-items: flex-start; gap: 10px;
    }
    .alert-ok  {
      background: rgba(10,70,40,.75); border: 1px solid rgba(39,182,112,.4); color: #baffd5;
    }
    .alert-err {
      background: rgba(96,24,34,.75); border: 1px solid rgba(231,102,117,.4); color: #ffd5d9;
    }
    .alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

    /* """"""""""""""""""""""""""""""""""""""
       HEADER (logueado)
    """""""""""""""""""""""""""""""""""""" */
    .app-header {
      position: sticky; top: 0; z-index: 100;
      background:
        linear-gradient(135deg, rgba(12,68,142,.98) 0%, rgba(17,119,196,.96) 48%, rgba(43,156,220,.94) 100%);
      backdrop-filter: blur(18px) saturate(1.2);
      border-bottom: 1px solid rgba(178,219,255,.42);
      padding: 0 20px;
      display: flex; align-items: center; justify-content: space-between;
      height: 66px; gap: 14px;
      box-shadow: 0 14px 30px rgba(3,22,57,.28), inset 0 1px 0 rgba(255,255,255,.18);
      overflow: hidden;
    }
    .app-header::before {
      content: "";
      position: absolute; inset: 0;
      background:
        linear-gradient(90deg, rgba(255,255,255,.12) 0%, transparent 34%, rgba(255,255,255,.16) 100%),
        radial-gradient(circle at 86% -40%, rgba(183,229,255,.5) 0%, transparent 36%);
      pointer-events: none;
    }
    .app-brand {
      position: relative; z-index: 1;
      display: flex; align-items: center; gap: 10px; text-decoration: none;
      flex-shrink: 0; border-radius: 12px; padding: 5px 10px 5px 5px;
      margin: -4px -8px -4px -4px; transition: background .15s;
    }
    .app-brand:hover { background: rgba(255,255,255,.12); }
    .app-brand-icon {
      width: 36px; height: 36px; border-radius: 11px;
      background: linear-gradient(135deg, #e7f7ff 0%, #9ddcff 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; flex-shrink: 0;
      box-shadow: 0 10px 22px rgba(2,34,92,.25), inset 0 1px 0 rgba(255,255,255,.75);
      transition: box-shadow .15s;
    }
    .app-brand-text {
      font-size: 18px; font-weight: 900; color: #f5fbff; letter-spacing: -.015em;
      text-shadow: 0 1px 8px rgba(3,24,68,.18);
    }
    .app-brand-text span { color: #cfefff; }

    .user-chip {
      position: relative; z-index: 1;
      display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 7px;
      border-radius: 999px;
      background: rgba(7,49,104,.48);
      border: 1px solid rgba(204,237,255,.34);
      font-size: 13px; font-weight: 700; color: #eff9ff;
      max-width: min(42vw, 280px); overflow: hidden;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px rgba(2,29,82,.18);
    }
    .user-avatar {
      width: 38px; height: 38px; border-radius: 50%;
      background:
        radial-gradient(circle at 50% 32%, #dff7ff 0 22%, transparent 23%),
        radial-gradient(circle at 50% 82%, #a9dcff 0 35%, transparent 36%),
        linear-gradient(145deg, #64c7ff 0%, #1687dc 100%);
      display: flex; align-items: center; justify-content: center;
      font-size: 0; font-weight: 800; color: #fff; flex-shrink: 0;
      border: 2px solid rgba(221,245,255,.78);
      box-shadow: 0 0 0 3px rgba(4,86,162,.22), 0 8px 18px rgba(1,28,75,.24);
    }
    .user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .badge-admin {
      background: rgba(220,244,255,.18); border: 1px solid rgba(217,246,255,.45);
      border-radius: 999px; font-size: 10px; padding: 2px 8px;
      color: #f2fbff; font-weight: 800; white-space: nowrap; flex-shrink: 0;
    }

    .header-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .btn-header {
      padding: 8px 14px; border-radius: 10px;
      border: 1px solid rgba(213,242,255,.36); background: rgba(5,45,97,.28);
      color: #f2fbff; font-size: 12px; font-weight: 800; font-family: inherit;
      cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
      transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
      white-space: nowrap;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    }
    .btn-header:hover {
      background: rgba(235,250,255,.2); border-color: rgba(236,252,255,.58); color: #fff;
      transform: translateY(-1px); box-shadow: 0 8px 18px rgba(2,28,78,.18), inset 0 1px 0 rgba(255,255,255,.2);
    }
    .btn-header.pwa-install { display: none; }
    .btn-header-logout {
      border-color: rgba(189,229,255,.42); background: rgba(6,32,76,.32); color: #f1fbff;
    }
    .btn-header-logout:hover { background: rgba(235,250,255,.18); }

    /* """"""""""""""""""""""""""""""""""""""
       DASHBOARD CONTENT
    """""""""""""""""""""""""""""""""""""" */
    .app-wrap { max-width: 900px; margin: 0 auto; padding: 22px 16px 48px; }

    /* Welcome banner */
    .welcome-bar {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
      gap: 8px; margin-bottom: 22px; padding: 0 2px;
    }
    .welcome-greeting { font-size: 20px; font-weight: 800; color: #eef3ff; line-height: 1.2; }
    .welcome-greeting span { color: #4a80ff; }
    .welcome-date { font-size: 12px; color: #4a6a94; font-weight: 600; text-align: right; }

    /* Primary GPS action card */
    .gps-cta {
      display: flex; align-items: center; gap: 14px;
      background: linear-gradient(135deg, rgba(35,80,200,.35) 0%, rgba(15,35,95,.5) 100%);
      border: 1px solid rgba(53,113,255,.35);
      border-radius: 16px; padding: 18px 20px; margin-bottom: 22px;
      text-decoration: none; color: inherit;
      cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
      box-shadow: 0 8px 28px rgba(0,0,0,.2);
    }
    .gps-cta:hover { border-color: rgba(53,113,255,.6); background: linear-gradient(135deg, rgba(40,90,220,.4) 0%, rgba(18,40,105,.55) 100%); transform: translateY(-1px); }
    .gps-cta-icon {
      width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
      background: linear-gradient(135deg, #3571ff, #1a3fa8);
      display: flex; align-items: center; justify-content: center;
      font-size: 24px;
      box-shadow: 0 6px 18px rgba(47,107,255,.4);
    }
    .gps-cta-text { flex: 1; }
    .gps-cta-title { font-size: 16px; font-weight: 800; color: #eef3ff; margin-bottom: 2px; }
    .gps-cta-sub { font-size: 12px; color: #5a80b0; }
    .gps-cta-arrow {
      color: #2563eb !important;
      font-size: 24px !important;
      flex-shrink: 0;
      transition: transform .15s;
    }
    .gps-cta:hover .gps-cta-arrow { transform: translateX(3px); }

    /* Section labels */
    .section-label {
      font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
      color: #2d4a78; margin-bottom: 10px; padding: 0 2px;
      display: flex; align-items: center; gap: 8px;
    }
    .section-label::after {
      content: ''; flex: 1; height: 1px; background: rgba(47,107,255,.1);
    }

    /* Module grid */
    .modules-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 10px; margin-bottom: 28px;
    }
    .mod-tile {
      background: rgba(11,22,48,.85);
      border: 1px solid rgba(30,55,100,.8);
      border-radius: 14px; padding: 16px 12px 14px;
      text-decoration: none; color: #e8eefc;
      display: flex; flex-direction: column; align-items: center; text-align: center;
      gap: 10px;
      transition: border-color .18s, transform .18s, background .18s, box-shadow .18s;
      cursor: pointer; user-select: none;
    }
    .mod-tile:hover {
      border-color: rgba(53,113,255,.5);
      transform: translateY(-3px);
      background: rgba(14,28,60,.9);
      box-shadow: 0 10px 28px rgba(0,0,0,.25);
    }
    .mod-tile:active { transform: translateY(-1px); }

    .tile-ic {
      width: 44px; height: 44px; border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 22px; line-height: 1; flex-shrink: 0;
    }
    .tile-ic.blue   { background: rgba(53,113,255,.15); }
    .tile-ic.green  { background: rgba(16,185,129,.15); }
    .tile-ic.teal   { background: rgba(6,182,212,.15); }
    .tile-ic.amber  { background: rgba(245,158,11,.15); }
    .tile-ic.cyan   { background: rgba(14,200,200,.15); }
    .tile-ic.purple { background: rgba(139,92,246,.15); }
    .tile-ic.rose   { background: rgba(244,63,94,.15); }

    .tile-body { display: flex; flex-direction: column; gap: 3px; }
    .tile-label { font-size: 12px; font-weight: 800; line-height: 1.3; color: #d8e8ff; }
    .tile-sub   { font-size: 10px; color: #3d5a84; line-height: 1.3; }

    .mod-tile.admin-tile {
      border-color: rgba(100,60,200,.25);
      background: rgba(10,8,28,.85);
    }
    .mod-tile.admin-tile:hover {
      border-color: rgba(139,92,246,.5);
      background: rgba(14,10,36,.9);
    }

    /* """"""""""""""""""""""""""""""""""""""
       GPS FORM
    """""""""""""""""""""""""""""""""""""" */
    .report-card {
      background: rgba(11,22,48,.9);
      border: 1px solid rgba(30,55,100,.8);
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0,0,0,.3);
    }
    .report-header {
      padding: 16px 20px;
      border-bottom: 1px solid rgba(30,55,100,.8);
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
      background: rgba(6,14,30,.4);
    }
    .report-title-wrap { display: flex; align-items: center; gap: 10px; }
    .report-title-icon {
      width: 34px; height: 34px; border-radius: 10px;
      background: linear-gradient(135deg, #3571ff, #1a3fa8);
      display: flex; align-items: center; justify-content: center; font-size: 17px;
    }
    .report-title { font-size: 15px; font-weight: 800; color: #eef3ff; }
    .report-date { font-size: 12px; color: #3d5a84; font-weight: 600; }

    .report-body { padding: 22px 20px; }

    /* GPS status bar */
    .gps-bar {
      display: flex; align-items: center; gap: 12px; padding: 13px 16px;
      background: rgba(5,10,26,.6); border: 1px solid rgba(30,55,100,.7);
      border-radius: 12px; margin-bottom: 20px;
      transition: border-color .3s;
    }
    .gps-bar.gps-ok  { border-color: rgba(39,182,112,.3); background: rgba(5,30,18,.5); }
    .gps-bar.gps-err { border-color: rgba(231,102,117,.3); background: rgba(30,8,12,.5); }
    .gps-dot {
      width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
      background: rgba(90,120,180,.5);
      transition: background .3s, box-shadow .3s;
    }
    .gps-dot.ok   { background: #27b670; box-shadow: 0 0 8px rgba(39,182,112,.7); animation: gps-pulse 1.8s infinite; }
    .gps-dot.err  { background: #e76675; box-shadow: 0 0 6px rgba(231,102,117,.5); }
    .gps-dot.busy { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); animation: gps-pulse 1s infinite; }
    @keyframes gps-pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.5; transform:scale(.85); } }
    .gps-info { flex: 1; }
    #gpsMsg { font-size: 13px; color: #8ab0d8; font-weight: 600; }
    .gps-label { font-size: 10px; color: #3a5070; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

    /* Form fields */
    .field-group { margin-bottom: 18px; }
    .field-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
    .field-row > .field-group { flex: 1; min-width: 160px; margin-bottom: 0; }
    .field-label {
      display: block; font-size: 11px; font-weight: 700; color: #4a6a94;
      text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px;
    }
    .field-input {
      width: 100%; padding: 11px 13px; border-radius: 11px;
      border: 1px solid rgba(30,55,100,.8); background: rgba(6,14,32,.7); color: #e8eefc;
      font-size: 14px; font-family: inherit; outline: none;
      transition: border-color .2s, box-shadow .2s, background .2s;
    }
    .field-input:focus {
      border-color: rgba(53,113,255,.6);
      box-shadow: 0 0 0 3px rgba(53,113,255,.15);
      background: rgba(8,18,40,.85);
    }
    .field-input:read-only { color: #6a8cb5; background: rgba(4,10,24,.5); }
    .field-input::placeholder { color: #2a4060; }
    textarea.field-input { min-height: 88px; resize: vertical; line-height: 1.5; }
    select.field-input option { background: #0a1530; color: #e8eefc; }
    input[type="file"].field-input { padding: 9px 12px; }
    input[type="file"].field-input::file-selector-button {
      margin-right: 10px; background: #1a3060; color: #a8c4f0;
      border: 1px solid rgba(47,107,255,.25); border-radius: 7px;
      padding: 6px 11px; cursor: pointer; font-size: 12px; font-family: inherit;
    }

    /* Coordinates group */
    .coords-row {
      display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 20px;
    }
    @media (max-width: 580px) { .coords-row { grid-template-columns: 1fr 1fr; } }
    .coord-item { position: relative; }
    .coord-val {
      width: 100%; padding: 10px 12px; border-radius: 10px;
      border: 1px solid rgba(30,55,100,.6); background: rgba(4,10,24,.5);
      color: #5a7aab; font-size: 13px; font-family: monospace;
      text-align: center; outline: none;
    }

    /* Action buttons */
    .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .btn-primary {
      padding: 13px 22px; border: none; border-radius: 12px; cursor: pointer;
      font-size: 14px; font-weight: 800; font-family: inherit;
      background: linear-gradient(135deg, #3571ff 0%, #1e48d4 100%);
      color: #fff; box-shadow: 0 6px 20px rgba(47,107,255,.32);
      transition: filter .15s, transform .15s, box-shadow .15s;
      display: flex; align-items: center; gap: 7px;
    }
    .btn-primary:hover:not(:disabled) {
      filter: brightness(1.08); transform: translateY(-1px);
      box-shadow: 0 10px 26px rgba(47,107,255,.42);
    }
    .btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
    .btn-secondary {
      padding: 13px 18px; border: 1px solid rgba(30,55,100,.9); border-radius: 12px;
      cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit;
      background: rgba(11,22,50,.8); color: #8ab0d8;
      transition: background .15s, border-color .15s, color .15s;
      display: flex; align-items: center; gap: 6px;
    }
    .btn-secondary:hover { background: rgba(16,30,66,.9); border-color: rgba(47,107,255,.35); color: #b8d0f0; }

    /* Divider between GPS info and action buttons */
    .form-divider { height: 1px; background: rgba(30,55,100,.5); margin: 18px 0; }

    /* Flash alerts inside dashboard */
    .dash-alert {
      display: flex; align-items: flex-start; gap: 10px;
      border-radius: 13px; padding: 13px 16px; margin-bottom: 18px;
      font-size: 14px; font-weight: 600;
    }
    .dash-alert.ok  { background: rgba(10,70,40,.7); border: 1px solid rgba(39,182,112,.35); color: #baffd5; }
    .dash-alert.err { background: rgba(96,24,34,.7); border: 1px solid rgba(231,102,117,.35); color: #ffd5d9; }
    .dash-alert .alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

    /*  Mobile  */
    @media (max-width: 640px) {
      .app-header { height: 62px; padding: 0 10px; gap: 8px; }
      .app-brand { padding-right: 5px; gap: 7px; }
      .app-brand-icon { width: 34px; height: 34px; }
      .app-brand-text { font-size: 15px; }
      .user-chip { max-width: 40vw; padding: 5px 9px 5px 6px; gap: 7px; }
      .user-avatar { width: 34px; height: 34px; }
      .welcome-greeting { font-size: 17px; }
      .modules-grid { grid-template-columns: repeat(3, 1fr); }
      .btn-primary, .btn-secondary { flex: 1; justify-content: center; }
      .user-chip .user-name { max-width: 82px; }
      .btn-header { padding: 8px 10px; }
    }
    @media (max-width: 400px) {
      .app-brand-text { display: none; }
      .user-chip { margin-left: auto; max-width: calc(100vw - 118px); }
      .user-chip .user-name { max-width: 58px; }
      .modules-grid { grid-template-columns: repeat(2, 1fr); }
    }

    /* Entrance animations */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .login-brand  { animation: fadeUp .45s ease both; }
    .login-card   { animation: fadeUp .45s .1s ease both; }
    .gps-cta      { animation: fadeUp .35s .05s ease both; }
    .modules-grid { animation: fadeUp .35s .1s ease both; }
    .report-card  { animation: fadeUp .35s .15s ease both; }

    /* Clean professional light dashboard */
    body {
      background:
        linear-gradient(120deg, rgba(29, 78, 216, .08), rgba(14, 165, 233, .10)),
        #f4f8fc !important;
      color: #10233f !important;
    }
    .app-header {
      height: 64px !important;
      background: rgba(255,255,255,.92) !important;
      border-bottom: 1px solid #d8e6f5 !important;
      box-shadow: 0 10px 28px rgba(15,23,42,.08) !important;
      overflow: visible;
    }
    .app-header::before { display: none; }
    .app-brand-icon,
    .login-brand-icon,
    .gps-cta-icon,
    .report-title-icon,
    .tile-ic {
      background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
      color: #fff !important;
      font-size: 13px !important;
      font-weight: 900 !important;
      letter-spacing: .02em;
      box-shadow: 0 12px 24px rgba(37,99,235,.20) !important;
    }
    .app-brand-text { color: #10233f !important; text-shadow: none; }
    .app-brand-text span { color: #2563eb !important; }
    .user-chip {
      background: #eef6ff !important;
      border-color: #cfe0f5 !important;
      color: #17365d !important;
      box-shadow: none !important;
    }
    .user-avatar {
      background: linear-gradient(135deg, #dbeafe, #bae6fd) !important;
      color: #1d4ed8 !important;
      font-size: 13px !important;
      border-color: #fff !important;
    }
    .btn-header {
      background: #fff !important;
      border-color: #cbdcf0 !important;
      color: #1d4ed8 !important;
      box-shadow: 0 8px 18px rgba(37,99,235,.08) !important;
    }
    .btn-header-logout {
      background: #eef6ff !important;
      color: #17365d !important;
    }
    .app-wrap {
      max-width: 1040px;
      padding: 30px 18px 56px;
    }
    .welcome-bar {
      align-items: flex-end;
      margin-bottom: 24px;
    }
    .welcome-greeting {
      color: #10233f !important;
      font-size: 24px;
      letter-spacing: -.02em;
    }
    .welcome-greeting span { color: #2563eb !important; }
    .welcome-date { color: #55708f !important; }
    .gps-cta {
      background: #fff !important;
      border-color: #d8e6f5 !important;
      box-shadow: 0 18px 40px rgba(15,23,42,.08) !important;
      color: #10233f !important;
    }
    .gps-cta:hover {
      background: #f8fbff !important;
      border-color: #93c5fd !important;
    }
    .gps-cta-title { color: #10233f !important; }
    .gps-cta-sub,
    .tile-sub,
    .report-date,
    .field-label,
    .gps-label {
      color: #64748b !important;
    }
    .gps-cta-arrow {
      color: #2563eb !important;
      font-size: 24px !important;
    }
    .section-label {
      color: #2563eb !important;
      letter-spacing: .12em;
    }
    .section-label::after { background: #d8e6f5 !important; }
    .modules-grid {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 14px;
    }
    .mod-tile,
    .mod-tile.admin-tile {
      min-height: 118px;
      background: #fff !important;
      border-color: #d8e6f5 !important;
      box-shadow: 0 16px 34px rgba(15,23,42,.07) !important;
      color: #10233f !important;
    }
    .mod-tile:hover,
    .mod-tile.admin-tile:hover {
      background: #f8fbff !important;
      border-color: #93c5fd !important;
      box-shadow: 0 22px 44px rgba(37,99,235,.12) !important;
    }
    .tile-label { color: #10233f !important; font-size: 13px; }
    .report-card {
      background: #fff !important;
      border-color: #d8e6f5 !important;
      box-shadow: 0 20px 48px rgba(15,23,42,.10) !important;
      border-radius: 8px;
    }
    .report-header {
      background: #f8fbff !important;
      border-bottom-color: #d8e6f5 !important;
    }
    .report-title { color: #10233f !important; }
    .report-body { background: #fff; }
    .gps-bar,
    .gps-bar.gps-ok,
    .gps-bar.gps-err {
      background: #f8fbff !important;
      border-color: #d8e6f5 !important;
    }
    #gpsMsg { color: #55708f !important; }
    .gps-bar.gps-err #gpsMsg { color: #be123c !important; }
    .field-input,
    .coord-val {
      background: #fff !important;
      border-color: #cbdcf0 !important;
      color: #10233f !important;
    }
    .field-input:focus {
      border-color: #60a5fa !important;
      box-shadow: 0 0 0 3px rgba(96,165,250,.22) !important;
    }
    .form-divider { background: #e5edf7 !important; }
    .btn-secondary {
      background: #fff !important;
      border-color: #cbdcf0 !important;
      color: #1d4ed8 !important;
    }
    .btn-primary {
      background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    }
