
    :root {
      --red: #f04d4c;
      --red-hover: #d83e3d;
      --cream: #f7ebdf;
      --dark: #0c0c0c;
      --section-bg: #282828;
      --body: #202020;
      --muted: #606060;
      --white: #ffffff;
      --green: #2e7d32;
      --shadow: 0 20px 55px rgba(12,12,12,.16);
      --soft-shadow: 0 8px 28px rgba(12,12,12,.10);
      --radius: 22px;
      --heading: 'League Spartan', system-ui, sans-serif;
      --font: 'Roboto', system-ui, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--font);
      color: var(--body);
      background:
        radial-gradient(circle at 12% 0%, rgba(240,77,76,.20), transparent 32rem),
        linear-gradient(180deg, #fff7ef 0%, var(--cream) 55%, #fff 100%);
      min-height: 100vh;
    }

    a { color: inherit; }

    .app-shell {
      width: min(100%, 460px);
      min-height: 100vh;
      margin: 0 auto;
      background: #fffaf5;
      box-shadow: 0 0 80px rgba(0,0,0,.15);
      position: relative;
      overflow: hidden;
    }

    .hero {
      min-height: 530px;
      color: var(--white);
      position: relative;
      padding: calc(18px + env(safe-area-inset-top)) 20px 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background-image: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.12) 35%, rgba(0,0,0,.82)), url('/suvi-tuuli-assets/suvi-tuuli-day-aerial.jpg');
      background-size: cover;
      background-position: center;
    }


    .hero-lunch { background-image: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08) 35%, rgba(0,0,0,.78)), url('/suvi-tuuli-assets/suvi-tuuli-interior-meeting.jpg'); }
    .hero-sunset { background-image: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08) 35%, rgba(0,0,0,.82)), url('/suvi-tuuli-assets/suvi-tuuli-sunset-aerial.jpg'); }
    .hero-live { background-image: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.18) 35%, rgba(0,0,0,.86)), url('/suvi-tuuli-assets/suvi-tuuli-evening.jpg'); }
    .hero-maise { background-image: linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.10) 35%, rgba(0,0,0,.80)), url('/suvi-tuuli-assets/suvi-tuuli-day-aerial.jpg'); }

    .topbar, .hero-actions, .lang-switch, .status-row, .nav, .card-row, .metric-grid, .timeline-item, .info-list li {
      display: flex;
      align-items: center;
    }

    .topbar { justify-content: space-between; gap: 12px; }
    .brand-mark {
      font-family: var(--heading);
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: 13px;
      line-height: 1.05;
    }
    .brand-mark small {
      display: block;
      font-size: 10px;
      opacity: .78;
      letter-spacing: .14em;
      margin-top: 2px;
    }

    .lang-switch {
      gap: 4px;
      background: rgba(255,255,255,.18);
      backdrop-filter: blur(14px);
      padding: 4px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.22);
    }
    .lang-switch button {
      border: 0;
      border-radius: 999px;
      padding: 8px 10px 6px;
      font-family: var(--heading);
      font-weight: 800;
      letter-spacing: .08em;
      color: var(--white);
      background: transparent;
    }
    .lang-switch button.active { background: var(--white); color: var(--dark); }

    .hero-copy { padding-top: 90px; }
    .eyebrow, .section-tag, .badge {
      font-family: var(--heading);
      text-transform: uppercase;
      letter-spacing: .14em;
      font-weight: 800;
    }
    .eyebrow {
      display: inline-flex;
      background: var(--red);
      color: var(--white);
      border-radius: 4px;
      padding: 8px 12px 6px;
      font-size: 11px;
      margin-bottom: 16px;
      box-shadow: 0 12px 22px rgba(240,77,76,.35);
    }
    h1, h2, h3 { font-family: var(--heading); margin: 0; text-transform: uppercase; }
    h1 {
      font-size: clamp(50px, 15vw, 76px);
      line-height: .82;
      letter-spacing: -.055em;
      text-shadow: 0 4px 28px rgba(0,0,0,.38);
    }
    .hero-copy p {
      max-width: 330px;
      color: rgba(255,255,255,.88);
      line-height: 1.55;
      margin: 16px 0 0;
      font-size: 15px;
    }

    .hero-actions { gap: 10px; margin-top: 22px; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 0;
      border-radius: 999px;
      padding: 14px 18px 12px;
      text-decoration: none;
      font-family: var(--heading);
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
      font-size: 12px;
      cursor: pointer;
      min-height: 44px;
    }
    .btn.primary { background: var(--red); color: var(--white); box-shadow: 0 16px 30px rgba(240,77,76,.38); }
    .btn.secondary { background: rgba(255,255,255,.17); color: var(--white); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px); }
    .btn.dark { background: var(--dark); color: var(--white); width: 100%; }

    .live-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(0,0,0,.28);
      border: 1px solid rgba(255,255,255,.24);
      border-radius: 999px;
      padding: 9px 12px;
      backdrop-filter: blur(12px);
      font-family: var(--heading);
      text-transform: uppercase;
      letter-spacing: .08em;
      font-weight: 800;
      font-size: 11px;
    }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: #38e67a; box-shadow: 0 0 0 6px rgba(56,230,122,.16); }

    .ticker {
      background: var(--red);
      overflow: hidden;
      color: var(--white);
      white-space: nowrap;
      padding: 12px 0 10px;
      font-family: var(--heading);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 12px;
      position: relative;
      z-index: 6;
      box-shadow: 0 12px 24px rgba(0,0,0,.12);
    }
    .ticker-inner { display: inline-block; animation: ticker 24s linear infinite; }
    .ticker span { padding: 0 24px; }
    @keyframes ticker { to { transform: translateX(-50%); } }

    main { padding: 28px 16px 96px; }
    section { margin-bottom: 18px; }

    .live-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--shadow);
      margin-top: 0;
      position: relative;
      z-index: 1;
    }
    .section-tag { color: var(--red); font-size: 11px; margin-bottom: 8px; display: block; }
    .status-row { justify-content: space-between; gap: 14px; }
    .status-row h2 { font-size: 30px; letter-spacing: -.035em; line-height: .9; }
    .badge {
      display: inline-flex;
      color: var(--white);
      background: var(--dark);
      border-radius: 4px;
      padding: 7px 9px 5px;
      font-size: 10px;
      white-space: nowrap;
    }
    .badge.red { background: var(--red); }
    .badge.green { background: #e8f5e9; color: var(--green); }

    .progress-wrap { margin-top: 18px; }
    .progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
    .progress-track { height: 12px; border-radius: 99px; background: #efe2d6; overflow: hidden; }
    .progress-fill { height: 100%; width: 42%; background: linear-gradient(90deg, var(--red), #ff8b61); border-radius: inherit; }

    .metric-grid { align-items: stretch; gap: 10px; margin-top: 16px; }
    .metric {
      flex: 1;
      background: var(--cream);
      border-radius: 16px;
      padding: 13px 12px;
    }
    .metric strong { display: block; font-family: var(--heading); font-size: 24px; line-height: .9; }
    .metric small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }

    .highlight {
      background: var(--section-bg);
      color: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
    }
    .highlight-img { height: 210px; background: url('/suvi-tuuli-assets/suvi-tuuli-keulasta.jpg') center/cover; position: relative; }
    .highlight-img .badge { position: absolute; left: 16px; top: 16px; }
    .highlight-body { padding: 18px; }
    .highlight h2 { font-size: 34px; line-height: .9; letter-spacing: -.04em; margin-bottom: 10px; }
    .highlight p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }
    .story-available {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 16px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,.10);
      border: 1px solid rgba(255,255,255,.16);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
    }
    .story-available strong { display: block; font-family: var(--heading); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; line-height: .95; }
    .story-available span { display: block; color: rgba(255,255,255,.68); font-size: 12px; margin-top: 4px; }
    .card-row { gap: 10px; margin-top: 16px; }
    .audio-button {
      width: auto;
      height: 46px;
      border: 0;
      border-radius: 999px;
      background: var(--red);
      color: var(--white);
      padding: 0 16px;
      font-family: var(--heading);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .07em;
      font-size: 12px;
      white-space: nowrap;
      box-shadow: 0 12px 22px rgba(240,77,76,.32);
    }
    .card-row .btn { flex: 1; }

    .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .mini-card {
      background: var(--white);
      border-radius: 18px;
      padding: 14px;
      box-shadow: var(--soft-shadow);
      min-height: 145px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .mini-card.red { background: var(--red); color: var(--white); }
    .mini-card.cream { background: var(--cream); }
    .mini-card h3 { font-size: 21px; line-height: .95; letter-spacing: -.025em; }
    .mini-card p { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 9px 0 0; }
    .mini-card.red p { color: rgba(255,255,255,.82); }

    .timeline {
      background: var(--white);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--soft-shadow);
    }
    .timeline h2 { font-size: 28px; margin-bottom: 14px; }
    .timeline-list { display: grid; gap: 12px; }
    .timeline-item { align-items: flex-start; gap: 12px; }
    .timeline-dot {
      width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--red);
      display: grid; place-items: center; font-family: var(--heading); font-weight: 800; flex: 0 0 auto;
    }
    .timeline-item.active .timeline-dot { background: var(--red); color: var(--white); }
    .timeline-item strong { display: block; font-family: var(--heading); text-transform: uppercase; letter-spacing: .02em; }
    .timeline-item span { color: var(--muted); font-size: 13px; }

    .info-panel {
      background: var(--cream);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--soft-shadow);
    }
    .info-panel h2 { font-size: 28px; margin-bottom: 12px; }
    .info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
    .info-list li { gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
    .icon { width: 30px; height: 30px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: 0 0 auto; }

    .cta {
      background: var(--dark);
      color: var(--white);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow);
      text-align: center;
    }
    .cta h2 { font-size: 34px; line-height: .9; margin-bottom: 10px; }
    .cta p { color: rgba(255,255,255,.78); line-height: 1.5; margin: 0 0 16px; }

    .nav {
      position: fixed;
      left: 50%;
      bottom: max(12px, env(safe-area-inset-bottom));
      transform: translateX(-50%);
      width: min(calc(100% - 24px), 430px);
      background: rgba(12,12,12,.88);
      color: var(--white);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 999px;
      padding: 7px;
      justify-content: space-around;
      backdrop-filter: blur(18px);
      z-index: 20;
      box-shadow: 0 18px 44px rgba(0,0,0,.25);
    }
    .nav a {
      text-decoration: none;
      display: grid;
      place-items: center;
      gap: 2px;
      color: rgba(255,255,255,.72);
      font-size: 10px;
      min-width: 62px;
    }
    .nav a.active { color: var(--white); }
    .nav b { font-size: 17px; line-height: 1; }

    .display-link {
      display: block;
      margin: 14px auto 0;
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }

    .route-map-card, .camera-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 18px;
      box-shadow: var(--soft-shadow);
      overflow: hidden;
    }
    .route-map-card h2, .camera-card h2 { font-size: 30px; line-height: .9; letter-spacing: -.035em; margin-bottom: 8px; }
    .route-map-card p, .camera-card p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
    .map-shell {
      position: relative;
      margin-top: 14px;
      border-radius: 20px;
      overflow: hidden;
      background: linear-gradient(145deg, #cde6e4, #f7ebdf 58%, #ead3bd);
      min-height: 250px;
      border: 1px solid rgba(12,12,12,.08);
    }
    .map-shell svg { display: block; width: 100%; height: auto; }
    .map-label {
      position: absolute;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 9px 6px;
      border-radius: 999px;
      background: rgba(255,250,245,.92);
      color: var(--dark);
      font-family: var(--heading);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .06em;
      font-size: 10px;
      box-shadow: 0 8px 18px rgba(12,12,12,.12);
    }
    .map-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
    .map-label.start { left: 22px; bottom: 22px; }
    .map-label.active { right: 28px; top: 92px; color: var(--red); }
    .map-label.next { right: 22px; bottom: 34px; }
    .map-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
    .legend-item { background: var(--cream); border-radius: 14px; padding: 12px; }
    .legend-item strong { display: block; font-family: var(--heading); text-transform: uppercase; font-size: 15px; line-height: .95; }
    .legend-item span { color: var(--muted); font-size: 12px; }
    .camera-card { background: var(--section-bg); color: var(--white); }
    .camera-card .section-tag { color: #ff8b61; }
    .camera-card p { color: rgba(255,255,255,.72); }
    .video-placeholder {
      position: relative;
      min-height: 226px;
      margin-top: 14px;
      border-radius: 20px;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.72)),
        url('/suvi-tuuli-assets/suvi-tuuli-keulasta.jpg') center/cover;
      border: 1px solid rgba(255,255,255,.14);
    }
    .video-placeholder::before {
      content: 'WEBRTC READY';
      position: absolute;
      left: 14px;
      top: 14px;
      padding: 7px 9px 5px;
      border-radius: 4px;
      background: rgba(12,12,12,.58);
      color: var(--white);
      font-family: var(--heading);
      font-weight: 800;
      letter-spacing: .12em;
      font-size: 10px;
    }
    .video-crosshair { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
    .video-crosshair span { width: 82px; height: 82px; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.10); }
    .video-caption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; }
    .ptz-state { background: rgba(240,77,76,.92); border-radius: 14px; padding: 12px; font-family: var(--heading); text-transform: uppercase; font-weight: 800; letter-spacing: .04em; line-height: 1.05; }
    .ptz-state small { display: block; color: rgba(255,255,255,.78); font-family: var(--font); text-transform: none; font-weight: 500; letter-spacing: 0; margin-top: 4px; }
    .camera-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
    .camera-meta div { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px; font-size: 11px; color: rgba(255,255,255,.72); }
    .camera-meta strong { display: block; color: var(--white); font-family: var(--heading); font-size: 17px; line-height: .9; }

  

