@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --st-bg: #f2f2f7;
    --st-surface: #ffffff;
    --st-surface-soft: #edf2ff;
    --st-surface-mid: #e5ecff;
    --st-border: #d7deef;
    --st-ink: #111827;
    --st-muted: #637084;
    --st-primary: #0a84ff;
    --st-primary-bright: #5ac8fa;
    --st-secondary: #34c759;
    --st-shadow: 0 20px 44px rgba(40, 69, 132, 0.14);
}

body {
    background-color: var(--st-bg) !important;
    background-image: radial-gradient(circle at 8% 12%, rgba(10, 132, 255, 0.12) 0, rgba(10, 132, 255, 0) 28%),
        radial-gradient(circle at 88% 14%, rgba(90, 200, 250, 0.14) 0, rgba(90, 200, 250, 0) 26%),
        linear-gradient(180deg, #fbfcff 0%, #f2f4fb 58%, #edf1fa 100%);
    color: var(--st-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Manrope", sans-serif;
}

.stitch-topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 0;
    background: rgba(243, 247, 244, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(119, 153, 136, 0.26);
}

body.logged-in .stitch-topbar-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--rts-admin-bar-offset, 0px);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

body.logged-in {
    padding-top: calc(var(--rts-admin-bar-offset, 0px) + 62px);
}

.stitch-topbar {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.stitch-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: var(--st-primary);
}

.stitch-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(130, 165, 147, 0.45);
}

