:root {
    --bigfoot-ink: #020E19;
    --bigfoot-navy: #031220;
    --bigfoot-blue: #0F3E6B;
    --bigfoot-orange: #FF7E34;
    --bigfoot-mint: #33FFB9;
    --bigfoot-sand: #F3F2ED;
    --bigfoot-paper: #FFFEFA;
    --bigfoot-line: #DDE1DD;
    --bigfoot-muted: #5F6F78;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--bigfoot-sand);
    color: #0A1824;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-image:
        radial-gradient(circle at 93% 7%, rgba(255, 126, 52, 0.055), transparent 23rem),
        linear-gradient(rgba(15, 62, 107, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 62, 107, 0.018) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}

* {
    scrollbar-color: rgba(255, 126, 52, 0.55) rgba(2, 14, 25, 0.08);
    scrollbar-width: thin;
}

::selection {
    background: rgba(255, 126, 52, 0.28);
    color: var(--bigfoot-ink);
}

a {
    color: inherit;
}

h1:focus {
    outline: none;
}

.mud-typography,
.mud-input,
.mud-button-root,
.mud-table,
.mud-list,
.mud-chip,
.mud-tooltip {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif !important;
}

.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    letter-spacing: -0.032em !important;
}

.mud-layout,
.mud-main-content {
    background: transparent;
}

.portal-appbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    background:
        radial-gradient(circle at 23% -80%, rgba(255, 126, 52, 0.23), transparent 26rem),
        var(--bigfoot-ink) !important;
    box-shadow: 0 8px 28px rgba(2, 14, 25, 0.12) !important;
}

.portal-menu-button {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
}

.portal-menu-button:hover {
    border-color: rgba(255, 126, 52, 0.35) !important;
    background: rgba(255, 126, 52, 0.1) !important;
}

.portal-drawer {
    border-right: 1px solid rgba(255, 255, 255, 0.065) !important;
    background: var(--bigfoot-navy) !important;
}

.portal-nav {
    padding-top: 0.7rem;
}

.portal-nav .mud-nav-link {
    min-height: 42px;
    margin-bottom: 0.22rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(216, 226, 230, 0.72);
    font-size: 0.82rem;
    font-weight: 550;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.portal-nav .mud-nav-link .mud-nav-link-icon {
    color: #82A2B8 !important;
    transition: color 150ms ease;
}

.portal-nav .mud-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.045) !important;
    color: #FFFFFF !important;
    transform: translateX(2px);
}

.portal-nav .mud-nav-link.active {
    border-color: rgba(255, 126, 52, 0.22);
    background: linear-gradient(90deg, rgba(255, 126, 52, 0.2), rgba(255, 126, 52, 0.075)) !important;
    box-shadow: inset 3px 0 0 var(--bigfoot-orange);
    color: #FFFFFF !important;
}

.portal-nav .mud-nav-link.active .mud-nav-link-icon {
    color: var(--bigfoot-orange) !important;
}

.portal-user-avatar {
    border: 1px solid rgba(255, 126, 52, 0.4);
    background: var(--bigfoot-blue) !important;
    font-size: 0.7rem !important;
    font-weight: 750 !important;
}

.portal-signout {
    min-width: auto !important;
    margin-left: 0.35rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.74rem !important;
    text-transform: none !important;
}

.portal-signout:hover {
    border-color: rgba(255, 126, 52, 0.35) !important;
    background: rgba(255, 126, 52, 0.1) !important;
    color: #FFFFFF !important;
}

.portal-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1680px;
    margin: 0 auto;
}

.portal-page-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-left: 1rem;
}

.portal-page-header::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.2rem;
    left: 0;
    width: 3px;
    border-radius: 4px;
    background: linear-gradient(var(--bigfoot-orange), #FFB45F);
}

.portal-page-header .mud-typography-h4 {
    color: var(--bigfoot-ink);
    font-weight: 780;
}

.portal-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-page .mud-paper,
.mud-dialog,
.mud-popover:not(.mud-tooltip) {
    border: 1px solid rgba(10, 24, 36, 0.085);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(2, 14, 25, 0.045) !important;
}

.portal-page .mud-paper {
    background-color: rgba(255, 254, 250, 0.96);
}

.portal-page .mud-paper:hover {
    border-color: rgba(15, 62, 107, 0.14);
}

