/* Worker Portal - mobile/tablet-first design system.
   Palette: deep teal (confidence, "on the floor and in control") + amber
   accent (achievement/progress) - deliberately distinct from the customer
   storefront's own theme, since this is an internal tool, not a public
   storefront. Large touch targets throughout (44px+) since this is meant
   to run on shared shop-floor tablets. */

:root {
    --teal-900: #0a3535;
    --teal-800: #0f4c4c;
    --teal-700: #145e5e;
    --teal-600: #1a7373;
    --teal-100: #e3f2f0;
    --amber-500: #f5a623;
    --amber-600: #dd8f10;
    --red-500: #e0453f;
    --green-500: #2fa86b;
    --ink-900: #1c2528;
    --ink-600: #55666a;
    --ink-400: #8a999c;
    --paper: #f6f8f8;
    --card: #ffffff;
    --border: #e3e9e9;
    --radius: 14px;
    --shadow: 0 2px 10px rgba(15, 76, 76, 0.08);
    --topbar-h: 56px;
    --bottomnav-h: 68px;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.wp-app {
    min-height: 100vh;
    padding: 12px 14px 24px;
}

body.has-chrome .wp-app {
    padding-top: calc(var(--topbar-h) + 12px);
    padding-bottom: calc(var(--bottomnav-h) + 20px);
}

/* ---- Loading / error states ---- */

.wp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 100px 20px;
    color: var(--ink-400);
    font-size: 14px;
}

.wp-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--teal-100);
    border-top-color: var(--teal-700);
    animation: wp-spin 0.8s linear infinite;
}

@keyframes wp-spin {
    to {
        transform: rotate(360deg);
    }
}

.wp-error {
    text-align: center;
    padding: 60px 20px;
}

    .wp-error h2 {
        margin: 0 0 8px;
        color: var(--ink-900);
    }

    .wp-error p {
        color: var(--ink-600);
        margin: 0 0 20px;
    }

/* ---- Top bar + bottom nav ---- */

.wp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--topbar-h);
    background: var(--teal-800);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.wp-topbar-store {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.wp-topbar-store-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.25);
}

.wp-topbar-logout {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .wp-topbar-logout svg {
        width: 18px;
        height: 18px;
    }

.wp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--bottomnav-h);
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}

.wp-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--ink-400);
    font-size: 11.5px;
    font-weight: 600;
    min-height: 44px;
}

    .wp-tab svg {
        width: 22px;
        height: 22px;
    }

    .wp-tab.active {
        color: var(--teal-700);
    }

/* ---- Layout helpers ---- */

.wp-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink-900);
    margin: 4px 2px 14px;
}

.wp-subtle {
    color: var(--ink-600);
    font-size: 13.5px;
}

.wp-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.wp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ---- Stat tiles (dashboard) ---- */

.wp-stat {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wp-stat-label {
    font-size: 11.5px;
    color: var(--ink-400);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wp-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink-900);
}

    .wp-stat-value small {
        font-size: 13px;
        font-weight: 600;
        color: var(--ink-600);
    }

.wp-hero {
    background: linear-gradient(135deg, var(--teal-800), var(--teal-600));
    color: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 14px;
}

.wp-hero-greeting {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 600;
}

.wp-hero-name {
    font-size: 22px;
    font-weight: 800;
    margin: 2px 0 14px;
}

/* ---- Progress bars ---- */

.wp-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wp-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
}

.wp-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    overflow: hidden;
}

    .wp-progress-track.light {
        background: var(--teal-100);
    }

.wp-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--amber-500);
    transition: width .4s ease;
}

    .wp-progress-fill.dark {
        background: var(--teal-700);
    }

/* ---- Badges ---- */

.wp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wp-badge-pending {
    background: #fff3d6;
    color: #9a6c00;
}

.wp-badge-inprogress {
    background: #dff0fe;
    color: #0a63b0;
}

.wp-badge-onhold {
    background: #f1e7fe;
    color: #6a3fc9;
}

