/* Misprise forecast desk + full-viewport terminal. Monochrome. 2px frames. */

.msp-fc-boot,
.fc-desk,
.fc-term,
.fc-desk *,
.fc-term *,
.fc-desk *::before,
.fc-term *::before,
.fc-desk *::after,
.fc-term *::after {
    box-sizing: border-box;
}

html.msp-fc-page body,
body.msp-fc-page {
    background: #fff;
}

html.msp-fc-page .entry-header,
body.msp-fc-page .entry-header,
html.msp-fc-page h1.entry-title,
body.msp-fc-page h1.entry-title,
html.msp-fc-page .wp-block-post-title,
body.msp-fc-page h1.wp-block-post-title {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
}

body.msp-fc-page #site-content,
body.msp-fc-page .entry-content,
body.msp-fc-page .post-inner,
body.msp-fc-page #site-content .section-inner,
body.msp-fc-page #site-content .thin {
    max-width: none !important;
    width: 100% !important;
    overflow-x: clip;
    background: #fff !important;
}

.entry-content:has(.msp-fc-boot),
.post-inner:has(.msp-fc-boot),
#site-content:has(.msp-fc-boot) {
    max-width: none !important;
    width: 100% !important;
    overflow-x: clip;
    background: #fff !important;
}

.msp-fc-boot {
    display: block !important;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2.5vw, 28px) 48px;
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
}

.fc-desk {
    width: 100%;
}

.fc-mast {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    margin: 0 0 18px;
    padding: 22px 22px 18px;
    background: #0a0a0a;
    color: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 2px;
}

.fc-eyebrow,
.fc-kicker {
    margin: 0 0 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.fc-mast .fc-eyebrow {
    color: #a1a1aa;
}

.fc-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.fc-sub,
.fc-lede {
    margin: 0;
    max-width: 46rem;
    font-size: 14px;
    line-height: 1.55;
    color: #d4d4d8;
}

.fc-lede {
    color: #3f3f46;
}

.fc-desk .msp-desk-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.fc-desk .msp-desk-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    border-radius: 2px;
}

.fc-desk .msp-desk-nav a:hover,
.fc-desk .msp-desk-nav a:focus-visible {
    background: #fff !important;
    color: #0a0a0a !important;
    border-color: #fff !important;
}

.fc-mast-right {
    text-align: right;
}

.fc-mast-mark {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.fc-mast-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
}

.fc-h2 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

.fc-launch,
.fc-sample,
.fc-method,
.fc-faq {
    margin: 0 0 16px;
    padding: 16px;
    background: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 2px;
}

.fc-launch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.fc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid #0a0a0a;
    border-radius: 2px;
    background: #fff;
    color: #0a0a0a;
    cursor: pointer;
}

.fc-btn--solid {
    background: #0a0a0a;
    color: #fff;
}

.fc-btn--ghost {
    background: #fff;
}

.fc-btn--mini {
    min-height: 34px;
    padding: 0 10px;
}

.fc-btn--wide {
    width: 100%;
}

.fc-btn:hover,
.fc-btn:focus-visible {
    background: #e4e4e7;
    color: #0a0a0a;
}

.fc-btn--solid:hover,
.fc-btn--solid:focus-visible {
    background: #27272a;
    color: #fff;
}

.fc-session-chip {
    margin: 12px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #52525b;
}

.fc-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
    border: 1px solid #0a0a0a;
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fc-table th,
.fc-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e4e4e7;
    white-space: nowrap;
}

.fc-table th {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    background: #fafafa;
}

.fc-table a {
    color: #0a0a0a;
    font-weight: 800;
    text-decoration: none;
}

.fc-table a:hover {
    text-decoration: underline;
}

.fc-table--compact th,
.fc-table--compact td {
    padding: 6px 8px;
    font-size: 12px;
}

.fc-table--compact .fc-co {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #3f3f46;
}