/* Production gated app additions */
.form-panel { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-top: -34px; position: relative; z-index: 2; }
.form-panel label { display: block; margin: 13px 0 6px; font-family: var(--heading); text-transform: uppercase; font-weight: 800; letter-spacing: .06em; font-size: 12px; }
.form-panel input { width: 100%; border: 1px solid rgba(12,12,12,.16); border-radius: 14px; padding: 13px 14px; font: 500 16px var(--font); background: #fffaf5; color: var(--dark); }
.form-panel .hint, .fineprint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-panel .error { background: #fff1f1; color: #922; border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; }
.lifecycle-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--soft-shadow); margin-bottom: 18px; }
.lifecycle-card h2 { font-size: 36px; letter-spacing: -.04em; line-height: .9; margin: 4px 0 10px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.countdown div { background: var(--cream); border-radius: 16px; padding: 13px 8px; text-align: center; }
.countdown strong { display:block; font: 800 30px/1 var(--heading); color: var(--red); }
.countdown span { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.access-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(46,125,50,.12); color: var(--green); padding: 8px 11px; font: 800 11px var(--heading); text-transform: uppercase; letter-spacing: .08em; }
.notice-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notice-list li { background: #fffaf5; border-radius: 14px; padding: 12px; line-height: 1.35; }
.test-links { display:grid; gap:8px; margin-top: 14px; }
.test-links a { color: var(--red); font-weight: 700; }
@media (max-width: 430px) { .form-panel { margin-left: 12px; margin-right: 12px; } }
.video-placeholder video, .video-placeholder img { width: 100%; height: 226px; object-fit: cover; display: block; }
.video-placeholder:has(video)::before, .video-placeholder:has(img)::before { content: 'LIVE FEED'; }
[data-telemetry-mode], [data-camera-mode] { color: inherit; }
.admin-grid { display: grid; gap: 12px; }
.admin-panel { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--soft-shadow); }
.admin-panel code { white-space: pre-wrap; word-break: break-word; }
