/* ==========================================================
   Marvs Global Limited: project tracking and admin pages
   Uses the tokens from style.css. Loaded only on /track-project and /admin.
   ========================================================== */

/* ---------- Code lookup ---------- */
.track-lookup { position: relative; z-index: 2; margin-top: -64px; }
.lookup-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 36px 40px; background: var(--background); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 3px; box-shadow: var(--shadow-preview); }
.lookup-card h2 { font-size: 26px; font-weight: 700; line-height: 1.3; }
.lookup-card > div > p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }
.lookup-form { display: grid; gap: 10px; }
.lookup-form label { font-size: 14px; font-weight: 500; }
.lookup-row { display: flex; gap: 10px; }
.lookup-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: var(--muted); border: 1px solid var(--border); border-radius: 2px; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--foreground); }
.lookup-row input::placeholder { font-weight: 400; letter-spacing: .04em; color: #9a9ea5; }
.lookup-row input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; background: var(--background); }
.lookup-row .btn { height: 52px; }
.lookup-hint { font-size: 13px; color: var(--muted-foreground); }
.lookup-hint button { padding: 0; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.lookup-message { padding: 12px 14px; border-radius: 2px; font-size: 14px; line-height: 1.6; }
.lookup-message.is-error { background: rgba(213,11,19,.07); color: #9b0a10; }
.lookup-message.is-info { background: var(--muted); color: var(--muted-foreground); }

/* ---------- Result ---------- */
.track-result { padding-block: 56px 96px; scroll-margin-top: 88px; }
.sample-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 12px 16px; background: #fff7e0; border: 1px solid #f1dc9c; border-radius: 3px; font-size: 14px; color: #6b5310; }
.sample-banner .icon { width: 18px; height: 18px; }
.safety-banner { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 26px; padding: 14px 16px; background: #fdecec; border: 1px solid #f3b9b9; border-left: 4px solid #c62828; border-radius: 3px; font-size: 15px; line-height: 1.6; color: #7a1c1c; }
.safety-banner .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--border); }
.result-head h2 { margin-top: 6px; font-size: 34px; font-weight: 700; line-height: 1.25; }
.result-head p { margin-top: 10px; max-width: 640px; font-size: 15px; line-height: 1.7; color: var(--muted-foreground); }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted-foreground); }
.result-meta .code-chip { padding: 5px 9px; background: var(--navy); color: var(--primary-foreground); border-radius: 2px; font-weight: 600; letter-spacing: .06em; }
.result-meta .status-pill.is-hold { background: #fff1d6; color: #8a5a00; }
.result-meta .status-pill.is-planning { background: var(--muted); color: var(--muted-foreground); }
.result-updated { font-size: 13px; color: var(--muted-foreground); text-align: right; }
.result-updated b { display: block; margin-top: 3px; font-size: 14px; color: var(--foreground); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.stat-card { padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 3px; }
.stat-card > span { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted-foreground); }
.stat-card > span .icon { width: 16px; height: 16px; color: var(--primary); }
.stat-card strong { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.25; }
.stat-card small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted-foreground); }
.stat-card .progress-track { margin-top: 12px; }
.progress-track > span.js-width { width: 0; transition: width .6s ease; }

.result-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; margin-top: 24px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.panel-head h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 16px; font-weight: 600; }
.panel-head h3 .icon { width: 17px; height: 17px; color: var(--primary); }
.panel-head small { font-size: 12px; color: var(--muted-foreground); }
.panel-body { padding: 20px; }

.live-photo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--muted); }
.live-photo img { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; background: rgba(29,36,46,.88); color: var(--primary-foreground); border-radius: 2px; font-size: 12px; font-weight: 600; }
.live-badge::before { content: ""; width: 7px; height: 7px; background: #2fd07a; border-radius: 50%; box-shadow: 0 0 0 3px rgba(47,208,122,.25); }
.live-caption { padding: 14px 20px 18px; font-size: 14px; line-height: 1.6; }
.live-caption small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-foreground); }
.no-photo { display: grid; place-items: center; gap: 8px; height: 100%; font-size: 14px; color: var(--muted-foreground); }

.map-box { height: 300px; background: var(--muted); }
.map-box .leaflet-container { font: inherit; }
.map-address { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 20px 18px; font-size: 14px; line-height: 1.6; }
.map-address > span { display: flex; align-items: flex-start; gap: 8px; }
.map-address .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--primary); }
.map-address a { font-weight: 600; color: var(--primary); }
.map-address a:hover { text-decoration: underline; }

