/* Nordregio Portal — Public (agency-facing) styles
 *
 * Design based on Nordic Council of Ministers design manual.
 * Colors from the Nordregio/Norden brand palette.
 * Typography: Mark Pro (self-hosted web font).
 * WCAG 2.1 AA compliant: all text ≥ 4.5:1 contrast, large text ≥ 3:1.
 */

/* ── Design tokens (synced with Figma DS "nordregio-ds") ── */
:root {
    /* Primary palette */
    --np-blue:           #006eb6;
    --np-blue-dark:      #385988;
    --np-blue-hover:     #005a94;
    --np-red:            #BA0C2F;
    --np-green:          #266d51;
    --np-yellow:         #fdcf41;

    /* Accent / light palette */
    --np-light-blue:     #d4e9f9;
    --np-light-green:    #e2fae1;
    --np-light-red:      #fbdce7;
    --np-light-yellow:   #fff0be;
    --np-light-purple:   #d3d5ed;
    --np-secondary-light-blue: #d4e9f9;

    /* Neutrals */
    --np-text:           #1a1a1a;
    --np-text-secondary: #454547;
    --np-text-muted:     #5e5f61;
    --np-border:         #d0d0d0;
    --np-border-light:   #e5e5e5;
    --np-bg:             #ffffff;
    --np-bg-subtle:      #f5f7f9;
    --np-bg-offset:      #ecedee;
    --np-white:          #ffffff;
    --np-gray-light:     #ececec;
    --np-gray-alt-light: #e0e0e0;

    /* Semantic */
    --np-success:        #266d51;
    --np-success-bg:     #e2fae1;
    --np-error:          #BA0C2F;
    --np-error-bg:       #fbdce7;
    --np-warning-bg:     #fff0be;
    --np-warning-text:   #6b5900;

    /* Spacing (Figma DS scale) */
    --np-space-xs:  0.5rem;
    --np-space-sm:  1rem;
    --np-space-md:  1.5rem;
    --np-space-lg:  2.5rem;
    --np-space-xl:  4rem;
    --np-space-2xl: 6rem;

    /* Radius */
    --np-radius:      6px;
    --np-radius-lg:   8px;
    --np-radius-pill: 3.125rem;

    /* Typography (Figma DS) */
    --np-font: "Mark Pro", "Mark", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --np-font-size-sm:  0.8125rem;
    --np-font-size:     1rem;
    --np-font-size-lg:  1.25rem;
    --np-font-size-xl:  2.25rem;
    --np-font-size-2xl: 2.625rem;
    --np-line-height:   1.5;

    /* Focus ring */
    --np-focus-ring: 0 0 0 3px rgba(0, 110, 182, 0.4);
    --np-focus-orange: #ff6900;
}

/* ── Base / reset ── */
.np-login-wrap,
.np-dashboard,
.np-delivery {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--np-space-md);
    font-family: var(--np-font);
    font-size: var(--np-font-size);
    line-height: var(--np-line-height);
    color: var(--np-text);
}

/* ── Skip to content (WCAG 2.4.1) ── */
.np-skip-link {
    position: absolute;
    top: -100%;
    left: var(--np-space-md);
    background: var(--np-blue);
    color: var(--np-bg) !important;
    padding: var(--np-space-sm) var(--np-space-md);
    border-radius: var(--np-radius);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}
.np-skip-link:focus {
    top: var(--np-space-sm);
}

/* ── Focus styles (WCAG 2.4.7) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 0.188rem solid var(--np-blue);
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* ── Login ── */
.np-login-wrap {
    max-width: none;
    padding: 0;
}
.np-login-hero {
    background: var(--np-light-blue);
    padding: 48px 32px;
}
.np-login-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.np-login-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--np-blue-dark);
    margin: 0 0 8px 0;
}
.np-login-hero p {
    color: var(--np-text-muted);
    font-size: var(--np-font-size);
    margin: 0;
}
.np-login-body {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--np-space-xl) 32px 0;
}
.np-field {
    margin-bottom: var(--np-space-md);
}
.np-field label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--np-space-xs);
    font-size: var(--np-font-size);
    color: var(--np-text);
}
.np-field input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--np-radius-pill);
    font-size: var(--np-font-size);
    font-family: var(--np-font);
    box-sizing: border-box;
    color: var(--np-text);
    background: var(--np-gray-light);
    transition: outline-color 0.15s;
}
.np-field input:focus {
    outline: 3px solid var(--np-blue);
    outline-offset: 0;
    background: var(--np-white);
}