.wp-badge-completed {
    background: #e1f7ea;
    color: #147a45;
}

.wp-badge-cancelled {
    background: #fde4e2;
    color: #b3251f;
}

.wp-badge-urgent {
    background: #fde4e2;
    color: #b3251f;
}

.wp-badge-high {
    background: #ffe9d1;
    color: #a15a05;
}

.wp-badge-normal {
    background: var(--teal-100);
    color: var(--teal-800);
}

.wp-badge-low {
    background: #eef1f1;
    color: var(--ink-600);
}

/* ---- Buttons + forms ---- */

.wp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--teal-700);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 18px;
    border-radius: 12px;
    cursor: pointer;
    min-height: 48px;
}

    .wp-btn:disabled {
        opacity: 0.55;
        cursor: default;
    }

.wp-btn-outline {
    background: transparent;
    color: var(--teal-700);
    border: 1.5px solid var(--teal-700);
}

.wp-btn-text {
    background: none;
    border: none;
    color: var(--teal-700);
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px;
    cursor: pointer;
}

.wp-field {
    margin-bottom: 16px;
}

    .wp-field label {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--ink-600);
        margin-bottom: 6px;
    }

    .wp-field input, .wp-field select, .wp-field textarea {
        width: 100%;
        font-size: 16px;
        padding: 13px 14px;
        border: 1.5px solid var(--border);
        border-radius: 12px;
        background: #fff;
        outline: none;
        color: var(--ink-900);
    }

        .wp-field input:focus, .wp-field select:focus, .wp-field textarea:focus {
            border-color: var(--teal-600);
        }

    .wp-field .wp-hint {
        font-size: 12px;
        color: var(--ink-400);
        margin-top: 5px;
    }

.wp-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 14px;
}

.wp-alert-error {
    background: #fde4e2;
    color: #9c241e;
}

.wp-alert-success {
    background: #e1f7ea;
    color: #147a45;
}

.wp-alert-info {
    background: var(--teal-100);
    color: var(--teal-800);
}

.wp-alert:empty {
    display: none;
}

/* ---- Lists ---- */

.wp-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

    .wp-list-item:last-child {
        border-bottom: none;
    }

.wp-list-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: var(--teal-100);
    color: var(--teal-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    object-fit: cover;
}

.wp-list-body {
    flex: 1;
    min-width: 0;
}

.wp-list-title {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink-900);
}

.wp-list-sub {
    font-size: 12.5px;
    color: var(--ink-600);
    margin-top: 2px;
}

.wp-list-meta {
    text-align: right;
    font-size: 12px;
    color: var(--ink-400);
    white-space: nowrap;
}

/* ---- Timeline (job stages) ---- */

.wp-timeline {
    display: flex;
    flex-direction: column;
}

.wp-timeline-step {
    display: flex;
    gap: 12px;
    padding-bottom: 18px;
    position: relative;
}

    .wp-timeline-step:last-child {
        padding-bottom: 0;
    }

    .wp-timeline-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 11px;
        top: 26px;
        bottom: -2px;
        width: 2px;
        background: var(--border);
    }

.wp-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    color: #fff;
    font-size: 12px;
    z-index: 1;
}

    .wp-timeline-dot.completed {
        background: var(--green-500);
    }

    .wp-timeline-dot.inprogress {
        background: var(--amber-500);
    }

.wp-timeline-body {
    flex: 1;
}

.wp-timeline-title {
    font-weight: 700;
    font-size: 14px;
}

.wp-timeline-meta {
    font-size: 12px;
    color: var(--ink-600);
    margin-top: 2px;
}

/* ---- Empty state ---- */

.wp-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--ink-400);
}

    .wp-empty svg {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
        opacity: 0.5;
    }

/* ---- Login / Auth pages ---- */

.wp-login-wrap {
    max-width: 420px;
    margin: 8vh auto 0;
    padding: 0 18px;
}

.wp-login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.wp-login-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto 12px;
    background: var(--teal-800);
    color: var(--amber-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
}