.stitch-brand-text {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.stitch-nav,
.stitch-menu-toggle {
    display: none !important;
}

.stitch-desktop-nav {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.stitch-desktop-user {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(130, 165, 147, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #355745;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 12px;
    white-space: nowrap;
}

.stitch-nav-link,
.stitch-desktop-nav-link {
    text-decoration: none;
    color: var(--st-muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.stitch-desktop-nav-link,
.stitch-bottom-nav-link {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    transition: background 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.22s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, opacity 0.18s ease;
}

.stitch-desktop-nav-link:active,
.stitch-bottom-nav-link:active {
    transform: scale(0.97);
}

.stitch-desktop-nav-link.is-switching,
.stitch-bottom-nav-link.is-switching {
    transform: scale(0.94);
    filter: brightness(1.04);
}

.stitch-nav-link:hover,
.stitch-desktop-nav-link:hover {
    color: var(--st-primary);
    background: var(--st-surface-soft);
}

.stitch-nav-link.is-active,
.stitch-desktop-nav-link.is-active {
    color: #fff;
    border-color: #1e8d61;
    background: linear-gradient(120deg, var(--st-primary), var(--st-primary-bright));
}

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

.stitch-bottom-nav-link {
    text-decoration: none;
}

.stitch-shell {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.stitch-nav-switching .stitch-shell {
    opacity: 0.72;
    transform: translateY(4px);
    pointer-events: none;
}

.stitch-shell {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 16px 12px 28px;
}

.stitch-shell.stitch-shell-fluid {
    width: 100%;
    max-width: none;
}

.stitch-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    border: 1px solid var(--st-border);
    border-radius: 30px;
    background: linear-gradient(145deg, #f9fffb 0%, #deede4 100%);
    box-shadow: var(--st-shadow);
    overflow: hidden;
}

.stitch-hero-copy {
    padding: 22px 18px;
}

.stitch-eyebrow,
.stitch-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--st-primary);
    margin: 0 0 10px;
}

.stitch-hero-copy h1,
.stitch-section-head h1 {
    margin: 0 0 10px;
    color: var(--st-ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 6vw, 3.3rem);
    line-height: 1.07;
    letter-spacing: -0.02em;
}

.stitch-hero-copy p,
.stitch-note {
    color: var(--st-muted);
    line-height: 1.6;
}

.stitch-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.stitch-pill {
    border: 1px solid rgba(78, 102, 90, 0.22);
    background: rgba(255, 255, 255, 0.7);
    color: var(--st-muted);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.stitch-hero-media {
    min-height: 230px;
    padding: 14px;
    background: linear-gradient(145deg, #d6ece0 0%, #bfe0cf 100%);
}

.stitch-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.stitch-auth-card,
.stitch-card {
    border: 1px solid var(--st-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(23, 64, 47, 0.09);
    padding: 16px;
}

.stitch-auth-card h3,
.stitch-card h2,
.stitch-card h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--st-ink);
}

.stitch-auth-switch {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 10px;
    background: var(--st-surface-soft);
    border-radius: 999px;
    padding: 4px;
}

.stitch-auth-switch a {
    text-decoration: none;
    color: var(--st-muted);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stitch-auth-switch a.is-active {
    color: #fff;
    background: linear-gradient(120deg, var(--st-primary), var(--st-primary-bright));
}

.stitch-form {
    display: grid;
    gap: 10px;
}

.stitch-inline-form {
    margin: 0;
}

.stitch-form label {
    margin-top: 4px;
    color: var(--st-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stitch-form input,
.stitch-form select,
.stitch-form textarea {
    border: 1px solid #c9dbcf;
    border-radius: 12px;
    background: #fbfefd;
    color: var(--st-ink);
    font-size: 0.95rem;
    padding: 10px 12px;
}

.stitch-form input:focus,
.stitch-form select:focus,
.stitch-form textarea:focus {
    border-color: #2ea56f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 165, 111, 0.2);
}

.stitch-verify-note {
    margin: 0 0 10px;
    font-size: 0.84rem;
}

.stitch-verify-help {
    margin: 8px 0 4px;
    font-size: 0.82rem;
}

.stitch-auth-inline-note {
    margin: -2px 0 2px;
    font-size: 0.78rem;
}

.stitch-auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 12px;
    color: #6c8277;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.stitch-auth-divider::before,
.stitch-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(145, 172, 157, 0.15), rgba(145, 172, 157, 0.65), rgba(145, 172, 157, 0.15));
}

.stitch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, var(--st-primary), var(--st-primary-bright));
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 11px 14px;
    cursor: pointer;
}

.stitch-btn:hover {
    filter: brightness(1.04);
}

.stitch-link {
    color: var(--st-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.stitch-link:hover {
    text-decoration: underline;
}

.stitch-link-btn {
    appearance: none;
    border: 0;
    padding: 0;
    background: none;
    color: var(--st-primary);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.stitch-link-btn:hover {
    color: #15563f;
}

.stitch-btn:focus-visible,
.stitch-link:focus-visible,
.stitch-link-btn:focus-visible,
.stitch-desktop-nav-link:focus-visible,
.stitch-bottom-nav-link:focus-visible,
.stitch-auth-switch a:focus-visible {
    outline: 3px solid rgba(46, 165, 111, 0.35);
    outline-offset: 2px;
}

.stitch-notice {
    border: 1px solid #86efac;
    border-radius: 12px;
    background: #f0fdf4;
    color: #14532d;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 10px;
}

.stitch-notice.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.stitch-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.stitch-section-head-plans {
    align-items: flex-start;
}

.stitch-section-head-plans .stitch-link-view-all {
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}

.stitch-grid {
    display: grid;
    gap: 12px;
}

.stitch-grid-2 {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.stitch-grid-3 {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.stitch-price {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--st-primary);
}

.stitch-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stitch-hero-actions {
    margin-top: 4px;
}

.stitch-guest-metrics {
    margin-bottom: 14px;
}

.stitch-onboard-step {
    border-style: dashed;
    background: linear-gradient(145deg, #f8fefb 0%, #edf6f1 100%);
    min-height: 140px;
}

.stitch-onboard-step h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    line-height: 1.35;
}

.stitch-onboard-step .stitch-card-kicker {
    margin: 0 0 8px;
}

.stitch-faq-list {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.stitch-faq-item {
    border: 1px solid rgba(130, 165, 147, 0.35);
    border-radius: 14px;
    background: #f7fcf9;
    padding: 10px 12px;
}

.stitch-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--st-ink);
    list-style: none;
}

.stitch-faq-item summary::-webkit-details-marker {
    display: none;
}

.stitch-faq-item p {
    margin: 8px 0 0;
}

.stitch-guest-help-actions {
    margin-top: 4px;
}

.stitch-dish-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 0;
    border: 0;
    margin-bottom: 0;
    display: block;
}

.stitch-meal-media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #192949 0%, #0f1d35 100%);
    min-height: 220px;
    margin-bottom: 10px;
}

.stitch-meal-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px;
    background: linear-gradient(180deg, rgba(6, 16, 33, 0) 0%, rgba(6, 16, 33, 0.9) 58%, rgba(6, 16, 33, 0.98) 100%);
}

.stitch-meal-overlay .stitch-card-kicker {
    margin: 0 0 6px;
    color: rgba(180, 224, 255, 0.95);
}

.stitch-meal-overlay .stitch-card-kicker,
.stitch-upcoming-overlay .stitch-card-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
}

.stitch-meal-overlay h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.08rem, 3.8vw, 1.28rem);
}

.stitch-meal-status {
    margin: 0;
    color: rgba(245, 249, 255, 0.92);
    font-size: 0.85rem;
    line-height: 1.45;
}

.stitch-today-card > .stitch-btn {
    margin-top: 2px;
}

.stitch-card-wide {
    margin-top: 6px;
}

.stitch-shell .rts-table-wrap {
    overflow-x: auto;
}

.stitch-shell .rts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 8px;
}