.fc-table--compact .fc-score {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
}

.fc-press {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.fc-press.is-empty {
    color: #71717a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fc-press-meta {
    font-size: 11px;
    font-weight: 600;
    color: #3f3f46;
    white-space: nowrap;
}

.fc-press-bar {
    display: block;
    height: 4px;
    background: #e4e4e7;
    border-radius: 0;
}

.fc-press-bar > span {
    display: block;
    height: 100%;
    background: #0a0a0a;
}

@media (max-width: 640px) {
    .fc-table--compact .fc-co {
        max-width: 120px;
    }
}
    text-decoration: underline;
}

.fc-spark {
    display: block;
}

.fc-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #27272a;
}

.fc-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #52525b;
}

.fc-faq-list {
    margin: 12px 0 0;
}

.fc-faq-item {
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e4e4e7;
}

.fc-faq-item dt {
    font-weight: 800;
    font-size: 14px;
    margin: 0 0 4px;
}

.fc-faq-item dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #3f3f46;
}

/* Full-desktop terminal — covers WP header, admin bar, theme chrome. */
body.msp-fc-lock,
html.msp-fc-lock {
    overflow: hidden !important;
    height: 100% !important;
}

.fc-term {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0a0a0a;
    color: #fafafa;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    flex-direction: column;
}

.fc-term.is-open {
    display: flex !important;
}

#msp-fc-term .fc-term-grid h1,
#msp-fc-term .fc-term-grid h2,
#msp-fc-term .fc-term-grid h3,
#msp-fc-term .fc-term-grid h4,
#msp-fc-term .fc-term-grid p,
#msp-fc-term .fc-term-grid article,
#msp-fc-term .fc-term-grid table,
#msp-fc-term .fc-term-grid th,
#msp-fc-term .fc-term-grid td {
    margin: 0;
    padding: 0;
    max-width: none;
    float: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.fc-term-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 44px;
    padding: 0 12px;
    border-bottom: 2px solid #27272a;
    background: #0a0a0a;
}

.fc-term-id {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fc-term-dot {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #22c55e;
    flex: 0 0 8px;
}

.fc-term-title {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-term-exit {
    min-height: 28px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: #fafafa;
    border: 2px solid #fafafa;
    border-radius: 2px;
    cursor: pointer;
}

.fc-term-exit:hover,
.fc-term-exit:focus-visible {
    background: #e4e4e7;
}

.fc-term-body {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.fc-term-side {
    display: flex;
    flex-direction: column;
    padding: 14px 12px 18px;
    border-right: 2px solid #27272a;
    overflow: auto;
    background: #111;
    min-height: 0;
}

.fc-term-main {
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    overflow: auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    background: #0a0a0a;
}

.fc-label {
    display: block;
    margin: 12px 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.fc-label:first-child {
    margin-top: 0;
}

#msp-fc-term .fc-filters {
    margin: 10px 0 0;
    padding: 10px 0 0;
    border: 0;
    border-top: 2px solid #27272a;
    min-width: 0;
}

#msp-fc-term .fc-filters .fc-input,
#msp-fc-term .fc-filters .fc-select {
    width: 100%;
    margin: 0 0 8px;
}

#msp-fc-term .fc-filter-meta {
    margin: 6px 0 0;
    font-size: 11px;
    color: #a1a1aa;
}

#msp-fc-term .fc-filter-hits {
    margin-top: 8px;
    max-height: 220px;
    overflow: auto;
    border: 2px solid #27272a;
    background: #0a0a0a;
}

#msp-fc-term .fc-filter-hits:empty {
    display: none;
}

#msp-fc-term .fc-filter-hit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 8px 8px;
    border: 0;
    border-bottom: 1px solid #27272a;
    background: transparent;
    color: #fafafa;
    text-align: left;
    cursor: pointer;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
}

#msp-fc-term .fc-filter-hit:last-child {
    border-bottom: 0;
}

