/* =========================================================
   NNOBAE SIMULATOR
   A sample-data walkthrough inside phone, tablet and desktop
   frames. The app layout responds to the frame's own width
   (container queries): bottom tabs when narrow, a sidebar
   when wide, the way the real Flutter app adapts.

   Role accents follow the Nnobae app tokens. Buyer #128C89
   (4.09:1) and Cooperative #B8791B (3.63:1) fail with white
   text, so filled buttons use darker shades of the same hue:
   #0E6F6C (5.98:1) and #8A5A10 (5.91:1).
   ========================================================= */

.nnobae-page .nnobae-sim-section {
    background: var(--nnobae-off-white);
}

.nnobae-page .nnobae-sim-heading {
    margin-inline: auto;
    text-align: center;
}

.nnobae-page .nnobae-sim-heading .section-description {
    margin-inline: auto;
}

.nnobae-page .nnobae-sim-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.nnobae-page .nnobae-sim-devices {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: #ffffff;
}

.nnobae-page .nnobae-sim-devices button,
.nnobae-page .nnobae-sim-restart {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: var(--nnobae-black);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.nnobae-page .nnobae-sim-devices button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nnobae-page .nnobae-sim-devices button[aria-pressed="true"] {
    color: #ffffff;
    background: var(--nnobae-green-dark);
}

.nnobae-page .nnobae-sim-restart {
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #ffffff;
}

.nnobae-page .nnobae-sim-devices button:focus-visible,
.nnobae-page .nnobae-sim-restart:focus-visible,
.nnobae-page .nnobae-sim-app :focus-visible {
    outline: 3px solid rgba(36, 107, 65, 0.5);
    outline-offset: 2px;
}

.nnobae-page .nnobae-sim-viewport {
    position: relative;
    width: 100%;
}

.nnobae-page .nnobae-sim-frame {
    position: absolute;
    top: 0;
    left: 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: top center;
    box-shadow: 0 30px 80px rgba(23, 61, 40, 0.18);
}

.nnobae-page .nnobae-sim-frame[data-device="phone"] {
    border: 12px solid #111611;
    border-radius: 56px;
}

.nnobae-page .nnobae-sim-frame[data-device="tablet"] {
    border: 18px solid #111611;
    border-radius: 34px;
}

.nnobae-page .nnobae-sim-frame[data-device="desktop"] {
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 14px;
    background: #ffffff;
}

.nnobae-page .nnobae-sim-chrome {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
    height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    background: #f1f3f1;
}

.nnobae-page .nnobae-sim-frame[data-device="desktop"] .nnobae-sim-chrome {
    display: flex;
}

.nnobae-page .nnobae-sim-chrome i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6dad6;
}

.nnobae-page .nnobae-sim-chrome span {
    flex: 0 1 360px;
    margin-inline: auto;
    padding: 6px 14px;
    border-radius: 8px;
    color: #4a554e;
    background: #ffffff;
    font-size: 0.82rem;
    text-align: center;
}

.nnobae-page .nnobae-sim-island {
    display: none;
}

.nnobae-page .nnobae-sim-frame[data-device="phone"] .nnobae-sim-island {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 5;
    display: block;
    width: 112px;
    height: 32px;
    border-radius: 20px;
    background: #111611;
    transform: translateX(-50%);
}

.nnobae-page .nnobae-sim-screen {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #f6f8f6;
}

.nnobae-page .nnobae-sim-frame[data-device="phone"] .nnobae-sim-screen {
    padding-top: 50px;
}

.nnobae-page .nnobae-sim-note {
    max-width: 640px;
    margin: 24px auto 0;
    color: #5f6b63;
    font-size: 0.92rem;
    text-align: center;
}