.stitch-shell .rts-table th,
.stitch-shell .rts-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #d8e6de;
    font-size: 0.88rem;
    color: var(--st-ink);
}

.stitch-shell .rts-table th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-muted);
}

.stitch-status-card {
    border: 1px solid rgba(130, 165, 147, 0.45);
    background: linear-gradient(145deg, #f7fcf9 0%, #e4f0ea 100%);
}

.stitch-note-strong {
    font-weight: 700;
    color: #355745;
}

.stitch-btn-outline {
    background: #f4faf7;
    color: var(--st-primary);
    border: 1px solid #c5dbc9;
}

.stitch-contact-inline a {
    color: var(--st-primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(23, 104, 75, 0.4);
}

.stitch-contact-inline a:hover {
    color: #0f513a;
}

.stitch-contact-strip {
    margin-top: 14px;
    border: 1px solid rgba(130, 165, 147, 0.45);
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfffd, #e8f3ed);
    box-shadow: 0 12px 26px rgba(23, 64, 47, 0.14);
    padding: 10px 12px;
}

.stitch-contact-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #355745;
    font-size: 0.95rem;
}

.stitch-contact-logo {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(130, 165, 147, 0.4);
    margin-right: 4px;
}

.stitch-contact-main a {
    color: var(--st-primary);
    text-decoration: none;
}

.stitch-contact-main a:hover {
    color: #0f513a;
    text-decoration: underline;
}

/* Guardrails for legacy markup still emitted by helper paths. */
.stitch-shell .rts-card,
.stitch-shell .rts-contact-strip {
    background: linear-gradient(145deg, #fbfffd, #e8f3ed) !important;
    color: var(--st-ink) !important;
    border: 1px solid rgba(130, 165, 147, 0.45) !important;
}

.stitch-shell .rts-note,
.stitch-shell .rts-contact-strip a,
.stitch-shell .rts-card p,
.stitch-shell .rts-card h3 {
    color: var(--st-ink) !important;
}

.stitch-shell .rts-btn {
    background: linear-gradient(120deg, var(--st-primary), var(--st-primary-bright)) !important;
    color: #fff !important;
    border: 0 !important;
}

.stitch-shell .rts-btn.rts-btn-outline {
    background: #f4faf7 !important;
    color: var(--st-primary) !important;
    border: 1px solid #c5dbc9 !important;
}

.stitch-welcome {
    margin-bottom: 14px;
}

.stitch-welcome h1 {
    margin: 0 0 6px;
}

.stitch-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.stitch-feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 320px;
    box-shadow: var(--st-shadow);
}

.stitch-feature-media {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.stitch-feature-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    background: linear-gradient(180deg, rgba(18, 47, 37, 0) 0%, rgba(18, 47, 37, 0.82) 100%);
    color: #fff;
}

.stitch-feature-overlay h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.35rem, 3.2vw, 2rem);
}

