.ftm-auth,
.ftm-portal {
    width: min(1420px, calc(100vw - 64px));
    margin: 48px auto;
}

body:not(.ftm-admin-page)::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("/assets/logo/FalconTaekwondoAcademy2.png");
    background-repeat: no-repeat;
    background-position: center 54%;
    background-size: min(58vw, 720px);
    opacity: 0.055;
    content: "";
}

body:not(.ftm-admin-page) > * {
    position: relative;
    z-index: 1;
}

body.ftm-front-page .wp-block-post-title,
body:has(.ftm-home) .wp-block-post-title,
body:has(.ftm-portal) .wp-block-post-title,
body:has(.ftm-auth) .wp-block-post-title {
    width: min(1420px, calc(100vw - 64px));
    max-width: 1420px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: left;
}

body.ftm-front-page .wp-block-post-content,
body:has(.ftm-home) .wp-block-post-content,
body:has(.ftm-portal) .wp-block-post-content,
body:has(.ftm-auth) .wp-block-post-content {
    max-width: none !important;
}

.ftm-auth {
    width: min(1080px, calc(100vw - 64px));
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: clamp(40px, 8vw, 96px);
}

.ftm-auth-logo {
    width: 86px;
    height: auto;
}

.ftm-auth-panel,
.ftm-notice {
    width: min(520px, 100%);
    padding: 24px;
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #fff;
}

.ftm-auth-panel {
    padding: clamp(24px, 4vw, 36px);
    border-color: #d9e2ec;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ftm-about {
    display: grid;
    gap: 28px;
}

.ftm-about-hero,
.ftm-about-content {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.ftm-about-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    padding: clamp(28px, 5vw, 52px);
}

.ftm-about-logo {
    width: clamp(120px, 16vw, 210px);
    height: auto;
}

.ftm-about-hero span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #00679e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ftm-about-hero h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.ftm-about-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: #486581;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.ftm-about-content {
    padding: clamp(28px, 4vw, 48px);
    color: #243b53;
    font-size: 1.08rem;
    line-height: 1.75;
}

.ftm-about-content h2 {
    margin: 0 0 10px;
    color: #102a43;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.ftm-about-content p + h2 {
    margin-top: 28px;
}

.ftm-login-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(520px, 100%);
    margin-bottom: 0;
}

.ftm-choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #b8c1cc;
    border-radius: 6px;
    color: #1f2933;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.ftm-choice.is-active {
    border-color: #0f5f8c;
    background: #0f5f8c;
    color: #fff;
}

.wp-block-navigation-item:has(a[href*="/my-account"]) {
    display: none;
}

.ftm-account-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ftm-account-menu__trigger {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
}

.ftm-account-menu__trigger svg {
    width: 28px;
    height: 28px;
}

.ftm-account-menu__trigger:hover,
.ftm-account-menu:focus-within .ftm-account-menu__trigger {
    background: #f1f5f9;
}

.ftm-account-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 100;
    width: 260px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.ftm-account-menu:hover .ftm-account-menu__panel,
.ftm-account-menu:focus-within .ftm-account-menu__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ftm-account-menu__panel::before {
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    border-top: 1px solid #d9e2ec;
    border-left: 1px solid #d9e2ec;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.ftm-account-menu__profile {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f6;
}

.ftm-account-menu__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
}

.ftm-account-menu__profile strong {
    display: block;
    overflow: hidden;
    color: #102a43;
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ftm-account-menu__profile span {
    display: block;
    margin-top: 4px;
    color: #627d98;
    font-size: 13px;
    line-height: 1.35;
}

.ftm-account-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
}

.ftm-account-menu__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #102a43;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ftm-account-menu__actions a:last-child {
    background: #fff1f2;
    color: #be123c;
}

.ftm-account-menu__actions a:hover {
    filter: brightness(0.97);
}

.ftm-mode-switch__link {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.45rem 0.85rem !important;
    font-weight: 700;
    color: #0f2a44 !important;
    background: #ffffff;
}

.ftm-mode-switch__link:hover {
    border-color: #0f6f9f;
    color: #0f6f9f !important;
}

.ftm-auth-panel h1,
.ftm-portal-header h1 {
    margin-top: 0;
}