.mud-button-root {
    border-radius: 10px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

.mud-button-filled-primary:not(.mud-disabled) {
    box-shadow: 0 7px 18px rgba(255, 126, 52, 0.22) !important;
}

.mud-button-filled-primary:not(.mud-disabled):hover {
    box-shadow: 0 10px 24px rgba(255, 126, 52, 0.3) !important;
    transform: translateY(-1px);
}

.mud-button-outlined {
    border-color: rgba(15, 62, 107, 0.25) !important;
    background: rgba(255, 254, 250, 0.5) !important;
}

.mud-input-outlined-border {
    border-color: #CDD3D1 !important;
    border-radius: 10px !important;
}

.mud-input-control:focus-within .mud-input-outlined-border {
    border-color: var(--bigfoot-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 126, 52, 0.1);
}

.mud-tabs-tabbar {
    border-bottom: 1px solid var(--bigfoot-line);
}

.mud-tab {
    font-weight: 650 !important;
    text-transform: none !important;
}

.mud-dialog-title,
.mud-table-head {
    background: #F7F6F1;
}

.mud-dialog-title {
    border-bottom: 1px solid var(--bigfoot-line);
}

.mud-table-container .mud-table-head .mud-table-cell {
    background: #F7F6F1;
    color: #63727A;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mud-table-row:hover {
    background: #FFF7F1 !important;
}

.mud-chip {
    border-radius: 8px !important;
    font-weight: 650 !important;
}

.mud-progress-linear-bar {
    background: linear-gradient(90deg, var(--bigfoot-orange), #FFB15A) !important;
}

.brand-eyebrow {
    display: inline-block;
    color: var(--bigfoot-mint);
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.brand-eyebrow--dark {
    color: #B0521E;
}

.dashboard-hero {
    min-height: 176px;
    padding: 2.2rem 2.35rem;
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(15, 62, 107, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(110deg, rgba(255, 254, 250, 0.98) 0%, rgba(255, 254, 250, 0.93) 56%, rgba(255, 126, 52, 0.09) 100%),
        url('/brand/takeaways-mark.png') right -4rem center / 22rem no-repeat,
        var(--bigfoot-paper);
    box-shadow: 0 18px 50px rgba(2, 14, 25, 0.055);
}

.dashboard-hero::before {
    top: 2.25rem;
    bottom: 2.25rem;
    left: 0;
    width: 5px;
}

.dashboard-hero-copy {
    position: relative;
    z-index: 1;
}

.dashboard-hero-title {
    margin-top: 0.55rem !important;
    color: var(--bigfoot-ink);
    font-weight: 800 !important;
    line-height: 1.05 !important;
}

.dashboard-hero-title span {
    color: var(--bigfoot-blue);
}

.dashboard-hero-subtitle {
    margin-top: 0.8rem !important;
    color: var(--bigfoot-muted);
}

.dashboard-hero-actions {
    position: relative;
    z-index: 1;
    padding: 0.7rem;
    border: 1px solid rgba(10, 24, 36, 0.08);
    border-radius: 14px;
    background: rgba(255, 254, 250, 0.86);
    box-shadow: 0 10px 30px rgba(2, 14, 25, 0.05);
    backdrop-filter: blur(8px);
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-left: 0 !important;
    border-radius: 14px !important;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--stat-accent, var(--bigfoot-orange));
}

.stat-card::after {
    content: "";
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    width: 8rem;
    height: 8rem;
    border: 1.5rem solid color-mix(in srgb, var(--stat-accent, var(--bigfoot-orange)) 8%, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card:hover {
    box-shadow: 0 15px 36px rgba(2, 14, 25, 0.09) !important;
    transform: translateY(-3px);
}

.stat-card--clickable {
    cursor: pointer;
}

.stat-card--primary {
    --stat-accent: var(--bigfoot-blue);
}

.stat-card--warning {
    --stat-accent: #D76524;
}

.stat-card--success {
    --stat-accent: #0A8F68;
}

.stat-card--secondary {
    --stat-accent: var(--bigfoot-orange);
}

.portal-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
}

.tenant-color-editor {
    display: grid;
    align-items: center;
    grid-template-columns: 3.25rem minmax(0, 1fr) 2.75rem;
    gap: 0.75rem;
}

.tenant-color-picker {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.tenant-color-picker::-webkit-color-swatch-wrapper {
    padding: 0.25rem;
}

.tenant-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.tenant-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 8px;
}

.tenant-color-swatch {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tenant-color-swatch--small {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
}

.tenant-accent-cell,
.tenant-accent-preview {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.tenant-accent-preview {
    padding: 0.75rem;
    border-radius: 10px !important;
    background: #F8FAFC;
}

.portal-logo-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.portal-logo-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid var(--bigfoot-line);
    flex-shrink: 0;
}

.portal-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-500 { font-weight: 500 !important; }

.portal-login-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 2.5rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 25%, rgba(255, 126, 52, 0.18), transparent 29rem),
        radial-gradient(circle at 85% 90%, rgba(15, 62, 107, 0.65), transparent 36rem),
        linear-gradient(145deg, #020E19 0%, #071D2C 55%, #031220 100%);
}

.portal-login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.portal-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
}

.login-experience {
    display: grid;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(8px);
}

.login-story {
    position: relative;
    display: flex;
    min-height: 650px;
    padding: 4rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    isolation: isolate;
}

.login-story::after {
    content: "";
    position: absolute;
    right: -22%;
    bottom: -30%;
    width: 88%;
    aspect-ratio: 1;
    z-index: -1;
    border: 1px solid rgba(255, 126, 52, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 48px rgba(255, 126, 52, 0.025),
        0 0 0 96px rgba(255, 126, 52, 0.018);
}

.login-story-glow {
    position: absolute;
    top: -12rem;
    left: -12rem;
    width: 30rem;
    height: 30rem;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 126, 52, 0.12);
    filter: blur(50px);
}

.login-story-mark {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(255, 126, 52, 0.22));
}

.login-story-copy {
    max-width: 590px;
}

.login-story-copy h1 {
    margin: 0.9rem 0 1.2rem;
    color: #FFFFFF;
    font-size: clamp(2.8rem, 4.2vw, 4.7rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.login-story-copy h1 span {
    color: var(--bigfoot-orange);
}

.login-story-copy p {
    max-width: 520px;
    margin: 0;
    color: rgba(216, 226, 230, 0.67);
    font-size: 1rem;
    line-height: 1.75;
}

.login-story-points {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-story-points span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.login-story-points i,
.login-secure-label i {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--bigfoot-mint);
    box-shadow: 0 0 0 4px rgba(51, 255, 185, 0.08);
}

.login-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bigfoot-paper) !important;
}

.login-card-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    min-height: 92px;
    padding: 1.3rem 2rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--bigfoot-line);
    background: rgba(255, 254, 250, 0.92);
}

