.fcto-admin-wrap,
.fcto-portal-shell,
.fcto-portal-card {
    --fcto-bg: #020804;
    --fcto-bg-deep: #010602;
    --fcto-surface: rgba(2, 18, 7, 0.92);
    --fcto-surface-strong: rgba(1, 12, 5, 0.96);
    --fcto-surface-soft: rgba(4, 33, 12, 0.72);
    --fcto-ink: #e7ffed;
    --fcto-muted: #a5d9af;
    --fcto-dim: #6fb980;
    --fcto-line: rgba(68, 255, 124, 0.36);
    --fcto-line-soft: rgba(68, 255, 124, 0.18);
    --fcto-accent: #37ff6b;
    --fcto-accent-deep: #12b941;
    --fcto-signal: #8affad;
    --fcto-warning: #d4ff86;
    --fcto-danger: #ff8f7e;
    --fcto-shadow: 0 18px 48px rgba(0, 255, 76, 0.1);
    --fcto-shadow-soft: 0 10px 28px rgba(0, 255, 76, 0.08);
    color: var(--fcto-ink);
    font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
    letter-spacing: 0;
}

.fcto-admin-wrap {
    max-width: 1200px;
}

.fcto-admin-wrap a,
.fcto-portal-shell a,
.fcto-portal-card a {
    color: var(--fcto-signal);
    text-decoration-color: rgba(138, 255, 173, 0.5);
}

.fcto-subhead {
    max-width: 72ch;
    margin-top: 0;
    color: var(--fcto-muted);
    font-size: 13px;
    line-height: 1.6;
}

.fcto-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.fcto-kpi-card,
.fcto-panel,
.fcto-setup-item,
.fcto-portal-card,
.fcto-mini-card,
.fcto-phone-tree-item,
.fcto-sheet-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--fcto-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(4, 22, 9, 0.96), rgba(1, 10, 4, 0.92)),
        var(--fcto-surface);
    box-shadow: var(--fcto-shadow-soft);
}

.fcto-kpi-card::before,
.fcto-panel::before,
.fcto-setup-item::before,
.fcto-portal-card::before,
.fcto-mini-card::before,
.fcto-sheet-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(231, 255, 237, 0.08);
}

.fcto-kpi-card {
    padding: 14px;
}

.fcto-kpi-label {
    margin: 0 0 7px;
    color: var(--fcto-accent);
    font-size: 11px;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fcto-kpi-value {
    margin: 0;
    color: var(--fcto-ink);
    font-size: clamp(1.45rem, 1.18rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 18px rgba(55, 255, 107, 0.22);
}

.fcto-panel-grid,
.fcto-setup-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.fcto-panel,
.fcto-setup-item,
.fcto-portal-card {
    padding: 16px;
}

.fcto-panel h2,
.fcto-setup-item h2,
.fcto-panel h3,
.fcto-panel h4,
.fcto-portal-card h2 {
    margin-top: 0;
    color: var(--fcto-ink);
    line-height: 1.12;
    text-shadow: 0 0 18px rgba(55, 255, 107, 0.2);
}

.fcto-record-list {
    margin: 0;
    padding-left: 18px;
}

.fcto-record-list li + li {
    margin-top: 10px;
}

.fcto-record-meta {
    display: block;
    margin-top: 2px;
    color: var(--fcto-muted);
    font-size: 12px;
}

.fcto-portal-card {
    margin: 24px 0;
}

.fcto-portal-card--visual {
    display: grid;
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.fcto-portal-card--login:not(.fcto-portal-card--visual) {
    max-width: 760px;
}

.fcto-portal-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--fcto-line);
    border-radius: 8px;
    filter: saturate(0.85) contrast(1.08);
}

.fcto-portal-card-copy > :first-child {
    margin-top: 0;
}

.fcto-portal-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 14px;
    margin: 18px 0 28px;
    padding: 12px;
    border: 1px solid var(--fcto-line);
    border-radius: 10px;
    background:
        radial-gradient(circle at 18% 0%, rgba(55, 255, 107, 0.13), transparent 30%),
        linear-gradient(180deg, rgba(2, 18, 7, 0.7), rgba(1, 8, 3, 0.94));
    box-shadow: var(--fcto-shadow);
    overflow: hidden;
}

.fcto-portal-shell::before {
    content: "THEFAYTH / TEAM OPS / READ THE SIGNAL / KEEP THE RECORD / MOVE THE WORK / ";
    position: absolute;
    top: 0;
    left: 0;
    width: 220%;
    padding: 5px 0;
    color: rgba(55, 255, 107, 0.24);
    font-size: 11px;
    white-space: nowrap;
    transform: translateX(0);
    animation: fctoMatrixTicker 48s linear infinite;
    pointer-events: none;
}

.fcto-portal-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(55, 255, 107, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 255, 107, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.58;
    pointer-events: none;
}

