:root {
  --orange: #FE5000;
  --cyan: #00B4FF;
  --green: #7CFF6B;
  --gold: #F5C451;
  --bg: #111114;
  --dark: #0A0A0C;
  --text: #F2F2F2;
  --muted: rgba(242,242,242,0.62);
  --faint: rgba(242,242,242,0.08);
  --radius: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  /* Dark marine-chart base: faint lat/lon style grid */
  background-image:
    linear-gradient(rgba(0,180,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: inherit; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(242,242,242,0.06);
  position: sticky; top: 0; z-index: 40;
  background: rgba(17,17,20,0.92);
  backdrop-filter: blur(12px);
}
.logo { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--orange); }
.nav-links {
  display: flex; gap: clamp(18px, 3vw, 36px); list-style: none;
  font-size: 14px; color: rgba(242,242,242,0.65);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.product-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,180,255,0.12); padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.btn-login, .btn-ghost, .btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; border: none; cursor: pointer;
  border-radius: 12px; padding: 10px 16px; font-family: inherit;
}
.btn-login {
  background: transparent; color: var(--text);
  border: 1px solid rgba(242,242,242,0.22);
}
.btn-login:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary { background: var(--orange); color: var(--dark); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: rgba(242,242,242,0.06); color: var(--text);
  border: 1px solid rgba(242,242,242,0.12);
}
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 10px; }
.header { text-align: center; padding: 36px clamp(20px, 4vw, 56px) 28px; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
h1 .accent { color: var(--orange); }
.header .sub {
  font-size: 16px; color: var(--muted); max-width: 560px;
  margin: 0 auto 20px;
}
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12px; font-weight: 700; padding: 8px 14px;
  border-radius: 999px; background: rgba(242,242,242,0.05);
  border: 1px solid rgba(242,242,242,0.1);
}
.chip.o { border-color: rgba(254,80,0,0.5); color: var(--orange); background: rgba(254,80,0,0.1); }
.chip.g { border-color: rgba(124,255,107,0.45); color: var(--green); background: rgba(124,255,107,0.08); }
.chip.c { border-color: rgba(0,180,255,0.5); color: var(--cyan); background: rgba(0,180,255,0.1); }
.chip.n { color: rgba(242,242,242,0.7); }
.chip.a { border-color: rgba(198,217,154,0.45); color: #c6d99a; background: rgba(198,217,154,0.1); }
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 8px clamp(20px, 4vw, 56px) 0;
}
.card {
  background: var(--dark);
  border-radius: var(--radius);
  border: 1px solid rgba(242,242,242,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 420px;
}
.card.road { box-shadow: 0 0 0 1px rgba(254,80,0,0.25), 0 20px 40px rgba(0,0,0,0.35); }
.card.terrain { box-shadow: 0 0 0 1px rgba(124,255,107,0.2), 0 20px 40px rgba(0,0,0,0.35); }
.card.boat { box-shadow: 0 0 0 1px rgba(0,180,255,0.25), 0 20px 40px rgba(0,0,0,0.35); }
.card.aerial { box-shadow: 0 0 0 1px rgba(198,217,154,0.28), 0 20px 40px rgba(0,0,0,0.35); }
.card.favorites { box-shadow: 0 0 0 1px rgba(245,196,81,0.28), 0 20px 40px rgba(0,0,0,0.35); }
.viz { height: 220px; position: relative; }
.viz svg { width: 100%; height: 100%; display: block; }
.body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.card.road .label { color: var(--orange); }
.card.terrain .label { color: var(--green); }
.card.boat .label { color: var(--cyan); }
.card.aerial .label { color: #c6d99a; }
.card.favorites .label { color: var(--gold); }
.body h2 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.body p { font-size: 14px; color: rgba(242,242,242,0.55); flex: 1; }
.feat { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.feat span {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px; background: rgba(242,242,242,0.05);
  color: rgba(242,242,242,0.6);
}
.cta-band {
  margin: 28px clamp(20px, 4vw, 56px) 40px;
  background: linear-gradient(90deg, rgba(254,80,0,0.12), rgba(0,180,255,0.1));
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.cta-band .msg { font-size: clamp(16px, 2vw, 18px); font-weight: 700; letter-spacing: -0.02em; }
.cta-band .msg em { font-style: normal; color: var(--orange); }
.cta-band .hint { font-size: 13px; color: rgba(242,242,242,0.5); margin-top: 4px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--dark); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 12px; text-decoration: none; white-space: nowrap;
}
.btn-store svg { width: 18px; height: 18px; }
.site-footer {
  padding: 24px clamp(20px, 4vw, 56px) 40px;
  color: rgba(242,242,242,0.4); font-size: 13px;
  border-top: 1px solid rgba(242,242,242,0.06);
  display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  align-items: center;
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.footer-legal a {
  color: rgba(242,242,242,0.72); font-weight: 700; text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--orange); }
.footer-legal a[aria-current="page"] { color: var(--orange); }
/* Auth / panel */
.auth-shell, .panel-shell {
  max-width: 880px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px) 64px;
}
.auth-card, .panel-card {
  background: var(--dark);
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 18px; padding: 28px;
}
.panel-shell { max-width: 960px; }
.admin-section { display: grid; gap: 20px; }
.admin-section .panel-card h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px;
}
.admin-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-nav button {
  appearance: none;
  text-align: left;
  background: var(--dark);
  color: var(--text);
  border: 1px solid rgba(242,242,242,0.1);
  border-radius: 18px;
  padding: 18px 18px 16px;
  cursor: pointer;
  font: inherit;
}
.admin-nav button strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.admin-nav button small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.admin-nav button[aria-selected="true"] {
  border-color: rgba(254,80,0,0.75);
  box-shadow: 0 0 0 3px rgba(254,80,0,0.14);
}
.admin-nav button:hover { border-color: rgba(254,80,0,0.45); }
.admin-account-row { margin: 0 0 20px; }
#btn-account[aria-pressed="true"] {
  border-color: rgba(0,180,255,0.7);
  color: var(--cyan);
}
.pager-row { margin: 4px 0 8px; }
.pager-row .ad-meta { margin: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.stat-grid div {
  background: #121216;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 12px;
  padding: 10px 12px;
}
.stat-grid strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .admin-nav { grid-template-columns: 1fr; }
}
.auth-card h1, .panel-shell h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px;
}
.lead { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(242,242,242,0.55); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; background: #121216; color: var(--text);
  border: 1px solid rgba(242,242,242,0.12); border-radius: 10px;
  padding: 12px 14px; font: inherit; outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(254,80,0,0.55); box-shadow: 0 0 0 3px rgba(254,80,0,0.12);
}
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.status {
  font-size: 13px; color: var(--muted); min-height: 1.2em; margin-top: 10px;
}
.status.ok { color: var(--green); }
.status.err { color: #ff6b6b; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0,180,255,0.12); color: var(--cyan);
}
.badge.admin { background: rgba(254,80,0,0.14); color: var(--orange); }
.ad-list { display: grid; gap: 16px; margin-top: 20px; }
.ad-item {
  border: 1px solid rgba(242,242,242,0.08); border-radius: 14px;
  padding: 18px; background: #0e0e12;
}
.ad-item h3 { font-size: 18px; margin-bottom: 4px; }
.ad-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: auto; accent-color: var(--orange); }
.panel-top {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 20px;
}
.admin-stats { margin-bottom: 20px; }
.admin-stats-nav { margin-bottom: 12px; }
.admin-stats-nav a {
  display: block;
  text-decoration: none;
  background: var(--dark);
  color: var(--text);
  border: 1px solid rgba(254, 80, 0, 0.55);
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.admin-stats-nav a strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.admin-stats-nav a small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.admin-stats-nav a:hover,
.admin-stats-nav a:focus-visible { border-color: var(--orange); }
.stats-source {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 8px;
}
.stats-source div {
  background: #121216;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.stats-source strong { display: block; margin-bottom: 4px; }
.stats-source span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.stats-source code { font-size: 12px; }
@media (max-width: 720px) {
  .stats-source { grid-template-columns: 1fr; }
}
.hidden { display: none !important; }
@media (max-width: 980px) {
  .modes { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .card { min-height: 0; }
  .viz { height: 180px; }
}

/* Auth extras: Apple + MFA */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: rgba(242,242,242,0.35); font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(242,242,242,0.1);
}
.btn-apple {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #000; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  font-family: inherit;
}
.btn-apple:hover { filter: brightness(0.96); }
.auth-choice {
  display: flex; gap: 8px; margin-bottom: 18px;
}
.auth-choice button {
  appearance: none; border: 1px solid rgba(242,242,242,0.14);
  background: #121216; color: var(--text); font: inherit;
  font-size: 14px; font-weight: 700; border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
}
.auth-choice button[aria-selected="true"] {
  background: var(--orange); color: var(--dark); border-color: transparent;
}
#mfa-qr img, #panel-mfa-qr img { display: block; }
.check.marketing {
  align-items: flex-start;
  margin: 4px 0 16px;
  line-height: 1.45;
}
.check.marketing input { margin-top: 3px; flex: none; }
.mfa-methods { display: grid; gap: 8px; margin: 0 0 16px; }
.mfa-method {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: #121216; color: var(--text);
  border: 1px solid rgba(242,242,242,0.12);
  border-radius: 12px; padding: 12px 14px;
}
.mfa-method strong { font-size: 14px; }
.mfa-method small { color: var(--muted); font-size: 13px; }
.mfa-method.is-active {
  border-color: rgba(254,80,0,0.75);
  box-shadow: 0 0 0 3px rgba(254,80,0,0.12);
}
.mfa-secret {
  display: block; word-break: break-all; font-size: 13px;
  padding: 10px; background: #121216; border-radius: 8px; margin-top: 8px;
}

.viz.marine-dark { background: #03080f; }
.img-preview {
  display: block; max-width: 220px; max-height: 140px; width: auto; height: auto;
  border-radius: 10px; margin: 8px 0 12px; border: 1px solid rgba(242,242,242,0.12);
  background: #0e0e12; object-fit: cover;
}
.img-preview.empty { display: none; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.file-row input[type=file] { font-size: 13px; color: var(--muted); max-width: 100%; }

/* Käyttäjien ehdottamat — compact horizontal carousel */
.suggestions {
  padding: 36px clamp(20px, 4vw, 56px) 20px;
}
.suggestions-inner { max-width: 1100px; margin: 0 auto; }
.suggestions-head { text-align: center; margin-bottom: 18px; }
.suggestions-head h2 {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.suggestions-head .sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 14px; }
.suggestion-carousel-wrap {
  margin: 0 -4px 22px;
}
.suggestion-carousel {
  display: flex;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: none;

}
.suggestion-carousel::-webkit-scrollbar { display: none; height: 0; }

.suggestion-carousel > .lead {
  flex: 0 0 auto;
  padding: 12px 8px;
  margin: 0;
}
.suggestion-card {
  flex: 0 0 auto;
  width: min(220px, 72vw);
  scroll-snap-align: start;
  background: #0e0e12;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  max-height: 96px;
}
.suggestion-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.suggestion-card h3 {
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggestion-rating {
  flex-shrink: 0;
  font-size: 12px; font-weight: 800;
  color: #ffc107;
  white-space: nowrap;
}
.suggestion-count { color: var(--muted); font-weight: 600; font-size: 11px; }
.suggestion-loc {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--cyan);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggestion-card p { display: none; }
.suggestion-maps {
  margin-top: 2px;
  font-size: 11px; font-weight: 700; color: var(--orange);
  text-decoration: none;
}
.suggestion-maps:hover { text-decoration: underline; }
.suggestion-form-wrap {
  background: #0e0e12;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 16px;
  padding: 22px clamp(16px, 3vw, 28px);
  max-width: 640px;
  margin: 0 auto;
}
.suggestion-form-wrap h3 { font-size: 18px; margin-bottom: 6px; }
.suggestion-form-wrap .lead { margin-bottom: 14px; }

/* no public suggestion form 2026-10-01 */

/* Yhteystiedot */
.contact { padding: 40px clamp(20px, 4vw, 56px) 28px; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-bottom: 8px; text-align: center; }
.contact .lead { color: var(--muted); text-align: center; font-size: 14px; margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: #0e0e12; border: 1px solid rgba(242,242,242,0.12); border-radius: 12px;
  color: #f2f2f2; padding: 12px 14px; font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact-form .btn-primary {
  align-self: flex-start; margin-top: 4px;
  background: var(--orange); color: #0a0a0c; border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 800; cursor: pointer;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.contact .about {
  color: #d8d8de; text-align: center; font-size: 15px; line-height: 1.45;
  max-width: 480px; margin: 0 auto 16px;
}

/* SPA views: only one visible */
[data-view][hidden] { display: none !important; }

.account-shell { max-width: 920px; }
.account-email { font-size: 16px; font-weight: 700; margin: 8px 0 12px; }
.account-block {
  border: 1px solid rgba(242,242,242,0.1);
  border-radius: 14px;
  padding: 16px 16px 8px;
  margin: 0 0 20px;
}
.account-block h2 {
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 8px;
}
.account-block h3 {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(242,242,242,0.72); margin: 14px 0 8px;
}
.account-block .lead { font-size: 14px; margin-bottom: 14px; }
.account-block .hint, #onboarding-email-hint {
  display: block; font-size: 13px; color: var(--muted); margin: 8px 0 0;
}
.place-row {
  display: flex; justify-content: space-between; gap: 8px 16px; align-items: baseline;
  padding: 10px 12px; border-radius: 12px; background: #121216; margin-bottom: 8px;
}
.place-row .slot {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan); min-width: 72px;
}
.place-detail { font-size: 14px; text-align: right; }
.place-detail.empty { color: var(--muted); font-size: 13px; }
.place-detail a { color: var(--orange); font-weight: 700; text-decoration: none; margin-left: 8px; }
.license-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; margin-bottom: 8px;
}
.license-card {
  background: #121216; border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; min-height: 148px;
}
.license-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin: 0; text-transform: none; color: var(--text); }
.license-card p { font-size: 13px; color: var(--muted); flex: 1; }
.license-price { flex: none; font-size: 13px; font-weight: 700; color: var(--text); }
.license-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-choice {
  border: 1px solid rgba(242,242,242,0.1);
  border-radius: 14px;
  padding: 16px 16px 6px;
  margin: 4px 0 20px;
}
.sync-choice legend {
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: var(--cyan); padding: 0 6px;
}
.sync-choice .check { align-items: flex-start; margin-bottom: 12px; color: var(--text); }
.sync-choice .check strong { display: block; font-size: 14px; }
.sync-choice .hint { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.share-url {
  word-break: break-all;
  font-size: 14px;
  background: #121216;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.share-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 48px;
}
.share-map {
  height: min(70vh, 720px);
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242,242,242,0.08);
  background: #0a0a0c;
  margin-top: 8px;
}
.share-map .leaflet-container { height: 100%; width: 100%; background: #0a0a0c; font: inherit; }
.share-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.95); }
.share-marker { background: transparent; border: 0; }
.share-pin {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #0a0a0c; background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(0,180,255,0.28);
}
.share-pin.stationary { background: var(--orange); box-shadow: 0 0 0 6px rgba(254,80,0,0.28); }
.share-pin.stale { background: rgba(242,242,242,0.55); box-shadow: none; }
.motion-moving { color: var(--cyan); }
.motion-stationary { color: var(--orange); }
.motion-stale, .motion-waiting, .motion-missing, .motion-closed { color: var(--muted); }
.usage-totals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.usage-user {
  width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: #121216; color: var(--text);
  border: 1px solid rgba(242,242,242,0.12); border-radius: 12px; padding: 12px 14px;
}
.usage-user strong { display: block; font-size: 15px; }
.usage-user small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.usage-detail {
  margin-top: 14px; padding: 14px; border-radius: 12px; background: #121216;
}
.usage-detail h3 { font-size: 18px; margin-bottom: 8px; }
.usage-detail p { margin: 0 0 6px; }
@media (max-width: 720px) {
  .license-grid { grid-template-columns: 1fr; }
  .place-detail { text-align: left; }
  .place-row { flex-direction: column; }
  .share-map { min-height: 320px; height: 62vh; }
}