.login-card-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.login-card-mark {
    width: 2.65rem;
    height: 2.65rem;
    object-fit: contain;
}

.login-card-name {
    color: var(--bigfoot-ink);
    font-weight: 800 !important;
    line-height: 1 !important;
}

.login-card-byline,
.login-secure-label {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
}

.login-card-byline {
    display: block;
    margin-top: 0.25rem;
    color: #B0521E;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.login-secure-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--bigfoot-muted);
    font-size: 0.53rem;
    letter-spacing: 0.08em;
}

.login-card-content {
    padding: 8.25rem 2.5rem 1rem !important;
}

.login-heading {
    margin-top: 0.6rem !important;
    color: var(--bigfoot-ink);
    font-weight: 800 !important;
}

.login-subheading {
    margin: 0.65rem 0 2rem !important;
    color: var(--bigfoot-muted) !important;
    line-height: 1.6 !important;
}

.login-card-actions {
    padding: 0.8rem 2.5rem 2.25rem !important;
}

.login-submit {
    min-height: 52px;
    font-size: 0.92rem !important;
}

.login-legal {
    margin-top: 1.55rem !important;
    color: #8A969D !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.04em !important;
    text-align: center;
    text-transform: uppercase;
}

.portal-auth-loading {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: var(--bigfoot-ink);
    color: #FFFFFF;
    font-weight: 600;
}

.portal-auth-loading-card {
    display: flex;
    padding: 1rem 1.25rem;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #071D2C;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.portal-auth-loading-mark {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 8px;
    background: var(--bigfoot-orange);
    color: var(--bigfoot-ink);
    font-weight: 800;
}

