ig-v1 / web /static /app.css
harshith99's picture
Feat: capture inbox (Phase B) β€” phone captures merge into the library
eda6c91
Raw
History Blame Contribute Delete
44 kB
:root {
--ig1: #e1306c;
--ig2: #f77737;
--ig3: #fcb045;
--bg: #0a0a0a;
--surface: #111111;
--surface2: #1a1a1a;
--border: #2a2a2a;
--text: #f5f5f5;
--muted: #888;
--radius: 16px;
--grad: linear-gradient(135deg, var(--ig1), var(--ig2), var(--ig3));
--tab-h: 54px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
min-height: 100vh;
padding: 24px 16px 80px;
}
/* ── Header ─────────────────────────────────────────────── */
.header {
text-align: center;
margin-bottom: 48px;
}
.logo-ring {
display: inline-block;
padding: 3px;
background: var(--grad);
border-radius: 50%;
margin-bottom: 16px;
}
.logo-inner {
background: var(--bg);
border-radius: 50%;
width: 72px; height: 72px;
display: flex; align-items: center; justify-content: center;
font-size: 32px;
}
h1 {
font-size: clamp(1.6rem, 5vw, 2.4rem);
font-weight: 800;
background: var(--grad);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.5px;
}
.tagline {
color: var(--muted);
margin-top: 8px;
font-size: 0.95rem;
}
/* ── Card ────────────────────────────────────────────────── */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 28px;
max-width: 640px;
margin: 0 auto 24px;
}
.card-title {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--muted);
margin-bottom: 20px;
}
/* ── Restore card (cached library) ───────────────────────── */
#restore-card { border-color: var(--ig2); }
.restore-sub {
font-size: 1rem;
font-weight: 600;
color: var(--text);
margin: -8px 0 8px;
}
.restore-note {
font-size: 0.8rem;
color: var(--muted);
line-height: 1.4;
margin-bottom: 18px;
}
.restore-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.restore-actions .btn { width: auto; flex: 1 1 auto; }
.lib-quota-note {
font-size: 0.8rem;
color: var(--muted);
margin-top: 8px;
}
/* ── Drop zone ───────────────────────────────────────────── */
.drop-zone {
border: 2px dashed var(--border);
border-radius: 12px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
position: relative;
overflow: hidden;
}
.drop-zone:hover, .drop-zone.drag-over {
border-color: var(--ig2);
background: rgba(247,119,55,0.05);
}
.drop-zone.valid { border-color: #4caf50; border-style: solid; }
.drop-zone.invalid { border-color: var(--ig1); border-style: solid; }
.drop-zone input[type=file] {
position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-label { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.drop-sub { font-size: 0.82rem; color: var(--muted); }
.file-chosen {
font-size: 0.85rem;
color: var(--ig3);
margin-top: 10px;
font-weight: 600;
display: none;
}
/* ── Provider toggle ─────────────────────────────────────── */
.provider-row {
display: flex; gap: 8px; margin-bottom: 18px;
}
.provider-btn {
flex: 1; padding: 10px 12px;
background: var(--surface2);
border: 1.5px solid var(--border);
border-radius: 10px;
color: var(--muted);
font-size: 0.85rem; font-weight: 600;
cursor: pointer; text-align: center;
transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.provider-btn:hover { border-color: var(--ig2); color: var(--text); }
.provider-btn.active {
border-color: var(--ig1);
background: rgba(225,48,108,0.08);
color: var(--text);
}
.provider-note {
font-size: 0.72rem; color: var(--muted); margin-top: 12px;
}
.provider-note.warn { color: #ff9f43; }
/* ── Model picker ────────────────────────────────────────── */
.model-grid {
display: grid;
gap: 8px;
margin-top: 4px;
}
.model-option {
display: flex;
align-items: center;
gap: 12px;
background: var(--surface2);
border: 1.5px solid var(--border);
border-radius: 10px;
padding: 12px 14px;
cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.model-option:hover { border-color: var(--ig2); }
.model-option.selected {
border-color: var(--ig1);
background: rgba(225,48,108,0.08);
}
.model-option input[type=radio] { display: none; }
.model-dot {
width: 10px; height: 10px;
border-radius: 50%;
border: 2px solid var(--border);
flex-shrink: 0;
}
.model-option.selected .model-dot {
background: var(--ig1);
border-color: var(--ig1);
}
.model-name { font-size: 0.82rem; font-weight: 700; }
.model-label { font-size: 0.75rem; color: var(--muted); }
.model-bench { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.bench-cost { color: var(--muted); }
.rec-badge {
font-size: 0.62rem; font-weight: 700; letter-spacing: 0.8px;
text-transform: uppercase;
background: rgba(252,176,69,0.15);
color: var(--ig3);
border: 1px solid rgba(252,176,69,0.3);
padding: 2px 6px;
border-radius: 4px;
flex-shrink: 0;
}
/* ── Button ──────────────────────────────────────────────── */
.btn {
display: block;
width: 100%;
padding: 14px;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
background: var(--grad);
color: white;
letter-spacing: 0.3px;
transition: opacity 0.2s, transform 0.1s;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
/* ── Progress ────────────────────────────────────────────── */
#progress-section { display: none; }
.progress-bar-wrap {
background: var(--surface2);
border-radius: 100px;
height: 6px;
overflow: hidden;
margin-bottom: 20px;
}
.progress-bar-fill {
height: 100%;
background: var(--grad);
border-radius: 100px;
width: 0%;
transition: width 0.6s ease;
}
.steps { display: flex; flex-direction: column; gap: 10px; }
.step {
display: flex; align-items: center; gap: 12px;
font-size: 0.88rem;
opacity: 0.3;
transition: opacity 0.4s;
}
.step.active { opacity: 1; }
.step.done { opacity: 0.6; }
.step-icon {
width: 28px; height: 28px;
border-radius: 50%;
border: 2px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 13px;
flex-shrink: 0;
transition: border-color 0.3s, background 0.3s;
}
.step.active .step-icon {
border-color: var(--ig2);
background: rgba(247,119,55,0.15);
animation: pulse 1.5s ease-in-out infinite;
}
.step.done .step-icon {
border-color: var(--ig1);
background: rgba(225,48,108,0.15);
}
@keyframes pulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(247,119,55,0.3); }
50% { box-shadow: 0 0 0 6px rgba(247,119,55,0); }
}
.status-msg {
font-size: 0.85rem;
color: var(--muted);
min-height: 20px;
margin-top: 16px;
transition: color 0.3s;
}
.status-msg.error { color: #ff6b6b; }
/* ── Download bar (Browse panel) ────────────────────────── */
.download-row {
display: flex; gap: 10px; margin-top: 10px;
}
.download-row .btn { flex: 1; }
.download-note {
font-size: 0.73rem; color: var(--muted);
text-align: center; margin-top: 6px; margin-bottom: 0;
}
.btn-outline {
background: transparent;
border: 1.5px solid var(--border);
color: var(--text);
margin-top: 10px;
}
.btn-outline:hover { border-color: var(--ig2); }
/* ── Roulette ────────────────────────────────────────────── */
.roulette-btn {
display: flex; align-items: center; justify-content: center;
gap: 10px;
width: 100%;
padding: 16px;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
background: var(--grad);
color: white;
transition: opacity 0.2s, transform 0.2s;
margin-bottom: 16px;
}
.roulette-btn:hover { opacity: 0.9; }
.roulette-btn:active { transform: scale(0.97); }
.dice { font-size: 1.3rem; }
.city-row {
display: flex; align-items: center; gap: 10px;
margin-bottom: 12px; font-size: 0.85rem; color: var(--muted);
}
.city-row input[type=text] {
flex: 1; background: var(--surface2); border: 1px solid var(--border);
border-radius: 8px; color: var(--text); padding: 6px 10px;
font-size: 0.85rem; outline: none; transition: border-color 0.15s;
}
.city-row input[type=text]:focus { border-color: var(--ig2); }
.city-clear {
background: none; border: none; color: var(--muted);
cursor: pointer; font-size: 0.9rem; padding: 2px 4px;
display: none; line-height: 1;
}
.city-clear:hover { color: var(--text); }
.radius-row.dimmed { opacity: 0.35; pointer-events: none; }
.radius-row {
display: flex; align-items: center; gap: 12px;
margin-bottom: 16px;
font-size: 0.85rem;
color: var(--muted);
}
.radius-row input[type=range] {
flex: 1;
accent-color: var(--ig2);
}
.radius-val { font-weight: 700; color: var(--text); min-width: 48px; text-align: right; }
.status-filter-row {
display: flex; justify-content: flex-end;
margin-bottom: 14px;
}
.status-toggle {
font-size: 0.78rem; font-weight: 600; cursor: pointer;
padding: 5px 12px; border-radius: 20px;
border: 1.5px solid var(--border);
background: var(--surface2); color: var(--muted);
transition: background 0.15s, color 0.15s, border-color 0.15s;
white-space: nowrap;
}
.status-toggle.active {
border-color: var(--ig2); color: var(--ig2);
background: rgba(131,58,180,0.12);
}
.status-toggle:hover { border-color: var(--ig2); color: var(--ig2); }
.pick-card {
background: var(--surface2);
border: 1.5px solid var(--border);
border-radius: 12px;
padding: 20px;
display: none;
animation: pop-in 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes pop-in {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
.pick-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.pick-loc { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.pick-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.pick-highlight { font-size: 0.85rem; color: var(--ig3); font-weight: 600; margin-bottom: 10px; }
.pick-byline { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.pick-link {
display: inline-flex; align-items: center; gap: 6px;
font-size: 0.82rem; font-weight: 600;
background: var(--grad);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-decoration: none;
}
.pick-link:hover { opacity: 0.8; }
.pick-no-loc {
font-size: 0.78rem; color: #ff9f43; margin-top: 8px;
}
/* ── New-since-last-visit banner ────────────────────────── */
.new-banner-inner {
display: flex; align-items: center; justify-content: space-between;
background: rgba(131,58,180,0.14); border: 1.5px solid var(--ig2);
border-radius: 10px; padding: 10px 16px;
font-size: 0.85rem; font-weight: 600; color: var(--ig2);
animation: pop-in 0.3s ease;
}
.new-banner-dismiss {
background: none; border: none; cursor: pointer;
color: var(--ig2); font-size: 0.9rem; padding: 0 0 0 12px; line-height: 1;
opacity: 0.7;
}
.new-banner-dismiss:hover { opacity: 1; }
/* ── Separator ───────────────────────────────────────────── */
.sep {
max-width: 640px; margin: 0 auto 24px;
display: flex; align-items: center; gap: 12px;
}
.sep-line { flex: 1; height: 1px; background: var(--border); }
.sep-text { font-size: 0.75rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
/* ── Shimmer on load ─────────────────────────────────────── */
.spinner {
display: inline-block;
width: 14px; height: 14px;
border: 2px solid rgba(255,255,255,0.2);
border-top-color: white;
border-radius: 50%;
animation: spin 0.7s linear infinite;
vertical-align: middle;
margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ── Simplified model picker ─────────────────────────────── */
.post-count-preview {
font-size: 0.82rem; color: var(--ig3); font-weight: 600;
margin-top: 10px; display: none; text-align: center;
}
.post-count-preview.success { color: #4caf50; }
.post-count-preview.error { color: var(--ig1); }
.model-friendly-row {
display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.model-friendly { font-size: 0.9rem; font-weight: 800; }
.model-sublabel { font-size: 0.73rem; color: var(--muted); margin-bottom: 4px; }
.model-cost-estimate { font-size: 0.75rem; font-weight: 600; color: var(--ig3); }
.model-id-disclosure { margin-top: 5px; }
.model-id-disclosure summary {
font-size: 0.68rem; color: var(--muted);
cursor: pointer; list-style: none; user-select: none;
display: flex; align-items: center; gap: 3px;
}
.model-id-disclosure summary::-webkit-details-marker { display: none; }
.model-id-disclosure summary::before {
content: 'β–Έ'; font-size: 0.6rem;
display: inline-block; transition: transform 0.15s;
}
.model-id-disclosure[open] summary::before { transform: rotate(90deg); }
/* ── URL input ───────────────────────────────────────────── */
/* ── URL input ───────────────────────────────────────────── */
.url-or-divider {
display: flex; align-items: center; gap: 10px;
margin: 16px 0 12px; color: var(--muted);
font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.8px;
}
.url-or-divider::before,
.url-or-divider::after {
content: ''; flex: 1; border-top: 1px solid var(--border);
}
.url-input-row input[type=url] {
width: 100%; padding: 10px 12px; box-sizing: border-box;
border: 1.5px solid var(--border); border-radius: 8px;
font-size: 0.85rem; font-family: var(--font);
color: var(--text); background: var(--surface);
transition: border-color 0.2s;
}
.url-input-row input[type=url]:focus { outline: none; border-color: var(--ig2); }
.url-input-row input[type=url]::placeholder { color: var(--muted); }
.url-input-row input[type=url].valid { border-color: #4caf50; }
.url-input-note { font-size: 0.75rem; color: var(--muted); margin: 5px 0 0; }
/* ── Export guide ────────────────────────────────────────── */
.export-guide {
margin-top: 18px;
border-top: 1px solid var(--border);
padding-top: 14px;
}
.export-guide summary {
font-size: 0.82rem; font-weight: 600; color: var(--muted);
cursor: pointer; list-style: none; user-select: none;
display: flex; align-items: center; gap: 6px;
transition: color 0.15s;
}
.export-guide summary:hover { color: var(--text); }
.export-guide summary::-webkit-details-marker { display: none; }
.export-guide summary::before {
content: 'β–Έ'; font-size: 0.65rem;
display: inline-block; transition: transform 0.2s;
}
.export-guide[open] summary::before { transform: rotate(90deg); }
.export-platform {
margin: 18px 0 0; font-size: 0.8rem; font-weight: 700; color: var(--text);
}
.export-platform:first-of-type { margin-top: 14px; }
.export-steps {
margin: 10px 0 0 0; padding-left: 20px;
display: flex; flex-direction: column; gap: 9px;
}
.export-steps li {
font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}
.export-steps li strong { color: var(--text); }
.export-steps code {
font-family: "SF Mono", "Fira Code", monospace;
font-size: 0.78rem; color: var(--ig3);
background: rgba(252,176,69,0.08);
padding: 1px 5px; border-radius: 4px;
}
.export-tip {
margin-top: 12px; font-size: 0.78rem;
color: var(--muted); font-style: italic;
}
/* ── Results browser ─────────────────────────────────────── */
#results-section { max-width: 960px; margin: 0 auto 80px; }
/* QC map preview */
#results-map {
height: 380px; max-width: 960px; margin: 0 auto 8px;
border-radius: 12px; border: 1px solid var(--border); z-index: 0;
}
#map-note {
max-width: 960px; margin: 0 auto 16px;
font-size: 0.78rem; color: var(--muted); text-align: center;
}
.leaflet-popup-content { font-size: 0.8rem; line-height: 1.45; margin: 10px 12px; }
.leaflet-popup-content .pp-name { font-weight: 700; font-size: 0.86rem; }
.leaflet-popup-content .pp-meta { color: #555; }
.leaflet-popup-content a { color: var(--ig1); font-weight: 600; }
/* Stats bar */
.stats-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
@media (max-width: 500px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat-chip {
display: flex; align-items: center; gap: 10px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 14px;
}
.stat-icon { font-size: 1.3rem; flex-shrink: 0; }
.stat-val { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
/* Filter bar */
.filter-bar {
display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
margin-bottom: 16px;
}
.filter-search {
flex: 1; min-width: 160px;
background: var(--surface2); border: 1.5px solid var(--border);
border-radius: 8px; color: var(--text);
padding: 8px 12px; font-size: 0.85rem;
outline: none; transition: border-color 0.15s;
}
.filter-search:focus { border-color: var(--ig2); }
.filter-select {
background: var(--surface2); border: 1.5px solid var(--border);
border-radius: 8px; color: var(--text);
padding: 8px 10px; font-size: 0.82rem;
outline: none; cursor: pointer;
transition: border-color 0.15s;
}
.filter-select:focus { border-color: var(--ig2); }
.price-chips { display: flex; gap: 4px; }
.price-chip {
background: var(--surface2); border: 1.5px solid var(--border);
border-radius: 6px; color: var(--muted);
padding: 6px 9px; font-size: 0.78rem; font-weight: 700;
cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.price-chip.active {
border-color: var(--ig2); color: var(--ig3);
background: rgba(247,119,55,0.1);
}
.missing-toggle {
background: var(--surface2); border: 1.5px solid var(--border);
border-radius: 8px; color: var(--muted);
padding: 7px 12px; font-size: 0.78rem; font-weight: 600;
cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s;
white-space: nowrap;
}
.missing-toggle.active {
border-color: #ff6b6b; color: #ff9f9f;
background: rgba(255,107,107,0.1);
}
.result-count { font-size: 0.75rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
/* Results grid */
.results-grid {
display: grid;
grid-template-columns: 1fr;
gap: 12px;
}
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
/* Restaurant card */
.rest-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px;
position: relative;
animation: card-in 0.3s ease both;
transition: border-color 0.2s;
}
.rest-card:hover { border-color: #3a3a3a; }
.rest-card.missing-pin { border-left: 3px solid rgba(255,107,107,0.5); }
@keyframes card-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
.pin-badge {
position: absolute; top: 14px; right: 14px;
width: 8px; height: 8px; border-radius: 50%;
}
.pin-ok { background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.5); }
.pin-missing { background: #555; }
.status-badge {
display: inline-flex; align-items: center; gap: 3px;
font-size: 0.68rem; font-weight: 600;
padding: 2px 7px; border-radius: 100px;
cursor: pointer; user-select: none;
border: 1px solid transparent;
transition: opacity 0.15s, transform 0.1s;
margin-bottom: 6px;
}
.status-badge:hover { opacity: 0.8; }
.status-badge:active { transform: scale(0.95); }
.status-badge.s-unvisited { background: rgba(136,136,136,0.1); border-color: #333; color: var(--muted); }
.status-badge.s-visited { background: rgba(46,204,113,0.12); border-color: rgba(46,204,113,0.3); color: #2ecc71; }
.status-badge.s-want_to_go { background: rgba(225,48,108,0.1); border-color: rgba(225,48,108,0.25); color: var(--ig1); }
.status-badge.s-closed { background: rgba(255,107,107,0.08); border-color: rgba(255,107,107,0.2); color: #888; text-decoration: line-through; }
.rest-card.status-closed { opacity: 0.45; }
.rest-card.status-closed .card-name { color: var(--muted); }
/* Freshly-merged "new" places */
.rest-card.is-new { border-color: var(--ig2); }
.new-badge {
position: absolute; top: 10px; right: 24px;
font-size: 0.62rem; font-weight: 700; letter-spacing: 0.3px;
padding: 2px 7px; border-radius: 100px;
background: linear-gradient(135deg, var(--ig1), var(--ig2));
color: #fff;
}
/* Import card: Merge vs Replace control (shown when a library exists) */
.import-mode {
margin-top: 12px; font-size: 0.82rem;
display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
}
.import-mode-label { width: 100%; color: var(--muted); }
.import-mode label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text); }
.import-mode input { accent-color: var(--ig1); }
/* Capture-from-phone setup (iOS Shortcut β†’ /capture inbox) */
.capture-setup { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.capture-setup summary {
cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text);
list-style: none; display: flex; align-items: center; gap: 8px;
}
.capture-setup summary::-webkit-details-marker { display: none; }
.beta-tag {
font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
padding: 1px 6px; border-radius: 100px; color: #fff;
background: linear-gradient(135deg, var(--ig1), var(--ig2));
}
.capture-note { font-size: 0.8rem; color: var(--muted); line-height: 1.45; margin: 10px 0; }
.capture-token-row { display: flex; gap: 8px; align-items: center; }
#capture-token {
flex: 1; font-size: 0.8rem; padding: 8px 10px; border-radius: 8px;
background: var(--bg); border: 1px solid var(--border); color: var(--text);
overflow-x: auto; white-space: nowrap;
}
.capture-token-row .btn { width: auto; flex: 0 0 auto; padding: 8px 14px; }
.card-name {
font-size: 0.95rem; font-weight: 800;
margin-bottom: 3px; padding-right: 20px;
line-height: 1.3;
}
.card-name .is-placeholder { color: var(--muted); font-style: italic; font-weight: 400; }
.card-loc { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.cuisine-chip {
font-size: 0.68rem; font-weight: 700; letter-spacing: 0.4px;
background: rgba(225,48,108,0.1);
border: 1px solid rgba(225,48,108,0.2);
color: var(--ig1); border-radius: 4px; padding: 2px 7px;
}
.price-tag {
font-size: 0.68rem; font-weight: 700;
background: rgba(252,176,69,0.1);
border: 1px solid rgba(252,176,69,0.2);
color: var(--ig3); border-radius: 4px; padding: 2px 7px;
}
.card-highlight { font-size: 0.8rem; color: var(--ig3); font-weight: 600; margin-bottom: 3px; }
.card-occasion { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.card-byline { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; }
.card-link {
display: inline-flex; align-items: center; gap: 4px;
font-size: 0.75rem; font-weight: 600;
background: var(--grad);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text; text-decoration: none;
}
.card-link:hover { opacity: 0.8; }
/* Inline editing */
.editable {
cursor: text;
border-bottom: 1px dashed transparent;
transition: border-color 0.15s;
}
.editable:hover { border-bottom-color: var(--muted); }
.edit-input {
background: var(--surface2); border: 1.5px solid var(--ig2);
border-radius: 4px; color: var(--text);
padding: 1px 5px; font-size: inherit; font-weight: inherit;
font-family: inherit; width: 100%; outline: none;
}
@keyframes flash-ok { 0%,100% { background: transparent; } 50% { background: rgba(46,204,113,0.2); } }
@keyframes flash-err { 0%,100% { background: transparent; } 50% { background: rgba(255,107,107,0.2); } }
.flash-ok { animation: flash-ok 0.6s ease; border-radius: 3px; }
.flash-err { animation: flash-err 0.6s ease; border-radius: 3px; }
/* Re-geocode button */
.regeocode-btn {
margin-top: 10px;
width: 100%;
background: transparent;
border: 1.5px solid var(--border);
border-radius: 8px; color: var(--muted);
padding: 7px 10px; font-size: 0.78rem; font-weight: 600;
cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.regeocode-btn:hover { border-color: var(--ig2); color: var(--text); }
.regeocode-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* ── Top navigation (always visible) ────────────────────── */
#top-nav {
position: sticky;
top: 0;
z-index: 100;
background: var(--bg);
border-bottom: 1px solid var(--border);
padding: 0 16px;
}
.top-nav-inner {
max-width: 640px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 4px;
height: var(--tab-h);
}
.top-tab-btn {
flex: 1;
display: flex; align-items: center; justify-content: center; gap: 6px;
height: 38px;
padding: 0 18px;
border: 1.5px solid transparent;
border-radius: 9px;
background: transparent;
color: var(--muted);
font-size: 0.9rem; font-weight: 700;
cursor: pointer; white-space: nowrap;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.top-tab-btn:hover { color: var(--text); border-color: var(--border); }
.top-tab-btn.active {
color: var(--text);
border-color: var(--ig1);
background: rgba(225,48,108,0.08);
}
/* ── Top panels ───────────────────────────────────────────── */
.top-panel { display: none; }
.top-panel.active {
display: block;
animation: panel-in 0.2s ease;
}
@keyframes panel-in {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}
/* ── Sub-tab bar (inside Explore, shown after data loads) ── */
#sub-tab-bar {
display: none;
position: sticky;
top: var(--tab-h);
z-index: 90;
background: var(--surface);
border-bottom: 1px solid var(--border);
padding: 0 16px;
animation: slide-down 0.25s ease;
}
@keyframes slide-down {
from { transform: translateY(-8px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.sub-tab-bar-inner {
max-width: 960px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 4px;
height: 46px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
}
.sub-tab-bar-inner::-webkit-scrollbar { display: none; }
.sub-tab-btn {
flex: 0 0 auto;
display: flex; align-items: center; gap: 6px;
height: 32px;
padding: 0 12px;
border: 1.5px solid transparent;
border-radius: 7px;
background: transparent;
color: var(--muted);
font-size: 0.82rem; font-weight: 600;
cursor: pointer; white-space: nowrap;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sub-tab-btn:hover { color: var(--text); border-color: var(--border); }
.sub-tab-btn.active {
color: var(--text);
border-color: var(--ig1);
background: rgba(225,48,108,0.08);
}
.sub-tab-btn-ghost {
margin-left: auto;
border-color: var(--border) !important;
background: transparent !important;
color: var(--muted) !important;
}
.sub-tab-btn-ghost:hover { color: var(--text) !important; border-color: var(--ig2) !important; }
.tab-badge {
display: inline-flex; align-items: center; justify-content: center;
min-width: 18px; height: 18px;
padding: 0 5px;
border-radius: 9px;
font-size: 0.65rem; font-weight: 700;
background: linear-gradient(135deg, rgba(225,48,108,0.22), rgba(252,176,69,0.22));
color: var(--ig3);
}
.tab-badge:empty { display: none; }
/* Nudge toast (inside sub-tab bar) */
#nudge-toast {
display: none;
align-items: center; justify-content: space-between; gap: 12px;
max-width: 960px; margin: 0 auto 8px;
padding: 8px 14px;
background: rgba(225,48,108,0.1);
border: 1px solid rgba(225,48,108,0.3);
border-radius: 8px;
font-size: 0.82rem; color: var(--text);
animation: pop-in 0.3s ease;
}
.nudge-dismiss {
background: none; border: none; cursor: pointer;
color: var(--muted); font-size: 0.9rem; padding: 0; line-height: 1; flex-shrink: 0;
}
.nudge-dismiss:hover { color: var(--text); }
/* Stat strip */
#tab-stat-strip {
display: none;
max-width: 960px; margin: 0 auto;
padding: 0 0 8px;
font-size: 0.72rem; color: var(--muted); text-align: center;
}
#tab-stat-strip strong { color: var(--ig3); }
/* ── Sub-panels ────────────────────────────────────────────── */
.sub-panel { display: none; }
.sub-panel.active {
display: block;
animation: panel-in 0.2s ease;
}
/* ── Import card ──────────────────────────────────────────── */
#import-status { min-height: 18px; }
/* Action bar */
.action-bar {
display: flex; align-items: center; justify-content: space-between;
gap: 12px;
background: var(--surface);
border: 1px solid rgba(247,119,55,0.3);
border-radius: 12px;
padding: 14px 18px;
margin-top: 20px;
}
.action-msg { font-size: 0.82rem; color: #ff9f43; }
.action-btn {
padding: 9px 16px;
border: none; border-radius: 8px;
background: var(--grad); color: white;
font-size: 0.85rem; font-weight: 700;
cursor: pointer; white-space: nowrap;
transition: opacity 0.2s;
}
.action-btn:hover { opacity: 0.88; }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
/* ── FAQ / About panel ────────────────────────────────────── */
/* Pipeline diagram */
.pipeline-diagram {
display: flex;
align-items: flex-start;
gap: 0;
overflow-x: auto;
padding-bottom: 6px;
scrollbar-width: thin;
}
.pipe-node {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
min-width: 96px;
flex-shrink: 0;
padding: 12px 8px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 10px;
}
.pipe-node-hl {
border-color: rgba(225,48,108,0.4);
background: rgba(225,48,108,0.07);
}
.pipe-icon-wrap { font-size: 1.4rem; margin-bottom: 6px; }
.pipe-node-label {
font-size: 0.75rem;
font-weight: 700;
color: var(--text);
margin-bottom: 4px;
line-height: 1.3;
}
.pipe-node-sub {
font-size: 0.65rem;
color: var(--muted);
line-height: 1.4;
}
.pipe-providers {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 3px;
margin-top: 8px;
}
.pipe-prov {
font-size: 0.6rem;
background: rgba(225,48,108,0.18);
color: var(--ig1);
border-radius: 4px;
padding: 2px 5px;
white-space: nowrap;
}
.pipe-connector {
display: flex;
align-items: flex-start;
padding: 20px 5px 0;
color: var(--muted);
font-size: 1rem;
flex-shrink: 0;
}
.pipeline-legend {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
margin-top: 16px;
font-size: 0.72rem;
color: var(--muted);
}
.pipe-out {
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 3px 8px;
color: var(--text);
font-size: 0.7rem;
}
/* About section */
.about-row {
display: flex;
gap: 20px;
align-items: flex-start;
}
.about-avatar {
font-size: 2.4rem;
width: 64px; height: 64px;
display: flex; align-items: center; justify-content: center;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 50%;
flex-shrink: 0;
}
.about-body { flex: 1; min-width: 0; }
.about-name {
font-size: 1rem;
font-weight: 800;
background: var(--grad);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.about-handle {
font-size: 0.78rem;
color: var(--muted);
margin-bottom: 10px;
}
.about-bio {
font-size: 0.85rem;
color: var(--muted);
line-height: 1.65;
margin-bottom: 14px;
}
.about-bio strong { color: var(--text); }
.about-links { display: flex; gap: 10px; flex-wrap: wrap; }
.about-link {
font-size: 0.8rem;
color: var(--ig1);
text-decoration: none;
border: 1px solid rgba(225,48,108,0.3);
border-radius: 6px;
padding: 4px 10px;
transition: background 0.15s;
}
.about-link:hover { background: rgba(225,48,108,0.1); }
/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
padding: 14px 0;
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
list-style: none;
display: flex;
align-items: center;
gap: 10px;
color: var(--text);
user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
content: '+';
font-size: 1.1rem;
color: var(--ig1);
font-weight: 400;
width: 16px;
flex-shrink: 0;
text-align: center;
}
.faq-item[open] > summary::before { content: 'βˆ’'; }
.faq-item p {
font-size: 0.84rem;
color: var(--muted);
line-height: 1.75;
padding: 0 0 16px 26px;
}
.faq-item p strong { color: var(--text); }
.faq-item p code {
font-family: monospace;
font-size: 0.8rem;
background: var(--surface2);
border-radius: 4px;
padding: 1px 5px;
}
/* ── Pipeline timing note ─────────────────────────────────── */
.progress-timing-note {
margin-top: 14px;
padding: 10px 13px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 0.78rem;
color: var(--muted);
line-height: 1.55;
}
.progress-timing-note strong { color: var(--text); }
/* ── Tour overlay & spotlight ─────────────────────────────── */
#tour-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 10000;
background: transparent;
pointer-events: all;
}
.tour-spotlight {
position: relative !important;
z-index: 10001 !important;
box-shadow: 0 0 0 4px var(--ig1), 0 0 0 9999px rgba(0,0,0,0.62) !important;
border-radius: 10px;
}
/* ── Tour tooltip ─────────────────────────────────────────── */
#tour-tooltip {
display: none;
position: fixed;
z-index: 10002;
flex-direction: column;
gap: 10px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 14px;
box-shadow: 0 8px 32px rgba(0,0,0,0.45);
padding: 18px 20px 14px;
max-width: 320px;
min-width: 260px;
font-size: 0.88rem;
line-height: 1.5;
}
#tour-close {
position: absolute;
top: 10px; right: 12px;
background: none;
border: none;
cursor: pointer;
font-size: 1rem;
color: var(--muted);
padding: 2px 6px;
border-radius: 4px;
line-height: 1;
}
#tour-close:hover { background: var(--surface2); }
#tour-title {
font-weight: 700;
font-size: 0.95rem;
padding-right: 24px;
color: var(--text);
}
#tour-body { color: var(--muted); }
#tour-body code {
font-family: monospace;
font-size: 0.8rem;
color: var(--text);
background: var(--surface2);
padding: 1px 5px;
border-radius: 3px;
}
#tour-body strong, #tour-body em { color: var(--text); font-style: normal; }
#tour-footer {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 4px;
}
#tour-counter { font-size: 0.75rem; color: var(--muted); }
#tour-btns { display: flex; gap: 8px; }
#tour-back, #tour-next, #tour-finish {
font-size: 0.82rem;
padding: 5px 13px;
border-radius: 6px;
border: 1px solid var(--border);
cursor: pointer;
background: var(--surface2);
color: var(--text);
transition: background 0.15s;
}
#tour-back:hover { background: var(--border); }
#tour-next, #tour-finish {
background: var(--ig1);
color: #fff;
border-color: var(--ig1);
}
#tour-next:hover, #tour-finish:hover { filter: brightness(1.12); }
/* ── Demo hero (below header, above nav) ─────────────────── */
#demo-hero {
max-width: 640px;
margin: -8px auto 20px;
padding: 12px 18px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
display: flex;
align-items: center;
gap: 14px;
}
.demo-hero-copy {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.demo-hero-copy strong {
color: var(--text);
}
.demo-hero-copy span {
font-size: 0.88rem;
color: var(--muted);
}
/* ── Site footer ───────────────────────────────────────────── */
#site-footer {
max-width: 640px;
margin: 40px auto 0;
padding: 20px 0 48px;
text-align: center;
border-top: 1px solid var(--border);
font-size: 0.8rem;
color: var(--muted);
}
#site-footer a,
#site-footer a:visited {
color: var(--muted);
text-decoration: underline;
text-underline-offset: 3px;
}
#site-footer a:hover,
#site-footer a:visited:hover { color: var(--text); }
.btn-tour {
flex: 0 0 auto;
display: inline-flex;
align-items: center;
gap: 7px;
padding: 9px 18px;
background: var(--ig1);
color: #fff;
border: none;
border-radius: 8px;
font-size: 0.88rem;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: filter 0.15s;
}
.btn-tour:hover { filter: brightness(1.12); }
/* ── Feedback floating button ─────────────────────────────── */
#feedback-btn {
position: fixed;
bottom: calc(22px + env(safe-area-inset-bottom, 0px));
right: 18px;
z-index: 9000;
background: var(--ig1);
color: #fff;
border: none;
border-radius: 50px;
padding: 10px 16px;
font-size: 0.82rem;
font-weight: 600;
cursor: pointer;
box-shadow: 0 4px 18px rgba(225,48,108,0.45);
display: flex;
align-items: center;
gap: 7px;
transition: filter 0.15s, transform 0.15s;
white-space: nowrap;
}
#feedback-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
/* ── Feedback modal overlay ────────────────────────────────── */
#feedback-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 9001;
background: rgba(0,0,0,0.62);
align-items: center;
justify-content: center;
padding: 20px;
}
#feedback-overlay.open { display: flex; }
#feedback-modal {
position: relative;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px;
width: 100%;
max-width: 460px;
box-shadow: 0 8px 40px rgba(0,0,0,0.55);
animation: fb-in 0.18s ease;
}
@keyframes fb-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
#feedback-close {
position: absolute;
top: 14px; right: 16px;
background: none;
border: none;
color: var(--muted);
font-size: 1.1rem;
cursor: pointer;
padding: 2px 7px;
border-radius: 4px;
line-height: 1;
}
#feedback-close:hover { background: var(--surface2); }
.fb-label {
display: block;
font-size: 0.82rem;
font-weight: 600;
color: var(--text);
margin-bottom: 6px;
}
#feedback-title-input,
#feedback-body-input {
width: 100%;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 0.84rem;
background: var(--surface2);
color: var(--text);
font-family: inherit;
}
#feedback-title-input:focus,
#feedback-body-input:focus {
outline: none;
border-color: var(--ig1);
}
#feedback-body-input { resize: vertical; }
@media (max-width: 480px) {
#feedback-btn { padding: 11px 14px; }
.feedback-label { display: none; }
#demo-hero { flex-direction: column; }
.btn-tour { width: 100%; }
}