.next-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; background: var(--navy); color: var(--primary-foreground); border-radius: 3px; }
.next-card .feature-icon { background: rgba(213,11,19,.18); }
.next-card h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-muted); }
.next-card h4 { margin-top: 6px; font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.next-card p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--on-dark-muted); }
.next-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; }
.next-facts b { font-weight: 600; color: var(--primary-foreground); }
.side-stack { display: grid; gap: 24px; align-content: start; }

/* ---------- Stage timeline ---------- */
.result-section { margin-top: 56px; }
.result-section > h2 { font-size: 26px; font-weight: 700; }
.result-section > p { margin-top: 8px; font-size: 15px; color: var(--muted-foreground); }
.timeline { display: grid; margin-top: 26px; }
.stage { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding-bottom: 22px; }
.stage::before { content: ""; position: absolute; top: 34px; bottom: 0; left: 16px; width: 2px; background: var(--border); }
.stage:last-child::before { display: none; }
.stage.is-completed::before { background: var(--success-soft); }
.stage-dot { display: grid; place-items: center; width: 34px; height: 34px; background: var(--background); color: var(--muted-foreground); border: 2px solid var(--border); border-radius: 50%; font-size: 13px; font-weight: 700; }
.stage-dot .icon { width: 16px; height: 16px; }
.stage.is-completed .stage-dot { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.stage.is-in_progress .stage-dot { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); box-shadow: 0 0 0 5px rgba(213,11,19,.12); }
.stage-card { padding: 18px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 3px; }
.stage.is-in_progress .stage-card { border-color: rgba(213,11,19,.45); box-shadow: var(--shadow-subtle); }
.stage.is-upcoming .stage-card { background: var(--muted); }
.stage-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; }
.stage-top h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; line-height: 1.5; }
.stage-tag { padding: 4px 8px; border-radius: 2px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.stage-tag.is-completed { background: var(--success-soft); color: var(--success); }
.stage-tag.is-in_progress { background: rgba(213,11,19,.08); color: var(--primary); }
.stage-tag.is-upcoming { background: var(--background); color: var(--muted-foreground); border: 1px solid var(--border); }
.stage-desc { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }
.stage-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 12px; font-size: 13px; color: var(--muted-foreground); }
.stage-facts b { font-weight: 600; color: var(--foreground); }
.stage-notes { margin-top: 12px; padding: 10px 12px; background: var(--muted); border-left: 2px solid var(--primary); font-size: 14px; line-height: 1.65; }
.stage.is-upcoming .stage-notes { background: var(--background); }
.stage-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.stage-progress .progress-track { flex: 1; margin-top: 0; }
.stage-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stage-photos button { position: relative; width: 120px; height: 84px; overflow: hidden; border-radius: 2px; background: var(--muted); }
.stage-photos button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stage-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.stage-photos button:hover img { transform: scale(1.05); }

/* ---------- Costs ---------- */
.cost-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.cost-summary .stat-card strong { font-size: 22px; }
.cost-bar { display: flex; height: 10px; margin-top: 22px; overflow: hidden; background: var(--muted); border-radius: 10px; }
.cost-bar span:first-child { background: var(--success); }
.cost-bar span:nth-child(2) { background: var(--primary); }
.cost-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 13px; color: var(--muted-foreground); }
.cost-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--border); border-radius: 3px; }
.cost-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.cost-table th, .cost-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cost-table thead th { background: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); }
.cost-table td.num, .cost-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table tfoot td { background: var(--muted); font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; }
.cost-table .over { color: #9b0a10; }
.cost-table .under { color: var(--success); }
.cost-table .dim { color: var(--muted-foreground); }
.cost-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Updates ---------- */
.updates-list { display: grid; gap: 0; margin-top: 22px; border: 1px solid var(--border); border-radius: 3px; }
.updates-list li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.65; }
.updates-list li:last-child { border-bottom: 0; }
.updates-list time { font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.result-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding: 26px 28px; background: var(--muted); border-radius: 3px; }
.result-help h3 { font-size: 18px; font-weight: 700; }
.result-help p { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }

/* ---------- Photo viewer ---------- */
.photo-viewer { width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; background: var(--navy); color: var(--primary-foreground); border: 0; border-radius: 3px; }
.photo-viewer::backdrop { background: rgba(11,18,29,.85); }
.photo-viewer img { width: 100%; max-height: 75vh; object-fit: contain; background: #0b121d; }
.photo-viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; font-size: 14px; }
.photo-viewer-bar small { display: block; color: var(--on-dark-muted); }
.photo-viewer-bar button { flex-shrink: 0; height: 38px; padding: 0 14px; border: 1px solid rgba(248,250,252,.35); border-radius: 2px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--muted); }
.admin-shell { width: min(1200px, 100% - 48px); margin: 32px auto 80px; }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.admin-top h1 { font-size: 26px; font-weight: 800; }
.admin-top p { font-size: 14px; color: var(--muted-foreground); }
.admin-card { padding: 24px; background: var(--background); border: 1px solid var(--border); border-radius: 3px; }
.admin-card + .admin-card { margin-top: 20px; }
.admin-card h2 { font-size: 19px; font-weight: 700; }
.admin-card h2 + p { margin-top: 6px; font-size: 14px; color: var(--muted-foreground); }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.admin-grid .span-2 { grid-column: span 2; }
.admin-grid .span-4 { grid-column: 1 / -1; }
.admin-form label, .admin-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-grid input, .admin-grid select, .admin-grid textarea { width: 100%; padding: 9px 11px; background: var(--background); border: 1px solid var(--border); border-radius: 2px; font: inherit; font-size: 14px; font-weight: 400; color: var(--foreground); }
.admin-form textarea, .admin-grid textarea { resize: vertical; min-height: 64px; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-grid input:focus, .admin-grid select:focus, .admin-grid textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.check-label { display: flex !important; align-items: center; gap: 8px !important; }
.check-label input { width: auto; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.admin-actions .btn, .admin-small-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-danger { background: var(--background); color: #9b0a10; border: 1px solid rgba(213,11,19,.35); }
.btn-danger:hover { background: rgba(213,11,19,.06); }
.project-list { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.project-list th, .project-list td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.project-list th { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted-foreground); }
.project-list tr[data-id] { cursor: pointer; }
.project-list tr[data-id]:hover td { background: var(--muted); }
.code-text { font-weight: 600; letter-spacing: .05em; }
.admin-stage { padding: 18px; margin-top: 14px; border: 1px solid var(--border); border-radius: 3px; }
.admin-stage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.admin-stage-head b { font-size: 15px; }
.admin-stage .admin-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.admin-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-photo { width: 150px; font-size: 12px; }
.admin-photo img { width: 150px; height: 100px; object-fit: cover; border-radius: 2px; background: var(--muted); }
.admin-photo .check-label { margin-top: 6px; font-weight: 400; }
.admin-photo button { margin-top: 4px; font-size: 12px; color: #9b0a10; text-decoration: underline; }
.upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.upload-row label { flex: 1 1 180px; }
.pick-map { height: 260px; margin-top: 8px; border: 1px solid var(--border); border-radius: 2px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); padding: 12px 18px; background: var(--navy); color: var(--primary-foreground); border-radius: 3px; font-size: 14px; box-shadow: var(--shadow-preview); }
.toast.is-error { background: #9b0a10; }
.setup-steps { display: grid; gap: 10px; margin-top: 14px; padding-left: 20px; list-style: decimal; font-size: 14px; line-height: 1.7; }
.setup-steps code, .admin-card code { padding: 1px 5px; background: var(--muted); border-radius: 2px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stage .admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .track-lookup { margin-top: -40px; }
  .lookup-card { grid-template-columns: 1fr; gap: 22px; padding: 26px 20px; }
  .lookup-card h2 { font-size: 22px; }
  .lookup-row { flex-direction: column; }
  .lookup-row .btn { width: 100%; }
  .track-result { padding-block: 40px 70px; }
  .result-head h2 { font-size: 26px; }
  .result-updated { text-align: left; }
  .stat-grid, .cost-summary { grid-template-columns: 1fr; gap: 12px; }
  .stat-card strong { font-size: 22px; }
  .map-box { height: 240px; }
  .next-card { grid-template-columns: 1fr; }
  .result-section { margin-top: 44px; }
  .result-section > h2 { font-size: 22px; }
  .stage { grid-template-columns: 28px 1fr; gap: 12px; }
  .stage::before { left: 13px; top: 28px; }
  .stage-dot { width: 28px; height: 28px; font-size: 12px; }
  .stage-card { padding: 16px; }
  .stage-photos button { width: calc(50% - 4px); height: 96px; }
  .updates-list li { grid-template-columns: 1fr; gap: 2px; }
  .admin-shell { width: calc(100% - 32px); }
  .admin-grid, .admin-stage .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .span-2 { grid-column: auto; }
}
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted-foreground); }
.map-pin span { display: block; width: 28px; height: 28px; background: var(--primary); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.35); }

/* ---------- Admin sign-in (split screen) ---------- */
.is-login .site-header, .is-login .admin-shell { display: none; }
.login-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; min-height: 100dvh; background: var(--background); }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px clamp(24px, 6vw, 88px); }
.login-body { width: 100%; max-width: 420px; }
.login-body .eyebrow { margin-bottom: 18px; }
.login-body h1 { font-size: 40px; font-weight: 800; line-height: 1.15; }
.login-body > p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }
.login-form { display: grid; gap: 18px; margin-top: 32px; }
.login-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.login-form input { width: 100%; height: 50px; padding: 0 14px; background: var(--muted); border: 1px solid var(--border); border-radius: 2px; font: inherit; font-size: 15px; color: var(--foreground); }
.login-form input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; background: var(--background); }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--primary); }
.login-submit { width: 100%; height: 52px; margin-top: 6px; }
.login-submit[disabled] { opacity: .7; cursor: progress; }
.login-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.login-foot a:hover { color: var(--primary); }
.login-visual { position: relative; overflow: hidden; background: var(--navy); color: var(--primary-foreground); }
.login-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: login-zoom 18s ease-out both; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,18,29,.92) 0%, rgba(11,18,29,.35) 55%, rgba(11,18,29,.15) 100%); }
.login-visual-copy { position: absolute; left: clamp(24px, 5vw, 64px); right: clamp(24px, 5vw, 64px); bottom: clamp(32px, 6vw, 72px); z-index: 1; max-width: 520px; }
.login-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: rgba(248,250,252,.12); border: 1px solid rgba(248,250,252,.2); border-radius: 30px; font-size: 13px; font-weight: 500; backdrop-filter: blur(4px); }
.login-chip i { width: 8px; height: 8px; background: #2fd07a; border-radius: 50%; box-shadow: 0 0 0 3px rgba(47,208,122,.25); }
.login-visual-copy h2 { margin-top: 18px; font-size: 34px; font-weight: 800; line-height: 1.25; }
.login-visual-copy p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--on-dark-muted); }
@keyframes login-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Loading screen ---------- */
.app-loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--navy); color: var(--primary-foreground); transition: opacity .45s ease, visibility .45s; }
.app-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 10px; text-align: center; }
/* Official logo builds up from the ground, then a light sweep passes over it */
.loader-logo { position: relative; width: 168px; overflow: hidden; }
.loader-logo img { display: block; width: 100%; height: auto; animation: loader-rise 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
.loader-logo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); background-size: 300% 100%; background-position: 100% 0; -webkit-mask: url("/images/marvs-logo-full.png") center / contain no-repeat; mask: url("/images/marvs-logo-full.png") center / contain no-repeat; animation: loader-shine 2.4s ease-in-out infinite; pointer-events: none; }
.app-loader p { font-size: 14px; color: var(--on-dark-muted); }
.loader-bar { width: 180px; height: 3px; margin-top: 8px; overflow: hidden; background: rgba(248,250,252,.15); border-radius: 3px; }
.loader-bar span { display: block; width: 40%; height: 100%; background: var(--primary); border-radius: 3px; animation: loader-bar 1.2s ease-in-out infinite; }
@keyframes loader-rise { 0% { clip-path: inset(100% 0 0 0); opacity: .4; } 45%, 85% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: .85; } }
@keyframes loader-shine { 0%, 50% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
@keyframes loader-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  .login-visual img, .loader-logo img, .loader-logo::after, .loader-bar span { animation: none !important; }
}
@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-visual { order: -1; min-height: 220px; }
  .login-visual-copy { bottom: 24px; }
  .login-visual-copy h2 { font-size: 22px; }
  .login-visual-copy p { display: none; }
  .login-panel { padding: 28px 20px 24px; gap: 28px; }
  .login-body h1 { font-size: 30px; }
}

/* Address search matches on /admin */
.address-matches { display: grid; gap: 6px; }
.address-matches small { color: var(--muted-foreground); }
.address-matches button { padding: 8px 11px; text-align: left; font: inherit; font-size: 13px; color: var(--foreground); background: var(--background); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; }
.address-matches button:hover { border-color: var(--primary); }
.address-matches button[aria-pressed="true"] { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