.wp-login-brand h1 {
    font-size: 19px;
    margin: 0;
    color: var(--ink-900);
}

.wp-login-brand p {
    font-size: 13px;
    color: var(--ink-600);
    margin: 4px 0 0;
}

.wp-login-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal-700);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}

.wp-login-store-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--teal-100);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

    .wp-login-store-chip strong {
        color: var(--teal-900);
        font-size: 14.5px;
    }

/* Tablet / wider screens: center the app in a phone/tablet-friendly column
   rather than stretching edge-to-edge on a desktop browser window. This
   rule intentionally covers phones AND tablets/iPads alike - per spec,
   notepad/iPad/mobile all keep this exact same bottom-tab layout. Only the
   >=960px desktop breakpoint below replaces it with the sidebar layout. */
@media (min-width: 700px) {
    .wp-app {
        max-width: 640px;
        margin: 0 auto;
    }

    .wp-topbar, .wp-bottom-nav {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ---- Notification bell (all screen sizes) ---- */

.wp-bell-wrap {
    position: relative;
}

.wp-bell {
    position: relative;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .wp-bell svg {
        width: 18px;
        height: 18px;
    }

.wp-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red-500);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--teal-800);
}

.wp-notif-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 40;
    width: min(340px, 90vw);
    background: var(--card);
    color: var(--ink-900);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(10,53,53,0.22);
    overflow: hidden;
}

    .wp-notif-dropdown[hidden] {
        display: none;
    }

.wp-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

    .wp-notif-header strong {
        font-size: 14px;
    }

.wp-notif-mark-all {
    background: none;
    border: none;
    color: var(--teal-700);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.wp-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.wp-notif-item {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}

    .wp-notif-item:last-child {
        border-bottom: none;
    }

    .wp-notif-item.unread {
        background: var(--teal-100);
    }

.wp-notif-item-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink-900);
}

.wp-notif-item-msg {
    font-size: 12.5px;
    color: var(--ink-600);
    margin-top: 2px;
}

.wp-notif-item-time {
    font-size: 11px;
    color: var(--ink-400);
    margin-top: 4px;
}

.wp-notif-empty {
    padding: 30px 14px;
    text-align: center;
    color: var(--ink-400);
    font-size: 13px;
}

/* ---- Search box (Jobs page) ---- */

.wp-search-box {
    position: relative;
    margin-bottom: 12px;
}

    .wp-search-box svg {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 17px;
        height: 17px;
        color: var(--ink-400);
    }

    .wp-search-box input {
        width: 100%;
        font-size: 15px;
        padding: 12px 14px 12px 38px;
        border: 1.5px solid var(--border);
        border-radius: 12px;
        background: #fff;
        outline: none;
        color: var(--ink-900);
    }

        .wp-search-box input:focus {
            border-color: var(--teal-600);
        }

/* ---- Swipe-to-reveal quick actions (Jobs list) ---- */

.wp-swipe-row {
    position: relative;
    overflow: hidden;
}

    .wp-swipe-row:last-child .wp-swipe-content {
        border-bottom: none;
    }

.wp-swipe-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: stretch;
}