#msp-fc-term .fc-filter-hit:hover,
#msp-fc-term .fc-filter-hit.is-on {
    background: #18181b;
}

#msp-fc-term .fc-filter-hit .tk {
    font-weight: 800;
    letter-spacing: 0.04em;
}

#msp-fc-term .fc-filter-hit .co {
    display: block;
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#msp-fc-term .fc-filter-hit .sc {
    font-weight: 800;
    color: #d4d4d8;
}

#msp-fc-term .fc-blot-x {
    flex: 0 0 auto;
    border: 2px solid #3f3f46;
    background: #0a0a0a;
    color: #fafafa;
    cursor: pointer;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    border-radius: 2px;
}

#msp-fc-term .fc-blot-x:hover {
    background: #fafafa;
    color: #0a0a0a;
    border-color: #fafafa;
}

.fc-search-wrap {
    position: relative;
    z-index: 30;
}

.fc-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
    align-items: stretch;
}

#msp-fc-term .fc-search #msp-fc-q {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    line-height: 34px !important;
}

#msp-fc-term #msp-fc-add,
#msp-fc-term .fc-search .fc-btn {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto !important;
    min-width: 4.75rem;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    margin: 0;
    font-family: Inter, system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1 !important;
    text-transform: uppercase;
    white-space: nowrap !important;
    overflow: visible;
    color: #0a0a0a !important;
    background: #fafafa !important;
    border: 2px solid #fafafa !important;
    border-radius: 2px;
}

#msp-fc-term #msp-fc-add:hover,
#msp-fc-term #msp-fc-add:focus-visible,
#msp-fc-term .fc-search .fc-btn:hover,
#msp-fc-term .fc-search .fc-btn:focus-visible {
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    border-color: #fafafa !important;
}

.fc-term,
.fc-term input,
.fc-term select,
.fc-term textarea,
.fc-term button {
    color-scheme: dark;
}

#msp-fc-term input.fc-input,
#msp-fc-term select.fc-input,
#msp-fc-term textarea.fc-input,
#msp-fc-term input[type="text"],
#msp-fc-term input[type="search"],
#msp-fc-term select {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    line-height: 34px;
    color: #fafafa !important;
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    border: 2px solid #a1a1aa !important;
    border-radius: 2px;
    box-shadow: none !important;
    caret-color: #fafafa !important;
    -webkit-text-fill-color: #fafafa !important;
    opacity: 1 !important;
    filter: none !important;
}

#msp-fc-term input.fc-input:focus,
#msp-fc-term select.fc-input:focus,
#msp-fc-term input[type="text"]:focus,
#msp-fc-term select:focus {
    outline: 2px solid #fafafa !important;
    outline-offset: 0;
    border-color: #fafafa !important;
    color: #fafafa !important;
    background: #0a0a0a !important;
    -webkit-text-fill-color: #fafafa !important;
}

#msp-fc-term input.fc-input::placeholder,
#msp-fc-term input[type="text"]::placeholder {
    color: #a1a1aa !important;
    -webkit-text-fill-color: #a1a1aa !important;
    opacity: 1 !important;
}

#msp-fc-term input.fc-input:-webkit-autofill,
#msp-fc-term input.fc-input:-webkit-autofill:hover,
#msp-fc-term input.fc-input:-webkit-autofill:focus,
#msp-fc-term input[type="text"]:-webkit-autofill,
#msp-fc-term input[type="text"]:-webkit-autofill:hover,
#msp-fc-term input[type="text"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #fafafa !important;
    caret-color: #fafafa !important;
    box-shadow: 0 0 0 1000px #0a0a0a inset !important;
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
    background-color: #0a0a0a !important;
    transition: background-color 99999s ease-out;
}

#msp-fc-term select.fc-input option,
#msp-fc-term select option {
    color: #fafafa;
    background: #0a0a0a;
}