.ftm-portal-hero {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ftm-portal-logo {
    width: 110px;
    max-width: 100%;
    height: auto;
}

.ftm-portal-hero p,
.ftm-portal-hero h1,
.ftm-portal-hero span {
    margin: 0;
}

.ftm-portal-hero p {
    color: #0f5f8c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ftm-portal-hero h1 {
    margin-top: 8px;
    color: #102a43;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.ftm-portal-hero span {
    display: block;
    margin-top: 12px;
    color: #52616f;
    font-size: 17px;
}

.ftm-portal-admin-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.ftm-portal-admin-note strong,
.ftm-portal-admin-note span {
    display: block;
}

.ftm-portal-admin-note strong {
    color: #102a43;
}

.ftm-portal-admin-note span {
    color: #52616f;
}

.ftm-portal-admin-note .ftm-button {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.ftm-portal-section {
    margin-top: 28px;
}

.ftm-portal-section__header {
    margin-bottom: 16px;
}

.ftm-portal-section__header h2 {
    margin: 0 0 6px;
    color: #102a43;
    font-size: 28px;
}

.ftm-portal-section__header p {
    margin: 0;
    color: #52616f;
}

.ftm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ftm-news-card {
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ftm-news-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #f8fafc;
}

.ftm-news-card div {
    padding: 16px;
}

.ftm-news-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #0f5f8c;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ftm-news-card h3 {
    margin: 0 0 8px;
    color: #102a43;
    font-size: 20px;
    line-height: 1.25;
}

.ftm-news-card p {
    margin: 0 0 14px;
    color: #52616f;
    font-size: 14px;
    line-height: 1.5;
}

.ftm-news-card a,
.ftm-schedule-item a {
    color: #0f5f8c;
    font-weight: 900;
    text-decoration: none;
}

.ftm-schedule-list {
    display: grid;
    gap: 12px;
}

.ftm-schedule-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.ftm-schedule-item > div {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 72px;
    padding: 12px;
    border-radius: 6px;
    background: #102a43;
    color: #fff;
}

.ftm-schedule-item span,
.ftm-schedule-item strong {
    display: block;
}

.ftm-schedule-item span {
    color: #cbd5e1;
    font-size: 13px;
}

.ftm-schedule-item strong {
    color: #fff;
    font-size: 18px;
}

.ftm-schedule-item h3 {
    margin: 0 0 6px;
    color: #102a43;
    font-size: 20px;
}

.ftm-schedule-item p {
    margin: 0 0 10px;
    color: #52616f;
}

.ftm-auth-panel h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.08;
}

.ftm-auth-panel h1 + p {
    margin-top: 0;
    margin-bottom: 24px;
    color: #52616f;
    font-size: 16px;
    line-height: 1.6;
}

.ftm-auth-panel form p,
.ftm-signup-form p {
    margin: 0 0 18px;
}

.ftm-auth-panel form,
.ftm-signup-form {
    display: grid;
    gap: 0;
}

.ftm-auth-panel label,
.ftm-signup-form label {
    display: block;
    margin-bottom: 8px;
    color: #243b53;
    font-size: 14px;
    font-weight: 700;
}

.ftm-auth-panel input[type="text"],
.ftm-auth-panel input[type="email"],
.ftm-auth-panel input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    font-size: 16px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ftm-auth .ftm-auth-panel .input,
.ftm-auth .ftm-auth-panel .ftm-signup-form input {
    display: block;
    width: 100% !important;
    max-width: none !important;
}

.ftm-auth-panel input[type="text"]:focus,
.ftm-auth-panel input[type="email"]:focus,
.ftm-auth-panel input[type="password"]:focus {
    border-color: #0f5f8c;
    box-shadow: 0 0 0 3px rgba(15, 95, 140, 0.14);
    outline: none;
}

.ftm-auth-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    vertical-align: -2px;
}

.ftm-auth-panel .login-remember label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
}

.ftm-auth-panel .login-submit {
    margin-top: 4px;
}

.ftm-form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 4px solid #b42318;
    background: #fff0ee;
    color: #7a271a;
}

.ftm-auth-switch {
    margin-bottom: 0;
    color: #52616f;
    font-size: 15px;
}

