
  :root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #171723;
    --border: #1e1e2e;
    --text: #c8c8d4;
    --dim: #6b6b7b;
    --accent: #60a5fa;
    --glow: rgba(96, 165, 250, 0.14);
    --green: #4ade80;
    --gold: #fbbf24;
    --red: #f87171;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; }
  input { font-family: inherit; }
  [hidden] { display: none !important; }

  /* ── Buttons ── */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 9px 16px;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
  }
  .btn:hover { border-color: rgba(96,165,250,.45); }
  .btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #08121f;
    font-weight: 700;
  }
  .btn.primary:hover { background: #7db6fb; border-color: #7db6fb; }
  .btn.ghost { background: transparent; }
  .btn.small { padding: 6px 12px; font-size: 0.82rem; }
  .btn.danger { color: var(--red); border-color: rgba(248,113,113,.25); background: rgba(248,113,113,.08); }
  .btn:disabled { opacity: 0.55; cursor: not-allowed; }
  .link {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.86rem;
    padding: 8px;
  }
  .link:hover { text-decoration: underline; }

  /* ── Auth view ── */
  #auth-view {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background:
      radial-gradient(600px 600px at 50% -10%, var(--glow), transparent 70%),
      var(--bg);
  }
  .auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    text-align: center;
  }
  .auth-card .logo { font-size: 2.4rem; }
  .auth-card h1 { color: #fff; font-size: 1.45rem; margin-top: 10px; letter-spacing: 0.02em; }
  .auth-card .sub { color: var(--dim); font-size: 0.84rem; margin: 8px 0 22px; }
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
  }
  .tabs button {
    border: none;
    background: transparent;
    color: var(--dim);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
  }
  .tabs button.active { background: var(--accent); color: #08121f; font-weight: 700; }
  #auth-form { display: flex; flex-direction: column; gap: 12px; }
  #auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: #e0e0e8;
    font-size: 0.92rem;
    outline: none;
  }
  #auth-form input:focus { border-color: var(--accent); }
  #auth-submit { width: 100%; padding: 12px; }
  .auth-card .link { margin-top: 14px; }

  /* ── App view ── */
  #app-view { min-height: 100vh; }
  header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 1.25rem;
    background: rgba(10, 10, 15, 0.86);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .brand { font-weight: 800; color: #fff; font-size: 1.05rem; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; }
  .header-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  #user-line {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 1.5rem 0;
    font-size: 0.8rem;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #user-email { color: var(--text); font-weight: 600; }
  #shared-badge {
    font-size: 0.68rem;
    padding: 1px 9px;
    border-radius: 999px;
    color: var(--gold);
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.2);
  }
  main { max-width: 760px; margin: 0 auto; padding: 12px 1.5rem 80px; }
  .stats { font-size: 0.82rem; color: var(--dim); margin: 4px 0 14px; }
  .stats b { color: var(--accent); }

  /* ── Records ── */
  .records { display: flex; flex-direction: column; gap: 14px; }
  .record {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .record:hover { border-color: rgba(96,165,250,.35); }
  .record .thumb {
    width: 100%;
    height: 200px;
    background: var(--surface-2);
    cursor: zoom-in;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .record .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .record .thumb .nophoto { color: var(--dim); font-size: 0.8rem; }
  .record-body { padding: 14px 16px 16px; }
  .record-addr { color: #e8e8f0; font-weight: 600; font-size: 0.95rem; line-height: 1.5; }
  .record-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 0.78rem; color: var(--dim); }
  .record-actions { display: flex; gap: 8px; margin-top: 12px; }

  /* ── Empty / loading ── */
  .empty {
    text-align: center;
    padding: 60px 1rem;
    color: var(--dim);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: 14px;
  }
  .empty .big { font-size: 2.2rem; margin-bottom: 8px; }
  .loading { text-align: center; color: var(--dim); padding: 40px 0; font-size: 0.85rem; }

  /* ── Add panel ── */
  #add-panel {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(4, 4, 8, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  @media (min-width: 640px) { #add-panel { align-items: center; } }
  .panel-card {
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
    padding: 24px 22px 26px;
  }
  @media (min-width: 640px) { .panel-card { border-radius: 18px; } }
  .panel-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
  .panel-card label { display: block; font-size: 0.78rem; color: var(--dim); margin: 14px 0 6px; }
  .panel-card input[type="text"], .panel-card input[type="number"] {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: #e0e0e8;
    font-size: 0.92rem;
    outline: none;
  }
  .panel-card input:focus { border-color: var(--accent); }
  .panel-card input[type="file"] { color: var(--dim); font-size: 0.85rem; margin-top: 4px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .addr-row { display: flex; gap: 8px; }
  .addr-row input { flex: 1; }
  #f-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-top: 10px; border: 1px solid var(--border); }
  .geo-hint { font-size: 0.74rem; color: var(--dim); margin-top: 6px; }
  .panel-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
  .spinner {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(96,165,250,.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ── Lightbox ── */
  #lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
  }
  #lightbox img { max-width: 96vw; max-height: 96vh; border-radius: 8px; }

  /* ── Toast ── */
  #toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 50;
    background: #1c1c2a;
    border: 1px solid var(--border);
    color: #e8e8f0;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.45);
    max-width: 90vw;
  }
  #toast.err { border-color: rgba(248,113,113,.4); color: #fca5a5; }
  #toast.ok { border-color: rgba(74,222,128,.4); color: #86efac; }

  /* ── Floating add (mobile) ── */
  #fab {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 25;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #08121f;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(96,165,250,.35);
  }

  @media (max-width: 600px) {
    header { padding: 12px 1rem; }
    main { padding: 10px 1rem 90px; }
    .record .thumb { height: 170px; }
  }


/* Interface refresh, 2026-09-10. Keep native interactions and site identity. */
[hidden]{display:none!important}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{touch-action:manipulation}
:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
button:disabled{cursor:wait;opacity:.6}
.refresh-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}
.refresh-tools input,.refresh-tools select{min-width:0;border:1px solid #d9e2e6;background:#fff;border-radius:12px;padding:12px;color:inherit}
.refresh-tools input{flex:1 1 180px}
.refresh-note{font-size:13px;color:#637784;line-height:1.6}
.refresh-empty{padding:28px 16px;text-align:center;color:#64748b;border:1px dashed #cbd5e1;border-radius:16px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:600px){input,select,textarea{font-size:16px!important}}

body{background:#f2f6f3}.auth-card{border:1px solid #dbe8df;box-shadow:0 20px 70px #18442a12;border-radius:26px}.auth-card h1{letter-spacing:1px}.auth-card .sub{line-height:1.8}header{border-bottom:1px solid #dce6df;background:#ffffffed}.records{gap:20px}.record{border:1px solid #dfe8e2;box-shadow:0 4px 18px #27443007;border-radius:20px;overflow:hidden}.record.latest-record{border-color:#8fc5a4}.latest-record .record-addr::before{content:'最近停车';display:block;width:fit-content;font-size:11px;font-weight:600;letter-spacing:.08em;color:#217341;background:#eaf6ee;padding:3px 8px;border-radius:6px;margin-bottom:8px}.record-actions{flex-wrap:wrap;gap:8px}.record-actions .btn{min-height:40px}#record-summary{margin:10px 0 18px}.record-addr{overflow-wrap:anywhere}#record-refresh{flex:none}.panel-card{max-height:90dvh;overflow:auto}#toast{pointer-events:none}
@media(max-width:600px){.header-actions{gap:5px}.header-actions .btn{padding:9px 10px}.brand{font-size:17px}.refresh-tools select{flex:1}.refresh-tools input{flex-basis:100%}}

:root{--bg:#0b1420;--surface:#111e2d;--surface-2:#172638;--border:#2b3c51;--text:#e4edf7;--dim:#a5b4c7;--accent:#72c5b5;--glow:#72c5b519}
body{background:var(--bg)}header{background:#0e1b2beb;border-color:var(--border)}.auth-card,.record{border-color:var(--border);box-shadow:0 18px 60px #0003}.record.latest-record{border-color:#559e90}.refresh-tools input,.refresh-tools select{background:var(--surface-2);border-color:var(--border);color:var(--text)}.refresh-note,.refresh-empty{color:var(--dim)}.refresh-empty{border-color:var(--border)}.auth-card .sub{color:var(--dim)}input::placeholder{color:#90a2b8}