.fc-term .fc-btn {
    border-color: #fafafa;
}

.fc-term .fc-btn--solid {
    background: #fafafa;
    color: #0a0a0a;
    border-color: #fafafa;
}

.fc-term .fc-btn--ghost {
    background: transparent;
    color: #fafafa;
}

.fc-term .fc-btn--ghost:hover,
.fc-term .fc-btn:hover {
    background: #27272a;
    color: #fafafa;
}

.fc-term .fc-btn--solid:hover {
    background: #e4e4e7;
    color: #0a0a0a;
}

.fc-suggest {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 2px solid #fafafa;
    background: #0a0a0a;
    max-height: min(320px, 46vh);
    overflow: auto;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.fc-suggest[hidden] {
    display: none !important;
}

.fc-suggest li {
    margin: 0;
}

.fc-suggest button {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 36px;
    width: 100%;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    text-align: left;
    font-family: inherit;
    font-size: 12px;
    color: #fafafa;
    background: #0a0a0a;
    border: 0;
    border-bottom: 1px solid #27272a;
    cursor: pointer;
}

.fc-suggest button:last-child {
    border-bottom: 0;
}

.fc-suggest button:hover,
.fc-suggest button:focus-visible,
.fc-suggest button.is-on {
    background: #fafafa;
    color: #0a0a0a;
}

.fc-suggest button:hover .co,
.fc-suggest button.is-on .co,
.fc-suggest button:hover .sc,
.fc-suggest button.is-on .sc {
    color: #52525b;
}

.fc-suggest .tk {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fc-suggest .co {
    color: #a1a1aa;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-suggest .sc {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #a1a1aa;
    text-align: right;
}

.fc-suggest mark {
    background: transparent;
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fc-chips {
    display: block;
    margin: 0;
    min-height: 0;
}

.fc-side-book {
    margin-top: auto;
    padding-top: 14px;
}

.fc-side-book > .fc-label {
    margin-top: 0;
}

.fc-book-empty {
    margin: 0;
    font-size: 12px;
    color: #71717a;
}

#msp-fc-term .fc-book {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
}

#msp-fc-term .fc-book th,
#msp-fc-term .fc-book td {
    padding: 7px 8px;
    text-align: left;
    border-bottom: 1px solid #27272a;
    color: #fafafa;
    background: #0a0a0a;
}

#msp-fc-term .fc-book th {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a1a1aa;
}

#msp-fc-term .fc-book td:last-child,
#msp-fc-term .fc-book th:last-child {
    width: 44px;
    text-align: right;
    padding-right: 6px;
}

#msp-fc-term .fc-book button {
    border: 0;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

#msp-fc-term .fc-book button:hover {
    color: #fafafa;
}

.fc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 8px 0 10px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #0a0a0a;
    background: #fafafa;
    border-radius: 2px;
}

.fc-chip button {
    border: 0;
    background: transparent;
    color: #52525b;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.fc-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.fc-seg-btn {
    min-height: 32px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1aa;
    background: #0a0a0a;
    border: 2px solid #3f3f46;
    border-radius: 2px;
    cursor: pointer;
}

.fc-seg-btn.is-on {
    color: #0a0a0a;
    background: #fafafa;
    border-color: #fafafa;
}

.fc-side-row {
    margin-top: 10px;
}

.fc-side-note {
    margin: 12px 0 0;
    font-size: 11px;
    line-height: 1.45;
    color: #71717a;
}

.fc-term-status {
    flex: 0 0 auto;
    margin: 0 0 14px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.45;
    color: #a1a1aa;
}

#msp-fc-term .fc-term-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(0, 1fr);
    gap: 12px;
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 0;
    overflow: auto;
}

