---
version: alpha
name: Nuhet Överblick
description: Design system for the Nuhet reskin (card #2957, concept B "Överblick"). Light, dense, navy-on-grey workspace for people who send newsletters often.
colors:
  primary: "#1F3A63"
  primary-hover: "#172C4D"
  on-primary: "#FFFFFF"
  accent: "#A1CF35"
  accent-soft: "#EEF5D9"
  ground: "#EEF1F4"
  surface: "#FFFFFF"
  surface-hover: "#F5F7FA"
  surface-sunken: "#F7F8FA"
  ink: "#16213A"
  muted: "#56627A"
  line: "#D6DCE4"
  line-strong: "#AEB8C6"
  line-hover: "#8A97A8"
  info: "#2563A8"
  info-bg: "#E3ECF8"
  ok: "#1F7A45"
  ok-bg: "#E2F3E8"
  warn: "#9A5B00"
  warn-bg: "#FBEFD6"
  bad: "#A83232"
  bad-bg: "#F8E3E3"
  focus: "#2563A8"
  placeholder-block: "#C5CDD8"
typography:
  display:
    fontFamily: Instrument Sans
    fontSize: 26px
    fontWeight: 600
    lineHeight: 1.15
  headline-lg:
    fontFamily: Instrument Sans
    fontSize: 28px
    fontWeight: 600
    lineHeight: 1.2
  headline-lg-phone:
    fontFamily: Instrument Sans
    fontSize: 24px
    fontWeight: 600
    lineHeight: 1.2
  headline-md:
    fontFamily: Instrument Sans
    fontSize: 20px
    fontWeight: 600
    lineHeight: 1.3
  headline-sm:
    fontFamily: Instrument Sans
    fontSize: 18px
    fontWeight: 600
    lineHeight: 1.3
  body-lg:
    fontFamily: Instrument Sans
    fontSize: 17px
    fontWeight: 600
    lineHeight: 1.4
  body-md:
    fontFamily: Instrument Sans
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  body-md-strong:
    fontFamily: Instrument Sans
    fontSize: 16px
    fontWeight: 600
    lineHeight: 1.5
  body-sm:
    fontFamily: Instrument Sans
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.4
  label-md:
    fontFamily: Instrument Sans
    fontSize: 14px
    fontWeight: 600
    lineHeight: 1.3
  label-md-regular:
    fontFamily: Instrument Sans
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.3
  label-sm:
    fontFamily: Instrument Sans
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1.2
  label-sm-regular:
    fontFamily: Instrument Sans
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.2
  nav-desktop:
    fontFamily: Instrument Sans
    fontSize: 16px
    fontWeight: 500
    lineHeight: 1.3
  nav-tablet:
    fontFamily: Instrument Sans
    fontSize: 11px
    fontWeight: 500
    lineHeight: 1.2
  nav-phone:
    fontFamily: Instrument Sans
    fontSize: 12px
    fontWeight: 500
    lineHeight: 1.2
  numeral:
    fontFamily: Instrument Sans
    fontSize: 16px
    fontWeight: 600
    lineHeight: 1.5
    fontFeature: "tnum"
rounded:
  xs: 2px
  sm: 6px
  md: 8px
  lg: 10px
  xl: 12px
  full: 999px
spacing:
  xs: 4px
  sm: 8px
  md: 12px
  lg: 16px
  xl: 24px
  2xl: 32px
  3xl: 40px
  gutter-phone: 16px
  gutter-tablet: 24px
  gutter-desktop: 32px
  content-max: 1180px
  rail-desktop: 232px
  rail-tablet: 72px
  topbar: 56px
  mobilebar-offset: 62px
  touch: 44px
  control-lg: 52px
  summary-panel: 320px
  list-actions: 256px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md-strong}"
    rounded: "{rounded.md}"
    padding: 10px 18px
    height: "{spacing.touch}"
  button-primary-hover:
    backgroundColor: "{colors.primary-hover}"
    textColor: "{colors.on-primary}"
  button-primary-disabled:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
  button-secondary:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.ink}"
    borderColor: "{colors.line}"
    typography: "{typography.body-md-strong}"
    rounded: "{rounded.md}"
    padding: 10px 18px
    height: "{spacing.touch}"
  button-secondary-hover:
    backgroundColor: "{colors.surface-hover}"
    textColor: "{colors.ink}"
  button-quiet:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.primary}"
    padding: 10px 10px
    height: "{spacing.touch}"
  button-quiet-hover:
    backgroundColor: "{colors.info-bg}"
    textColor: "{colors.primary}"
  button-danger:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.bad}"
    borderColor: "{colors.line}"
    height: "{spacing.touch}"
  button-lg:
    typography: "{typography.body-lg}"
    height: "{spacing.control-lg}"
  button-compact:
    typography: "{typography.body-sm}"
    height: 40px
    padding: 6px 14px
  card:
    backgroundColor: "{colors.surface}"
    borderColor: "{colors.line}"
    rounded: "{rounded.xl}"
    padding: "{spacing.lg}"
  tile:
    backgroundColor: "{colors.surface}"
    borderColor: "{colors.line}"
    rounded: "{rounded.xl}"
    padding: 12px 14px
  input:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.ink}"
    borderColor: "{colors.line-strong}"
    rounded: "{rounded.md}"
    padding: 8px 12px
    height: "{spacing.touch}"
  input-hover:
    borderColor: "{colors.line-hover}"
  input-error:
    borderColor: "{colors.bad}"
  pill-planned:
    backgroundColor: "{colors.info-bg}"
    textColor: "{colors.info}"
    typography: "{typography.label-md}"
    rounded: "{rounded.full}"
  pill-running:
    backgroundColor: "{colors.warn-bg}"
    textColor: "{colors.warn}"
    rounded: "{rounded.full}"
  pill-done:
    backgroundColor: "{colors.ok-bg}"
    textColor: "{colors.ok}"
    rounded: "{rounded.full}"
  pill-stopped:
    backgroundColor: "{colors.bad-bg}"
    textColor: "{colors.bad}"
    rounded: "{rounded.full}"
  pill-neutral:
    backgroundColor: "{colors.ground}"
    textColor: "{colors.muted}"
    rounded: "{rounded.full}"
  nav-item:
    backgroundColor: "{colors.surface}"
    textColor: "{colors.muted}"
    typography: "{typography.nav-desktop}"
    rounded: "{rounded.md}"
  nav-item-active:
    backgroundColor: "{colors.accent-soft}"
    textColor: "{colors.ink}"
  datechip:
    backgroundColor: "{colors.ground}"
    textColor: "{colors.ink}"
    rounded: "{rounded.lg}"
    size: 56px
  stepnum:
    backgroundColor: "{colors.ink}"
    textColor: "{colors.on-primary}"
    rounded: "{rounded.full}"
    size: 32px
  menu:
    backgroundColor: "{colors.surface}"
    borderColor: "{colors.line}"
    rounded: "{rounded.lg}"
    padding: 6px
  total-box:
    backgroundColor: "{colors.accent-soft}"
    textColor: "{colors.ink}"
    rounded: "{rounded.md}"
    padding: 12px 14px
  banner-info:
    backgroundColor: "{colors.info-bg}"
    textColor: "{colors.info}"
    rounded: "{rounded.md}"
  banner-ok:
    backgroundColor: "{colors.ok-bg}"
    textColor: "{colors.ok}"
    rounded: "{rounded.md}"
  banner-warn:
    backgroundColor: "{colors.warn-bg}"
    textColor: "{colors.warn}"
    rounded: "{rounded.md}"
  banner-bad:
    backgroundColor: "{colors.bad-bg}"
    textColor: "{colors.bad}"
    rounded: "{rounded.md}"
  progress-bar:
    backgroundColor: "{colors.ground}"
    rounded: "{rounded.full}"
    height: 6px
  progress-bar-fill:
    backgroundColor: "{colors.accent}"
    rounded: "{rounded.full}"
  thumbnail:
    backgroundColor: "{colors.surface-sunken}"
    borderColor: "{colors.line}"
    rounded: "{rounded.sm}"
  thumbnail-block:
    backgroundColor: "{colors.placeholder-block}"
    rounded: "{rounded.xs}"
  focus-ring:
    borderColor: "{colors.focus}"
    width: 3px
---

# Nuhet design system: Överblick

This file is the single source of truth for how the Nuhet web app looks after the reskin decided on card #2957 (Jonathan Hamberg, 2026-09-25: "Design B is confirmed the way. Proceed and make ALL current pages using this.").
It follows the open DESIGN.md format (Google Labs, `npx @google/design.md lint DESIGN.md` validates it).
The YAML front matter holds the normative token values.
The prose explains what each value means and how to apply it to a page you have not seen a mockup for.