/* ── Buttons (Nordregio brand) ── */
.np-btn {
    display: inline-block;
    padding: 0.667em 1.333em;
    background: var(--np-blue-dark);
    color: var(--np-white) !important;
    border: 1px solid transparent;
    border-radius: var(--np-radius-pill);
    cursor: pointer;
    font-size: var(--np-font-size);
    font-family: var(--np-font);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0px 1px 4px rgba(18, 25, 97, 0.08);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
    line-height: var(--np-line-height);
}
.np-btn:hover {
    background: var(--np-blue);
    border-color: transparent;
    color: var(--np-white) !important;
    box-shadow: 0px 2px 8px rgba(18, 25, 97, 0.14);
}
.np-btn:active {
    transform: scale(0.98);
    box-shadow: 0px 1px 2px rgba(18, 25, 97, 0.1);
}
.np-btn:focus-visible {
    outline: 0.188rem solid var(--np-blue);
    outline-offset: 2px;
}
.np-btn-sm {
    padding: 12px 24px;
    font-size: 14px;
    line-height: 16.8px;
}
.np-btn-secondary {
    background: transparent;
    color: var(--np-blue-dark) !important;
    border: 1px solid rgba(56, 89, 136, 0.27);
    box-shadow: none;
}
.np-btn-secondary:hover {
    background: transparent;
    color: var(--np-text) !important;
    border-color: var(--np-text);
    box-shadow: none;
}
.np-btn-secondary:active {
    background: var(--np-secondary-light-blue);
    transform: scale(0.98);
}
.np-btn-secondary:focus-visible {
    outline: 0.188rem solid var(--np-blue);
    outline-offset: 2px;
}

/* ── Dashboard ── */
.np-dashboard {
    max-width: none;
    padding: 0;
}
.np-dashboard-hero {
    background: var(--np-light-blue);
    padding: 48px 32px;
}
.np-dashboard-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.np-dashboard-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--np-blue-dark);
    margin: 0 0 8px 0;
}
.np-dashboard-subtitle {
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.375rem;
    max-width: 85%;
    margin: 0;
}
.np-dashboard-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--np-space-lg) 32px 0;
}

.np-empty-state {
    text-align: center;
    padding: var(--np-space-2xl) var(--np-space-md);
}
.np-empty-state p {
    margin: var(--np-space-sm) 0;
}
.np-empty-state .np-btn {
    margin-top: var(--np-space-md);
    display: inline-block;
}
.np-muted {
    color: var(--np-text-muted);
    font-size: var(--np-font-size);
}

/* ── Delivery cards ── */
.np-delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--np-space-lg);
}

.np-delivery-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #006eb6;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: #ffffff;
    min-height: 220px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.np-delivery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 24px rgba(18, 25, 97, 0.25);
    color: #ffffff;
}
.np-delivery-card:focus-visible {
    outline: 3px solid var(--np-blue);
    outline-offset: 2px;
}
.np-card-done {
    background: #385988;
}

.np-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--np-space-sm);
}
.np-card-meta .np-card-progress-text {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.np-card-project {
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: #ffffff;
    flex: 1;
}

.np-card-progress {
    margin-bottom: var(--np-space-md);
}
.np-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}
.np-progress-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 9999px;
    transition: width 0.3s;
}
.np-card-done .np-progress-fill {
    background: #8ae09f;
}

.np-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.np-card-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--np-radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.np-badge-done {
    background: rgba(255, 255, 255, 0.9);
    color: #2a5a3a;
}
.np-badge-pending {
    background: rgba(255, 255, 255, 0.9);
    color: var(--np-blue-dark);
}
.np-card-country-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--np-radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ── Delivery detail ── */
.np-delivery {
    padding-top: 0;
    padding-bottom: var(--np-space-lg);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.np-delivery-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--np-space-lg) 32px 0;
}