.wp-swipe-btn {
    width: 68px;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

    .wp-swipe-btn svg {
        width: 20px;
        height: 20px;
    }

    .wp-swipe-btn:disabled {
        opacity: 0.6;
    }

.wp-swipe-btn-start {
    background: var(--teal-700);
}

.wp-swipe-btn-hold {
    background: var(--amber-600);
}

.wp-swipe-btn-done {
    background: var(--green-500);
}

.wp-swipe-content {
    position: relative;
    z-index: 1;
    background: var(--card);
    display: flex;
    align-items: center;
    min-height: 72px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.wp-days-ring-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .wp-days-ring-wrap svg {
        display: block;
    }

/* ---- Attendance clock-in widget ---- */

.wp-attendance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.wp-attendance-status {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

    .wp-attendance-status strong {
        display: block;
        font-size: 16px;
        color: #fff;
    }

.wp-attendance-btn {
    background: var(--amber-500);
    color: var(--teal-900);
    border: none;
    font-weight: 800;
    font-size: 13.5px;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
}

    .wp-attendance-btn.out {
        background: rgba(255,255,255,0.16);
        color: #fff;
    }

    .wp-attendance-btn:disabled {
        opacity: 0.6;
        cursor: default;
    }

/* ---- Leaderboard ---- */

.wp-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

    .wp-lb-row:last-child {
        border-bottom: none;
    }

    .wp-lb-row.me {
        background: var(--teal-100);
        margin: 0 -16px;
        padding: 11px 16px;
        border-radius: 10px;
    }

.wp-lb-rank {
    width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--ink-600);
    flex-shrink: 0;
}

    .wp-lb-rank.top1 {
        color: #b8860b;
    }

    .wp-lb-rank.top2 {
        color: #8a8f99;
    }

    .wp-lb-rank.top3 {
        color: #a0622d;
    }

.wp-lb-body {
    flex: 1;
    min-width: 0;
}

.wp-lb-name {
    font-weight: 700;
    font-size: 14px;
}

.wp-lb-sub {
    font-size: 12px;
    color: var(--ink-600);
    margin-top: 1px;
}

.wp-lb-meta {
    text-align: right;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wp-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wp-achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    opacity: 0.4;
}

    .wp-achievement.earned {
        opacity: 1;
    }

.wp-achievement-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-100);
    color: var(--teal-800);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-achievement.earned .wp-achievement-icon {
    background: var(--amber-500);
    color: var(--teal-900);
}

.wp-achievement-title {
    font-weight: 800;
    font-size: 13px;
}

.wp-achievement-desc {
    font-size: 11.5px;
    color: var(--ink-600);
}

.wp-achievement-date {
    font-size: 10.5px;
    color: var(--ink-400);
}

/* ---- Issue reporting ---- */

.wp-issue-type-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.wp-issue-type-chip {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--ink-600);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
}

    .wp-issue-type-chip.active {
        border-color: var(--teal-700);
        background: var(--teal-700);
        color: #fff;
    }

/* ---- Design spec sheet (printable) ---- */

.wp-spec-sheet {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.wp-spec-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--teal-800);
    margin-bottom: 16px;
}

    .wp-spec-header img {
        width: 110px;
        height: 110px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid var(--border);
    }

.wp-spec-image {
    transition: opacity .15s ease;
}

    .wp-spec-image:hover {
        opacity: 0.88;
    }

.wp-spec-thumbs {
    display: flex;
    gap: 12px;
    margin: -6px 0 16px;
    flex-wrap: wrap;
}

.wp-spec-thumb-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .wp-spec-thumb-item span {
        font-size: 10.5px;
        font-weight: 700;
        color: var(--ink-400);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

.wp-spec-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    cursor: zoom-in;
    border: 2px solid transparent;
    opacity: 0.7;
}

    .wp-spec-thumb.active {
        border-color: var(--teal-700);
        opacity: 1;
    }

        .wp-spec-thumb.active + span {
            color: var(--teal-700);
        }

    .wp-spec-thumb:hover {
        opacity: 1;
    }

.wp-spec-title {
    font-size: 19px;
    font-weight: 800;
}

.wp-spec-sub {
    font-size: 13px;
    color: var(--ink-600);
    margin-top: 2px;
}

.wp-spec-section {
    margin-bottom: 16px;
}

    .wp-spec-section:last-child {
        margin-bottom: 0;
    }

.wp-spec-section-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--teal-700);
    margin-bottom: 8px;
}

.wp-spec-table {
    width: 100%;
    border-collapse: collapse;
}

    .wp-spec-table td {
        padding: 7px 0;
        font-size: 13.5px;
        border-bottom: 1px solid var(--border);
    }

        .wp-spec-table td:first-child {
            color: var(--ink-600);
            width: 44%;
        }

        .wp-spec-table td:last-child {
            font-weight: 700;
            color: var(--ink-900);
            text-align: right;
        }

    .wp-spec-table tr:last-child td {
        border-bottom: none;
    }