.ftm-auth-switch a {
    color: #0f5f8c;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ftm-button,
.ftm-auth-panel .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 6px;
    border: 0;
    background: #0f5f8c;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.ftm-button:hover,
.ftm-auth-panel .button:hover {
    background: #0b4f75;
    transform: translateY(-1px);
}

.ftm-button:focus,
.ftm-auth-panel .button:focus {
    box-shadow: 0 0 0 3px rgba(15, 95, 140, 0.2);
    outline: none;
}

.ftm-button--secondary {
    border: 1px solid #bcccdc;
    background: #fff;
    color: #102a43;
}

.ftm-button--secondary:hover {
    background: #f8fafc;
}

.ftm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ftm-card {
    padding: 18px;
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #fff;
}

.ftm-home {
    width: calc(100vw - 64px);
    max-width: 1420px;
    margin: 56px auto;
}

.ftm-home-hero {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ftm-home-logo {
    width: 118px;
    max-width: 100%;
    height: auto;
}

.ftm-home-hero p,
.ftm-role-hero p {
    margin: 0 0 8px;
    color: #0f5f8c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ftm-home-hero h1,
.ftm-role-hero h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.05;
}

.ftm-home-hero span,
.ftm-role-hero span {
    display: block;
    margin-top: 12px;
    color: #52616f;
    font-size: 17px;
    line-height: 1.55;
}

.ftm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ftm-role-dashboard {
    display: grid;
    gap: 18px;
    width: 100%;
}

.ftm-role-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.ftm-role-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
}

.ftm-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.ftm-role-card {
    min-height: 112px;
    padding: 18px;
    border-radius: 8px;
    background: #102a43;
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.ftm-role-card span {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
}

.ftm-role-card strong {
    display: block;
    margin-top: 12px;
    font-size: clamp(20px, 2.3vw, 34px);
    line-height: 1.08;
}

.ftm-role-card--payment {
    background: #7c3aed;
}

.ftm-role-card--weight {
    background: #0f766e;
}

.ftm-role-card--height {
    background: #1d4ed8;
}

.ftm-role-card--attendance {
    background: #ca8a04;
}

.ftm-profile-layout {
    display: grid;
    gap: 18px;
}

.ftm-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 999px;
}

.ftm-profile-form input[readonly] {
    background: #f8fafc;
    color: #627d98;
}

.ftm-home-panels {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
}

.ftm-home-panel {
    padding: 22px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ftm-home-panel--wide {
    grid-column: 1 / -1;
}

.ftm-home-panel h2 {
    margin: 0 0 14px;
    color: #102a43;
    font-size: 24px;
}

.ftm-simple-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #334e68;
}

.ftm-compact-form {
    display: grid;
    gap: 14px;
}

.ftm-compact-form label {
    display: grid;
    gap: 6px;
    color: #243b53;
    font-size: 14px;
    font-weight: 800;
}

.ftm-compact-form input,
.ftm-compact-form select,
.ftm-compact-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-form-hint,
.ftm-proof-note {
    margin: 0;
    color: #52616f;
    font-size: 14px;
    line-height: 1.5;
}

.ftm-proof-note {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-proof-note p {
    margin: 0;
}

.ftm-payment-proof {
    display: inline-grid;
    gap: 6px;
    width: 92px;
    color: #0f5f8c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.ftm-payment-proof img {
    display: block;
    width: 92px;
    height: 70px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    object-fit: cover;
    background: #f8fafc;
}

.ftm-payment-proof span,
.ftm-payment-proof strong {
    overflow-wrap: anywhere;
}

.ftm-payment-proof--large {
    width: min(100%, 280px);
}

.ftm-payment-proof--large img {
    width: 100%;
    height: 180px;
}

.ftm-payment-proof--file {
    min-width: 120px;
    width: auto;
    padding: 10px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #fff;
}

.ftm-payment-proof--file span {
    color: #52616f;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ftm-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
}

.ftm-weight-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 180px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 8px;
    background: #0b1220;
}

.ftm-weight-chart div {
    display: grid;
    align-items: end;
    gap: 8px;
    height: 140px;
}

.ftm-weight-chart span {
    display: block;
    min-height: 10px;
    border-radius: 6px 6px 0 0;
    background: #a3e635;
}

.ftm-weight-chart small {
    color: #cbd5e1;
    font-size: 11px;
    text-align: center;
}

.ftm-check-list {
    display: grid;
    gap: 10px;
}

.ftm-check-list label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #f8fafc;
}

.ftm-muted {
    margin: 0 0 12px;
    color: #627d98;
    font-size: 14px;
}

