# Nuhet reskin, slice 1: fragment contract

Two concept prototypes are embedded in ONE review shell page (`index.html`).
Each concept is an HTML *fragment* file with a fixed shape so the shell can drop it in.

## Fragment shape (`a.html`, `b.html`)

```
<style> /* every selector prefixed with the root class: .pa (concept A) or .pb (concept B) */ </style>
<div class="pa" data-concept="a"> ...all markup... </div>
<script>
  window.protoA = { show(screen) { ... } };   // protoB for concept B
</script>
```

- No `<html>`, `<head>`, `<body>`, `<link>`, `<iframe>`, external scripts or images.
- Fonts are loaded by the shell: concept A uses `"Figtree"`, concept B uses `"Instrument Sans"` (both Google Fonts, weights 400/500/600/700). Declare a fallback stack.
- Icons: inline stroke SVG only (24px grid, stroke 1.75-2, `currentColor`), never emoji, never icon fonts.
- Newsletter thumbnails: draw simple mock email layouts with CSS or inline SVG (blocks of lines, a header band); no raster images.
- Explicit light palette only (the product is light); set background and color on the root div. The shell around it handles dark mode; the prototype must not use `prefers-color-scheme`.
- All copy in Swedish, matching the product's existing vocabulary: Start, Mottagare, Mottagarlista, Nyhetsbrev, Utskick, Avsändarprofil, SMS, Ditt konto, Statistik, Planerat, Pågående, Levererat, Stoppat, Schemalägg utskick, Skapa nyhetsbrev, Importera mottagare.

## Responsive behaviour

The fragment root is placed inside `<div class="frame">` with `container-type: inline-size; container-name: frame; overflow: auto; height: <fixed>`.
The frame is the scroll container, so `position: sticky` bars stick inside it.

- Root: `min-height: 100%`. Use `@container frame (min-width: 700px)` for tablet and `@container frame (min-width: 1024px)` for desktop. NEVER `@media` for layout.
- Widths that must look right: 390 (phone), 820 (tablet), 1280 (desktop).
- Body text 16px minimum, touch targets 44px minimum, focus-visible ring on every control.

## Screens and switching

Three screens per concept, each a `<section data-screen="…">`; exactly one visible (others carry the `hidden` attribute):

| screen id     | Swedish page name    | what it shows |
|---------------|----------------------|---------------|
| `start`       | Start                | dashboard |
| `skapa`       | Skapa utskick        | creating and scheduling a sendout |
| `nyhetsbrev`  | Dina nyhetsbrev      | list of the company's newsletters |

`window.protoX.show(screen)` un-hides that section, marks the matching nav item active (`aria-current="page"`), and scrolls the frame to top.
Internal nav links are real `<a href="#start">` etc. with a click handler that calls `show()` and `preventDefault()`.
Buttons that would lead to screens outside this slice (Mottagare, SMS, Ditt konto, Öppna i redigeraren, Statistik) are real buttons/links that do nothing but must look and read like real actions; give them `title="Ingår inte i denna första omgången"`.

Wizard/step state inside `skapa` is driven by JS in the fragment itself (Fortsätt / Tillbaka must work).

## Shared sample content (identical in both concepts, so the comparison is fair)

Fictional customer. Never use names from the real database.

- Logged-in user: **Maria Lindqvist**, company **Klippstugan Salong AB**.
- Month: **september 2026**. Summary: 3 utskick, 1 240 skickade brev, 571 öppnade (46 %), 138 klickade (11 %), 12 studsar.
- Sendouts (Utskick), newest first:
  1. "Höstnyheter och nya öppettider", **Planerat**, fredag 26 sep 2026 kl 09:00, 412 mottagare
  2. "Boka höstens färgbehandling", **Levererat**, 12 sep 2026, 418 skickade, 51 % öppnade, 14 % klickade
  3. "Semesterstängt vecka 32", **Levererat**, 28 aug 2026, 410 skickade, 39 % öppnade, 6 % klickade
  4. "Sommarerbjudande: klipp + färg", **Stoppat**, 15 aug 2026
- Newsletters (Nyhetsbrev), newest first:
  1. "Höstnyheter och nya öppettider", uppdaterad 23 sep 2026
  2. "Boka höstens färgbehandling", uppdaterad 10 sep 2026
  3. "Semesterstängt vecka 32", uppdaterad 25 aug 2026
  4. "Mall: månadsbrev", uppdaterad 2 jun 2026
- Receiver lists (Mottagarlistor): "Alla kunder" 412 aktiva (418 totalt), "Stamkunder" 96, "Anmälda via hemsidan" 143, "Personal" 5.
- Sender profiles (Avsändarprofiler): "Klippstugan Salong, hej@klippstugan.se" (standard), "Maria Lindqvist, maria@klippstugan.se".
- Package: 4 000 brev per månad, 1 240 använda.
- The `skapa` screen is pre-filled as a realistic working state: newsletter "Höstnyheter och nya öppettider" chosen, list "Alla kunder" ticked (412 mottagare), sender = standard profile, time = fredag 26 september 2026 kl 09:00.

## Navigation items (both concepts)

Start, Mottagare, Nyhetsbrev, Utskick, SMS, Ditt konto. On phone at most five visible; fold the rest under "Mer".
Every action carries a text label (icon alone is never enough).

## Current-state facts the redesign replaces

Bootstrap 3 INSPINIA admin theme: dark 220px sidebar with collapsible groups, grey panel headers in uppercase, actions hidden under a "Välj funktion" dropdown, a stats box repeated on every page, tables that squash on phones, a 2015 datetime picker text field.