.wp-spec-note {
    font-size: 13.5px;
    line-height: 1.55;
    white-space: pre-wrap;
    color: var(--ink-900);
}

.wp-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media print {
    body.has-chrome .wp-app {
        padding: 0 !important;
        max-width: none !important;
    }

    #header-root, #bottom-nav-root, #sidebar-root, .wp-no-print {
        display: none !important;
    }

    .wp-spec-sheet {
        box-shadow: none;
    }
}

/* ---- Design spec image lightbox ---- */

.wp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 20, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

    .wp-lightbox[hidden] {
        display: none;
    }

    .wp-lightbox img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 10px;
        object-fit: contain;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }

.wp-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .wp-lightbox-close svg {
        width: 20px;
        height: 20px;
    }

.wp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .wp-lightbox-nav svg {
        width: 22px;
        height: 22px;
    }

.wp-lightbox-prev {
    left: 14px;
}

.wp-lightbox-next {
    right: 14px;
}

.wp-lightbox-count {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

/* =====================================================================
   Desktop (>=960px): sidebar + dashboard layout. Tablet/iPad/mobile below
   this breakpoint are completely untouched by anything in this block -
   they keep the bottom-tab layout defined above exactly as before.
   ===================================================================== */

.wp-sidebar {
    display: none;
}

@media (min-width: 960px) {
    :root {
        --sidebar-w: 248px;
    }

    .wp-bottom-nav {
        display: none;
    }

    .wp-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 25;
        width: var(--sidebar-w);
        background: var(--teal-900);
        color: #fff;
        padding: 18px 14px;
    }

    .wp-sidebar-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 8px 20px;
    }

    .wp-sidebar-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: var(--amber-500);
        color: var(--teal-900);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 17px;
        flex-shrink: 0;
    }

    .wp-sidebar-title {
        font-weight: 800;
        font-size: 14.5px;
    }

    .wp-sidebar-store {
        font-size: 11.5px;
        color: rgba(255,255,255,0.65);
        margin-top: 1px;
    }

    .wp-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
        overflow-y: auto;
    }

    .wp-sidebar-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 10px;
        color: rgba(255,255,255,0.72);
        font-weight: 600;
        font-size: 14px;
    }

        .wp-sidebar-link svg {
            width: 19px;
            height: 19px;
            flex-shrink: 0;
        }

        .wp-sidebar-link:hover {
            background: rgba(255,255,255,0.06);
            color: #fff;
        }

        .wp-sidebar-link.active {
            background: var(--teal-700);
            color: #fff;
        }

    .wp-sidebar-divider {
        height: 1px;
        background: rgba(255,255,255,0.12);
        margin: 10px 4px;
    }

    .wp-sidebar-logout {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255,255,255,0.08);
        border: none;
        color: #fff;
        padding: 11px 12px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 13.5px;
        cursor: pointer;
        margin-top: 10px;
    }

        .wp-sidebar-logout svg {
            width: 17px;
            height: 17px;
        }

    .wp-topbar {
        left: var(--sidebar-w);
        right: 0;
        max-width: none;
        transform: none;
        justify-content: flex-end;
        gap: 14px;
        padding-right: 28px;
    }

    .wp-topbar-store, .wp-topbar-logout {
        display: none;
    }

    body.has-chrome .wp-app {
        padding-left: calc(var(--sidebar-w) + 28px);
        padding-right: 28px;
        padding-top: calc(var(--topbar-h) + 24px);
        padding-bottom: 32px;
        max-width: 1440px;
        margin: 0 auto;
    }

    .wp-grid-2 {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .wp-grid-3 {
        gap: 14px;
    }

    .wp-badge-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .wp-dashboard-columns {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .wp-page-title {
        font-size: 25px;
    }
}