.stitch-feature-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px;
}

.stitch-feature-overlay .stitch-btn {
    width: fit-content;
}

.stitch-side-stack {
    display: grid;
    gap: 12px;
}

.stitch-stat-card .stitch-price span {
    font-size: 1rem;
    color: var(--st-muted);
    font-weight: 700;
}

.stitch-progress {
    margin-top: 10px;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dcebe3;
    overflow: hidden;
}

.stitch-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--st-primary), #8ddfb8);
}

.stitch-addon-card {
    background: linear-gradient(145deg, #deede4 0%, #d6e9df 100%);
}

.stitch-upcoming-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.stitch-upcoming-card {
    min-width: 250px;
    flex: 0 0 250px;
    scroll-snap-align: start;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.stitch-upcoming-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    min-height: 180px;
    background: linear-gradient(145deg, #1b2d50 0%, #101f3d 100%);
    box-shadow: 0 10px 20px rgba(15, 22, 40, 0.28);
}

.stitch-upcoming-media.is-fallback {
    background: linear-gradient(145deg, #263d67 0%, #10264f 100%);
}

.stitch-upcoming-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 0;
    border: 0;
    margin-bottom: 0;
    display: block;
}

.stitch-upcoming-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    background: linear-gradient(180deg, rgba(6, 16, 33, 0) 0%, rgba(6, 16, 33, 0.9) 58%, rgba(6, 16, 33, 0.98) 100%);
}

.stitch-upcoming-overlay .stitch-card-kicker {
    margin: 0 0 6px;
    color: rgba(180, 224, 255, 0.95);
}

.stitch-upcoming-overlay h3 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 1.02rem;
}

.stitch-upcoming-overlay .stitch-note {
    margin: 0;
    color: rgba(242, 248, 255, 0.9);
    font-size: 0.78rem;
    line-height: 1.4;
}

.stitch-dashboard-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
    background: radial-gradient(circle at 100% 0, rgba(46, 165, 111, 0.24), rgba(46, 165, 111, 0) 42%),
        linear-gradient(145deg, #f9fffb 0%, #deede4 100%);
    box-shadow: 0 18px 34px rgba(23, 64, 47, 0.16);
}

.stitch-dashboard-hero-meter {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(97, 137, 119, 0.26);
}

.stitch-dashboard-hero-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(120deg, var(--st-primary), #8ddfb8);
}

.stitch-metrics-grid {
    margin-bottom: 12px;
}

