.sf-portal {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    min-height: 100svh;
}

.sf-portal .sf-wrap { width: min(65rem, calc(100% - 2.5rem)); }
.sf-portal .sf-header { position: static; }
.sf-portal .sf-header-inner { display: flex; }

.sf-portal-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding-inline: .9rem;
    color: var(--muted);
    font-size: .83rem;
    font-weight: 750;
    text-decoration: none;
}
.sf-portal-back:hover { background: #fff; }

.sf-portal-back:hover, .sf-portal-footer a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.sf-portal > main {
    display: grid;
    align-items: center;
    padding-block: clamp(1.75rem, 5vh, 4rem);
}

.sf-portal-card { max-width: 31rem; box-shadow: var(--glass-shadow-raised); }

.sf-portal-kicker {
    width: fit-content;
    margin-bottom: .7rem;
    padding: .23rem .64rem;
    border: 1px solid var(--glass-rim);
    border-radius: 999px;
    background: #fff7f3a3;
    color: var(--accent);
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .105em;
    text-transform: uppercase;
}
.sf-portal-card h1 { font-size: clamp(1.95rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -.05em; text-wrap: balance; }

.sf-portal-form { display: grid; gap: .85rem; margin-top: 1.8rem; }
.sf-portal-field { display: grid; gap: .4rem; }
.sf-portal-field label { font-size: .86rem; font-weight: 800; }
.sf-portal-field small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.sf-portal-field :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: .65rem .85rem;
    border: 1px solid var(--control-border);
    border-radius: .85rem;
    background: #ffffffce;
    box-shadow: inset 0 1px 3px #5b456411;
    color: var(--ink);
    font: inherit;
}
.sf-portal-field :is(input, select, textarea):focus-visible { outline-offset: 2px; }
.sf-portal-field input::placeholder { color: var(--muted); }
.sf-portal-field input[aria-invalid="true"] { border-color: var(--accent); }
.sf-portal-field textarea { resize: vertical; }
.sf-portal-form .sf-button { justify-content: center; min-height: 52px; font-family: inherit; cursor: pointer; }

.sf-portal-footer-inner, .sf-portal-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.sf-portal-footer-inner { justify-content: space-between; min-height: 3.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.sf-portal-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.sf-contact-panel { max-width: 29rem; padding: clamp(1.4rem, 5vw, 2.65rem); }
.sf-business-panel { max-width: 34rem; }
.sf-contact-panel h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); }
.sf-contact-panel .sf-portal-form { margin-top: 1.5rem; }
.sf-contact-account { margin-top: .55rem; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.sf-business-summary {
    margin-top: .9rem;
    padding: .65rem .8rem;
    border: 1px solid var(--glass-rim);
    border-radius: .85rem;
    background: #ffffff85;
    color: var(--muted);
    font-size: .88rem;
    overflow-wrap: anywhere;
}
.sf-business-summary strong { color: var(--ink); }
.sf-business-fields { min-inline-size: 0; margin: .25rem 0 .1rem; padding: .65rem 0 0; border: 0; border-top: 1px solid var(--line); }
.sf-business-fields legend { padding: 0 .65rem 0 0; color: var(--ink); font-size: .84rem; font-weight: 800; }
.sf-contact-fields { display: grid; align-items: start; gap: .85rem; }
.sf-contact-fields .sf-portal-field { min-width: 0; }
@media (min-width: 550px) {
    .sf-contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-contact-fields > :only-child { grid-column: 1 / -1; }
}
.sf-contact-notice { margin-top: 1rem; padding: .65rem .8rem; border-radius: .55rem; font-size: .85rem; }
.sf-contact-notice[role="alert"] { background: var(--accent-soft); color: var(--accent-hover); }
.sf-contact-notice[role="status"] { background: var(--sage-soft); color: var(--sage-ink); }
.sf-contact-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 .35rem;
    margin-top: 1.25rem;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
}
.sf-contact-secondary :is(a, button) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: .22em;
    cursor: pointer;
}
.sf-contact-secondary :is(a, button):hover { color: var(--accent-hover); }
.sf-contact-actions { justify-content: space-between; gap: 0 1rem; }
.sf-billing-panel { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.sf-billing-panel h2 { font-size: 1.25rem; letter-spacing: -.025em; }

@media (prefers-reduced-transparency: reduce) {
    .sf-portal-kicker, .sf-portal-field :is(input, select, textarea) { background: var(--surface); }
}

.sf-workspace-card { display: grid; }
.sf-workspace-content { align-self: center; min-width: 0; padding: clamp(1.5rem, 5vw, 4rem); }
.sf-workspace-intro { margin-top: .62rem; color: var(--muted); font-size: .95rem; }
.sf-workspace-error { color: var(--accent-hover); font-size: .84rem; }
.sf-workspace-help { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.sf-workspace-photo { display: none; }

@media (min-width: 840px) {
    .sf-workspace-card { max-width: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: .5rem; }
    .sf-workspace-photo {
        display: block;
        min-height: 29rem;
        border-radius: calc(var(--radius) - .55rem);
        background: #5d422f url('../images/servefood/table.jpg') 58% center / cover no-repeat;
    }
}

@media (max-width: 480px) {
    .sf-portal .sf-wrap { width: calc(100% - 2rem); }
    .sf-portal .sf-header-inner { min-height: 4rem; gap: .6rem; }
}
.sf-billing-account{max-width:960px!important}.sf-billing-account h1{font-size:clamp(2rem,5vw,3.7rem)!important}.sf-billing-account h2{font-size:1.65rem;letter-spacing:-.05em;line-height:1.2;margin:.8rem 0}.sf-account-overview{display:flex;gap:2rem;align-items:center;justify-content:space-between;padding:1.5rem 0}.sf-account-overview .sf-plan-badge{display:inline-flex}.sf-account-overview h2{font-size:2.5rem}.sf-account-overview p{margin:.4rem 0;color:var(--muted)}.sf-billing-panel{border-top:1px solid #c5bfd77a;padding-top:1.8rem;margin-top:1.8rem}.sf-billing-panel>p{font-size:.95rem;color:var(--muted);line-height:1.7}.sf-recurring-choice{display:flex!important;gap:.7rem;align-items:flex-start;font-size:.85rem!important;line-height:1.6}.sf-recurring-choice input{width:18px!important;min-height:18px!important;flex-shrink:0;margin-top:.25rem}.sf-billing-history{overflow:auto}.sf-billing-history table{width:100%;border-collapse:collapse;font-size:.8rem;text-align:left}.sf-billing-history td,.sf-billing-history th{padding:1rem .6rem;border-bottom:1px solid #d2cde180;white-space:nowrap}.sf-billing-history code{font-size:.7rem}.sf-billing-account button:disabled{opacity:.5;cursor:not-allowed}.sf-portal-form small{color:var(--muted);line-height:1.6}.sf-billing-panel summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;list-style:revert}
@media(max-width:650px){.sf-account-overview{flex-direction:column;align-items:stretch;gap:.6rem}.sf-account-overview .sf-button{width:100%}}
.sf-billing-account{min-width:0;width:min(960px,calc(100% - 2rem));box-sizing:border-box;overflow:hidden}.sf-billing-account .sf-billing-panel,.sf-billing-account .sf-portal-form{min-width:0;max-width:100%}.sf-billing-history{min-width:0;max-width:100%;width:100%;overflow-x:auto}.sf-billing-history td code{overflow-wrap:anywhere}
.sf-workspace-divider{display:flex;align-items:center;gap:1rem;margin:1.2rem 0;color:var(--muted);font-size:.8rem}.sf-workspace-divider::before,.sf-workspace-divider::after{content:"";flex:1;height:1px;background:var(--line)}.sf-email-option{display:flex;width:100%;justify-content:center;min-height:52px;gap:.65rem}.sf-email-option svg{width:19px;height:19px}.sf-workspace-choice{justify-content:space-between!important;white-space:normal}