#msp-fc-term .fc-term-grid[data-n="2"],
#msp-fc-term .fc-term-grid[data-n="3"],
#msp-fc-term .fc-term-grid[data-n="4"],
#msp-fc-term .fc-term-grid[data-n="5"],
#msp-fc-term .fc-term-grid[data-n="6"],
#msp-fc-term .fc-term-grid[data-n="7"],
#msp-fc-term .fc-term-grid[data-n="8"] {
    grid-template-columns: 1fr 1fr;
}

#msp-fc-term .fc-term-grid[data-n="3"],
#msp-fc-term .fc-term-grid[data-n="4"] {
    grid-template-rows: 1fr 1fr;
}

#msp-fc-term .fc-term-grid[data-n="5"],
#msp-fc-term .fc-term-grid[data-n="6"],
#msp-fc-term .fc-term-grid[data-n="7"],
#msp-fc-term .fc-term-grid[data-n="8"] {
    grid-auto-rows: minmax(300px, 1fr);
}

#msp-fc-term .fc-blot,
#msp-fc-term .fc-card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0;
    height: auto;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 2px solid #3f3f46 !important;
    border-radius: 2px;
    background: #111 !important;
    box-shadow: none !important;
}

#msp-fc-term .fc-blot-head,
#msp-fc-term .fc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    padding: 16px 20px;
    border-bottom: 1px solid #27272a;
}

#msp-fc-term .fc-blot-tk,
#msp-fc-term .fc-card-tk {
    display: block;
    margin: 0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    color: #fafafa;
}

#msp-fc-term .fc-blot-tk a,
#msp-fc-term .fc-card-tk a {
    color: #fafafa;
    text-decoration: none;
}

#msp-fc-term .fc-blot-tk a:hover,
#msp-fc-term .fc-card-tk a:hover {
    text-decoration: underline;
}

#msp-fc-term .fc-blot-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

#msp-fc-term .fc-blot-co,
#msp-fc-term .fc-card-co {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.3;
    color: #d4d4d8;
}

#msp-fc-term .fc-blot-scen,
#msp-fc-term .fc-card-scen {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0a0a0a;
    background: #fafafa;
    border-radius: 2px;
}

#msp-fc-term .fc-blot-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex: 0 0 auto;
    border-bottom: 1px solid #27272a;
}

#msp-fc-term .fc-fact {
    min-height: 84px;
    padding: 14px 16px;
    border-right: 1px solid #27272a;
    background: #0a0a0a;
}

#msp-fc-term .fc-fact:last-child {
    border-right: 0;
}

#msp-fc-term .fc-fact-k {
    display: block;
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a1a1aa;
}

#msp-fc-term .fc-fact-v {
    display: block;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 22px;
    font-weight: 700;
    color: #fafafa;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

#msp-fc-term .fc-blot-sheet {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 4px 8px;
    overflow: auto;
}

#msp-fc-term .fc-hist th,
#msp-fc-term .fc-hist td {
    height: 112px;
    vertical-align: bottom !important;
    padding: 10px 12px 8px !important;
    border-bottom: 1px solid #27272a !important;
}

#msp-fc-term .fc-hist .fc-bar-col {
    display: block;
    width: 100%;
    height: calc(var(--h, 0.2) * 96px);
    min-height: 6px;
    background: #fafafa;
}

#msp-fc-term .fc-sheet,
#msp-fc-term .fc-path {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    color: #fafafa;
    background: transparent !important;
}

#msp-fc-term .fc-sheet th,
#msp-fc-term .fc-sheet td,
#msp-fc-term .fc-path th,
#msp-fc-term .fc-path td {
    padding: 14px 12px !important;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
    border: 0 !important;
    border-bottom: 1px solid #27272a !important;
    background: transparent !important;
    color: inherit;
}

#msp-fc-term .fc-sheet thead th,
#msp-fc-term .fc-path thead th {
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#msp-fc-term .fc-sheet th:first-child,
#msp-fc-term .fc-sheet td:first-child,
#msp-fc-term .fc-path th:first-child,
#msp-fc-term .fc-path td:first-child {
    width: 124px;
    text-align: left;
    color: #a1a1aa;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#msp-fc-term .fc-sheet tbody tr:last-child th,