.nnobae-page .nnobae-sim-note a {
    color: var(--nnobae-green-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ---------- the simulated app ---------- */

.nnobae-page .nnobae-sim-app {
    --sim-ink: #14201a;
    --sim-muted: #5f6b63;
    --sim-line: rgba(20, 32, 26, 0.1);
    --sim-surface: #ffffff;
    --sim-accent: #2f7d4f;
    --sim-accent-strong: #2f7d4f;
    --sim-accent-soft: rgba(47, 125, 79, 0.1);

    container-type: inline-size;
    height: 100%;
    color: var(--sim-ink);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
}

.nnobae-page .nnobae-sim-app * {
    box-sizing: border-box;
}

.nnobae-page .nnobae-sim-app :is(h3, h4, p, ul, ol, dl, dd, figure, fieldset) {
    margin: 0;
    padding: 0;
    max-width: none;
}

.nnobae-page .sim-role-producer { --sim-accent: #2f7d4f; --sim-accent-strong: #2f7d4f; --sim-accent-soft: rgba(47, 125, 79, 0.1); }
.nnobae-page .sim-role-buyer { --sim-accent: #128c89; --sim-accent-strong: #0e6f6c; --sim-accent-soft: rgba(18, 140, 137, 0.1); }
.nnobae-page .sim-role-cooperative { --sim-accent: #b8791b; --sim-accent-strong: #8a5a10; --sim-accent-soft: rgba(184, 121, 27, 0.12); }
.nnobae-page .sim-role-logistics { --sim-accent: #3e5c87; --sim-accent-strong: #3e5c87; --sim-accent-soft: rgba(62, 92, 135, 0.1); }

.nnobae-page .sim-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nnobae-page .sim-icon-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: -2px;
}

.nnobae-page .sim-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Splash: the app's fixed deep-green opening screen */
.nnobae-page .sim-splash {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 120%, rgba(91, 183, 128, 0.18), transparent 60%),
        #08281a;
    text-align: center;
}

.nnobae-page .sim-splash-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    color: #08281a;
    background: linear-gradient(135deg, #8bd14a, #5fb33a);
}

.nnobae-page .sim-splash-mark .sim-icon {
    width: 54px;
    height: 54px;
}

.nnobae-page .sim-splash-word {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nnobae-page .sim-splash-roles {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nnobae-page .sim-splash-roles li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b7f5cb;
    font-size: 13px;
    font-weight: 600;
}

.nnobae-page .sim-splash-roles span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 3px solid #2f7d4f;
    border-radius: 50%;
    color: #1f6b40;
    background: #ffffff;
}

.nnobae-page .sim-splash-by {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

/* Buttons */
.nnobae-page .sim-btn {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.nnobae-page .sim-btn-primary {
    color: #ffffff;
    background: var(--sim-accent-strong);
}

.nnobae-page .sim-btn-primary:disabled {
    color: #5f6b63;
    background: #e3e7e4;
    cursor: not-allowed;
}

.nnobae-page .sim-btn-secondary {
    color: var(--sim-ink);
    background: var(--sim-surface);
    border-color: var(--sim-line);
}

.nnobae-page .sim-btn-demo {
    color: var(--sim-ink);
    background: transparent;
    border: 1.5px dashed rgba(20, 32, 26, 0.3);
    font-weight: 600;
}

.nnobae-page .sim-demo-tag {
    padding: 2px 7px;
    border-radius: 6px;
    color: #ffffff;
    background: #4a554e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nnobae-page .sim-btn-ghost-light {
    width: auto;
    margin-top: 8px;
    color: #ffffff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Sign-in */
.nnobae-page .sim-auth {
    height: 100%;
    overflow-y: auto;
    width: min(100%, 440px);
    margin-inline: auto;
    padding: 28px 22px 32px;
}

.nnobae-page .sim-auth-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #2f7d4f;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nnobae-page .sim-auth-brand .sim-icon {
    width: 28px;
    height: 28px;
}

.nnobae-page .sim-title {
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--sim-ink);
}

.nnobae-page .sim-title:focus {
    outline: none;
}

.nnobae-page .sim-muted {
    color: var(--sim-muted);
}

.nnobae-page .nnobae-sim-app .sim-small {
    margin-top: 12px;
    font-size: 13px;
}

.nnobae-page .sim-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.nnobae-page .sim-field {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.nnobae-page .sim-field input,
.nnobae-page .sim-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(20, 32, 26, 0.2);
    border-radius: 12px;
    color: var(--sim-ink);
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.nnobae-page .sim-field input[aria-invalid="true"] {
    border-color: #d64545;
}

.nnobae-page .sim-error {
    color: #b42f2f;
    font-size: 13px;
    font-weight: 600;
}

.nnobae-page .sim-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nnobae-page .sim-roles,
.nnobae-page .sim-pay {
    display: grid;
    gap: 8px;
    border: 0;
}

.nnobae-page .sim-roles legend,
.nnobae-page .sim-pay legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.nnobae-page .sim-role,
.nnobae-page .sim-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid var(--sim-line);
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.nnobae-page .sim-role input,
.nnobae-page .sim-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #2f7d4f;
}

.nnobae-page .sim-role span,
.nnobae-page .sim-option span {
    display: grid;
}

.nnobae-page .sim-role small,
.nnobae-page .sim-option small {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-role:has(input:checked),
.nnobae-page .sim-option:has(input:checked) {
    border-color: #2f7d4f;
    box-shadow: inset 0 0 0 1px #2f7d4f;
    background: rgba(47, 125, 79, 0.05);
}

.nnobae-page .sim-role::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
}

.nnobae-page .sim-role-producer::before { background: #2f7d4f; }
.nnobae-page .sim-role-buyer::before { background: #128c89; }
.nnobae-page .sim-role-cooperative::before { background: #b8791b; }
.nnobae-page .sim-role-logistics::before { background: #3e5c87; }

.nnobae-page .sim-fine {
    color: var(--sim-muted);
    font-size: 13px;
}

/* Signed-in shell: bottom tabs when narrow */
.nnobae-page .sim-shell {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.nnobae-page .sim-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.nnobae-page .sim-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--sim-line);
    background: var(--sim-surface);
}

.nnobae-page .sim-top .sim-title {
    flex: 1;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nnobae-page .sim-back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -10px;
    border: 0;
    border-radius: 12px;
    color: var(--sim-ink);
    background: transparent;
    cursor: pointer;
}

.nnobae-page .sim-sample {
    flex-shrink: 0;
    padding: 4px 9px;
    border-radius: 999px;
    color: #3d4842;
    background: #eceff0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nnobae-page .sim-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    overscroll-behavior: contain;
}

.nnobae-page .sim-nav {
    flex: 0 0 auto;
    border-top: 1px solid var(--sim-line);
    background: var(--sim-surface);
}

.nnobae-page .sim-nav-brand {
    display: none;
}

.nnobae-page .sim-nav ul {
    display: flex;
    list-style: none;
}

.nnobae-page .sim-nav li {
    flex: 1;
}

.nnobae-page .sim-nav button {
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    color: var(--sim-muted);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.nnobae-page .sim-nav button[aria-current="page"] {
    color: var(--sim-accent-strong);
}

.nnobae-page .sim-nav button[aria-current="page"] .sim-icon {
    stroke-width: 2.2;
}

/* Cards, lists, detail */
.nnobae-page .sim-grid,
.nnobae-page .sim-stack {
    display: grid;
    gap: 10px;
    list-style: none;
}

.nnobae-page .sim-grid {
    margin-top: 14px;
}

.nnobae-page .sim-stack {
    margin-top: 14px;
}

.nnobae-page .sim-card {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
    color: var(--sim-ink);
    background: var(--sim-surface);
    text-align: left;
    font-size: 15px;
}

.nnobae-page button.sim-card {
    cursor: pointer;
}

.nnobae-page button.sim-card:hover {
    border-color: var(--sim-accent);
}

.nnobae-page .sim-listing {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    align-items: center;
}

.nnobae-page .sim-listing-text,
.nnobae-page .sim-listing-price,
.nnobae-page .sim-order-row > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nnobae-page .sim-listing-text small,
.nnobae-page .sim-listing-price small,
.nnobae-page .sim-order-row small {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-listing-price {
    grid-column: 2;
}

.nnobae-page .sim-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nnobae-page .sim-tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: #2a3a30;
}

.nnobae-page .sim-tile-lg {
    width: 60px;
    height: 60px;
}

.nnobae-page .sim-tint-tomato { background: #fde3de; }
.nnobae-page .sim-tint-yam { background: #f1e6d6; }
.nnobae-page .sim-tint-maize { background: #fbf0c9; }
.nnobae-page .sim-tint-plantain { background: #e3f1d5; }
.nnobae-page .sim-tint-onion { background: #f3dde8; }
.nnobae-page .sim-tint-rice { background: #efede4; }

.nnobae-page .sim-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(20, 32, 26, 0.2);
    border-radius: 14px;
    color: var(--sim-muted);
    background: #ffffff;
}

.nnobae-page .sim-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    color: var(--sim-ink);
    background: transparent;
    font-size: 16px;
}

.nnobae-page .sim-search input:focus {
    outline: none;
}

.nnobae-page .sim-search:focus-within {
    outline: 3px solid rgba(36, 107, 65, 0.5);
    outline-offset: 2px;
}

.nnobae-page .sim-empty {
    padding: 20px 4px;
    color: var(--sim-muted);
}

.nnobae-page .sim-detail {
    display: grid;
    gap: 14px;
    width: min(100%, 620px);
    margin-inline: auto;
}

.nnobae-page .sim-hero-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
    background: var(--sim-surface);
}

.nnobae-page .sim-hero-card > div {
    flex: 1;
    min-width: 0;
}

.nnobae-page .sim-hero-card h4 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sim-ink);
}

.nnobae-page .sim-hero-amount {
    font-size: 16px;
    white-space: nowrap;
}

.nnobae-page .sim-chip {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    color: #3d4842;
    background: #eceff0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.nnobae-page .sim-chip-ok {
    color: #14532d;
    background: #dcf2e3;
}

.nnobae-page .sim-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
    background: var(--sim-line);
}

.nnobae-page .sim-facts div {
    padding: 12px 14px;
    background: var(--sim-surface);
}

.nnobae-page .sim-facts dt {
    color: var(--sim-muted);
    font-size: 12px;
    font-weight: 600;
}

.nnobae-page .sim-facts dd {
    font-weight: 600;
}

.nnobae-page .sim-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.nnobae-page .sim-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--sim-line);
    border-radius: 14px;
    background: #ffffff;
}

.nnobae-page .sim-stepper button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 11px;
    color: var(--sim-ink);
    background: #f1f3f1;
    cursor: pointer;
}

.nnobae-page .sim-stepper button:disabled {
    color: #a3aca6;
    cursor: not-allowed;
}

.nnobae-page .sim-stepper output {
    min-width: 40px;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.nnobae-page .sim-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px;
    border-radius: 16px;
    background: var(--sim-accent-soft);
}

.nnobae-page .sim-total strong {
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.nnobae-page .sim-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #24312a;
    background: #edf3ee;
    font-size: 14px;
}

.nnobae-page .sim-note .sim-icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    color: #2f7d4f;
}

.nnobae-page .sim-actions {
    display: grid;
    gap: 10px;
}

.nnobae-page .sim-center {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(100%, 420px);
    margin: 24px auto 0;
    text-align: center;
}

.nnobae-page .sim-center h4 {
    font-size: 20px;
    color: var(--sim-ink);
}

.nnobae-page .sim-center .sim-actions {
    width: 100%;
    margin-top: 10px;
}

.nnobae-page .sim-amount {
    color: #1f6b40;
    font-size: 22px;
    font-weight: 800;
}

.nnobae-page .sim-badge-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: #1f6b40;
    background: #c8efd4;
}

.nnobae-page .sim-badge-icon .sim-icon {
    width: 40px;
    height: 40px;
}

.nnobae-page .sim-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #dfe6e1;
    border-top-color: var(--sim-accent-strong);
    border-radius: 50%;
    animation: nnobae-sim-spin 0.9s linear infinite;
}

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

.nnobae-page .sim-greet {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.nnobae-page .sim-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.nnobae-page .sim-stats div {
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
    background: var(--sim-surface);
}

.nnobae-page .sim-stats strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.nnobae-page .sim-stats span {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-callout {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    border-left: 4px solid var(--sim-accent);
}

.nnobae-page .sim-callout p {
    color: var(--sim-muted);
    font-size: 14px;
}

.nnobae-page .sim-timeline {
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
    background: var(--sim-surface);
    list-style: none;
}

.nnobae-page .sim-timeline li {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
}

.nnobae-page .sim-timeline li:last-child {
    padding-bottom: 0;
}

.nnobae-page .sim-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 2px;
    width: 2px;
    background: #dfe6e1;
}

.nnobae-page .sim-timeline li.is-done::after {
    background: #2f7d4f;
}

.nnobae-page .sim-timeline div {
    display: grid;
    gap: 1px;
}

.nnobae-page .sim-timeline small {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-timeline li.is-todo strong {
    color: #6b7670;
    font-weight: 500;
}

.nnobae-page .sim-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border: 2px solid #c5cec8;
    border-radius: 50%;
    background: #ffffff;
}

.nnobae-page .is-done .sim-dot {
    border-color: #2f7d4f;
    color: #ffffff;
    background: #2f7d4f;
}

.nnobae-page .is-done .sim-dot .sim-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
}

.nnobae-page .is-current .sim-dot {
    border-color: var(--sim-accent-strong);
    box-shadow: inset 0 0 0 4px #ffffff;
    background: var(--sim-accent-strong);
}

/* Map and proof */
.nnobae-page .sim-map svg {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--sim-line);
    border-radius: 16px;
}

.nnobae-page .sim-map-bg { fill: #e8f2e5; }
.nnobae-page .sim-map-grid { stroke: #d3e3cf; stroke-width: 1.5; fill: none; }
.nnobae-page .sim-map-route-todo { stroke: #a9b8ad; stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; fill: none; }
.nnobae-page .sim-map-route { stroke: #2f7d4f; stroke-width: 4; stroke-linecap: round; fill: none; }
.nnobae-page .sim-map-start { fill: #2f7d4f; }
.nnobae-page .sim-map-end { fill: #ffffff; stroke: #2f7d4f; stroke-width: 3; }
.nnobae-page .sim-map-label { fill: #14201a; font-size: 12px; font-weight: 700; }
.nnobae-page .sim-map-truck rect:first-child { fill: #14201a; }
.nnobae-page .sim-map-truck-window { fill: #8bd14a; }

.nnobae-page .sim-proof-wrap {
    display: grid;
    gap: 6px;
}

.nnobae-page .sim-proof-wrap figcaption {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-proof {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.nnobae-page .sim-proof-bg { fill: #efe7da; }
.nnobae-page .sim-proof-floor { fill: #d8cbb5; }
.nnobae-page .sim-proof-crate { fill: #c9955a; }
.nnobae-page .sim-proof-slat { stroke: #a87436; stroke-width: 2; }
.nnobae-page .sim-proof-tomato { fill: #d8402b; }

.nnobae-page .sim-camera {
    display: grid;
    place-items: center;
    gap: 8px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    color: #e6ece8;
    background: #1d2621;
    font-size: 14px;
    text-align: center;
}

.nnobae-page .sim-camera .sim-icon {
    width: 40px;
    height: 40px;
}

/* Cooperative pooling */
.nnobae-page .sim-progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3e7e4;
}

.nnobae-page .sim-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sim-accent-strong);
}

.nnobae-page .sim-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nnobae-page .sim-member > span {
    display: grid;
    min-width: 0;
}

.nnobae-page .sim-member small {
    color: var(--sim-muted);
    font-size: 13px;
}

.nnobae-page .sim-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    background: var(--sim-surface);
    font-size: 14px;
}

.nnobae-page .sim-table caption {
    padding-bottom: 8px;
    font-weight: 700;
    text-align: left;
}

.nnobae-page .sim-table th,
.nnobae-page .sim-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--sim-line);
    font-weight: 500;
    text-align: left;
}

.nnobae-page .sim-table td {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.nnobae-page .sim-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--sim-accent-strong);
    font-weight: 800;
}

.nnobae-page .sim-link {
    color: #1f6b40;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nnobae-page .sim-toast {
    position: absolute;
    left: 50%;
    bottom: 76px;
    z-index: 10;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 14px;
    color: #ffffff;
    background: #1d2621;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(-50%);
}

/* Wide frames (tablet, desktop): sidebar navigation */
@container (min-width: 700px) {
    .nnobae-page .sim-shell {
        flex-direction: row;
    }

    .nnobae-page .sim-nav {
        width: 220px;
        padding: 18px 12px;
        border-top: 0;
        border-right: 1px solid var(--sim-line);
    }

    .nnobae-page .sim-nav-brand {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 2px 8px;
        margin: 4px 8px 22px;
        color: #2f7d4f;
        font-size: 20px;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .nnobae-page .sim-nav-brand small {
        grid-column: 2;
        color: var(--sim-muted);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0;
    }

    .nnobae-page .sim-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .nnobae-page .sim-nav button {
        min-height: 46px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 12px;
        border-radius: 12px;
        font-size: 15px;
    }

    .nnobae-page .sim-nav button[aria-current="page"] {
        background: var(--sim-accent-soft);
    }

    .nnobae-page .sim-top {
        min-height: 64px;
        padding: 8px 24px;
    }

    .nnobae-page .sim-body {
        padding: 24px;
    }

    .nnobae-page .sim-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .nnobae-page .sim-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .nnobae-page .sim-actions {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .nnobae-page .sim-toast {
        bottom: 24px;
        left: calc(50% + 110px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .nnobae-page .sim-spinner {
        animation: none;
        border-top-color: #dfe6e1;
    }
}

@media (max-width: 600px) {
    .nnobae-page .nnobae-sim-devices button {
        padding: 0 12px;
    }
}