/* Light-blue header area */
.np-delivery-hero {
    background: var(--np-light-blue);
    padding: 48px 32px;
}
.np-delivery-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.np-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--np-blue-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}
.np-back-link:hover { text-decoration: underline; }

.np-delivery-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--np-blue-dark);
    margin: 0 0 8px 0;
}
.np-delivery-hero-tags {
    display: flex;
    gap: 8px;
}
.np-delivery-hero-tag {
    display: inline-block;
    background: var(--np-white);
    color: var(--np-blue-dark);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    border: 1px solid rgba(56, 89, 136, 0.27);
}

/* ── Drop zone ── */
.np-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 48px 32px;
    text-align: center;
    color: var(--np-text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.np-drop-zone-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.np-drop-zone:hover,
.np-drop-zone-active {
    border-color: var(--np-blue);
    background: rgba(0,110,182,0.03);
}
.np-drop-zone:has(.np-file-input:focus-visible) {
    outline: 0.188rem solid var(--np-blue);
    outline-offset: 2px;
    border-color: var(--np-blue);
}
.np-drop-zone-icon {
    display: block;
    margin: 0 auto 16px;
    width: 40px;
    height: 40px;
    color: var(--np-blue-dark);
}
.np-drop-zone strong {
    color: var(--np-blue-dark);
    font-weight: 600;
    text-decoration: underline;
}
.np-drop-zone-subtitle {
    display: block;
    font-size: 14px;
    color: #444;
    margin-top: 8px;
    letter-spacing: -0.15px;
}

/* ── Toast notifications ── */
.np-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.np-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 0;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--np-font);
    color: var(--np-text);
    background: var(--np-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    pointer-events: auto;
    transform: translateX(calc(100% + 32px)) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    min-width: 280px;
}
.np-toast-success {
    background: var(--np-light-green);
    border-left: 4px solid var(--np-green);
    color: var(--np-text);
}
.np-toast-success svg circle { fill: var(--np-green); }
.np-toast-error {
    background: var(--np-light-red);
    border-left: 4px solid var(--np-red);
    color: var(--np-text);
}
.np-toast-error svg circle { fill: var(--np-red); }
.np-toast-visible {
    transform: translateX(0) scale(1);
    opacity: 1;
}
.np-toast-hiding {
    transform: translateX(calc(100% + 32px)) scale(0.95);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.np-toast-text {
    flex: 1;
    line-height: 1.4;
}
.np-toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--np-text-muted);
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.np-toast-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--np-text);
}

/* ── Sticky toolbar wrapper ── */
.np-toolbar-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--np-bg);
    padding-top: 8px;
    padding-bottom: 8px;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
}
.np-toolbar-sticky.is-stuck {
    background: transparent;
}
.np-toolbar-sticky.is-stuck::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: var(--np-bg);
    box-shadow: 0px 2px 8px rgba(18, 25, 97, 0.08);
    z-index: -1;
}
.np-toolbar-sticky.is-stuck .np-toolbar-progress-hint {
    display: none;
}

/* ── Delivery toolbar ── */
.np-delivery-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.np-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.np-toolbar-count {
    font-size: 15px;
    font-weight: 500;
    color: var(--np-text);
}
.np-toolbar-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--np-blue-dark);
    text-decoration: none;
}
.np-toolbar-download:hover { text-decoration: underline; }
.np-toolbar-download svg {
    width: 16px;
    height: 16px;
}

.np-toolbar-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--np-bg-subtle);
    border-radius: 10px;
    padding: 14px 20px;
    width: 100%;
}
.np-toolbar-progress-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.np-toolbar-progress-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--np-text);
    white-space: nowrap;
}
.np-toolbar-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.np-toolbar-progress-fill {
    height: 100%;
    width: 0;
    background: #009823;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.np-toolbar-progress-hint {
    font-size: 13px;
    color: var(--np-text-muted);
}
.np-toolbar-progress-done-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.375rem;
    line-height: 1.625rem;
    font-weight: 700;
    color: var(--np-text-secondary);
    flex: 1;
}
.np-toolbar-progress-done-text svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.np-toolbar-progress-done {
    padding: 24px 28px;
}
.np-toolbar-progress-main .np-btn {
    flex-shrink: 0;
}