.panel-shell.panel-wide { max-width: 1120px; }
.role-hidden { display: none !important; }
.panel-tabs button.section-hidden { display: none !important; }
.panel-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
}
.panel-tabs button {
  appearance: none; border: 1px solid rgba(242,242,242,0.14);
  background: #121216; color: var(--text); font: inherit;
  font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.panel-tabs button[aria-selected="true"] {
  background: var(--orange); color: var(--dark); border-color: transparent;
}
.panel-sub { font-size: 16px; margin: 18px 0 8px; }
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin: 8px 0 12px;
}
.kpi-card {
  background: #0e0e12; border: 1px solid rgba(242,242,242,0.08);
  border-radius: 14px; padding: 14px;
}
.kpi-card strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.kpi-card span {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.funnel-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  margin-top: 8px; font-size: 13px;
}
.funnel-bar {
  grid-column: 1 / -1; height: 8px; background: rgba(242,242,242,0.08);
  border-radius: 99px; overflow: hidden;
}
.funnel-bar span { display: block; height: 100%; background: var(--orange); }
.fleet-map {
  background: #07080c; border-radius: 14px;
  border: 1px solid rgba(254,80,0,0.45); overflow: hidden;
  width: min(100%, calc(420px * 360 / 520));
  height: 420px;
  max-height: 420px;
}
.fleet-map svg { width: 100%; height: 100%; display: block; }
@media (max-width: 720px) {
  .fleet-map {
    width: 100%;
    height: 260px;
    max-height: 260px;
  }
}
.fleet-dot { cursor: pointer; }
.map-legend { display: flex; gap: 16px; margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: baseline;
}
.dot-use { background: var(--orange); }
.dot-share { background: var(--cyan); }
.user-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-table th, .user-table td {
  text-align: left; padding: 8px 6px; vertical-align: top;
  border-bottom: 1px solid rgba(242,242,242,0.08);
}
.voice-log { margin-top: 12px; overflow-x: auto; }
.voice-log .user-table td { word-break: break-word; max-width: 28em; }
.place-search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.place-search .field { flex: 1; min-width: 180px; margin: 0; }
.place-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.place-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(242,242,242,0.16);
  color: rgba(242,242,242,0.88);
  background: rgba(242,242,242,0.05);
}
.place-cat.primary {
  border-color: rgba(254,80,0,0.55);
  color: var(--orange);
  background: rgba(254,80,0,0.12);
}
.place-cat-role {
  font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0.85;
}
.place-cat-primary {
  appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  text-decoration: underline; padding: 0;
}
.place-cat-field { border: 0; margin: 0 0 16px; padding: 0; min-inline-size: 0; }
.place-cat-field legend {
  padding: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(242,242,242,0.55); margin-bottom: 8px;
}
.place-cat-note { margin: 0 0 8px; }
.place-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px 12px;
}
.place-cat-check { margin: 0; color: var(--text); }

/* Legal pages: käyttöehdot + tietosuoja */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 56px) 56px;
}
.legal-banner {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(254, 80, 0, 0.14);
  border: 1px solid rgba(254, 80, 0, 0.45);
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.legal h1 { text-align: left; margin-bottom: 8px; }
.legal-updated {
  font-size: 13px; font-weight: 700; color: var(--cyan); margin-bottom: 16px;
}
.legal h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em;
  margin: 28px 0 8px;
}
.legal p, .legal li {
  font-size: 15px; color: rgba(242,242,242,0.78); line-height: 1.55;
}
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 1.15em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--orange); font-weight: 700; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal-basis {
  background: var(--dark);
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.legal-basis strong { display: block; margin-bottom: 4px; font-size: 14px; }
.legal-basis span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.legal-quote {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  background: rgba(254,80,0,0.08);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.legal-note {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(242,242,242,0.08);
  font-size: 13px;
  color: var(--muted);
}