@media (max-width: 1050px) {
    .login-experience {
        grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
    }

    .login-story {
        padding: 3rem;
    }

    .login-story-copy h1 {
        font-size: 3.15rem;
    }

    .dashboard-hero-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .portal-login-shell {
        padding: 1rem;
        align-items: flex-start;
    }

    .login-experience {
        display: block;
        max-width: 480px;
        margin: 0 auto;
        border-radius: 18px;
    }

    .login-story {
        min-height: auto;
        padding: 1.5rem 1.75rem 1.7rem;
    }

    .login-story-mark {
        width: 3.3rem;
        height: 3.3rem;
        margin-bottom: 1.35rem;
    }

    .login-story-copy h1 {
        margin-top: 0.6rem;
        margin-bottom: 0;
        font-size: clamp(2rem, 9.5vw, 2.65rem);
    }

    .login-story-copy p {
        display: none;
    }

    .login-story-points {
        display: none;
    }

    .login-card {
        min-height: 555px;
    }

    .login-card-content,
    .login-card-actions {
        padding-right: 1.75rem !important;
        padding-left: 1.75rem !important;
    }

    .dashboard-hero {
        padding: 1.65rem;
        background:
            linear-gradient(110deg, rgba(255, 254, 250, 0.98), rgba(255, 254, 250, 0.92)),
            var(--bigfoot-paper);
    }

    .dashboard-hero-title {
        font-size: 2rem !important;
    }

    .dashboard-hero-actions {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .portal-page-header:not(.dashboard-hero) {
        padding-left: 0.85rem;
    }

    .tenant-color-editor {
        grid-template-columns: 3.25rem minmax(0, 1fr);
    }

    .tenant-color-editor .tenant-color-swatch {
        display: none;
    }
}

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

.legal-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background:
        radial-gradient(circle at 92% 4%, rgb(255 126 52 / 9%), transparent 24rem),
        linear-gradient(rgb(15 62 107 / 3%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(15 62 107 / 3%) 1px, transparent 1px),
        var(--bigfoot-sand);
    background-size: auto, 32px 32px, 32px 32px, auto;
}

.legal-topbar {
    display: flex;
    min-height: 72px;
    padding: 0.85rem 1.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(circle at 23% -80%, rgba(255, 126, 52, 0.23), transparent 26rem),
        var(--bigfoot-ink);
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #FFFFFF;
    text-decoration: none;
}

.legal-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.legal-brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.legal-brand-byline {
    display: block;
    margin-top: 0.28rem;
    color: #FF7E34;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-nav {
    display: flex;
    gap: 0.4rem;
}

.legal-nav-link {
    display: inline-flex;
    min-height: 44px;
    padding: 0 0.9rem;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(216, 226, 230, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-nav-link:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
}

.legal-nav-link--active {
    border-color: rgba(255, 126, 52, 0.28);
    background: rgba(255, 126, 52, 0.16);
    box-shadow: inset 0 -2px 0 var(--bigfoot-orange);
    color: #FFFFFF;
}

.legal-main {
    flex: 1;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.legal-doc {
    padding: 2rem 2rem 2.25rem;
    border: 1px solid var(--bigfoot-line);
    border-radius: 18px;
    background: var(--bigfoot-paper);
    box-shadow: 0 14px 38px rgb(2 14 25 / 8%);
}

.legal-doc-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--bigfoot-line);
}

.legal-doc h1 {
    margin: 0.55rem 0 0.7rem;
    color: #0A1824;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.legal-lede {
    margin: 0 0 1.15rem;
    color: var(--bigfoot-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.legal-meta {
    display: grid;
    margin: 0;
    gap: 0.85rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.legal-meta dt {
    color: var(--bigfoot-muted);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-meta dd {
    margin: 0.25rem 0 0;
    color: #0A1824;
    font-size: 0.92rem;
    font-weight: 600;
}

.legal-doc h2 {
    margin: 1.7rem 0 0.65rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--bigfoot-orange);
    color: #0A1824;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
    color: #0A1824;
    font-size: 0.97rem;
    line-height: 1.65;
}

.legal-doc p {
    margin: 0 0 0.85rem;
}

.legal-doc ul {
    margin: 0 0 0.9rem;
    padding-left: 1.2rem;
}

.legal-doc li + li {
    margin-top: 0.35rem;
}

.legal-doc a {
    color: #0F3E6B;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.legal-doc a:hover {
    color: #D76524;
}

.legal-steps {
    margin: 0 0 0.9rem;
    padding-left: 1.25rem;
}

.legal-steps li + li {
    margin-top: 0.4rem;
}

.legal-cta {
    display: inline-flex;
    min-height: 44px;
    margin: 0.15rem 0 0.85rem;
    padding: 0.7rem 1.15rem;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bigfoot-orange, #FF7E34);
    color: #020E19 !important;
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgb(2 14 25 / 10%);
}

.legal-cta:hover {
    color: #020E19 !important;
    filter: brightness(1.04);
}

.legal-cross {
    margin-top: 1.75rem !important;
    padding-top: 1.15rem;
    border-top: 1px solid var(--bigfoot-line);
    color: var(--bigfoot-muted) !important;
}

.legal-footer {
    display: flex;
    padding: 1rem 1.5rem 1.35rem;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--bigfoot-muted);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.login-legal a {
    color: #0F3E6B;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

@media (max-width: 760px) {
    .legal-topbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .legal-main {
        padding: 1.15rem 1rem 2.25rem;
    }

    .legal-doc {
        padding: 1.35rem 1.15rem 1.6rem;
        border-radius: 14px;
    }
}

/* Public order slip (SMS proof of order) */
.order-slip-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background:
        radial-gradient(circle at 90% 0%, rgb(255 126 52 / 14%), transparent 22rem),
        var(--bigfoot-sand);
}

.order-slip-topbar {
    display: flex;
    min-height: 64px;
    padding: 0.85rem 1.25rem;
    align-items: center;
    background: var(--bigfoot-ink);
    color: #fff;
}

.order-slip-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.order-slip-brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}

.order-slip-brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.order-slip-brand-byline {
    display: block;
    margin-top: 0.2rem;
    color: #FF7E34;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-slip-main {
    flex: 1;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.order-slip-footer {
    display: flex;
    padding: 0.9rem 1.25rem 1.2rem;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--bigfoot-muted);
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.order-slip-card {
    padding: 1.35rem 1.25rem 1.5rem;
    border: 1px solid var(--bigfoot-line);
    border-radius: 18px;
    background: var(--bigfoot-paper);
    box-shadow: 0 16px 40px rgb(2 14 25 / 10%);
}

.order-slip-card--loading,
.order-slip-card--missing {
    text-align: center;
}

.order-slip-kicker {
    display: block;
    color: #FF7E34;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-slip-head {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--bigfoot-line);
}

.order-slip-head h1 {
    margin: 0.35rem 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.order-slip-logo {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}

.order-slip-proof {
    margin: 0;
    color: var(--bigfoot-muted);
    font-size: 0.9rem;
}

.order-slip-number-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.1rem 0 0.9rem;
}

.order-slip-number-label {
    color: var(--bigfoot-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-slip-number {
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: clamp(3.2rem, 18vw, 4.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--bigfoot-ink);
}

.order-slip-status {
    display: inline-flex;
    min-height: 1.7rem;
    padding: 0.2rem 0.75rem;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.order-slip-status--received {
    background: #E7F7F0;
    color: #0A8F68;
}

.order-slip-status--ready {
    background: #FFF1E6;
    color: #D76524;
}

.order-slip-status--collected {
    background: #E8EEF4;
    color: #0F3E6B;
}

.order-slip-status--cancelled {
    background: #F8E8E8;
    color: #C43D3D;
}

.order-slip-status--pending {
    background: #F3F2ED;
    color: #5F6F78;
}

.order-slip-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    padding: 0.85rem 0;
    border-top: 1px dashed var(--bigfoot-line);
    border-bottom: 1px dashed var(--bigfoot-line);
}

.order-slip-meta dt {
    color: var(--bigfoot-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.order-slip-meta dd {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.order-slip-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-slip-items li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgb(221 225 221 / 70%);
}

.order-slip-item-row {
    display: grid;
    grid-template-columns: 2.2rem 1fr auto;
    gap: 0.4rem;
    align-items: start;
}

.order-slip-item-qty {
    color: var(--bigfoot-muted);
    font-weight: 700;
}

.order-slip-item-name {
    font-weight: 650;
}

.order-slip-item-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.order-slip-item-extras,
.order-slip-item-notes {
    margin: 0.2rem 0 0 2.6rem;
    color: var(--bigfoot-muted);
    font-size: 0.8rem;
}

.order-slip-notes {
    margin: 0.85rem 0 0;
    color: var(--bigfoot-muted);
    font-size: 0.88rem;
}

.order-slip-total {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--bigfoot-ink);
    font-size: 1.05rem;
}

.order-slip-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.order-slip-total-row--grand {
    margin-top: 0.15rem;
}

.order-slip-total strong {
    font-size: 1.35rem;
}

.order-slip-foot-note,
.order-slip-hint {
    margin: 1rem 0 0;
    color: var(--bigfoot-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.order-slip-card--missing h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.5rem;
}

@media print {
    .order-slip-topbar,
    .order-slip-footer {
        display: none;
    }

    .order-slip-shell,
    .order-slip-card {
        background: #fff;
        box-shadow: none;
    }
}