/* ── Filter bar ── */
.np-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 0;
    margin-bottom: 16px;
}
.np-filter-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.np-filter-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.np-filter-search {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-pill);
    background: var(--np-bg);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.np-filter-search.is-open {
    width: 200px;
    cursor: default;
}
.np-filter-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--np-text-muted);
    cursor: pointer;
    z-index: 1;
}
.np-filter-search-input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 36px;
    border: none;
    border-radius: var(--np-radius-pill);
    font-size: 14px;
    font-family: var(--np-font);
    color: var(--np-text);
    background: transparent;
    box-sizing: border-box;
    transition: opacity 0.2s;
    opacity: 0;
    cursor: pointer;
}
.np-filter-search.is-open .np-filter-search-input {
    opacity: 1;
    cursor: text;
}
.np-filter-search-input::placeholder {
    color: var(--np-text-muted);
}
.np-filter-search-input:focus {
    outline: none;
}
.np-filter-search:has(.np-filter-search-input:focus) {
    border-color: var(--np-blue);
}

/* Filter tabs — matches nordregio.org/events/ pill style */
.np-filter-tabs {
    display: flex;
    gap: 8px;
}
.np-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid #ecedef;
    border-radius: 40px;
    background: transparent;
    color: var(--np-text);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--np-font);
    line-height: 17px;
    cursor: pointer;
    transition: border-color 0.1s ease-out, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.np-filter-tab:hover {
    border-color: var(--np-text);
}
.np-filter-tab-active {
    background: var(--np-blue-dark);
    color: var(--np-white);
    border-color: var(--np-blue-dark);
}
.np-filter-tab-active:hover {
    background: var(--np-blue);
    border-color: var(--np-blue);
    color: var(--np-white);
}

/* No results message */
.np-no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--np-text-muted);
    font-size: 15px;
}

/* ── File list ── */
.np-file-panel {
    border: 1px solid var(--np-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: var(--np-space-lg);
}
.np-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 9px;
    min-height: 56px;
    border-bottom: 1px solid var(--np-border);
    transition: background 0.1s;
}
.np-file-row:last-child { border-bottom: none; }
.np-file-row { background: var(--np-white); }

.np-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.np-file-info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--np-text-muted);
}
.np-file-info-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--np-text);
    white-space: nowrap;
}
.np-file-info-template {
    color: var(--np-blue-dark);
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
}
.np-file-info-template:hover { text-decoration: underline; }

.np-file-delivered {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.np-file-delivered-check {
    flex-shrink: 0;
}
.np-file-delivered-name {
    color: var(--np-text);
    font-size: 14px;
    font-weight: 400;
}
.np-file-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--np-border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--np-text-muted);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    flex-shrink: 0;
    padding: 0;
    font-family: var(--np-font);
}
.np-file-delete-btn:hover {
    color: var(--np-text);
    border-color: var(--np-text-secondary);
    background: none;
}
.np-file-delete-btn:hover svg path {
    fill: none;
    stroke: var(--np-text);
}
.np-file-delete-btn:focus-visible {
    outline: 3px solid var(--np-blue);
    outline-offset: 2px;
}

.np-file-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.np-upload-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File choose button — light border per Figma */
.np-file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.np-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.np-file-input:focus-visible + .np-file-btn {
    outline: 3px solid var(--np-blue);
    outline-offset: 2px;
}
.np-file-name {
    display: none;
}

/* ── Tables ── */
.np-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--np-space-sm);
}
.np-table th,
.np-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--np-border-light);
    text-align: left;
    font-size: var(--np-font-size);
}
.np-table th {
    background: var(--np-bg-subtle);
    font-weight: 600;
    font-size: var(--np-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--np-text-secondary);
}
.np-table tr:hover {
    background: var(--np-bg-subtle);
}