#msp-fc-term .fc-sheet tbody tr:last-child td {
    border-bottom: 0 !important;
}

#msp-fc-term .fc-sheet .fc-hist th,
#msp-fc-term .fc-sheet .fc-hist td {
    height: 112px;
    vertical-align: bottom !important;
    padding: 10px 12px 8px !important;
}

#msp-fc-term .fc-up {
    color: #4ade80;
}

#msp-fc-term .fc-dn {
    color: #f87171;
}

#msp-fc-term .fc-term-grid.is-multi .fc-blot-head {
    padding: 10px 12px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-blot-tk,
#msp-fc-term .fc-term-grid.is-multi .fc-card-tk {
    font-size: 20px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-blot-co,
#msp-fc-term .fc-term-grid.is-multi .fc-card-co {
    margin-top: 4px;
    font-size: 12px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-blot-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#msp-fc-term .fc-term-grid.is-multi .fc-fact {
    min-height: 62px;
    padding: 8px 10px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-fact:nth-child(3n) {
    border-right: 0;
}

#msp-fc-term .fc-term-grid.is-multi .fc-fact:nth-child(n+4) {
    border-top: 1px solid #27272a;
}

#msp-fc-term .fc-term-grid.is-multi .fc-fact-v {
    font-size: 16px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-sheet {
    font-size: 12px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-sheet th,
#msp-fc-term .fc-term-grid.is-multi .fc-sheet td {
    padding: 8px 8px !important;
}

#msp-fc-term .fc-term-grid.is-multi .fc-sheet th:first-child,
#msp-fc-term .fc-term-grid.is-multi .fc-sheet td:first-child {
    width: 92px;
    font-size: 10px;
}

#msp-fc-term .fc-term-grid.is-multi .fc-sheet .fc-hist th,
#msp-fc-term .fc-term-grid.is-multi .fc-sheet .fc-hist td {
    height: 72px;
    padding: 6px 8px 4px !important;
}

#msp-fc-term .fc-term-grid.is-multi .fc-hist .fc-bar-col {
    height: calc(var(--h, 0.2) * 56px);
}

@media (max-width: 1200px) {
    #msp-fc-term .fc-blot-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #msp-fc-term .fc-fact:nth-child(3n) {
        border-right: 0;
    }

    #msp-fc-term .fc-fact:nth-child(n+4) {
        border-top: 1px solid #27272a;
    }
}

@media (max-width: 820px) {
    .fc-mast {
        grid-template-columns: 1fr;
    }

    .fc-mast-right {
        text-align: left;
    }

    .fc-term-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .fc-term-side {
        border-right: 0;
        border-bottom: 2px solid #27272a;
        max-height: 42vh;
    }

    #msp-fc-term .fc-blot,
    #msp-fc-term .fc-card {
        min-height: 0;
    }

    #msp-fc-term .fc-term-grid[data-n="2"],
    #msp-fc-term .fc-term-grid[data-n="3"],
    #msp-fc-term .fc-term-grid[data-n="4"],
    #msp-fc-term .fc-term-grid[data-n="5"],
    #msp-fc-term .fc-term-grid[data-n="6"],
    #msp-fc-term .fc-term-grid[data-n="7"],
    #msp-fc-term .fc-term-grid[data-n="8"] {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: minmax(280px, auto);
    }

    #msp-fc-term .fc-blot-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #msp-fc-term .fc-fact {
        border-right: 1px solid #27272a;
    }

    #msp-fc-term .fc-fact:nth-child(2n) {
        border-right: 0;
    }

    #msp-fc-term .fc-fact:nth-child(n+3) {
        border-top: 1px solid #27272a;
    }

    #msp-fc-term .fc-sheet {
        min-width: 560px !important;
        table-layout: auto;
    }
}