.ftm-calendar-shell {
    display: grid;
    grid-template-columns: minmax(520px, 1.4fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.ftm-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-calendar__title {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    color: #102a43;
    font-size: 20px;
    font-weight: 900;
}

.ftm-calendar__day-name {
    color: #627d98;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.ftm-calendar__cell {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 82px;
    padding: 10px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
}

.ftm-calendar__cell--empty {
    border-color: transparent;
    background: transparent;
}

.ftm-calendar__cell strong {
    font-size: 15px;
}

.ftm-calendar__cell small {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ftm-calendar__cell.is-today {
    border-color: #0f5f8c;
    box-shadow: inset 0 0 0 2px rgba(15, 95, 140, 0.16);
}

.ftm-calendar__cell.has-event {
    background: #eff6ff;
}

.ftm-calendar-detail {
    display: grid;
    gap: 16px;
}

.ftm-calendar-detail h3,
.ftm-attendance-form h3 {
    margin: 0;
    color: #102a43;
    font-size: 20px;
}

.ftm-calendar-events {
    display: grid;
    gap: 10px;
}

.ftm-calendar-events article {
    padding: 12px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    background: #fff;
}

.ftm-calendar-events strong,
.ftm-calendar-events span {
    display: block;
}

.ftm-calendar-events strong {
    color: #102a43;
    font-size: 15px;
}

.ftm-calendar-events span {
    margin-top: 4px;
    color: #0f5f8c;
    font-size: 13px;
    font-weight: 800;
}

.ftm-calendar-events p {
    margin: 8px 0 0;
    color: #52616f;
    font-size: 14px;
    line-height: 1.45;
}

.ftm-attendance-form {
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
}

.ftm-student-date-form {
    margin-top: 12px;
}

.ftm-payment-page {
    display: grid;
    gap: 18px;
}

.ftm-payment-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
}

.ftm-payment-summary {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-payment-summary span {
    color: #627d98;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.ftm-payment-summary strong {
    color: #102a43;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.ftm-payment-summary p {
    margin: 6px 0 0;
    color: #52616f;
    font-size: 14px;
    line-height: 1.5;
}

.ftm-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 900;
}

.ftm-payment-status--paid {
    background: #dcfce7;
    color: #166534;
}

.ftm-payment-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.ftm-payment-status--failed {
    background: #fee2e2;
    color: #991b1b;
}

.ftm-invoice-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
}

.ftm-invoice-status--paid {
    background: #dcfce7;
    color: #166534;
}

.ftm-invoice-status--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ftm-payment-history .ftm-payment-status {
    min-height: 28px;
}

.ftm-profile-summary {
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #d7dde4;
    border-radius: 8px;
    background: #fff;
}

.ftm-profile-summary p {
    margin: 0 0 8px;
}

.ftm-profile-summary p:last-child {
    margin-bottom: 0;
}

.ftm-alert {
    width: min(760px, 100%);
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.ftm-alert--success {
    border: 1px solid #8fceaa;
    background: #edfdf4;
    color: #14532d;
}

.ftm-alert--error {
    border: 1px solid #f5a6a6;
    background: #fff1f2;
    color: #8a1230;
}

.ftm-admin-grid {
    display: grid;
    gap: 14px;
}

.ftm-admin-app {
    width: 100vw;
    max-width: none;
    margin: 0 0 0 calc(50% - 50vw);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f4f6f9;
    box-shadow: none;
}

body.ftm-admin-page,
body:has(.ftm-admin-app) {
    background: #f4f6f9;
}

body.ftm-admin-page .wp-site-blocks > header,
body.ftm-admin-page .wp-block-post-title,
body.ftm-admin-page .wp-site-blocks > footer,
body.ftm-admin-page footer,
body:has(.ftm-admin-app) .wp-site-blocks > header,
body:has(.ftm-admin-app) .wp-block-post-title,
body:has(.ftm-admin-app) .wp-site-blocks > footer,
body:has(.ftm-admin-app) footer {
    display: none;
}

body.ftm-admin-page main.wp-block-group,
body.ftm-admin-page .wp-block-post-content,
body.ftm-admin-page .entry-content,
body:has(.ftm-admin-app) main.wp-block-group,
body:has(.ftm-admin-app) .wp-block-post-content,
body:has(.ftm-admin-app) .entry-content {
    max-width: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

body.ftm-admin-page main.wp-block-group > .wp-block-group,
body:has(.ftm-admin-app) main.wp-block-group > .wp-block-group {
    max-width: none !important;
    padding: 0 !important;
}

.ftm-admin-app .ftm-portal-header {
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #d9e2ec;
    background: #f4f6f9;
}

.ftm-admin-app .ftm-portal-header p {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.ftm-admin-app .ftm-portal-header h1 {
    margin: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.ftm-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-bottom: 1px solid #d9e2ec;
    background: #fff;
}

.ftm-admin-topbar__menu {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #334155;
    cursor: pointer;
}

.ftm-admin-topbar__links {
    display: flex;
    gap: 18px;
    margin-right: auto;
    margin-left: 12px;
}

.ftm-admin-topbar__links a,
.ftm-admin-topbar__user {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.ftm-admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: stretch;
    min-height: calc(100vh - 112px);
}

.ftm-admin-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 18px 14px;
    background: #1f2933;
    color: #dbe4ee;
}

.ftm-admin-sidebar__brand {
    display: grid;
    gap: 6px;
    padding: 2px 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ftm-admin-sidebar__brand strong {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 17px;
}

.ftm-admin-sidebar__brand span,
.ftm-admin-sidebar__meta small {
    color: #a7b7c9;
    font-size: 13px;
}

.ftm-admin-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #111827 !important;
    font-weight: 900;
}

.ftm-admin-brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
}

.ftm-admin-menu {
    display: grid;
    gap: 4px;
}

.ftm-admin-menu small {
    display: block;
    margin: 12px 12px 4px;
    color: #7b8da3;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ftm-admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: #dbe4ee;
    font-weight: 700;
    text-decoration: none;
}

.ftm-admin-menu a span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    color: #a7b7c9;
}

.ftm-admin-menu a.is-active,
.ftm-admin-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ftm-admin-sidebar__meta {
    display: grid;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ftm-admin-sidebar__meta span {
    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
}

.ftm-admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ftm-admin-logout:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ftm-admin-main {
    min-width: 0;
    padding: 18px;
}

.ftm-admin-grid--summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ftm-admin-panel {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ftm-admin-stat {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 104px;
    overflow: hidden;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.ftm-admin-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
}

.ftm-admin-stat strong {
    display: block;
    color: #fff;
    font-size: 36px;
    line-height: 1;
}

.ftm-admin-stat > div {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.ftm-admin-stat__icon {
    position: absolute;
    right: 16px;
    top: 12px;
    color: rgba(0, 0, 0, 0.16) !important;
    font-size: 52px !important;
    font-weight: 900 !important;
    line-height: 1;
}

.ftm-admin-stat a {
    position: relative;
    z-index: 1;
    display: block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.13);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.ftm-admin-stat--blue {
    background: #0d6efd;
}

.ftm-admin-stat--green {
    background: #198754;
}

.ftm-admin-stat--yellow {
    background: #ffc107;
    color: #111827;
}

.ftm-admin-stat--yellow span,
.ftm-admin-stat--yellow strong,
.ftm-admin-stat--yellow a {
    color: #111827;
}

.ftm-admin-stat--red {
    background: #dc3545;
}

.ftm-admin-stat--dark {
    background: #343a40;
}

.ftm-admin-stat--purple {
    background: #6f42c1;
}

.ftm-admin-panel {
    margin-top: 16px;
    padding: clamp(18px, 3vw, 26px);
}

.ftm-admin-panel--dashboard {
    margin-top: 0;
}

.ftm-admin-panel__header {
    margin-bottom: 18px;
}

.ftm-admin-panel__header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.2;
}

.ftm-admin-panel__header p {
    margin: 0;
    color: #52616f;
}

.ftm-admin-owner-brief {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ftm-admin-owner-brief article {
    padding: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-admin-owner-brief span {
    display: block;
    margin-bottom: 6px;
    color: #52616f;
    font-size: 13px;
    font-weight: 800;
}

.ftm-admin-owner-brief strong {
    display: block;
    color: #102a43;
    font-size: 24px;
    line-height: 1.1;
}

.ftm-admin-dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.ftm-admin-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ftm-admin-insight-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ftm-admin-insight-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.ftm-admin-insight-card--wide {
    grid-column: span 2;
}

.ftm-admin-insight-card h3 {
    margin: 0 0 12px;
    color: #102a43;
    font-size: 20px;
    line-height: 1.2;
}

.ftm-admin-insight-card p {
    margin: 0;
    color: #52616f;
}

.ftm-admin-insight-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.ftm-admin-insight-card__header h3 {
    margin-bottom: 4px;
}

.ftm-admin-insight-card__actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ftm-admin-range-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #f8fafc;
}

.ftm-admin-range-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #52616f;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ftm-admin-range-tabs a.is-active,
.ftm-admin-range-tabs a:hover {
    background: #102a43;
    color: #fff;
}

.ftm-admin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.ftm-admin-bars {
    display: grid;
    gap: 14px;
}

.ftm-admin-bar-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 12px;
}

.ftm-admin-bar-row > span {
    color: #334e68;
    font-size: 13px;
    font-weight: 900;
}

.ftm-admin-bar-row > div {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eef7;
}

.ftm-admin-bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d6efd, #22c55e);
}

.ftm-admin-bar-row:nth-child(2) i {
    background: linear-gradient(90deg, #dc3545, #f97316);
}

.ftm-admin-bar-row:nth-child(3) i {
    background: linear-gradient(90deg, #6f42c1, #0ea5e9);
}

.ftm-admin-bar-row strong {
    color: #102a43;
    font-size: 14px;
    text-align: right;
}

.ftm-finance-line-chart {
    display: grid;
    gap: 12px;
}

.ftm-finance-line-chart svg {
    display: block;
    width: 100%;
    min-height: 300px;
    overflow: visible;
}

.ftm-chart-axis-title {
    fill: #334e68;
    font-size: 12px;
    font-weight: 900;
    text-anchor: start;
}

.ftm-chart-grid line {
    stroke: #e6eef7;
    stroke-width: 1;
}

.ftm-chart-zero-line {
    stroke: #94a3b8;
    stroke-dasharray: 6 6;
    stroke-width: 1.5;
}

.ftm-chart-line {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ftm-chart-line--income {
    stroke: #198754;
}

.ftm-chart-line--expense {
    stroke: #dc3545;
}

.ftm-chart-line--net {
    stroke: #0d6efd;
}

.ftm-finance-line-chart text {
    fill: #627d98;
    font-size: 12px;
    font-weight: 800;
    text-anchor: middle;
}

.ftm-finance-line-chart .ftm-chart-y-label {
    fill: #52616f;
    font-size: 11px;
    text-anchor: end;
}

.ftm-chart-points circle {
    stroke: #fff;
    stroke-width: 3;
}

.ftm-chart-points--income circle {
    fill: #198754;
}

.ftm-chart-points--expense circle {
    fill: #dc3545;
}

.ftm-chart-points--net circle {
    fill: #0d6efd;
}

.ftm-chart-points .ftm-chart-point-label {
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 4px;
    stroke-linejoin: round;
    font-size: 10px;
    font-weight: 900;
}

.ftm-chart-points--income .ftm-chart-point-label {
    fill: #166534;
}

.ftm-chart-points--expense .ftm-chart-point-label {
    fill: #b91c1c;
}

.ftm-chart-points--net .ftm-chart-point-label {
    fill: #0d6efd;
}

.ftm-finance-line-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ftm-finance-line-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334e68;
    font-size: 13px;
    font-weight: 900;
}

.ftm-finance-line-chart__legend span::before {
    content: "";
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}

.ftm-finance-line-chart__legend .is-income {
    color: #198754;
}

.ftm-finance-line-chart__legend .is-expense {
    color: #dc3545;
}

.ftm-finance-line-chart__legend .is-net {
    color: #0d6efd;
}

.ftm-admin-mini-bars {
    display: grid;
    gap: 12px;
}

.ftm-admin-mini-bar > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.ftm-admin-mini-bar span,
.ftm-admin-mini-bar strong {
    color: #334e68;
    font-size: 13px;
    font-weight: 900;
}

.ftm-admin-mini-bar i {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eef7;
}

.ftm-admin-mini-bar b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0d6efd;
}

.ftm-admin-insight-card--income .ftm-admin-mini-bar b {
    background: #198754;
}

.ftm-admin-insight-card--expense .ftm-admin-mini-bar b {
    background: #dc3545;
}

.ftm-admin-insight-card--training .ftm-admin-mini-bar b {
    background: #0f5f8c;
}

.ftm-admin-pie-wrap {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}

.ftm-admin-pie {
    position: relative;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ftm-admin-pie::after {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    background: #fff;
}

.ftm-admin-pie span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #102a43;
    font-size: 30px;
    font-weight: 900;
}

.ftm-admin-pie-legend {
    display: grid;
    gap: 10px;
}

.ftm-admin-pie-legend span {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: #334e68;
    font-size: 13px;
    font-weight: 900;
}

.ftm-admin-pie-legend i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ftm-admin-pie-legend b {
    color: #102a43;
}

.ftm-training-today {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.ftm-training-today article {
    min-height: 104px;
    padding: 14px;
    border-radius: 8px;
    background: #102a43;
    color: #fff;
}

.ftm-training-today span {
    display: block;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 900;
}

.ftm-training-today strong {
    color: #fff;
    font-size: 32px;
    line-height: 1;
}

.ftm-admin-mini-list {
    display: grid;
    gap: 10px;
}

.ftm-admin-mini-list a {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid #e6eef7;
    border-radius: 8px;
    color: #102a43;
    text-decoration: none;
}

.ftm-admin-mini-list a:hover {
    border-color: #9fb3c8;
    background: #f8fafc;
}

.ftm-admin-mini-list strong {
    font-size: 14px;
    line-height: 1.3;
}

.ftm-admin-mini-list span {
    color: #627d98;
    font-size: 12px;
    font-weight: 800;
}

.ftm-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ftm-module-card {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.ftm-module-card > div {
    padding: 16px;
}

.ftm-module-card span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 30px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #075985;
    font-size: 14px;
    font-weight: 900;
}

.ftm-module-card h3 {
    margin: 0 0 8px;
    color: #102a43;
    font-size: 18px;
    line-height: 1.25;
}

.ftm-module-card p {
    margin: 0;
    color: #52616f;
    font-size: 14px;
    line-height: 1.45;
}

.ftm-module-card a {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid #eef2f6;
    background: #f8fafc;
    color: #0f5f8c;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.ftm-module-card a:hover {
    background: #eef6fb;
}

.ftm-admin-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.ftm-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ftm-admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    font-weight: 800;
    text-decoration: none;
}

.ftm-admin-tabs a.is-active,
.ftm-admin-tabs a:hover {
    border-color: #0f5f8c;
    background: #0f5f8c;
    color: #fff;
}

.ftm-admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-admin-filters--student {
    grid-template-columns: 1.3fr repeat(4, minmax(150px, 1fr)) auto auto;
}

.ftm-admin-filters--payment {
    grid-template-columns: minmax(220px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto auto;
}

.ftm-admin-filters label {
    display: grid;
    gap: 6px;
}

.ftm-admin-filters span {
    color: #243b53;
    font-size: 13px;
    font-weight: 800;
}

.ftm-admin-filters input,
.ftm-admin-filters select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-admin-empty,
.ftm-admin-note {
    margin: 0;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
    color: #52616f;
}

.ftm-admin-note {
    margin: 16px 0;
}

.ftm-admin-divider {
    margin: 28px 0;
    border: 0;
    border-top: 1px solid #d9e2ec;
}

.ftm-admin-kpi {
    display: inline-grid;
    min-width: 160px;
    gap: 6px;
    padding: 18px;
    border-radius: 8px;
    background: #eff6ff;
    color: #102a43;
}

.ftm-admin-kpi span {
    color: #52616f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.ftm-admin-kpi strong {
    font-size: 38px;
    line-height: 1;
}

.ftm-admin-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.ftm-admin-report-card {
    margin-top: 18px;
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ftm-admin-report-grid .ftm-admin-report-card {
    margin-top: 0;
}

.ftm-admin-record-list {
    display: grid;
    gap: 10px;
}

.ftm-admin-record {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.ftm-admin-record strong,
.ftm-admin-record span {
    display: block;
}

.ftm-admin-record span {
    margin-top: 4px;
    color: #627d98;
    font-size: 13px;
}

.ftm-admin-record a {
    color: #0f5f8c;
    font-weight: 800;
    text-decoration: none;
}

.ftm-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ftm-status-badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 900;
}

.ftm-status-badge--active {
    background: #dcfce7;
    color: #166534 !important;
}

.ftm-status-badge--leave {
    background: #fef3c7;
    color: #92400e !important;
}

.ftm-status-badge--inactive,
.ftm-status-badge--out {
    background: #fee2e2;
    color: #991b1b !important;
}

.ftm-admin-profile-preview {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #102a43;
}

.ftm-admin-profile-preview__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ftm-admin-profile-preview strong {
    font-size: 18px;
}

.ftm-admin-profile-preview span,
.ftm-admin-profile-preview em {
    color: #52616f;
    font-size: 14px;
}

.ftm-student-profile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
}

.ftm-student-profile-summary span {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #fff;
}

.ftm-student-profile-summary b {
    color: #243b53;
    font-size: 12px;
    text-transform: uppercase;
}

.ftm-student-profile-form {
    padding-top: 14px;
    border-top: 1px solid #d9e2ec;
}

.ftm-table-wrap {
    overflow-x: auto;
}

.ftm-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.ftm-admin-table th,
.ftm-admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    vertical-align: middle;
}

.ftm-admin-table th {
    color: #52616f;
    font-size: 13px;
    text-transform: uppercase;
}

.ftm-admin-table td span {
    display: block;
    margin-top: 3px;
    color: #627d98;
    font-size: 13px;
}

.ftm-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ftm-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ftm-admin-subpanel {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-admin-subpanel h3 {
    margin: 0 0 6px;
    color: #102a43;
}

.ftm-admin-subpanel p {
    margin: 0 0 14px;
    color: #52616f;
}

.ftm-checkbox-line {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px !important;
    min-height: 42px;
    padding: 10px 0;
}

.ftm-checkbox-line input {
    width: auto !important;
    min-height: auto !important;
}

.ftm-checkbox-line small {
    display: block;
    margin-top: 2px;
    color: #627d98;
    font-size: 12px;
    font-weight: 600;
}

.ftm-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px 16px;
}

.ftm-checkbox-grid--users {
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
}

.ftm-multiselect {
    width: 100%;
    min-height: 180px;
    padding: 9px 11px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-multiselect--compact {
    min-height: 112px;
}

.ftm-schedule-editor-list {
    display: grid;
    gap: 10px;
}

.ftm-schedule-editor {
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-schedule-editor summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.ftm-schedule-editor summary strong,
.ftm-schedule-editor summary span {
    display: block;
}

.ftm-schedule-editor summary span {
    color: #627d98;
    font-size: 13px;
    font-weight: 800;
}

.ftm-schedule-editor form {
    padding: 14px;
    border-top: 1px solid #d9e2ec;
    background: #fff;
}

.ftm-multiselect option {
    padding: 8px 10px;
}

.ftm-rule-select-label,
.ftm-rule-search {
    display: grid;
    gap: 7px;
}

.ftm-rule-search {
    margin-bottom: 12px;
}

.ftm-rule-search span {
    color: #243b53;
    font-size: 14px;
    font-weight: 800;
}

.ftm-rule-search input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-rule-user-option[hidden] {
    display: none !important;
}

.ftm-combobox-field {
    display: grid;
    gap: 6px;
    min-width: min(100%, 280px);
}

.ftm-combobox-field span {
    color: #243b53;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ftm-role-assign-form {
    align-items: end;
}

.ftm-role-select {
    min-width: 280px;
    max-width: 100%;
}

.ftm-role-popover {
    width: min(360px, 100%);
}

.ftm-role-popover summary {
    width: max-content;
    cursor: pointer;
    list-style: none;
}

.ftm-role-popover summary::-webkit-details-marker {
    display: none;
}

.ftm-role-popover[open] summary {
    margin-bottom: 10px;
}

.ftm-role-popover__panel {
    display: grid;
    gap: 12px;
    width: min(360px, 100%);
    padding: 14px;
    border: 1px solid #bcccdc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.ftm-role-popover__panel > strong {
    color: #102a43;
    font-size: 16px;
    line-height: 1.25;
}

.ftm-role-popover__panel > small,
.ftm-role-popover__actions span {
    color: #627d98;
    font-size: 12px;
    line-height: 1.35;
}

.ftm-role-checklist {
    display: grid;
    gap: 8px;
}

.ftm-role-checklist label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #e6eef7;
    border-radius: 6px;
    background: #f8fafc;
    color: #102a43;
    font-weight: 800;
}

.ftm-role-checklist input {
    width: 16px;
    height: 16px;
}

.ftm-role-popover__actions {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.ftm-rule-fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #f8fafc;
}

.ftm-rule-fieldset legend {
    padding: 0 8px;
    color: #243b53;
    font-size: 14px;
    font-weight: 900;
}

.ftm-admin-form--cost-rule {
    margin-top: 18px;
}

.ftm-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ftm-admin-form--inline {
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
}

.ftm-admin-form label,
.ftm-inline-form select {
    display: grid;
    gap: 7px;
}

.ftm-admin-form label span {
    color: #243b53;
    font-size: 14px;
    font-weight: 700;
}

.ftm-admin-form input,
.ftm-admin-form select,
.ftm-admin-form textarea,
.ftm-inline-form select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-admin-form textarea {
    resize: vertical;
}

.ftm-admin-form__wide {
    grid-column: 1 / -1;
}

.ftm-button--small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.ftm-button--ghost {
    border-color: #bcccdc;
    background: #fff;
    color: #102a43;
}

.ftm-button--ghost:hover {
    border-color: #0f5f8c;
    background: #eff6ff;
    color: #0f5f8c;
}

.ftm-payment-action-form {
    min-width: 360px;
    align-items: end;
}

.ftm-payment-action-form input {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    background: #fff;
    color: #102a43;
    box-sizing: border-box;
}

.ftm-invoice-action-form {
    min-width: 240px;
    align-items: end;
}

.ftm-admin-table--payments td:nth-child(8) {
    max-width: 260px;
}

.ftm-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ftm-pill-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d9e2ec;
    border-radius: 999px;
    background: #f8fafc;
    color: #334e68;
    font-size: 13px;
    font-weight: 700;
}

.ftm-card h3 {
    margin-top: 0;
    font-size: 18px;
}

.ftm-portal-actions {
    margin-top: 24px;
}

@media (max-width: 640px) {
    .ftm-auth {
        width: min(100% - 24px, 520px);
        margin-top: 32px;
    }

    .ftm-portal-hero,
    .ftm-schedule-item,
    .ftm-portal-admin-note {
        grid-template-columns: 1fr;
    }

    .ftm-portal-admin-note .ftm-button {
        grid-row: auto;
        grid-column: auto;
    }

    .ftm-login-choice {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ftm-admin-form,
    .ftm-admin-form--inline {
        grid-template-columns: 1fr;
    }

    .ftm-inline-form {
        display: grid;
    }
}

@media (max-width: 900px) {
    .ftm-admin-shell {
        grid-template-columns: 1fr;
    }

    .ftm-admin-sidebar {
        position: static;
    }

    .ftm-admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ftm-admin-grid--summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ftm-admin-owner-brief,
    .ftm-admin-insight-grid,
    .ftm-admin-insight-grid--compact,
    .ftm-training-today {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ftm-admin-insight-card--wide {
        grid-column: span 2;
    }

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

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

    .ftm-admin-filters,
    .ftm-admin-filters--payment,
    .ftm-admin-filters--student {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ftm-student-profile-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ftm-admin-menu,
    .ftm-admin-grid--summary,
    .ftm-admin-owner-brief,
    .ftm-admin-insight-grid,
    .ftm-admin-insight-grid--compact,
    .ftm-training-today,
    .ftm-admin-report-grid,
    .ftm-module-grid,
    .ftm-news-grid,
    .ftm-admin-filters,
    .ftm-admin-filters--payment,
    .ftm-admin-filters--student {
        grid-template-columns: 1fr;
    }

    .ftm-admin-insight-card--wide {
        grid-column: auto;
    }

    .ftm-admin-insight-card__header {
        display: grid;
    }

    .ftm-admin-bar-row {
        grid-template-columns: 1fr;
    }

    .ftm-admin-bar-row strong {
        text-align: left;
    }

    .ftm-admin-pie-wrap {
        grid-template-columns: 1fr;
    }

    .ftm-admin-pie {
        width: min(220px, 100%);
        justify-self: center;
    }

    .ftm-admin-profile-preview__header {
        display: grid;
    }

    .ftm-student-profile-summary {
        grid-template-columns: 1fr;
    }

    .ftm-payment-action-form {
        min-width: 0;
    }

    .ftm-invoice-action-form {
        min-width: 0;
    }
}

.ftm-home-panel .ftm-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

@media (max-width: 1200px) {
    .ftm-role-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .ftm-calendar-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .ftm-role-grid,
    .ftm-home-panels,
    .ftm-home-panel .ftm-inline-form,
    .ftm-payment-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ftm-home {
        width: min(100% - 24px, 100%);
        margin: 32px auto;
    }

    .ftm-portal,
    .ftm-auth,
    body.ftm-front-page .wp-block-post-title,
    body:has(.ftm-home) .wp-block-post-title,
    body:has(.ftm-portal) .wp-block-post-title,
    body:has(.ftm-auth) .wp-block-post-title {
        width: min(100% - 24px, 100%);
    }

    .ftm-home-hero,
    .ftm-role-hero,
    .ftm-role-grid,
    .ftm-home-panels,
    .ftm-home-panel .ftm-inline-form,
    .ftm-calendar-shell,
    .ftm-payment-layout {
        grid-template-columns: 1fr;
    }

    .ftm-role-hero {
        display: grid;
    }

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

    .ftm-calendar__title {
        grid-column: 1 / -1;
    }

    .ftm-calendar__day-name {
        display: none;
    }
}