.fcto-portal-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.82fr);
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--fcto-line);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 20%, rgba(55, 255, 107, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(4, 22, 9, 0.94), rgba(1, 10, 4, 0.92));
    box-shadow: var(--fcto-shadow-soft);
}

.fcto-portal-hero h2 {
    max-width: 18ch;
    margin: 0 0 8px;
    color: var(--fcto-ink);
    font-size: clamp(1.7rem, 1.35rem + 1.45vw, 2.75rem);
    line-height: 1.02;
    text-shadow: 0 0 20px rgba(55, 255, 107, 0.24);
}

.fcto-eyebrow {
    margin: 0 0 8px;
    color: var(--fcto-accent);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fcto-hero-copy {
    max-width: 68ch;
    margin: 0;
    color: var(--fcto-muted);
    font-size: 13px;
    line-height: 1.62;
}

.fcto-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fcto-mini-card {
    padding: 13px;
    background: rgba(0, 16, 5, 0.86);
    box-shadow: inset 0 0 16px rgba(55, 255, 107, 0.08);
}

.fcto-mini-card .fcto-kpi-label,
.fcto-mini-card .fcto-kpi-value {
    color: var(--fcto-ink);
}

.fcto-mini-card .fcto-kpi-value {
    font-size: clamp(1.3rem, 1.1rem + 0.65vw, 1.75rem);
}

.fcto-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.fcto-portal-grid--updates {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.fcto-portal-grid--bottom {
    grid-template-columns: minmax(0, 1fr);
}

.fcto-card-head {
    margin-bottom: 13px;
}

.fcto-card-head h3,
.fcto-card-head h4 {
    margin: 0 0 6px;
    font-size: clamp(1rem, 0.92rem + 0.28vw, 1.25rem);
}

.fcto-card-head p,
.fcto-panel > p,
.fcto-portal-card p {
    margin: 0;
    color: var(--fcto-muted);
    font-size: 13px;
    line-height: 1.56;
}

.fcto-portal-form,
.fcto-inline-form {
    display: grid;
    gap: 10px;
}

.fcto-inline-form {
    margin-top: 12px;
}

.fcto-field {
    display: grid;
    gap: 5px;
}

.fcto-field label {
    color: var(--fcto-ink);
    font-size: 12px;
    font-weight: 700;
}

.fcto-field input[type="text"],
.fcto-field input[type="date"],
.fcto-field input[type="file"],
.fcto-field select,
.fcto-field textarea,
.fcto-static-field {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    color: var(--fcto-ink);
    border: 1px solid rgba(55, 255, 107, 0.42);
    border-radius: 6px;
    background: rgba(0, 8, 3, 0.9);
    box-shadow: inset 0 0 14px rgba(55, 255, 107, 0.06);
    font: inherit;
}

.fcto-field textarea {
    min-height: 98px;
    line-height: 1.5;
}

.fcto-field input:focus,
.fcto-field select:focus,
.fcto-field textarea:focus {
    border-color: var(--fcto-accent);
    box-shadow:
        inset 0 0 14px rgba(55, 255, 107, 0.08),
        0 0 0 1px rgba(55, 255, 107, 0.26);
    outline: none;
}

.fcto-static-field {
    display: flex;
    align-items: center;
    color: var(--fcto-muted);
    background: rgba(3, 28, 10, 0.72);
}

.fcto-portal-notice {
    padding: 12px 14px;
    color: var(--fcto-ink);
    border: 1px solid rgba(138, 255, 173, 0.42);
    border-radius: 8px;
    background: rgba(6, 52, 18, 0.82);
    box-shadow: var(--fcto-shadow-soft);
}

.fcto-portal-notice--error {
    color: #ffe5e1;
    border-color: rgba(255, 143, 126, 0.56);
    background: rgba(58, 12, 8, 0.88);
}

.fcto-portal-notice p {
    margin: 0;
}

.fcto-simple-list {
    display: grid;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fcto-simple-list li {
    padding: 10px 0;
}

.fcto-simple-list li + li {
    border-top: 1px solid var(--fcto-line-soft);
}

.fcto-simple-list strong,
.fcto-phone-tree-item strong {
    display: block;
    color: var(--fcto-ink);
    font-size: 13px;
    line-height: 1.4;
}

.fcto-simple-list span,
.fcto-phone-tree-item span {
    display: block;
    margin-top: 2px;
    color: var(--fcto-dim);
    font-size: 12px;
    line-height: 1.45;
}

.fcto-simple-list p,
.fcto-phone-tree-item p {
    margin: 6px 0 0;
    color: var(--fcto-muted);
    font-size: 12px;
    line-height: 1.5;
}

.fcto-phone-tree {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.fcto-phone-tree-item {
    padding: 12px;
    background: rgba(0, 16, 5, 0.82);
}

.fcto-sheet-list {
    display: grid;
    gap: 12px;
}

.fcto-sheet-card {
    padding: 14px;
    background: rgba(0, 16, 5, 0.82);
}

.fcto-sheet-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.fcto-sheet-header h4 {
    margin: 0;
}

.fcto-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    color: var(--fcto-ink);
    font-size: 12px;
}

.fcto-print-table th,
.fcto-print-table td {
    padding: 9px;
    border: 1px solid var(--fcto-line-soft);
    text-align: left;
    vertical-align: top;
}

.fcto-print-table th {
    color: var(--fcto-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fcto-login-panel {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--fcto-line-soft);
}

.fcto-login-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.fcto-google-login-button {
    width: 100% !important;
    gap: 10px;
}

.fcto-google-mark {
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #001506;
    border-radius: 50%;
    background: var(--fcto-accent);
    font-weight: 800;
    line-height: 1;
}

.fcto-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    color: var(--fcto-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fcto-login-divider::before,
.fcto-login-divider::after {
    content: "";
    height: 1px;
    background: var(--fcto-line-soft);
}

.fcto-login-panel #fcto-loginform,
.fcto-login-panel .login-username,
.fcto-login-panel .login-password,
.fcto-login-panel .login-remember,
.fcto-login-panel .login-submit {
    display: grid;
    gap: 6px;
    margin: 0;
}

.fcto-login-panel #fcto-loginform {
    gap: 10px;
}

.fcto-login-panel label {
    color: var(--fcto-ink);
    font-size: 12px;
    font-weight: 700;
}

.fcto-login-panel input[type="text"],
.fcto-login-panel input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    color: var(--fcto-ink);
    border: 1px solid rgba(55, 255, 107, 0.42);
    border-radius: 6px;
    background: rgba(0, 8, 3, 0.9);
    box-shadow: inset 0 0 14px rgba(55, 255, 107, 0.06);
    font: inherit;
}

.fcto-login-panel input[type="text"]:focus,
.fcto-login-panel input[type="password"]:focus {
    border-color: var(--fcto-accent);
    box-shadow:
        inset 0 0 14px rgba(55, 255, 107, 0.08),
        0 0 0 1px rgba(55, 255, 107, 0.26);
    outline: none;
}

.fcto-login-panel .login-remember label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--fcto-muted);
}

.fcto-login-help {
    margin-top: 12px;
    font-size: 12px;
}

.fcto-admin-wrap .button,
.fcto-admin-wrap .button-primary,
.fcto-portal-shell .button,
.fcto-portal-shell .button-primary,
.fcto-portal-card .button,
.fcto-portal-card .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    color: var(--fcto-ink);
    border: 1px solid rgba(55, 255, 107, 0.52);
    border-radius: 999px;
    background: rgba(0, 16, 5, 0.86);
    box-shadow: inset 0 0 16px rgba(55, 255, 107, 0.1);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-shadow: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.fcto-admin-wrap .button:hover,
.fcto-admin-wrap .button:focus,
.fcto-admin-wrap .button-primary:hover,
.fcto-admin-wrap .button-primary:focus,
.fcto-portal-shell .button:hover,
.fcto-portal-shell .button:focus-visible,
.fcto-portal-shell .button-primary:hover,
.fcto-portal-shell .button-primary:focus-visible,
.fcto-portal-card .button:hover,
.fcto-portal-card .button:focus-visible,
.fcto-portal-card .button-primary:hover,
.fcto-portal-card .button-primary:focus-visible {
    color: #001506;
    border-color: var(--fcto-accent);
    background: var(--fcto-accent);
    transform: translateY(-1px);
}

.fcto-admin-wrap .button:active,
.fcto-admin-wrap .button-primary:active,
.fcto-portal-shell .button:active,
.fcto-portal-shell .button-primary:active,
.fcto-portal-card .button:active,
.fcto-portal-card .button-primary:active {
    transform: translateY(0);
}

body.login {
    --fcto-bg: #020804;
    --fcto-surface: rgba(2, 18, 7, 0.92);
    --fcto-surface-strong: rgba(1, 12, 5, 0.96);
    --fcto-ink: #e7ffed;
    --fcto-muted: #a5d9af;
    --fcto-line: rgba(68, 255, 124, 0.36);
    --fcto-line-soft: rgba(68, 255, 124, 0.18);
    --fcto-accent: #37ff6b;
    --fcto-signal: #8affad;
    --fcto-danger: #ff8f7e;
    min-height: 100dvh;
    color: var(--fcto-ink);
    background: #020804;
    font-family: "Cascadia Code", "Consolas", "Courier New", monospace;
    text-shadow: 0 0 12px rgba(55, 255, 107, 0.14);
}

body.login::before,
body.login::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body.login::before {
    background-image:
        linear-gradient(rgba(55, 255, 107, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 255, 107, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
}

body.login::after {
    background:
        radial-gradient(circle at 50% 8%, rgba(55, 255, 107, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(0, 8, 3, 0.18), rgba(0, 8, 3, 0.72));
}

body.login #login {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 32px));
    padding: clamp(42px, 8vh, 88px) 0 36px;
}

body.login h1 a {
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0 0 18px;
    color: var(--fcto-ink);
    background: none;
    background-image: none;
    font-size: 0;
    line-height: 1;
    text-indent: 0;
    text-decoration: none;
}

body.login h1 a::before {
    content: "THEFAYTH";
    display: block;
    color: var(--fcto-ink);
    font-size: clamp(2rem, 1.55rem + 2vw, 3rem);
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 0 20px rgba(55, 255, 107, 0.26);
}

body.login h1 a::after {
    content: "TEAM OPS";
    display: block;
    margin-top: 8px;
    color: var(--fcto-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

body.login .fcto-login-signal,
body.login .fcto-login-actions,
body.login .message,
body.login .success,
body.login #login_error,
body.login form {
    position: relative;
    overflow: hidden;
    color: var(--fcto-muted);
    border: 1px solid var(--fcto-line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(4, 22, 9, 0.96), rgba(1, 10, 4, 0.92)),
        var(--fcto-surface);
    box-shadow: 0 10px 28px rgba(0, 255, 76, 0.08);
}

body.login .fcto-login-signal,
body.login .fcto-login-actions,
body.login .message,
body.login .success,
body.login #login_error {
    margin: 0 0 12px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
}

body.login #login_error {
    color: #ffe5e1;
    border-color: rgba(255, 143, 126, 0.56);
    background: rgba(58, 12, 8, 0.88);
}

body.login form {
    display: grid;
    gap: 12px;
    margin-top: 0;
    padding: 18px;
}

body.login label {
    color: var(--fcto-ink);
    font-size: 12px;
    font-weight: 700;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    width: 100%;
    min-height: 42px;
    margin: 5px 0 0;
    padding: 9px 10px;
    color: var(--fcto-ink);
    border: 1px solid rgba(55, 255, 107, 0.42);
    border-radius: 6px;
    background: rgba(0, 8, 3, 0.9);
    box-shadow: inset 0 0 14px rgba(55, 255, 107, 0.06);
    font: inherit;
    font-size: 16px;
}

body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: var(--fcto-accent);
    box-shadow:
        inset 0 0 14px rgba(55, 255, 107, 0.08),
        0 0 0 1px rgba(55, 255, 107, 0.26);
    outline: none;
}

body.login .forgetmenot {
    display: flex;
    align-items: center;
    min-height: 32px;
}

body.login .submit {
    margin: 0;
}

body.login .button.wp-hide-pw {
    color: var(--fcto-signal);
}

body.login .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    color: var(--fcto-ink);
    border: 1px solid rgba(55, 255, 107, 0.52);
    border-radius: 999px;
    background: rgba(0, 16, 5, 0.86);
    box-shadow: inset 0 0 16px rgba(55, 255, 107, 0.1);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
    color: #001506;
    border-color: var(--fcto-accent);
    background: var(--fcto-accent);
    transform: translateY(-1px);
}

body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link {
    color: var(--fcto-muted);
    font-size: 12px;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
    color: var(--fcto-signal);
    text-decoration-color: rgba(138, 255, 173, 0.5);
}

@keyframes fctoMatrixTicker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 782px) {
    .fcto-portal-shell {
        padding: 10px;
    }

    .fcto-portal-hero,
    .fcto-portal-card--visual {
        grid-template-columns: 1fr;
    }

    .fcto-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fcto-sheet-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .fcto-quick-grid,
    .fcto-kpi-grid,
    .fcto-portal-grid,
    .fcto-portal-grid--updates {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fcto-portal-shell::before {
        animation: none;
    }

    .fcto-admin-wrap .button,
    .fcto-admin-wrap .button-primary,
    .fcto-portal-shell .button,
    .fcto-portal-shell .button-primary,
    .fcto-portal-card .button,
    .fcto-portal-card .button-primary,
    body.login .button-primary {
        transition: none;
    }

    .fcto-portal-shell::before,
    .fcto-login-divider::before,
    .fcto-login-divider::after {
        animation: none;
    }
}

@media print {
    .fcto-portal-shell,
    .fcto-admin-wrap,
    .fcto-portal-card {
        color: #111;
        background: #fff;
        box-shadow: none;
        text-shadow: none;
    }

    .fcto-portal-hero,
    .fcto-portal-form,
    .fcto-portal-notice,
    .button {
        display: none !important;
    }

    .fcto-panel,
    .fcto-sheet-card {
        color: #111;
        border-color: #111;
        background: #fff;
        box-shadow: none;
    }
}
