/* Shared branded theme for Customer, Admin and Fulfillment. */
:root {
    --workspace-paper: #eff0e8;
    --workspace-surface: #f7f8f2;
    --workspace-ink: #0f1a14;
    --workspace-muted: #4a574f;
    --workspace-accent: #2a6244;
    --workspace-line: rgba(15, 26, 20, .14);
    /* Branded palette for shared components, including body-rendered modals. */
    --panel-font: "Archivo";
    --panel-paper: var(--workspace-paper);
    --panel-inset: #eceee3;
    --panel-surface: var(--workspace-surface);
    --panel-raised: #e1e4d8;
    --panel-hover: #eff0e8;
    --panel-selected: #e1e4d8;
    --panel-ink: var(--workspace-ink);
    --panel-muted: var(--workspace-muted);
    --panel-border-rgb: 15,26,20;
    --panel-primary: #2f6b4a;
    --panel-primary-hover: #2a6244;
    --panel-primary-strong: #1c3a2c;
    --panel-primary-rgb: 47,107,74;
    --panel-primary-channels: 47 107 74;
    --panel-link: var(--workspace-accent);
    --panel-link-rgb: 42,98,68;
}
html.dark {
    --workspace-paper: #101c15;
    --workspace-surface: #192b20;
    --workspace-ink: #eff0e8;
    --workspace-muted: #b4c4b8;
    --workspace-accent: #a2c9ae;
    --workspace-line: rgba(239, 240, 232, .15);
    --panel-paper: var(--workspace-paper);
    --panel-inset: #14221b;
    --panel-surface: var(--workspace-surface);
    --panel-raised: #1d3025;
    --panel-hover: #22372a;
    --panel-selected: #2d4035;
    --panel-ink: var(--workspace-ink);
    --panel-muted: var(--workspace-muted);
    --panel-border-rgb: 239,240,232;
    --panel-link: var(--workspace-accent);
    --panel-link-rgb: 162,201,174;
}
.fi-body { background: var(--workspace-paper) !important; }
.fi-logo::after, .fi-logo span::after,
.fi-sidebar-header .fi-logo span::after { content: none !important; }
:root .fi-logo .bl-wordmark {
    display: inline-block !important;
    font: 900 1.375rem/1.15 "Archivo", ui-sans-serif, system-ui, sans-serif !important;
    font-stretch: 112% !important;
    letter-spacing: -.055em !important;
    color: var(--workspace-accent) !important;
}
.fi-logo .bl-wordmark .bl-wordmark__end {
    display: inline !important;
    position: relative;
    font: inherit !important;
    font-stretch: inherit !important;
    letter-spacing: inherit !important;
    color: inherit !important;
}
.fi-logo .bl-wordmark .bl-wordmark__end::after {
    content: "" !important;
    position: absolute;
    right: 0;
    bottom: -.13em;
    width: .65em;
    height: .08em;
    margin: 0 !important;
    font: inherit !important;
    background: currentColor;
}
html:not(.dark) .fi-sidebar, html:not(.dark) .fi-sidebar-header,
html:not(.dark) .fi-sidebar-nav, html:not(.dark) .fi-topbar > nav { background: #e1e4d8 !important; }
html:not(.dark) .fi-sidebar-item-active .fi-sidebar-item-button { background: #d3d8c9 !important; }
/* .fi-ta is a transparent layout wrapper; .fi-ta-ctn owns the rounded surface. */
html:not(.dark) .fi-section { background: var(--workspace-surface) !important; }
/* Record cards are styled in cards.css. */
.fi-main { padding-inline: clamp(1rem, 3vw, 2.5rem) !important; }
/* Keep the template library switch aligned with the full-width records panel. */
.fi-resource-list-records-page.fi-resource-design-templates .fi-tabs {
    width: 100%;
    min-width: 0;
    margin-inline: 0;
    justify-content: flex-start;
    background: var(--panel-surface);
}
.fi-resource-list-records-page.fi-resource-design-templates .fi-tabs-item {
    flex-shrink: 0;
}
.fi-resource-list-records-page.fi-resource-design-templates .fi-tabs-item-active {
    background: var(--panel-selected);
}
.fi-resource-list-records-page.fi-resource-design-templates .fi-tabs-item:focus-visible {
    outline: 2px solid var(--workspace-accent);
    outline-offset: -2px;
}
.workspace-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.5rem, 3.5vw, 3rem);
    border: 1px solid var(--workspace-line);
    border-radius: 1rem;
    background: var(--workspace-surface);
    color: var(--workspace-ink);
}
.workspace-eyebrow { color: var(--workspace-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace-welcome h2 { margin: .625rem 0 .75rem; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.workspace-welcome p:not(.workspace-eyebrow) { max-width: 38rem; color: var(--workspace-muted); line-height: 1.6; }
.workspace-button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 1.5rem; min-height: 3rem; padding: .75rem 1.25rem; border-radius: .375rem; background: #1c3a2c; color: #eff0e8; font-size: .875rem; font-weight: 600; }
.workspace-button:hover { background: #2a6244; }
/* A storefront's panel is on a center's website: its buttons are that website's brand (the palette of docs/popup-sites.md, section 7.7), not the platform's green. */
.fi-panel-storefront .workspace-button { background: var(--panel-primary); color: #fff; }
.fi-panel-storefront .workspace-button:hover { background: var(--panel-nav-active, var(--panel-primary-hover)); }
.workspace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--workspace-line); border-radius: .75rem; background: var(--workspace-surface); }
.workspace-stats > div { padding: 1.5rem; }
.workspace-stats > div + div { border-left: 1px solid var(--workspace-line); }
.workspace-stats dt { color: var(--workspace-muted); font-size: .8125rem; }
.workspace-stats dd { margin-top: .5rem; color: var(--workspace-ink); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.workspace-section-title { margin-bottom: 1rem; color: var(--workspace-ink); font-size: 1.125rem; font-weight: 700; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workspace-shortcuts > a { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.5rem; border: 1px solid var(--workspace-line); border-radius: .75rem; background: var(--workspace-surface); }
.workspace-shortcuts > a:hover { border-color: var(--workspace-accent); }
.workspace-shortcuts svg { width: 1.5rem; height: 1.5rem; color: var(--workspace-accent); }
.workspace-shortcuts h3 { color: var(--workspace-ink); font-size: 1rem; font-weight: 700; }
.workspace-shortcuts p { flex: 1; color: var(--workspace-muted); font-size: .875rem; line-height: 1.6; }
.workspace-shortcuts > a > span { margin-top: .5rem; color: var(--workspace-accent); font-size: .8125rem; font-weight: 600; }
.workspace-library { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--workspace-line); color: var(--workspace-muted); font-size: .875rem; }
.workspace-library a { flex: none; color: var(--workspace-accent); font-weight: 600; text-underline-offset: .25rem; }
.workspace-button:focus-visible, .workspace-shortcuts > a:focus-visible, .workspace-library a:focus-visible { outline: 2px solid var(--workspace-accent); outline-offset: 4px; }
@media (max-width: 900px) {
    .workspace-welcome { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .workspace-shortcuts { grid-template-columns: 1fr; }
    .workspace-library { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .fi-resource-list-records-page.fi-resource-design-templates .fi-tabs-item {
        gap: .375rem;
        padding-inline: .625rem;
    }
    .fi-resource-list-records-page.fi-resource-design-templates .fi-tabs-item-icon {
        width: 1rem;
        height: 1rem;
    }
    .workspace-stats > div { padding: 1rem .75rem; }
    .workspace-stats dd { font-size: 1.5rem; }
    .workspace-stats dt { font-size: .75rem; }
    .workspace-button { width: 100%; }
}