.stitch-metric-card {
    background: linear-gradient(145deg, #fbfffd 0%, #e8f3ed 100%);
}

.stitch-metric-card h2,
.stitch-metric-card h3 {
    margin: 0 0 6px;
    font-size: clamp(1.2rem, 5.5vw, 1.8rem);
}

.stitch-dashboard-main-grid {
    margin-bottom: 12px;
}

.stitch-dashboard-main-grid .stitch-card,
.stitch-upcoming-section,
.stitch-plan-details {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.stitch-today-card,
.stitch-skip-card,
.stitch-upcoming-section,
.stitch-plan-details {
    border-radius: 22px;
}

.stitch-dashboard-unified {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.stitch-unified-section {
    padding: 14px;
}

.stitch-unified-section + .stitch-unified-section {
    border-top: 0;
}

.stitch-inline-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.stitch-plan-details h2 {
    margin: 0 0 12px;
    font-size: clamp(1.15rem, 2.3vw, 1.45rem);
    letter-spacing: -0.01em;
}

.stitch-plan-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stitch-plan-details-grid p {
    margin: 0;
    border: 1px solid rgba(130, 165, 147, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px rgba(23, 64, 47, 0.06);
    padding: 11px 13px;
    min-height: 74px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.stitch-plan-details-grid strong {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--st-muted);
    opacity: 0.85;
}

.stitch-plan-details-grid span {
    color: var(--st-ink);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.3;
}

.stitch-account-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 14px;
}

.stitch-account-visual-card {
    border: 1px solid rgba(130, 165, 147, 0.35);
    border-radius: 16px;
    background: linear-gradient(145deg, #fbfffd 0%, #e8f3ed 100%);
    padding: 12px;
}

.stitch-account-ring {
    --stitch-ring: 0%;
    width: 112px;
    height: 112px;
    margin: 2px auto 10px;
    border-radius: 50%;
    background: conic-gradient(var(--st-primary) var(--stitch-ring), rgba(181, 205, 192, 0.42) 0);
    position: relative;
    display: grid;
    place-items: center;
}

.stitch-account-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #fbfffd;
}

.stitch-account-ring span {
    position: relative;
    z-index: 1;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--st-primary);
}

.stitch-account-meter {
    margin-top: 8px;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(130, 165, 147, 0.35);
    overflow: hidden;
}

.stitch-account-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--st-primary), #8ddfb8);
}