/* ── Status badges (table — Figma DS) ── */
.np-status {
    display: inline-block;
    padding: 0.25em 0.75em;
    border-radius: var(--np-radius-pill);
    font-size: var(--np-font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.np-status-done {
    background: var(--np-green);
    color: var(--np-white);
}
.np-status-pending {
    background: var(--np-yellow);
    color: var(--np-blue-dark);
}
.np-status-error {
    background: var(--np-red);
    color: var(--np-white);
}
.np-status-info {
    background: var(--np-blue);
    color: var(--np-white);
}

/* ── Messages (generic) ── */
.np-error {
    background: var(--np-error-bg);
    color: var(--np-error);
    border: 1px solid var(--np-error);
    padding: 0.75rem var(--np-space-sm);
    border-radius: 10px;
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 500;
}

/* ── Visually hidden (screen-reader only) ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Public Phasing Portal ── */
.np-phasing {
    max-width: none;
    padding: 0;
}
.np-phasing-hero {
    background: var(--np-light-blue);
    padding: 48px 32px;
}
.np-phasing-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}
.np-phasing-hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--np-blue-dark);
    margin: 0 0 8px 0;
}
.np-phasing-subtitle {
    color: var(--np-text-muted);
    font-size: var(--np-font-size);
    margin: 0;
}
.np-phasing-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--np-space-xl) 32px var(--np-space-xl);
}
.np-phasing-grid {
    display: flex;
    flex-direction: column;
    gap: var(--np-space-lg);
}
.np-phasing-project {
    background: var(--np-white);
    border: 1px solid var(--np-border-light);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
}
.np-phasing-project-header {
    padding: var(--np-space-md) var(--np-space-md) var(--np-space-sm);
}
.np-phasing-project-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--np-text);
    margin: 0 0 8px 0;
}
.np-phasing-project-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.np-phasing-files {
    font-size: 14px;
    color: var(--np-text-muted);
}
.np-phasing-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--np-blue-dark);
}
.np-progress-bar-lg {
    height: 10px;
}
.np-phasing-countries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--np-border-light);
    border-top: 1px solid var(--np-border-light);
}
.np-phasing-country {
    padding: 16px var(--np-space-md);
    background: var(--np-white);
}
.np-phasing-country-done {
    background: var(--np-light-green);
}
.np-phasing-country-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.np-phasing-country-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--np-text);
}
.np-phasing-country-files {
    font-size: 13px;
    color: var(--np-text-muted);
    font-weight: 500;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .np-delivery-hero { padding: 0 16px 24px; }
    .np-delivery-hero h1 { font-size: 24px; }
    .np-delivery-body { padding: var(--np-space-sm) var(--np-space-sm) 0; }
    .np-dashboard-hero { padding: 24px 16px 24px; }
    .np-dashboard-hero h1 { font-size: 24px; }
    .np-dashboard-body { padding: var(--np-space-sm) var(--np-space-sm) 0; }
    .np-login-hero { padding: 24px 16px 24px; }
    .np-login-hero h1 { font-size: 24px; }
    .np-login-body { padding: var(--np-space-md) 16px 0; }
    .np-phasing-hero { padding: 24px 16px; }
    .np-phasing-hero h1 { font-size: 24px; }
    .np-phasing-body { padding: var(--np-space-sm) 16px; }
    .np-phasing-countries { grid-template-columns: 1fr; }
    .np-toolbar-sticky { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
    .np-delivery-toolbar { flex-wrap: wrap; gap: 12px; }
    .np-toolbar-progress { width: 100%; }
    .np-filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .np-filter-left { width: 100%; }
    .np-filter-right { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
    .np-filter-search { width: 100%; }
    .np-filter-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 6px; }
    .np-filter-tab { flex-shrink: 0; padding: 10px 16px; }
    .np-file-row { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
    .np-file-info { min-width: 100%; }
    .np-file-actions { width: 100%; justify-content: flex-start; }
    .np-drop-zone { padding: 32px 16px; }
    .np-toast-container { right: 12px; left: 12px; }
    .np-toast { max-width: none; min-width: 0; }
}