Reference implementation: `docs/design/reskin-2957/b.html` (the round 1 prototype of Start, Skapa utskick and Dina nyhetsbrev).
Copy its markup and CSS rather than reinventing; the prototype prefix `pb-` becomes `nh-` in production (see Implementation).
The prototype's sample data contract is in `docs/design/reskin-2957/CONTRACT.md`.

## Reply review and tag pages (2026-10-30)

Automatic-reply tables combine sender profile and reply type in one column. Type pills use yellow for temporary or unknown replies and red for permanent problems or required action; these are automatic-reply categories, not inferred hard/soft delivery-bounce codes. A pending review says "Kräver manuell granskning". Reviewed category metadata may change the displayed type without rewriting the original classification or replaying mail processing.

Reply details put the escaped message text and subject in a separate blue-accent panel below metadata. Classification evidence and original-message download are not shown in this interface; authorized MCP inspection and retained originals follow their existing access boundaries. MCP review requires its own explicit scope and auditable conflict-safe metadata action.

Recipient index statistics are noninteractive icon-and-number pills with accessible labels. Informational status disclosures keep hover, focus and touch support with a default cursor. Tag editing is a standalone page under /tags; old receiverlist GET links permanently redirect, and write compatibility preserves method, permissions and CSRF. Ten swatch-only preset buttons retain accessible HEX names and44px targets in one locally scrolling row on small screens. Native and HEX fields remain available.

## Review decisions (2026-10-15)

The manual reader and manual administration are retired, including their routes and navigation. Historical data is retained for maintenance. User-facing Nuheter wording is now Notiser in Swedish and Notifications in English.

Admin navigation is a shared top bar on every admin page: Översikt and permission-aware dropdowns for Kunder, Innehåll, Försäljning and Drift. Use the existing nh.more-menu component with 44 px summary controls; on phones the groups form two columns. The admin dashboard shows overview content immediately below this navigation. The former dashboard group cards and per-group segment-tab includes are superseded by this shared navigation.

The admin bar spans the viewport above the app shell and all banners. It stays sticky at the viewport top while scrolling. Existing sticky headers and side navigation sit below its measured height; dropdowns remain above page content.

Newer master features use these same patterns: automatic-reply inbox and detail pages, sender-profile reply rules, receiver pause controls, and superadmin review of hidden spam accounts. Keep their company/role restrictions, verified destinations, confirmation requirements, original-message download and retention meaning intact.

Company design opt-in also selects the new design on permitted admin and SMTP pages. During admin/superadmin company login, always use the administrator's own persisted company design flag, including when it is off; the selected company still supplies data and permissions. The global staff switch applies independently outside company login. Emergency stops retain priority, and customer/reseller or background/editor rollout choices remain company-scoped.

The logged-in shell uses the existing green Nuhet symbol (`public/images/nuhet-symbol-gron.png`) on its light background, at its original square aspect ratio. It replaces the prototype arrow, without recoloring or clipping the brand asset. The retired PDF guide is no longer served, attached to registration mail, or linked in navigation and notices.

These explicit review decisions supersede the historical manual and admin-hub inventory below; other approved design tokens and page patterns remain in force.

## Pilot review decisions (2026-10-21)

Authenticated v2 page content uses the same centered 1180px outer container and gutters as Mottagare. Simple forms, SMTP and other management surfaces fill that available width; nested prose may retain a readable line length. The full-width newsletter editor canvas remains its documented exception. Admin navigation remains sticky above the shell and its links are centered across the viewport.

SMS creation is an explicit exception to the historical stacked-card rule: show a same-page ordered step navigation above the form, preserve values while moving between steps, and reveal the correct step before focusing validation errors. Sending, price/counter calculation and confirmation keep their existing contracts. The current step has a visible state and an accessible current-step label; controls meet the existing touch and focus rules.

Newsletter thumbnails are passive rendered saved-content previews. Clicking the thumbnail opens a native dialog showing the same passive image at larger size; clicking that image again, the close button, Escape or the backdrop closes it and restores focus. It retains the existing restrictive thumbnail endpoint and sandbox. The newsletter preview frame uses the saved legacy desktop width, validated and bounded to 640-1600px (640px fallback), with the existing 640:426 crop ratio. The numeric --nh-newsletter-preview-width/height values are scaled to the available dialog width. Long email reading and interactive content remain separate existing preview actions.

Unread Notiser have their existing per-user count plus a warning-tint background on the bell/navigation item and a contrasting count badge. At zero unread the highlight and badge disappear. The same visible state is present in the desktop rail, tablet/phone top bar and phone Mer sheet.

## Tag colors (2026-10-30)

Jonathan selected the soft tag-pill style: a pale tint of each tag's saved color, a colored dot and readable colored text. Use the shared tag-pill component for tag names in lists, recipient assignment and email/SMS selection, tag details and import details. Tag colors are user data and may differ from system status colors; keep their stored HEX value while deriving text contrast of at least 4.5:1. Linked pills have a 44px target and a visible focus ring. Non-interactive pills retain compact sizing. Names stay non-selectable and truncate with an ellipsis when necessary; their full accessible name is preserved. Native selects retain their option values and keyboard behavior, with a passive pill decorating the closed selected value in recipient filters/export, import mapping, API keys and merge targets. Browser-native options and the no-JavaScript fallback retain readable text.

## Overview

Nuhet is a Swedish newsletter and SMS service for small companies.
The customer is often a single person (a salon owner, a shop keeper, an association secretary) who logs in a few times a month to send a letter and see how the last one went.
Concept B, "Överblick", is built for the people who send often: the app should show the state of things immediately, with the month's numbers and the upcoming sendout visible before anything is clicked.

The feel is a calm, cool and slightly dense workspace: light grey ground, white cards with a thin border, navy for every action, one lime accent that marks "what is live or coming up".
Nothing is decorative.
Every control has a word on it, every status has a word next to its colour, and every page starts with a plain-language sentence saying what the page is for.
Copy is Swedish, informal ("du"), and written as a helpful colleague would say it ("Inget skickas förrän du trycker på Schemalägg utskick").

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

Light theme only.
The product has no dark mode; do not use `prefers-color-scheme`.

## Colors

The palette is two neutrals, one action colour, one signature accent and four status pairs.