.stitch-account-meter.is-time span {
    background: linear-gradient(120deg, #2f8b67, #71c59a);
}

.stitch-account-meta-row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--st-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.stitch-activity-list {
    display: grid;
    gap: 10px;
}

.stitch-activity-item {
    border: 1px solid rgba(130, 165, 147, 0.35);
    border-radius: 14px;
    background: #f7fcf9;
    padding: 10px 12px;
}

.stitch-activity-item strong {
    display: block;
    color: #355745;
    margin-bottom: 2px;
}

.stitch-activity-item span {
    color: var(--st-muted);
    font-size: 0.92rem;
}

@media (min-width: 760px) {
    .stitch-shell {
        padding: 28px 18px 36px;
    }

    .stitch-hero {
        grid-template-columns: 1.08fr 0.92fr;
    }

    .stitch-hero-copy {
        padding: 28px;
    }

    .stitch-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .stitch-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .stitch-upcoming-row {
        display: grid;
        overflow: visible;
        padding-bottom: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stitch-upcoming-card {
        min-width: 0;
        flex: 1 1 auto;
    }

    .stitch-plan-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stitch-account-visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stitch-unified-section {
        padding: 18px;
    }
}

@media (max-width: 759px) {
    .stitch-section-head-plans {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stitch-section-head-plans .stitch-link-view-all {
        margin-top: 0;
    }
}

@media (min-width: 980px) {
    .stitch-bento {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    }

    .stitch-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: end;
    }

    .stitch-upcoming-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .stitch-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 55;
        display: flex;
        gap: 6px;
        overflow: hidden;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        background: #eff6f2;
        border-top: 1px solid rgba(119, 153, 136, 0.26);
    }

    .stitch-bottom-nav-link {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #355745;
        border: 1px solid rgba(120, 156, 139, 0.34);
        border-radius: 12px;
        background: #fff;
        padding: 7px 5px 8px;
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-transform: none;
        line-height: 1.2;
        text-align: center;
    }

    .stitch-bottom-nav-icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        opacity: 0.95;
    }

    .stitch-bottom-nav-icon svg {
        width: 18px;
        height: 18px;
        display: block;
    }

    .stitch-bottom-nav-text {
        display: block;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stitch-bottom-nav-link.is-active {
        color: #fff;
        border-color: #1e8d61;
        background: linear-gradient(120deg, var(--st-primary), var(--st-primary-bright));
    }

    .stitch-hero-actions .stitch-btn,
    .stitch-guest-help-actions .stitch-btn {
        flex: 1 1 0;
    }

    .stitch-meal-media,
    .stitch-dish-image {
        min-height: 204px;
    }

    .stitch-upcoming-media,
    .stitch-upcoming-image {
        min-height: 172px;
    }

    .stitch-meal-overlay,
    .stitch-upcoming-overlay {
        padding: 11px;
    }
    
    body.logged-in {
        padding-bottom: 76px;
    }

    .stitch-plan-details h2 {
        margin-bottom: 10px;
        font-size: 1.05rem;
    }

    .stitch-plan-details-grid {
        gap: 9px;
    }

    .stitch-plan-details-grid p {
        min-height: 66px;
        padding: 9px 10px;
    }

    .stitch-plan-details-grid strong {
        font-size: 0.66rem;
    }

    .stitch-plan-details-grid span {
        font-size: 0.95rem;
    }
}

@media (min-width: 901px) {
    body.logged-in {
        padding-top: calc(var(--rts-admin-bar-offset, 0px) + 68px);
    }

    .stitch-topbar {
        max-width: 1240px;
        margin: 0 auto;
        padding: 12px 20px;
        gap: 16px;
    }

    .stitch-desktop-nav {
        display: flex;
    }

    .stitch-desktop-nav-link {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .stitch-desktop-user {
        display: inline-flex;
    }

    .stitch-bottom-nav {
        display: none !important;
    }
}

@media (min-width: 980px) {
    body.logged-in .stitch-shell {
        width: min(100%, 1240px);
    }

    body.logged-in .stitch-shell.stitch-shell-fluid {
        width: min(100%, 1240px);
        max-width: 1240px;
    }

    body.logged-in .stitch-bento {
        gap: 18px;
        margin-bottom: 22px;
    }

    body.logged-in .stitch-dashboard-unified {
        border: 1px solid rgba(130, 165, 147, 0.4);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.78);
        box-shadow: 0 18px 34px rgba(23, 64, 47, 0.12);
        padding: 0;
    }

    body.logged-in .stitch-unified-section {
        padding: 22px 24px;
    }

    body.logged-in .stitch-unified-section + .stitch-unified-section {
        border-top: 1px solid rgba(130, 165, 147, 0.28);
    }

    body.logged-in .stitch-dashboard-main-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.95fr);
        gap: 18px;
    }

    body.logged-in .stitch-plan-details-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    body.logged-in .stitch-plan-details-grid p {
        min-height: 84px;
    }

    body.logged-in .stitch-section-head {
        margin-bottom: 20px;
    }
}

/* iOS Theme Overrides */
.stitch-brand-text,
.stitch-hero-copy h1,
.stitch-section-head h1,
.stitch-card h2,
.stitch-card h3,
.stitch-auth-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Manrope", sans-serif;
    letter-spacing: -0.01em;
}

.stitch-topbar-wrap {
    background: rgba(246, 248, 255, 0.75);
    border-bottom: 1px solid rgba(186, 199, 230, 0.5);
    box-shadow: 0 10px 24px rgba(47, 81, 155, 0.08);
    backdrop-filter: blur(20px);
}

.stitch-brand-logo {
    border-color: rgba(168, 184, 219, 0.65);
    box-shadow: 0 6px 14px rgba(43, 75, 142, 0.14);
}

.stitch-hero {
    border: 1px solid rgba(188, 202, 234, 0.56);
    background: linear-gradient(138deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 242, 255, 0.76) 100%);
    box-shadow: 0 18px 44px rgba(44, 77, 144, 0.14);
}

.stitch-hero-media {
    background: linear-gradient(145deg, #e6f1ff 0%, #d5e8ff 100%);
}

.stitch-auth-card,
.stitch-card {
    border: 1px solid rgba(188, 202, 234, 0.58);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 247, 255, 0.82) 100%);
    box-shadow: 0 14px 34px rgba(44, 77, 144, 0.12);
    backdrop-filter: blur(10px);
}

.stitch-auth-switch {
    background: rgba(229, 238, 255, 0.88);
}

.stitch-auth-switch a.is-active,
.stitch-btn,
.stitch-nav-link.is-active,
.stitch-desktop-nav-link.is-active,
.stitch-bottom-nav-link.is-active {
    background: linear-gradient(180deg, #0a84ff 0%, #007aff 100%);
    border-color: #0a84ff;
    box-shadow: 0 10px 20px rgba(10, 122, 255, 0.26);
}

.stitch-btn {
    border-radius: 14px;
    letter-spacing: 0.01em;
}

.stitch-btn-outline {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(160, 182, 230, 0.78);
    color: #0a66d6;
}

.stitch-btn-outline:hover {
    background: rgba(237, 244, 255, 0.95);
}

.stitch-pill {
    border-color: rgba(160, 182, 230, 0.42);
    background: rgba(241, 247, 255, 0.82);
    color: #4d5f7c;
}

.stitch-notice {
    border-color: rgba(122, 209, 163, 0.55);
    background: rgba(238, 255, 248, 0.95);
    color: #0f5132;
}

.stitch-notice.is-error {
    border-color: rgba(255, 158, 158, 0.62);
    background: rgba(255, 241, 245, 0.96);
    color: #8b203d;
}

.stitch-form input,
.stitch-form select,
.stitch-form textarea {
    border: 1px solid rgba(173, 189, 226, 0.8);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.95);
    box-shadow: inset 0 1px 2px rgba(53, 86, 151, 0.06);
}

.stitch-form input:focus,
.stitch-form select:focus,
.stitch-form textarea:focus {
    border-color: #0a84ff;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

.stitch-progress,
.stitch-account-meter,
.stitch-dashboard-hero-meter {
    background: rgba(170, 186, 225, 0.34);
}

.stitch-progress span,
.stitch-account-meter span,
.stitch-dashboard-hero-meter span,
.stitch-account-meter.is-time span {
    background: linear-gradient(180deg, #5ac8fa 0%, #0a84ff 100%);
}

.stitch-account-ring {
    background: conic-gradient(#0a84ff var(--stitch-ring), rgba(180, 196, 230, 0.48) 0);
}

.stitch-faq-item {
    border-color: rgba(169, 188, 229, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 247, 255, 0.85) 100%);
}

.stitch-feature-overlay {
    background: linear-gradient(180deg, rgba(13, 22, 42, 0) 0%, rgba(13, 22, 42, 0.84) 100%);
}

.stitch-status-card,
.stitch-contact-strip,
.stitch-shell .rts-card,
.stitch-shell .rts-contact-strip {
    border-color: rgba(169, 188, 229, 0.5) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.82)) !important;
    box-shadow: 0 12px 26px rgba(44, 77, 144, 0.13);
}

@media (max-width: 900px) {
    .stitch-bottom-nav {
        background: rgba(246, 249, 255, 0.9);
        border-top: 1px solid rgba(180, 195, 229, 0.52);
        backdrop-filter: blur(18px);
    }

    .stitch-bottom-nav-link {
        border-color: rgba(165, 184, 224, 0.5);
        background: rgba(255, 255, 255, 0.88);
        color: #4a5d7e;
    }
}

@media (min-width: 980px) {
    body.logged-in .stitch-dashboard-unified {
        border-color: rgba(169, 188, 229, 0.52);
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 18px 36px rgba(44, 77, 144, 0.13);
    }

    body.logged-in .stitch-unified-section + .stitch-unified-section {
        border-top-color: rgba(169, 188, 229, 0.36);
    }
}