- **Primary, navy (#1F3A63):** the only action colour. Primary buttons, links, the checked state of choice cards, the accent colour of native checkboxes and radios. Hover darkens to #172C4D. White text on it (contrast 10.6:1).
- **Accent, Nuhet lime (#A1CF35):** the brand signature, used sparingly and never as text. It marks what is active or coming up: the active nav item's bar, the fill of progress and usage bars, the brand mark, the header band of newsletter thumbnails. Lime on white fails text contrast (1.8:1), so it is a fill and an indicator only. Its soft tint (#EEF5D9) is the active nav background on tablet and desktop and the background of the "N mottagare får brevet" total box.
- **Ground (#EEF1F4) and surface (#FFFFFF):** the page is light grey; content sits on white cards. This is the whole elevation model (see Elevation & Depth). Hovered rows and secondary buttons use #F5F7FA; sunken mock areas such as thumbnails use #F7F8FA.
- **Ink (#16213A) and muted (#56627A):** all text. Ink is headings, names, values and body; muted is labels, hints, dates, metadata and inactive nav items (5.9:1 on white, 5.3:1 on ground). Do not introduce a third grey for text.
- **Lines (#D6DCE4, #AEB8C6, #8A97A8):** #D6DCE4 for card borders, dividers and rests; #AEB8C6 for input borders, which need to read as editable; #8A97A8 for hovered inputs and hovered choice cards.
- **Status pairs, text on tint:** planned/info #2563A8 on #E3ECF8, running/warn #9A5B00 on #FBEFD6, delivered/ok #1F7A45 on #E2F3E8, stopped/bad #A83232 on #F8E3E3. Each pair passes AA for 14 px semibold text. The strong colour is also used alone as text or icon on white (error messages, danger menu items).
- **Focus (#2563A8):** the 3 px focus ring on every interactive element, offset 2 px. Same as info blue, which is fine because focus is never shown at the same time as a planned pill on the same element.
- **Placeholder block (#C5CDD8):** the "image" block in mock thumbnails only.

Meaning is never carried by colour alone: a status is a coloured dot plus a word, a chart series has a label, a required field has text.

## Typography

One typeface, **Instrument Sans** (Google Fonts, OFL), weights 400, 500, 600 and 700, with the fallback stack `"Instrument Sans", system-ui, "Segoe UI", sans-serif`.
Self-host the woff2 files under `public/fonts/instrument-sans/` (see Implementation); do not load them from Google's servers, since Nuhet's footer promises all data stays in Sweden.

- **Page title (headline-lg):** 28 px semibold on tablet and desktop, 24 px on phone, `text-wrap: balance`. One per page, always followed by a one-sentence lead in muted body text.
- **Section title (headline-md, 20 px) and card title (headline-sm, 18 px):** semibold, sentence case. Never uppercase, never letter-spaced. The old theme's uppercase panel headers are gone.
- **Body (body-md, 16 px, line-height 1.5):** the minimum size for anything a user reads. Semibold body is used for names and values in lists.
- **Small (body-sm, 15 px):** hints, metadata under a name, list footers, the page name in the top bar. Not for anything the user must act on.
- **Labels (label-md, 14 px semibold):** status pills and list column headers. **label-md-regular (14 px, 400, muted):** tile labels, summary checklist labels, the date chip month and the rail head user name. **label-sm (12 px, 500)** is only the phone nav caption; the date chip month is 12 px regular.
- **Numbers (display 26 px for tiles, otherwise inherited):** all numbers use tabular figures (`font-variant-numeric: tabular-nums`, the `nh-num` class) so columns line up. Thousands are separated by a space and percent has a space before the sign, as Swedish writes them: "1 240", "46 %".
- **Buttons:** 16 px semibold; the large variant is 17 px.
- **Navigation:** 16 px medium on desktop (semibold when active), 11 px on the tablet icon rail, 12 px on the phone bottom bar.

Use at most two weights on a screen besides the nav: 400 for text and 600 for emphasis. 500 is reserved for nav items and menu items. 700 exists for the brand name only.

## Layout

The app shell is a grid with three regions: **top bar**, **rail** (navigation) and **main**.
Which regions show, and where, depends on width.

- **Phone (below 700 px):** top bar (56 px, sticky, brand mark + "Nuhet" left, current page name right) at the top; the nav becomes a bottom bar (sticky, four items plus Mer, each with 56 px minimum height plus the 1 px top line, icon over label); main has 16 px gutters. Sticky action bars for forms sit above the bottom bar at `bottom: 62px` (the `mobilebar-offset` token, the bar's rendered height with a little air).
- **Tablet (700 to 1023 px):** top bar stays; the nav becomes a 72 px icon rail on the left (icon over an 11 px label, active item on a lime-soft background with a 3 px lime left bar); main has 24 px gutters.
- **Desktop (1024 px and up):** the top bar disappears; the rail is 232 px wide with the brand mark, company name and user name at the top, full-width nav items (icon + 16 px label) and a footer with "Logga ut" and the "made in Sweden" line; main has 32 px gutters, top and bottom 32/40 px.

Main content has `max-width: 1180px`, centred, `min-width: 0` so long names never widen the page.
There is no horizontal page scroll at any width from 360 px up.

Spacing uses a 4 px base with the named steps in the tokens: 4, 8, 12, 16, 24, 32, 40.
Cards have 16 px padding and sit 16 px apart; page sections are 16 px apart on phone and 24 px on desktop.
Rows inside a card are separated by 1 px lines with 12 px vertical padding, never by extra margin.

Two-column areas (dashboard "cols", the create-sendout form with its summary panel) are a single column on phone and tablet and split on desktop: dashboard 3fr/2fr, create form `minmax(0, 1fr) 320px` with the summary panel sticky at `top: 24px`.
Grids of tiles or choice cards are 2 across on phone and 4 across from tablet up.

Reference widths that must look right and are checked in review: 390, 820 and 1280 px.
The prototype used `@container frame (min-width: 700px | 1024px)` because it lived inside a review frame; production uses the same two breakpoints as `@media (min-width: 700px)` and `@media (min-width: 1024px)`.

## Elevation & Depth

Depth is tonal, not shadowed.
The ground is grey, content is white with a 1 px #D6DCE4 border, and that is the only layer most pages have.
Two things float and therefore carry a shadow: the "Mer" dropdown menu (`0 8px 16px rgba(22,33,58,.10)`) and the phone sticky form bar (`0 -4px 8px rgba(22,33,58,.06)`).
Dialogs use a scrim of `rgba(22,33,58,.45)` over the page and a white card with the menu shadow.
Nothing else has a shadow; cards never lift on hover.
Sticky bars (top bar, bottom nav, mobile action bar, summary panel) are separated from scrolling content by their 1 px border, not by a shadow.

## Shapes

Rounded, but not soft.
Cards, tiles, lists, choice cards and menus use 12 px (menus 10 px); buttons, inputs, banners and the total box use 8 px; date chips 10 px; thumbnails 6 px; the mock lines in thumbnails 2 px.
Pills, progress bars, step numbers, check circles and the brand mark are fully round.
Do not mix radii on the same element family: every button on a page is 8 px, every card is 12 px.
The brand mark uses the original square green Nuhet symbol, displayed at 28 px in the top bar and 36 px in the desktop rail head with `object-fit: contain`. Do not add a colored container, recolor the asset, round its corners or replace it with a drawn arrow.

## Components

Class names below are the production names (`nh-` prefix). The components used on Start, Skapa utskick and Dina nyhetsbrev have reference markup and CSS in `b.html` (shell, buttons, cards, tiles, usage bar, progress bars, pills, date chips, sendout rows, list container, "Mer" menu, toolbar, fields, choice rows, choice cards, total box, steps, summary panel, mobile bar, thumbnails). The rest (data tables, segment tabs, banners, toasts, dialogs, empty states, pagination, bulk selection bar) have no prototype markup: build them from the description here, out of the same tokens and the same rules, and add a small example to `b.html` in the same change so the next worker has one.

**Buttons.** Three variants plus sizes. Every button is `inline-flex`, 44 px minimum height, 8 px radius, 16 px semibold, 10 px 18 px padding, with an optional 20 px leading icon and always a text label. Primary (`nh-btn nh-btn-primary`): navy, white text, one per view region (the page head, a card, a form). Secondary (`nh-btn`): white with #D6DCE4 border, ink text, hover #F5F7FA. Quiet (`nh-btn nh-btn-quiet`): no border, navy text, hover info tint; for tertiary actions such as "Visa alla". Danger: a secondary button (or menu item) with bad-red text, never a red fill. Large (`nh-btn-lg`, 52 px, 17 px, full width) for the main submit in a summary panel. Compact (40 px, 15 px, 6 px 14 px) only inside list rows. Disabled: opacity .5, `cursor: not-allowed`, stays a real button so it can explain itself with a `title`. In a page head the buttons are a 2-column grid on phone with the primary spanning both columns, and a wrapping row from tablet up.

**Links.** Navy, underlined on hover only when they sit in running text; standalone links ("Visa alla utskick", "Ändra tid") are semibold and not underlined until hover.

**Cards (`nh-card`).** White, 1 px line, 12 px radius, 16 px padding. A card head (`nh-cardhead`) is a flex row with the 18 px title left and a pill or action right, 12 px below. Cards never nest.

**Stat tiles (`nh-tiles`, `nh-tile`).** A muted 14 px regular label, a 26 px tabular value, and either a hint line or a 6 px progress bar. 2 across on phone, 4 on tablet and desktop. Used for the month summary on Start and for statistics pages.

**Usage bar (`nh-usage`).** A card-like box with "Brev använda denna månad" left, "1 240 av 4 000" right and a 10 px bar. Replaces `partials/package-usage-bar.blade.php`.

**Progress bars (`nh-bar`).** Ground track, lime fill, fully round. 6 px in tiles, 10 px for usage, 12 px for the "Öppnade brevet / Klickade på en länk" bars in the latest-sendout card. Carry `role="img"` with an `aria-label` that states the numbers.

**Status pills (`nh-pill` + modifier).** 28 px tall, 14 px semibold, an 8 px dot in `currentColor` before the word. Modifiers: `nh-pill-planned`, `nh-pill-running`, `nh-pill-done`, `nh-pill-stopped`, `nh-pill-neutral`. The word inside is always the existing lang string for that status (see the status table under Language and copy), never a new word. The word is always present.

**Date chips (`nh-datechip`).** 56 px square, ground background, 10 px radius, 20 px semibold day over a 12 px regular muted month abbreviation. Used in event-like lists (sendouts, SMS sendouts, invoices).

**Sendout list rows (`nh-sendouts li`).** Grid `auto 1fr` with the chip in the first column and subject over a meta line (pill, sent count, result on the right). Rows separated by 1 px lines.

**List container (`nh-list`, `nh-item`, `nh-listhead`, `nh-listfoot`).** The general list-of-things component that replaces every Bootstrap table on customer pages. It is a white card whose rows are CSS grid items: a 72 px thumbnail or leading cell, a semibold name, a muted secondary line (date, count), and a trailing action group. Phone: name and secondary line beside the thumbnail, actions wrap under them. Tablet: actions move to the right in one row. Desktop: a column header row appears (`nh-listhead`, 14 px semibold muted) and the secondary line becomes its own 190 px column. The action group gets one fixed column (`spacing.list-actions`, 256 px, room for Öppna, Skicka and Mer) shared by the header and every row, so the header labels sit over their columns and a row with only "Mer" keeps its date where the others have theirs; the actions stay right-aligned inside it. The footer states the count and any hidden items ("4 nyhetsbrev. Arkiverade brev visas inte."). Row actions are at most: one secondary button (Öppna), one primary button (Skicka), and a "Mer" menu.

**Data tables (`nh-table`).** For genuinely tabular data (receivers with several columns, statistics per link, invoice lines) use a real `<table>` inside `nh-list` styling: 14 px semibold muted header, 16 px cells, 12 px 16 px padding, numbers right-aligned and tabular, first column semibold, at most five columns visible. Below 700 px the table switches to stacked rows: each `<td>` shows its column label from a `data-label` attribute in 14 px muted above the value, and the row becomes a card-like block. The cell that names the row (the e-mail address, the list name) carries `data-primary`: on phone it becomes the block's title, full width without a label, wrapping between words rather than inside them; a row checkbox cell (`data-select`) sits in the same line as that title. Never let a table scroll horizontally inside a card on phone.

**"Mer" menu (`nh-more`).** A `<details>` whose `<summary>` is a compact secondary button with a chevron; the open menu is a white 10 px-radius panel with 6 px padding and 44 px items (20 px icon, 500 weight label), danger items in bad-red. Inside list rows the menu opens leftwards from the right edge of its button at every width, so it never runs off the right side of a phone screen; elsewhere it aligns left on phone and right from tablet. Only one menu is open at a time and outside clicks close it. Everything a "Välj funktion" dropdown used to hold goes here, except the two most common actions, which become visible buttons.

**Toolbar (`nh-toolbar`, `nh-search`, `nh-toggle`).** Above a list: a search input with a leading magnifier icon and visually hidden label (`flex: 1 1 240px`), and 44 px toggles ("Visa arkiverade") with native checkboxes. Filters that need more than a search and two toggles go into a "Filter" secondary button that opens a card with fields.

**Form fields (`nh-field`, `nh-input`, `nh-hint`).** Label above (16 px semibold), control, hint below (15 px muted). Inputs are 44 px, white, 1 px #AEB8C6 border, 8 px radius, 8 px 12 px padding, hover #8A97A8, `font: inherit`. Text, email, number, search, date, time, select and textarea all share this. Selects are native with a chevron icon; date and time are native `type="date"` and `type="time"` so phones show their own pickers (the datetimepicker plugin is not used). Errors: border and message in bad-red, message in 15 px with a 16 px icon, linked with `aria-describedby`, the field's hint stays. Required fields are not marked with an asterisk; optional fields say "(valfritt)" in the label. Help "?" icons are replaced by hint text.

**Choice rows (`nh-rows`, `nh-row`).** A vertical list of `<label>` rows for checkboxes or radios: 22 px native control with `accent-color` navy, a semibold name with a muted sub line, and an optional tabular count on the right. Rows separated by 1 px lines, whole row clickable. This is how receiver lists, sender profiles and "when to send" are chosen.

**Choice cards (`nh-choicegrid`, `nh-choice`).** Radio cards with a thumbnail, a check circle and a name, for picking a newsletter or template. Checked: navy border plus 1 px inset ring; focus: 3 px ring on the card. 2 across on phone, 4 from tablet.

**Total box (`nh-total`).** Lime-soft box under a selection stating the outcome ("412 mottagare får brevet") with `aria-live="polite"`.

**Numbered steps (`nh-step`, `nh-stepnum`).** A form that has natural phases is one page with numbered cards (32 px ink circle with a white number, 20 px title), not a wizard. Each card has `scroll-margin-top: 72px` so anchor links land below the sticky top bar.

**Summary panel (`nh-summarypanel`, `nh-checklist`).** A card on the right (desktop) or at the end (phone and tablet) that repeats what the user has chosen as a checklist (24 px ok-tinted check circle, 14 px regular muted label, semibold value) and holds the large primary submit, a secondary "Skicka ett testbrev till mig" and a reassurance hint.

**Mobile action bar (`nh-mobilebar`).** On phone and tablet, a sticky bar at the bottom of a long form: a two-line summary text left and the primary button right, white, 1 px top line and the small upward shadow, sitting above the bottom nav. Hidden on desktop where the summary panel is visible.

**Banners (`nh-banner` + info/ok/warn/bad).** Inline messages at the top of main or inside a card: tinted background, strong text colour, 8 px radius, 12 px 14 px padding, a 20 px icon and a sentence, optionally one quiet button. Used for the "you are viewing another company" admin notice (warn), account removal warnings (bad), success after a save (ok) and information (info).

**Toasts.** Short confirmations ("Nyhetsbrevet är sparat") appear top right (bottom on phone, above the nav), white card with a 4 px left border in the status colour, 5 seconds, dismissible. Restyle toastr with these tokens or replace it; the visual contract is this paragraph.

**Dialogs.** Confirmations use a centred white card (max 440 px, 12 px radius, 24 px padding) on the scrim, with a title, one sentence and two buttons whose labels are verbs ("Ta bort listan", "Avbryt"), never "OK". Destructive confirms use a danger secondary button. Restyle SweetAlert2 with these tokens or replace it with `<dialog>`.

**Empty states.** A card with a headline-sm title, one sentence and the primary action ("Du har inga nyhetsbrev än. Skapa ditt första så finns det här."). No illustrations.

**Pagination.** A footer row with "Visar 1 till 25 av 412" left and secondary buttons "Föregående" and "Nästa" right; on phone the text sits above the buttons. Page-number lists are not used.

**Bulk selection.** Where rows can be selected (receiver lists), a checkbox in the leading cell of each row and a "Markera alla" checkbox in the list head. When one or more rows are checked, a selection bar appears sticky at the bottom (same construction as the mobile action bar) with "3 listor valda", the bulk actions as secondary buttons and the destructive one in danger style. This replaces the row of grey "Markera alla listor / Slå ihop listor / Ta bort lista permanent" buttons.

**Thumbnails (`nh-thumb`).** Newsletter previews are drawn, not rendered: a 4:3 sunken box with a lime (or navy, amber, grey for variety) header band and a few grey lines. When a real rendered preview exists it may replace the drawing at the same size and radius, with `alt=""`. Blade: `<x-nh.thumb :variant="2" />` (variants 1 to 4); `nh.item` and `nh.choice` draw one through their `thumb` prop.

**Brand mark (`nh-mark`).** The existing green Nuhet symbol, with its original square proportions. Appears once in the top bar (phone, tablet) and once in the rail head (desktop).

## Do's and Don'ts

- Do give every button, link and menu item a visible word. An icon alone is never a control. The one exception is the phone and tablet top bar utilities (notifications, media library), which are icon buttons with a visible count badge, `aria-label` and `title`.
- Do show the two most common actions of a list as buttons; put the rest under "Mer". Don't bring back "Välj funktion".
- Do start every page with a title and a one-sentence lead. Don't use uppercase headings, panel chrome or collapse toggles.
- Do use navy for actions only, and lime only for "active / progress / upcoming" fills. Don't put text on lime, and don't use lime as a button colour.
- Do pair every status colour with a word and a dot. Don't rely on colour alone anywhere.
- Do keep body text at 16 px and every control at 44 px; don't shrink either to fit a phone.
- Do use native date, time, select, checkbox and radio controls. Don't add jQuery UI, iCheck or datetimepicker to new pages.
- Do stack tables into labelled rows below 700 px. Don't let anything scroll sideways.
- Do write Swedish, informal, plain: "Inget skickas förrän du trycker på Schemalägg utskick." Don't write system-speak ("Operation lyckades", "Objektet har uppdaterats").
- Do use the tokens; don't type a hex value into a stylesheet or a `style` attribute (bar widths are the one inline style, and they are data).
- Don't use em dashes in copy or code comments.
- Don't nest cards, don't shadow cards, don't add a stats box to pages that are not about statistics.

## Iconography

Icons are inline SVG on a 24 px grid, `fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"`, 24 px in navigation, 20 px in buttons and menus, 16 px in chevrons and check marks, 14 px inside check circles.
Stroke 2 is used for the plus and the paper plane in primary buttons, 2.2 for the brand arrow, 3 for check marks.
Font Awesome and emoji are not used in reskinned views.

The set, with the paths used in `b.html`, lives in `resources/views/components/icon/` as one Blade file per icon so a view writes `<x-icon name="send" />`:

| name | meaning | where |
|---|---|---|
| home | Start | nav |
| receivers | Mottagare (two people) | nav |
| newsletter | Nyhetsbrev (envelope) | nav |
| send | Utskick, Skicka, Schemalägg (paper plane) | nav, primary buttons |
| sms | SMS (phone) | nav |
| account | Ditt konto (gear) | nav |
| more | Mer (three lines) | phone nav |
| logout | Logga ut | rail foot |
| plus | Nytt, Skapa | primary buttons |
| edit | Skapa nyhetsbrev, Ändra (pen) | buttons |
| import | Importera (arrow up to line) | buttons |
| stats | Visa statistik (bars) | buttons |
| eye | Förhandsgranska | menus |
| copy | Kopiera | menus |
| trash | Arkivera, Ta bort | menus, danger |
| search | Sök | toolbar |
| chevron-down | Mer summary, select | controls |
| check | valt, klart | check circles |
| bell | Nuheter, notiser | top bar, rail |
| image | Mediabibliotek | top bar, rail |
| warning | begränsning nära, obetald faktura | banners, top bar |
| info | informationsbanner (default icon of `nh-banner-info`) | banners |

Add icons to the same folder in the same style when a page needs one; never mix in a second icon set.

## Navigation and app shell

Top-level items, in order: **Start, Mottagare, Nyhetsbrev, Utskick, SMS, Ditt konto**.
They come from `config/navigation.php` with Swedish labels in `resources/lang/sv/navigation.php`; keep those as the source and render them with the new markup.
On phone the bottom bar shows five slots: the first four top-level items and **Mer**, which folds in the rest (as in `b.html`); "Mer" opens a bottom sheet (a card sliding up over the scrim) listing the remaining items plus Nuheter (notices), Mediabibliotek, Logga ut, and the company name.
Reseller and Admin items appear only for those roles, after Ditt konto, in the same style.

**Sub-pages are not nav items.** The old sidebar's second level (Dina mottagare, Skapa mottagare, Dina mottagarlistor, Importera mottagare, Dina utskick, Skapa utskick, Utskick för samtycke, Dina uppgifter, Inställningar, Avsändarprofiler, Fakturor, Användare and so on) becomes:

- **Segment tabs** (`nh-tabs`) under the page head for sibling views of one section: Mottagare has "Mottagare | Mottagarlistor | Importer", Utskick has "Utskick | Samtycke (GDPR)", Ditt konto has "Dina uppgifter | Inställningar | Avsändarprofiler | Fakturor | Användare | Nuhet på din hemsida | Avtal". One import's own pages (#5205) have "Översikt | Mottagare" instead of the Mottagare section tabs, with a back link to Importer; its invalid-rows page has only a back link to the import. Tabs are a horizontal, scrollable row of 44 px links, 16 px medium, the active one semibold with a 3 px lime underline, `aria-current="page"`. On phone they scroll sideways within their own row (the only sideways scroll allowed) with the active tab scrolled into view.
- **Page-head actions** for creation: "Skapa mottagare", "Skapa mottagarlista", "Skapa nyhetsbrev", "Nytt utskick", "Importera mottagare", "Exportera mottagare" are primary or secondary buttons on the list page they belong to, never menu entries.
- The active top-level item is marked with `aria-current="page"` even on a sub-page; the top bar (phone, tablet) shows the sub-page name.

**Admin hub (decision on #2957, 2026-09-29).** The Admin rail item has too many sub-pages for one tab row, so it gets a hub instead:

- `admin.index` (view `admin/index`) is the hub. Page head "Admin"; then four group cards in a 2-column grid (1 column on phone), each titled with its group name and listing its pages as 44 px links with a one-line muted hint; then the old overview content (latest sendouts, new companies, global statistics) below as ordinary cards.
- Groups and pages, in this order:
  - **Kunder:** Företag (`admin.company.index`), Användare (`admin.user.index`), Fakturor (`admin.invoice.index`).
  - **Innehåll:** Nuheter (`admin.notice.index`), Avtal (`admin.agreements.index`), Manual (`manual-chapter.index`).
  - **Försäljning:** Referrers (`admin.referrer.index`), Kampanjkoder (`admin.campaign-code.index`).
  - **Drift:** Servrar (`admin.server.index`), Systeminställningar (`admin.system.settings.index`), MCP-behörigheter (`admin.mcp.grants`), Klagomål (`admin.complaint.index`), Missbruksrapporter (`admin.abuse-report.index`), Debug (`admin.debug.index`).
- A link shows only when the viewer may open it (the same role or permission check its controller or `config/navigation.php` uses, e.g. Missbruksrapporter is superadmin only); a group with no visible links is not rendered.
- Every admin page: a quiet `nh-back` link "Admin" to the hub above the page head, then segment tabs for the pages of its own group (`partials/nh-admin-tabs`, one source for the group map shared with the hub), with the current page `aria-current="page"`. Create/edit/show pages keep the tabs of their list page.
- The rail's Admin item links to the hub and stays current on every admin page. The separate Missbruksrapporter rail item (superadmin) stays as it is.

**Rail head (desktop):** brand mark, company name in semibold, user name below in muted, in the first 68 px; then the nav; then the rail foot pinned to the bottom with "Logga ut" (icon + word, 44 px) and the "2026 © Nuhet är skapad av XiLE Software och all data lagras i Sverige" line in 14 px muted.
On phone and tablet the footer line sits at the end of main.

**Utilities that were in the old top bar** (feedback, upgrade, notices with count, media library, unpaid invoice, sendout-limit warning, logout, admin/reseller company override):

- Desktop: notices ("Nuheter", bell, count badge in warn tint) and "Mediabibliotek" are nav-style items in the rail below the main items, separated by a 1 px line; logout is in the rail foot; upgrade and unpaid invoice are banners on Start and Ditt konto, not icons; the sendout-limit warning is a warn banner on Start and on Skapa utskick.
- Phone and tablet: the top bar's right side holds the page name and at most two icon buttons (bell with count, media library); everything else is in the "Mer" sheet.
- "Ge feedback" is a quiet button in the rail foot on desktop and an item in the "Mer" sheet; it opens the existing feedback Vue component restyled as a dialog.
- The company-override notice ("Du tittar på företaget X") is a warn banner across the top of main, with a quiet "Tillbaka" button.

## Responsive behaviour

- Breakpoints: 700 px (tablet) and 1024 px (desktop), `min-width` media queries, mobile-first CSS.
- Widths checked in every review: 390, 820, 1280 (and a quick look at 360 and 1440).
- No horizontal page scroll at any width. `min-width: 0` on grid and flex children that hold text; `overflow-wrap: anywhere` on user-supplied names in summary panels.
- Sticky elements: top bar (`top: 0`, z 5), bottom nav (`bottom: 0`, z 6), mobile action bar (`bottom: 62px`, z 5), desktop summary panel (`top: 24px`). Respect `env(safe-area-inset-bottom)` on the bottom bars.
- Touch targets 44 px minimum everywhere, 40 px only for compact row buttons that have 8 px spacing around them.
- The newsletter editor page keeps its own full-width layout (own round); the shell around it still follows this document.

## Accessibility

- Every interactive element shows the 3 px focus ring (`:focus-visible`, offset 2 px). Choice cards show it on the card via `:has(input:focus-visible)`.
- Landmarks: `<header>` top bar, `<nav aria-label="Huvudmeny">`, `<main>`, sections labelled by their heading (`aria-labelledby`).
- One `<h1>` per page (the page title), `<h2>` for cards and steps, no skipped levels.
- Icons are `aria-hidden="true"`; the word next to them is the name. Icon-only utility buttons carry `aria-label`.
- Live regions: totals and validation summaries use `aria-live="polite"`.
- Colour contrast: text at least 4.5:1, large text and UI borders at least 3:1. The tokens satisfy this when used as documented; the lint checks the component pairs.
- Forms: every control has a `<label for>`; errors are text, linked with `aria-describedby`, and the first invalid field receives focus after submit.
- Motion: none beyond the toast fade; respect `prefers-reduced-motion`.

## Language and copy

- Swedish, informal "du", sentence case, no trailing periods in labels and buttons, periods in sentences.
- Product vocabulary, keep exactly: Start, Mottagare, Mottagarlista, Nyhetsbrev, Utskick, Avsändarprofil, SMS, Ditt konto, Statistik, Nuheter, Mediabibliotek, Schemalägg utskick, Skapa nyhetsbrev, Importera mottagare, Exportera mottagare.
- Status words do not change with the reskin (decision on #2957, 2026-09-25: existing users must recognise them). Each page keeps rendering the status word from the lang key it uses today; the reskin only chooses the pill colour for it. Where the approved mockups show a different word ("Stoppat", "Utkast"), the lang file wins. Do not edit these keys or add new status words as part of a slice.

| state | lang key (word today) | pill |
|---|---|---|
| scheduled, not started | `sendout.status.planned` (Planerat), `sms.status.scheduled` (Schemalagd), `dashboard.sendout.scheduled` (Schemalagd) | planned |
| sending now | `sendout.status.running` (Pågående), `sms.status.sending` (Skickar), `dashboard.sendout.inProgress` (Pågående) | running |
| finished | `sendout.status.done` (Färdig), `sms.status.done` (Klart), `dashboard.sendout.completed` (Levererat) | done |
| stopped by the user | `sendout.status.abort` (Avbruten), `sms.status.aborted` (Avbruten) | stopped |
| failed by the system | `dashboard.sendout.failed` (Misslyckades) | stopped |
| archived | shown through the "Visa arkiverade" toggle, no pill today | neutral |

Admin copy (decision on #2957, 2026-09-29, Arto): admin and superadmin pages may be in English, and English is preferred for new admin work. The Swedish copy the admin round already added stays; customer-facing pages and the shared shell and rail stay Swedish. The status-word rule above is about customer pages: the abuse report pages (superadmin only) show their statuses and classifications with English labels in `resources/lang/sv/abuseReport.php` (`nh.statuses.*`, `nh.types.*`), with the escaped stored value as the fallback.

- Page leads answer "what is this page for": "Breven du har byggt. Öppna för att ändra, eller skicka ett direkt."
- Hints answer "what happens next": "Vi skickar automatiskt när tiden är inne."
- Numbers: space as thousands separator, space before %, dates as "fredag 26 september kl 09:00" in full and "fre 26 sep 09:00" in short, ISO only inside inputs.
- Button labels are verbs or verb phrases: Öppna, Skicka, Spara, Ta bort listan, Skicka ett testbrev till mig. Dialog buttons never say OK.
- Labels live in `resources/lang/sv/*.php` as today; new strings are added there (and to `en/`), not hard-coded in views.
- **Language switcher readiness** (a switcher is planned, Arto 2026-09-29; audit on card #3117): every visible string goes through a lang key, in Blade and in JavaScript alike. Vue components and `resources/assets/js/nuhet/*` get their strings from the page (`@json(__('...'))` into a data attribute or a props object), never as literals. `sv/` holds Swedish and `en/` holds English for the same keys; a new key is added to both files in the same change. The shell's `<html lang>` follows `app()->getLocale()`. Dates and numbers go through the existing helpers so they can follow the locale later.
- Until the switcher exists, the admin-English rule above is a stopgap: English admin labels written into `sv/` files (the abuse report statuses) move to `en/` when the switcher lands, and `sv/` gets Swedish again.

## Page patterns

Every customer page is one of these. Pick the pattern, then compose it from the components above.

1. **Dashboard (Start):** page head with greeting ("Hej Maria") and three actions; month summary (four tiles + usage bar); two-column cards: "Kommande och senaste utskick" (sendout rows, "Visa alla utskick" link row) and "Senaste utskicket" (pill, name, when, two progress bars, "Visa statistik"). Nuheter (notices) get a third card only when there are unread ones.
2. **List page:** page head (title, lead, primary create action, secondary import/export); optional segment tabs; toolbar (search, toggles); list container or data table; list footer or pagination; empty state when nothing matches. Examples: Dina nyhetsbrev, Dina utskick, Dina mottagare, Dina mottagarlistor, Importer, Avsändarprofiler, Fakturor, Användare, SMS-utskick, Nuheter, Spårningskoder, Kampanjkoder.
3. **Create or edit form:** page head; numbered step cards when the form has phases (Skapa utskick, SMS-utskick, Importera mottagare); a single card with fields otherwise (Skapa mottagare, Skapa mottagarlista, Avsändarprofil, Dina uppgifter, Inställningar); summary panel + mobile bar for the phased kind, a card footer row with primary "Spara" and quiet "Avbryt" for the simple kind. Never a wizard across pages.
4. **Detail with statistics (Visa utskick, SMS-utskick, statistik):** page head with pill and actions (Stoppa utskick as danger, Visa mottagare); tiles for the totals; cards with progress bars per metric; a data table for links or receivers; Chart.js charts (line for opens over time, bar for clicks per link) using primary navy for the main series, lime for the secondary, muted for grid lines, no Morris.
5. **Account and settings (Ditt konto):** segment tabs across the sub-pages; each is a simple form page or list page; package and usage as a tile row plus usage bar; upgrade as an info banner with a primary button, never a popup.
6. **Auth and public pages (login, register, password reset, GDPR opt-in/out, subscription pages, maintenance):** no rail, ground background, a single centred card (max 440 px, 24 px padding) with the brand mark and "Nuhet" above the title, fields, a large primary button and quiet links ("Glömt lösenordet?"). Footer line below the card.
7. **Editor (Skapa nyhetsbrev):** own round. Until then it keeps its current chrome inside the new shell.

## Page inventory and rollout

Customer-facing views under `resources/views/` that this document covers, grouped by the slice they should ship in.
Admin, reseller, server, systemsetting, debug and mcp views were first out of scope; on 2026-09-29 Arto added them as the admin round (slices 10 to 16 below). Third-party views (the log viewer's own template) stay as they are.

| Slice | Views | Pattern | Notes |
|---|---|---|---|
| 0 Shell | `app.blade.php` (new layout), `partials/navigation.blade.php`, `partials/header-right.blade.php`, `partials/stats.blade.php` (removed from layout), footer | shell | New layout file, rail, top bar, bottom bar, Mer sheet, banners, toasts, dialogs, icon component, fonts, `nuhet.css` |
| 1 Start | `home/index`, `partials/package-usage-bar` | 1 | Round 1 mockup exists. The obsolete admin revenue page is retired. The unused `home/manual` view was deleted (#3034). |
| 2 Nyhetsbrev | `newsletter/index`, `newsletter/partials/list`, `newsletter/testSendout` | 2 | Round 1 mockup exists; "Välj funktion" removed here. The unused `newsletterTemplate/index` and `newsletter/partials/testSendout` were deleted from the main tree (#3034) |
| 3 Utskick | `sendout/index`, `sendout/partials/list`, `sendout/create`, `sendout/createConsentEmail`, `sendout/edit`, `sendout/show`, `sendout/receivers` | 2, 3, 4 | Round 1 mockup for create; "Välj funktion" removed here |
| 4 Mottagare | `receiver/index`, `receiver/create`, `receiver/edit`, `receiver/export`, `receiver/import`, `receiver/importOverview`, `receiver/import-help`, `receiverList/index`, `receiverList/create`, `receiverList/edit`, `import/index`, `import/create`, `import/edit`, `import/show`, `import/receivers`, `import/showFailed` | 2, 3 | Segment tabs Mottagare / Mottagarlistor / Importer, except one import's own pages: "Översikt \| Mottagare" (#5205); bulk selection bar |
| 5 SMS | `sms/index`, `sms/create`, `sms/edit`, `sms/show`, `sms/splash` | 2, 3, 4 | `public/css/sms.css` retired |
| 6 Ditt konto | `company/index`, `company/edit`, `company/attachCampaignCode`, `senderprofile/*`, `invoice/*`, `apiKey/*`, `agreement/*`, `order/*`, `package/customPackage`, `user/*`, `page/about`, `page/privacy`, `page/terms`, `notice/index`, `notice/show` | 2, 3, 5 | Segment tabs; ionRangeSlider on the package page replaced by a native range or a select |
| 7 Public | `auth/*`, `gdpr/optin`, `gdpr/optout`, `receiver/subscription`, `receiver/unsubscribed`, `errors/*`, `unauthorized.blade.php`, `plain.blade.php` | 6 | Own minimal layout `layouts/public.blade.php` |
| 8 Editor | `editor/index`, `editor/mediaLibrary`, `partials/medialibrary`, `newsletter/render*` | 7 | Separate design round before implementation |
| 9 Manual | `manualChapter/manual` (the reader, `manual.index`) | 2 | Reading layout: one card, max 72ch text; a section page adds the chapter's sections as a side card. `page/*` shipped with slices 6 and 7. The chapter and section CRUD (`manualChapter/index`, `create`, `edit`, `manualSection/*`) is admin-only and stays on the old layout with the other admin views |

**Admin round (2026-09-29).** Media library first (customer-facing, linked from the shell top bar), then the hub, then one slice per hub group. List, form and detail pages follow patterns 2, 3 and 4; admin tables use `nh-table` with `data-primary` / `data-select` like the customer lists.

| Slice | Views | Pattern | Notes |
|---|---|---|---|
| 10 Media library | `media/index`, `media/edit` | 2, 3 | Customer page (Mediabibliotek). Also deletes the dead views `media/folderCreate`, `media/folderDelete`, `media/folderRename`, `receiver/import`, `receiver/import-help`, `receiver/importOverview` (no controller renders them; verify before deleting) |
| 11 Admin hub | `admin/index`, new `partials/nh-admin-tabs` | 1 | The hub described under Navigation; the group map lives in one place and later slices only include the tabs partial |
| 12 Kunder | `company/index`, `company/attachCampaignCode`, `companyProp/create`, `companyProp/edit`, `user/editAdmin` | 2, 3 | `admin.company.edit`, `admin.user.*` shared views already moved in slice 6; add the Kunder tabs there too |
| 13 Innehåll | `notice/adminIndex`, `notice/create`, `notice/edit`, `agreement/*`, `manualChapter/index`, `manualChapter/create`, `manualChapter/edit`, `manualSection/*` | 2, 3 | Notice and manual content fields keep their current escaping rules |
| 14 Försäljning | `campaignCode/*`, `referrer/*` | 2, 3, 4 | Campaign and referrer forms follow the existing sales patterns. |
| 15 Drift | `server/*`, `serverLimit/edit`, `systemsetting/*`, `smtp/index`, `mcp/grants`, `debug/index` | 2, 3 | Superadmin-only pages keep their gates |
| 16 Missbruk och klagomål | `abuseReport/index`, `abuseReport/show`, `complaint/index`, `complaint/create` | 2, 3, 4 | Abuse report actions (apply, dismiss, match) are POST forms; keep CSRF and confirm dialogs |
| 17 Återförsäljare | `reseller/index`, `reseller/companies` | 1, 2 | Reseller rail item; segment tabs "Översikt \| Företag" |

Each slice is one implementation brief (one production family plus its tests); slice 0 lands first and every later slice only migrates views to the new layout.
A view that has been migrated must not load Bootstrap classes; a view that has not been migrated keeps extending the old layout until its slice.

## Implementation in Nuhet

Stack: Laravel 12, Blade views, Laravel Mix (`webpack.mix.js`), one CSS bundle `public/css/main.css` built from Bootstrap 3 + INSPINIA + plugins, `public/js/main.js` with jQuery 2 and plugins, Vue 3 components in `resources/assets/js/components/`, TinyMCE and an AngularJS media library.

- **Stylesheet.** Hand-written plain CSS with custom properties, no preprocessor: `public/css/nuhet.css` (tokens on `:root`, shell, components, page patterns) split into `nuhet/tokens.css`, `nuhet/shell.css`, `nuhet/components.css`, `nuhet/pages.css` and concatenated by a new `mix.styles([...], 'public/css/nuhet.css')` entry. The token names are the front-matter names with an `--nh-` prefix: `--nh-primary`, `--nh-ground`, `--nh-line-strong`, `--nh-space-lg`, `--nh-radius-xl`. Copy the prototype CSS from `b.html` and rename `.pb` to `.nh` and `--pb-` to `--nh-`; replace `@container frame (min-width: X)` with `@media (min-width: X)`.
- **Layout.** A new `resources/views/layouts/nuhet.blade.php` (shell grid, rail, top bar, bottom bar, Mer sheet, banners area, toasts, `@yield('page')`, `@stack('styles')`, `@stack('scripts')`) that does NOT include `css/main.css`. Migrated views `@extends('layouts.nuhet')`. The old `app.blade.php` stays for unmigrated and admin views. Public pages use `layouts/public.blade.php`.
- **Plugins.** A migrated page pulls in only the vendor CSS and JS it still needs through `@push`: Chart.js for statistics, TinyMCE and the media library for the editor slice, SweetAlert2 and toastr restyled with the tokens (or replaced) for confirmations and toasts. jQuery stays available through `main.js` only where a page's existing script needs it; new behaviour is plain JavaScript in `resources/assets/js/nuhet/` bundled by Mix.
- **Fonts.** Download Instrument Sans 400, 500, 600, 700 as woff2 into `public/fonts/instrument-sans/` and declare `@font-face` with `font-display: swap` in `tokens.css`. Remove the Google Fonts `<link>` for Roboto from the new layout.
- **Icons.** `resources/views/components/icon/{name}.blade.php`, each an inline `<svg>` with the attributes from Iconography and `aria-hidden="true"`; an `<x-icon name="send" class="..."/>` wrapper component. No Font Awesome in migrated views.
- **Blade components.** Create anonymous components under `resources/views/components/nh/` for the repeated pieces: `button`, `card`, `pill`, `tile`, `bar`, `datechip`, `field`, `row`, `choice`, `list`, `item`, `more-menu`, `banner`, `tabs`, `empty`, `pagination`, `selection-bar`, `help`. Keep them thin (markup + classes, props for label, variant, icon, href). Do not create a component for something used once.
- **Nav data.** Keep `config/navigation.php` and the lang files as the source; the new `partials/nav.blade.php` maps top-level items to rail/bottom-bar items and the second level to segment tabs per section. Role-gated items (reseller, admin) keep their existing gates.
- **Tests.** The scaffolding exists in `tests/Feature/Reskin/`: extend `CustomerPageTestCase` (builds the sqlite schema, seeds a main user, a roleless user and an admin, wires the permission gates, and offers `assertUsesNuhetShell`, `assertPageHead`, `assertPrimaryAction` and `skipUntilShellLands`). `ReskinShellTest` and `StartPageTest` show the pattern; their reskin assertions are skipped until `layouts/nuhet.blade.php` exists and switch on by themselves when slice 0 lands. Every migrated view gets a feature test in that folder that renders the route as a main user and asserts: the new layout is used (`nh-` shell present, no `#wrapper` INSPINIA markup), the page title and lead exist, the primary action exists, and a non-member or roleless user gets the same 403 as before. Statistics and list pages assert against seeded data that counts are formatted Swedish style. The shell gets a test that each top-level nav item renders for a main user and that admin items do not.
- **Visual check.** Before a slice is reported done, take Playwright screenshots of every migrated route at 390, 820 and 1280 on `http://nuhet.loc` (log in as a main user or admin; roleless users get 403 on sendout and newsletter routes) and attach them to the card. Check: no horizontal scroll, focus ring visible on tab, 44 px targets, the pill words present.
- **Lint.** `npx @google/design.md lint DESIGN.md` must report 0 errors after any edit to this file (the `borderColor` warnings are expected: the spec has no border sub-token yet, and the border colour is information the implementer needs). Changes to tokens are made here first, then in `tokens.css`, never the other way round.

## Agent Prompt

Read this file before writing or changing any view, stylesheet or Blade component in Nuhet.
Use the token names, never a raw colour, size or radius.
Copy markup from `docs/design/reskin-2957/b.html` when a component exists there; rename `pb-` to `nh-`.
For a page that has no mockup, choose the page pattern above and compose it from the components section; do not invent new components when an existing one fits, and if you must add one, add it to this document in the same change.
Write Swedish copy in the tone of the Language section.
No em dashes in code, comments or copy.
Verify at 390, 820 and 1280 px before reporting done.

## October 22 pilot feedback

Nuhet uses semantic version 2.x.y, starting with 2.0.0 for this update. The company 1 pilot and separate editor preparation gate remain the release boundary.

- Email thumbnails render the saved desktop parser document, preserving passive table/background/font/corner-radius styling. Scripts, tracking and foreign network requests remain disabled. The original desktop width is preserved before scaling; newsletter 2952 uses 660px. The list card and dialog share that numeric canvas. Owned raster images and the shipped company fonts/social icons can be embedded under bounded validation.
- SMS step 1 hides lists without phone numbers by default. An unchecked show-all checkbox reveals them without changing selected recipients or pricing. The keyboard-focusable recipient pane scrolls vertically within eight existing 44px rows. The scheduling date and time fields share a two-column grid from tablet width and stack on phones.
- Admin user and company forms use the existing two-column settings grid. Login and activity facts are informational cards, not editable fields. Raw session state is not an admin form field. The company toolbar stays in place when its filter disclosure opens. Campaign codes hide expired entries by default; system settings show entries updated within two calendar months by default, with explicit history toggles.
- The pilot admin overview omits the new-company section. The obsolete Nuhet v1 import and accounting-records features are removed from routes, source, navigation and translations. Historical data and Git history are retained. Legacy navigation ignores unavailable routes from an older config cache without rebuilding or altering cached settings.
- Invoice PDFs embed the shipped Nuhet horizontal logo, so the renderer does not depend on an HTTP request to its own public hostname. The standalone new editor uses the shipped green Nuhet symbol and an explicit back-to-newsletters link. Its draft heading explains that saved editor drafts have not been sent.
### 2.0.1 navigation cleanup

The obsolete admin revenue page and its dedicated source, permission seeds, views, translation and styling are retired. Campaign/sendout metrics and their storage remain separate. SMTP credentials belong to the currently selected company: retain the existing superadmin access boundary and one main-menu entry; do not duplicate it in Admin or render admin navigation/back links on its page.

### 2.2.0 starter selection and compact editor

Starting a newsletter shows a responsive grid of native editable starter layouts (newsletter, offer, invitation and blank). Each thumbnail is the actual pinned compiler output in a passive sandbox with no network access. Selecting a layout opens an unsaved draft; no GET creates a draft. Persisted drafts always reopen their saved content. Keep company/role gates and the separate preparation gate. The standalone editor header has one arrow back button plus existing tools/status, with no logo, new-draft label or preview-only explanatory paragraph. LEGACY is a single tooltip pill with a keyboard/touch target; company settings use the same underline tab appearance as other segment navigation. Receiver chevrons follow aria-expanded.

### 2.2.1 receiver workspace and mobile sections

An individual receiver has local Mottagare, Taggar and Statistik panels, with the existing save contract and membership controls. Desktop status/consent and email/phone fields share two-column rows; phones stack them. Sibling receiver-index navigation does not appear on this form.

On phone widths, shared section navigation and in-page tab controls use the existing input vocabulary as a full-width native dropdown with a chevron, visible focus and a 44px target. It mirrors the active link/tab and delegates to existing activation and validation behavior; desktop underline tabs and no-JavaScript sections remain available. Admin company billing shows the selected company's permission-aware invoice history and masked card information without granting new payment actions.

Starter thumbnails are generated from the pinned compiler before release and bound to their source fingerprint. The ready picker reads these static previews with no request-time compiler or editor SDK download; choosing a template loads the full editor. Missing or stale preview artifacts fail clearly rather than creating expensive fallback work.

### 2.4.0 receiver history, editor controls and company links

Receiver statistics include retained email and SMS participation for that receiver and company, with paginated rows and honest missing-history states. Show an exact hard-bounce source and timestamp when recorded; do not infer the source from nearby sendouts. Re-adding the same retained identity in a pilot company restores its existing data and safety state rather than silently granting consent again.

Company settings tabs have allow-listed URL selections, browser Back/Forward behavior and synchronized mobile section dropdowns. Admin and superadmin billing uses the selected company's invoices and masked payment details, preserving existing permissions and payment-action restrictions. The Nuhet footer setting has a questionmark help control outside its checkbox label, usable by mouse, keyboard and touch.

All editor color inputs share up to ten recently used colors, placed directly below each input; selecting a swatch applies that color. Web address fields show a nonblocking background warning after leaving the field when a bounded public HTTP(S) check does not return200. Keep the entered address and edits intact; stale responses must not overwrite newer input status. Link checking does not authorize access to private networks or change the separate preparation gate.

### October 28 editor starter follow-up

The starter chooser is an explicit bounded horizontal-scroll exception on phones, tablets and desktop, following Jonathan's request. The page itself must never overflow. Keep actual passive compiler thumbnails and native selection links. Use the existing button vocabulary for Previous/Next, visible focus, normal Tab plus Left/Right/Home/End on cards, a scrollable named region, touch swiping and reduced-motion support. With JavaScript unavailable, native horizontal scrolling and all selection links remain usable. The original four starters retain their documents and order; add the personal letter, three-column product showcase and numbered inspiration layouts in Swedish and English. Each remains an unsaved editable document until explicit save, with mandatory footer tokens and existing tenant/role/preparation gates.


### Local feedback - 2026-11-02

Automatic replies whose status is handled display the handled state without a manual-review cue, even when historical review metadata is set. Stored classification, review evidence and processing behavior remain unchanged. Pending review items still identify manual review explicitly on list and detail pages.

Tag editing remains its own /tags/{id}/edit workspace and now has two local sections: Om taggen and Mottagare med taggen. The selected section uses the tab query parameter, survives reload, and uses the shared mobile dropdown. The recipients section contains its existing filters, ten-row pagination and bulk operations, with tab=receivers preserved in filter/pagination URLs; it is hidden on the details section.


### Local feedback - 2026-11-02 review wording and recipient consistency

Review cues are actor-neutral: Behöver granskas / Needs review. Only unresolved review or uncertain-result states display the cue when review metadata is set. Queued forwarding, retries, blocked delivery, loops and completed states keep their factual status without an extra review pill. No UI text claims that a human must act or that an agent currently owns the item; stored metadata and processing remain unchanged.

The tag-recipient section reuses the main recipient list toolbar and filter-card pattern: search, Sök and a stable Filter toggle on the main row, advanced controls in the existing white filter card, followed by the shared list container. Advanced filters start collapsed unless active and remain visible without JavaScript. The shared dropdown tabs, query/selection state, table paging and bulk permissions remain unchanged. Do not introduce a separate visual pattern for tag members.

### Local feedback - 2026-11-02 compact tag-recipient statistics

Tag-member rows use one Statistik column containing the same compact icon-and-count statistics blocks as the main receiver list. Sent, opened and bounced retain their existing aggregated values, accessible text and hover labels. Positive opens and bounces use their established status colours; zero opens and bounces stay neutral. The blocks wrap on narrow screens and are informational, without a pointer cursor or click action. Existing filters, selection and paging are preserved.

### Statistics icon identity - 2026-11-02

Use the existing send icon for actual sent counts, eye for opened counts and warning for bounced counts throughout design v2. The shared stat tile accepts an optional decorative icon; compact recipient counts keep their existing receiver-stat blocks. Apply the same identity to customer/admin summaries, sendout totals and SMS handoff counts. Preserve values, rates, filter links and chart semantics. SMS participation records, SMS parts, quota usage and click metrics are different quantities and do not become sent counts. Legacy design and its PDF renderer remain unchanged.

### November 2026 account, admin and report follow-up (#2957)

Content-level Admin backlinks are omitted by the shared partial; primary admin navigation stays. Help uses an adjacent keyboard-accessible circle-question control. Receiver usage is normal below 80%, warning at 80% and danger at 95%, retaining numbers and an accessible label. Comment pin/unpin/delete actions use named icons.

Sender-profile domains are limited per company by `max_sender_domains` (default 1). Admin changes are permission-checked. Profile creation and distinct-domain accounting share a transaction and company lock; Nuhet's exact built-in domains are excluded. SMS activation belongs to the current account owner with current edit permission and an active paid package. The owner confirms current billing-source rates before only the SMS flag changes; no message is sent.

Email and SMS reports expose overview and recipients as link-backed sections. Enhanced reads preserve actor, session, company, locale and shell, accept only the explicit report routes, update the URL and retain browser history. Mobile dropdowns replace links only after successful enhancement. Unknown mutation results disable that action until a full reload/status check; newer reads cannot commit during a mutation. Email totals are compact, Linkklick is named directly and bounce guidance is in a circle-question tooltip.

Newsletter printing opens the actual saved newsletter in a separate, authorized print layout. Owned raster images are inlined with tenant/path validation; unavailable or external images are omitted with a visible note. Scripts/forms and resource-fetching markup are removed before nonce-protected print controls are added. The browser prints or saves the same document as PDF. The earlier server-renderer prototype is not part of the implementation.

The GDPR creation form uses the shared timeline and mobile step selector. The new GDPR email is an approval-only native editor document, compiled by the pinned renderer in Swedish and English. The existing consent/send pipeline stays unchanged until design approval and recipient-link integration.
## Local feedback 2026-11-03, revision 2

Version 2.6.1 adds industry autocomplete, separate admin SMS control, comment bubbles, collapsible SMS guidance, admin alert badges, common v2 tooltips, recipient report search and the approved native consent layout. Local preview only until a separate live release decision. Saved native consent output keeps its existing recipient link and plaintext pipeline and remains readable after design rollback.
