/* FP Account: the customer account, in the look of the site: "My account", tab buttons, one framed panel. */
.fpac {
    --fp-bg: #07110F;
    --fp-frame: #0A1714;
    --fp-panel: #0D1C19;
    --fp-panel2: #10231F;
    --fp-line: #1E302C;
    --fp-line2: #2C4440;
    --fp-ink: #EAF2F2;
    --fp-ink2: #B9C7C7;
    --fp-muted: #8DA3A0;
    --fp-teal: #159E9E;
    --fp-teal2: #1FB5B5;
    --fp-tealsoft: #7FD8D8;
    --fp-orange: #D67617;
    --fp-ok: #4FB37E;
    --fp-warn: #E0A43A;
    --fp-bad: #E07060;
    --fp-cream: #F7F4EC;
    --fp-offer: #1A1710;
    --fp-offer-line: #3F3219;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--fp-ink);
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.fpac * {
    box-sizing: border-box !important;
}

.fpj.fpac h1 {
    color: white;
}

.fpac p, .fpac li, .fpac span, .fpac td {
    text-wrap: pretty;
}

.fpac h1, .fpac h2, .fpac h3, .fpac h4 {
    color: white;
    text-wrap: balance !IMPORTANT;
}

.fpac a {
    color: var(--fp-tealsoft);
}

.fpac [hidden] {
    display: none !important;
}

.fpac[data-tab="organisation"] h2.fpac-h2 {
    display: none;
}

/* -- Title, tabs and frame --------------------------------------- */
.fpac-title {
    font-size: 40px !important;
    font-weight: 500;
    text-align: center;
    margin: 10px 0 28px;
    color: var(--fp-ink) !important;
}

.fpac-tabs {
    margin: 0 0 22px;
}

.fpac-nav-toggle {
    display: none;
}

.fpac-tabs-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.fpac-tabs-list li {
    margin: 0;
}

.fpac-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--fp-teal);
    color: var(--fp-tealsoft) !important;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 16px !important;
    line-height: 1.2;
}

.fpac-tab:hover {
    background: rgba(21,158,158,.12);
}

.fpac-tab.is-active {
    background: var(--fp-teal);
    color: #fff !important;
}

.fpac-tab-logout {
    margin-left: auto !important;
}

.fpac-tab-logout .fpac-tab {
    border-color: var(--fp-orange);
    color: var(--fp-orange) !important;
}

.fpac-frame {
    background: var(--fp-frame);
    border: 1px solid var(--fp-line);
    border-radius: 18px;
    padding: 28px;
}

nav.fpac-subnav a {
    text-decoration: none !important;
}

/* -- Type and shared blocks ------------------------------------- */
.fpac-h2 {
    font-size: 24px !important;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--fp-ink) !important;
}

/* Section headings carry a teal bar, so they are told apart from card titles */
.fpac-h2, .fpac-h3, h3.fpac-courses-title {
    padding-left: 12px;
    border-left: 4px solid var(--fp-teal);
    line-height: 1.2;
}

.fpac--login .fpac-h2, .fpac-card > .fpac-h3 {
    padding-left: 0;
    border-left: 0;
}

.fpac-h3 {
    font-size: 19px !IMPORTANT;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--fp-ink) !IMPORTANT;
}

.fpac-lead {
    color: var(--fp-muted);
    margin: 6px 0 18px;
}

.fpac-muted {
    color: var(--fp-muted);
    font-size: 15.5px;
}

.fpac-small {
    font-size: 15.5px;
}

.fpac-tiny {
    font-size: 14px;
}

.fpac-kick {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fp-muted);
}

.fpac-big {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0;
    color: var(--fp-ink);
}

.fpac-big span {
    font-size: 16px;
    font-weight: 400;
    color: var(--fp-muted);
    margin-left: 6px;
}

.fpac-empty {
    color: var(--fp-muted);
    margin: 0;
}

.fpac-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fpac-sp {
    flex: 1;
}

.fpac-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fpac-grid2, .fpac-grid3 {
    display: grid;
    gap: 16px;
}

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

.fpac-grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpac-gap {
    height: 16px;
}

.fpac-card {
    background: var(--fp-panel);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 20px 22px;
    min-width: 0;
    margin-bottom: 20px !important;
}

.fpac-card.fpac-reuse select {
    padding: 5px 10px !important;
}

section.fpac-card.fpac-card--mine {
    border: none;
    padding: 0px;
}

.fpac[data-tab="organisation"] section.fpac-card {
    border: none !important;
    padding: 0px;
}

.fpac-card.fpac-reuse {
    border: none;
    padding: 20px 0px;
}

.fpac-stack > .fpac-card, .fpac > .fpac-frame > .fpac-card {
    margin: 0;
}

.fpac-frame > .fpac-card + .fpac-card, .fpac-frame > section + section {
    margin-top: 16px;
}

.fpac-card--quiet {
    background: transparent;
}

.fpac-card-title {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fp-muted);
    margin: 0 0 10px;
    font-weight: 500;
}

.fpac[data-tab="organisation"] section.fpac-card h3.fpac-card-title {
    font-weight: 700;
    text-transform: none;
    font-size: 18px !important;
    letter-spacing: 0px;
}

.fpac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--fp-teal) !important;
    color: #fff !important;
    border: 1px solid var(--fp-teal) !important;
    border-radius: 8px !important;
    padding: 10px 18px !important;
    font-weight: 600;
    font-size: 15px !important;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
}

.fpac-btn:hover {
    background: var(--fp-teal2) !important;
    border-color: var(--fp-teal2) !important;
}

.fpac-btn--secondary {
    background: transparent !important;
    color: var(--fp-tealsoft) !important;
}

.fpac-btn--secondary:hover {
    background: rgba(21,158,158,.12) !important;
}

.fpac-btn--quiet {
    background: transparent !important;
    border-color: var(--fp-line2) !important;
    color: var(--fp-ink2) !important;
}

button.fpac-link-btn.fpac-copy-btn {
    padding: 6px 12px !important;
    font-size: 14px;
    border: 1px solid var(--fp-teal);
    border-radius: 5px 5px 5px 5px;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    background: transparent !important;
    border-color: var(--fp-line2) !important;
    color: var(--fp-ink2) !important;
}

.fpac-btn--quiet:hover {
    background: rgba(255,255,255,.04);
    border-color: var(--fp-muted);
}

.fpac-btn--orange {
    background: var(--fp-orange) !important;
    border-color: var(--fp-orange) !important;
}

.fpac-btn--orange:hover {
    background: #e8841f !important;
    border-color: #e8841f !important;
}

.fpac-btn--danger {
    background: transparent;
    border-color: #8a3a33;
    color: var(--fp-bad) !important;
}

.fpac-btn--small {
    padding: 6px 12px !important;
    font-size: 14px !important;
}

a.fpac-btn.fpac-btn--small.fpac-btn--secondary {
    font-size: 14px !important;
}

a.fpac-btn.fpac-btn--small {
    font-size: 14px !important;
}

.fpac-btn:disabled {
    opacity: .6;
    cursor: default;
}

.fpac-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--fp-tealsoft);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.fpac-pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--fp-line);
    color: var(--fp-ink2);
    white-space: nowrap;
}

.fpac-pill--teal {
    color: #fff;
    background: var(--fp-teal);
    border-color: var(--fp-teal);
}

.fpac-pill--ok {
    color: var(--fp-ok);
    border-color: #2b5a40;
}

.fpac-pill--warn {
    color: var(--fp-warn);
    border-color: #6b5320;
}

.fpac-pill--bad {
    color: var(--fp-bad);
    border-color: #6a3530;
}

.fpac-bar {
    height: 8px;
    background: #1b2b28;
    border-radius: 4px;
    overflow: hidden;
    margin: 6px 0 4px;
    max-width: 220px;
}

.fpac-bar-fill {
    height: 100%;
    background: var(--fp-teal);
}

.fpac-notice {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 0 0 16px;
    font-weight: 500;
}

.fpac-notice--ok {
    background: #0e2418;
    border: 1px solid #2b5a40;
}

.fpac-notice--error {
    background: #2a1512;
    border: 1px solid #6a3530;
}

.fpac-notice--warn {
    background: #2a1d0c;
    border: 1px solid #6b4a1c;
}

/* Lists of rows that line up: label, text, action. A row lights up under the pointer. */
.fpac-rows > div {
    display: grid;
    gap: 14px;
    align-items: center;
    padding: 12px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    border-bottom: 1px solid var(--fp-line);
    transition: background .15s;
}

.fpac-rows > div:last-child {
    border-bottom: 0;
}

.fpac-rows > div:hover {
    background: rgba(21,158,158,.22);
    box-shadow: inset 3px 0 0 var(--fp-teal);
}

.fpac-rows--3 > div {
    grid-template-columns: 110px minmax(0, 1fr);
}

.fpac-rows--2 > div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.fpac-rows .fpac-pill {
    justify-self: start;
}

.fpac-rows--2 .fpac-pill {
    justify-self: end;
}

/* Tables */
.fpac-tw {
    overflow-x: auto;
}

.fpac-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: none !important;
}

.fpac-table th {
    text-align: left;
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-muted);
    padding: 10px 12px !important;
    border: none !important;
    border-bottom: 1px solid var(--fp-line) !important;
    white-space: nowrap;
    font-weight: 600;
}

.fpac-table td {
    padding: 12px !important;
    border: none !important;
    border-bottom: 1px solid var(--fp-line) !important;
    vertical-align: middle;
}

.fpac-table tr:last-child td {
    border-bottom: 0;
}

.fpac-table tbody tr:hover {
    background: rgba(21,158,158,.22);
}

/* Sub-navigation (Organisation): underlined links */
.fpac-subnav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--fp-line);
    margin: 0 0 22px;
    flex-wrap: wrap;
}

.fpac-subnav-link {
    padding: 10px 16px;
    color: var(--fp-ink2) !important;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.fpac-subnav-link.is-active {
    color: #fff !important;
    border-color: var(--fp-teal);
}

/* Forms */
.fpac-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--fp-ink2);
    margin: 14px 0 6px;
}

.fpac-form-row {
    margin-bottom: 14px;
}

.fpac-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--fp-ink2);
}

.fpac input[type=text], .fpac input[type=email], .fpac input[type=password], .fpac input[type=number], .fpac select, .fpac textarea {
    width: 100%;
    font-size: 16px !important;
    font-family: inherit !important;
    padding: 5px 13px !important;
    background: #0a1513;
    border: 1px solid #2a3d39;
    border-radius: 8px;
    color: var(--fp-ink) !important;
}

.fpac input:focus, .fpac select:focus, .fpac textarea:focus {
    outline: none;
    border-color: var(--fp-teal);
}

.fpac-hint {
    font-size: 14px;
    color: var(--fp-muted);
    margin: 6px 0 0;
}

.fpac select option {
    background-color: #07110f;
    color: #ffffff;
}

.fpac-inline {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0;
}

.fpac-inline input[type=text] {
    padding: 8px 10px;
    font-size: 14px;
    max-width: 220px;
}

.fpac-cell-actions {
    white-space: nowrap;
}

.fpac-form--row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 12px 0 10px;
}

.fpac-form--row .fpac-form-row {
    margin: 0;
    flex: 1 1 180px;
}

.fpac-copy {
    width: 100%;
    min-width: 220px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px dashed rgba(21,158,158,.6);
    background: rgba(21,158,158,.06);
    color: #e2e8f0;
    font-size: 13px;
    font-family: ui-monospace, monospace;
}

.fpac--login form p {
    margin: 0 0 12px;
}

.fpac--login input[type=submit] {
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--fp-teal);
    color: #fff;
    border: 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* -- Overview ---------------------------------------------------- */
.fpac-hello {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.fpac-hello h2 {
    margin: 0;
    font-size: 24px !important;
    font-weight: 600;
}

.fpac-upgrade {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--fp-offer);
    border: 1px solid var(--fp-offer-line);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 0 0 16px;
    justify-content: space-between;
}

.fpac-upgrade p {
    margin: 0;
    max-width: 760px;
}

.fpac-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 8px 0 12px;
}

.fpac-counts .fpac-big {
    margin: 0;
}

/* -- Prep Report ------------------------------------------------- */
.fpac-status {
    display: flex;
    gap: 6px 14px;
    align-items: baseline;
    flex-wrap: wrap;
    border-radius: 12px;
    padding: 14px 18px;
    background: #2a1d0c;
    border: 1px solid #6b4a1c;
    margin: 0 0 16px;
}

.fpac-status--done {
    background: #0e2418;
    border-color: #2b5a40;
}

.fpac-status a {
    margin-left: auto;
}

.fpac-basis {
    font-size: 14px;
    color: var(--fp-muted);
    margin: 6px 0 16px;
}

.fpac-edition-select {
    max-width: 220px;
}

.fpac-pkg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fpac-video {
    aspect-ratio: 16/9;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: var(--fp-muted);
}

.fpac-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.fpac-slide {
    aspect-ratio: 16/9;
    max-width: 100%;
    background: var(--fp-cream);
    color: #0b1b17;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.fpac .fpac-slide h4 {
    font-size: 20px;
    margin: 0 0 10px;
    color: #0b1b17;
}

.fpac .fpac-slide p {
    margin: 0;
    color: #0b1b17;
}

.fpac-slide .fpac-kick {
    color: #55625e;
}

.fpac-slide--img {
    padding: 0;
    background: #fff;
}

.fpac-slide--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fpac-deck-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.fpac-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--fp-line2);
}

.fpac-dl b {
    display: block;
    font-size: 15px;
}

.fpac-dl p {
    margin: 2px 0 6px;
    font-size: 14px;
    color: var(--fp-muted);
}

.fpac-seg {
    display: inline-flex;
    border: 1px solid var(--fp-teal);
    border-radius: 10px;
    overflow: hidden;
    margin: 26px 0 16px;
    flex-wrap: wrap;
}

.fpac-seg button {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--fp-teal);
    color: var(--fp-tealsoft);
    font-weight: 600;
    font-size: 15px;
    font-family: inherit;
    padding: 11px 20px;
    cursor: pointer;
}

.fpac-seg button:last-child {
    border-right: 0;
}

.fpac-seg button.is-on {
    background: var(--fp-teal);
    color: #fff;
}

.fpac-seg .fpac-cnt {
    font-weight: 500;
    opacity: .8;
    margin-left: 8px;
    font-size: 13px;
}

.fpac-homework {
    border: 2px solid var(--fp-orange);
    border-radius: 14px;
    padding: 20px 22px;
    background: #1a140b;
}

.fpac-homework.is-done {
    border-color: var(--fp-ok);
    background: #0d1c14;
}

.fpac-hw {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 150px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    border-bottom: 1px solid var(--fp-line2);
    transition: background .15s;
}

.fpac-hw:last-of-type {
    border-bottom: 0;
}

.fpac-hw:hover {
    background: rgba(21,158,158,.08);
    box-shadow: inset 3px 0 0 var(--fp-teal);
}

.fpac-hw-kind {
    font-size: 12.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fp-muted);
}

.fpac-hw b {
    font-weight: 600;
}

.fpac-hw-src {
    display: block;
    font-size: 13px;
    color: var(--fp-muted);
}

.fpac-hw select {
    padding: 7px 10px;
    font-size: 14px;
}

.fpac-hw .fpac-btn {
    justify-content: center;
}

.fpac-hw.is-done b {
    color: var(--fp-ink2);
}

.fpac-hw.is-done .fpac-hw-kind {
    color: var(--fp-ok);
}

.fpac-hw-state {
    font-size: 14px;
    color: var(--fp-muted);
}

.fpac-own {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fpac-own input[type=text] {
    flex: 1 1 260px;
}

.fpac-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.fpac-charts h4 {
    margin: 0 0 2px;
    font-size: 16px;
}

.fpac-charts .fpac-tiny {
    display: block;
    margin-bottom: 10px;
    color: var(--fp-muted);
}

.fpac-charts svg, .fpac-chapter svg {
    width: 100%;
    height: auto;
    display: block;
}

.fpac-risk {
    padding: 10px 0;
    border-bottom: 1px solid var(--fp-line2);
}

.fpac-risk:last-child {
    border-bottom: 0;
}

.fpac-risk b {
    display: block;
    font-size: 15px;
}

.fpac-risk span {
    font-size: 13.5px;
    color: var(--fp-muted);
}

details.fpac-chapter {
    background: var(--fp-panel);
    border: 1px solid var(--fp-line2);
    border-radius: 12px;
    margin: 0 0 10px;
    padding: 0 18px;
}

details.fpac-chapter > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    font-weight: 600;
}

details.fpac-chapter > summary::-webkit-details-marker {
    display: none;
}

details.fpac-chapter > summary::after {
    content: "+";
    color: var(--fp-muted);
    font-weight: 400;
}

details.fpac-chapter[open] > summary {
    border-bottom: 1px solid var(--fp-line2);
    margin-bottom: 12px;
}

details.fpac-chapter[open] > summary::after {
    content: "\2212";
}

.fpac-point {
    padding: 4px 0 14px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #33504b;
    transition: background .15s;
}

.fpac-point:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.fpac-point:hover {
    background: rgba(21,158,158,.08);
    box-shadow: inset 3px 0 0 var(--fp-teal);
}

.fpac-point p {
    margin: 0 0 6px;
}

.fpac-point-links {
    font-size: 14px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.fpac-point-title {
    font-weight: 600;
    margin: 0 0 2px;
}

.fpac-explain-text {
    margin: 8px 0 4px;
    padding: 10px 14px;
    border-left: 3px solid var(--fp-teal);
    background: var(--fp-panel2);
    font-size: 14.5px;
}

.fpac-explain-text p {
    margin: 0 0 8px;
}

.fpac-explain-text p:last-child {
    margin: 0;
}

.fpac-sources {
    margin-top: 12px;
    color: var(--fp-muted);
    font-size: 14px;
}

.fpac-sources summary {
    cursor: pointer;
}

.fpac-list {
    margin: 0;
    padding-left: 20px;
}

/* -- Tools ------------------------------------------------------- */
.fpac-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fpac-tool {
    background: var(--fp-panel);
    border: 1px solid var(--fp-line);
    border-radius: 14px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    transition: background .15s;
}

.fpac-tool:hover {
    background: #123430;
    border-color: var(--fp-teal);
}

.fpac-tool-title {
    margin: 6px 0 2px;
    font-size: 17px !IMPORTANT;
    font-weight: 600;
    color: var(--fp-ink) !IMPORTANT;
}

.fpac-tool .fpac-btn {
    align-self: flex-start;
    margin-top: auto;
}

.fpac-tool .fpac-tiny {
    margin: 2px 0 12px;
    color: var(--fp-muted);
}

.fpac-tool--profile {
    border: 2px solid var(--fp-orange);
}

/* -- Tool runner: a tool in a window over the account ----------- */
/* -- Account ----------------------------------------------------- */
.fpac-sec > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-line);
}

.fpac-sec > div:last-child {
    border-bottom: 0;
}

.fpac-advice {
    color: var(--fp-warn);
    font-size: 15px;
    margin: 8px 0;
}

.fpac-warnbox {
    border: 1px solid #6a3530;
    background: #2a1512;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 12px;
}

.fpac[data-tab="learning"] section.fpac-card.fpac-courses {
    padding: 0;
    border: none;
}

.fpac[data-tab="learning"] h2.fpac-h2 {
    display: none;
}

.fpac[data-tab="learning"] h3.fpac-courses-title {
    font-size: 24px;
    font-weight: 600;
    color: #eaf2f2;
}

.fpac[data-tab="learning"] h3.fpac-card-title {
    font-size: 24px !important;
    font-weight: 600;
    color: #eaf2f2 !important;
    text-transform: none;
    letter-spacing: 0px;
}

@media (max-width: 860px) {
    .fpac-grid2, .fpac-grid3, .fpac-pkg, .fpac-dl, .fpac-charts, .fpac-tools {
        grid-template-columns:1fr;
    }

    .fpac-title {
        font-size: 30px;
    }

    .fpac-frame {
        padding: 16px;
    }

    .fpac-hw {
        grid-template-columns: 1fr 1fr;
    }

    .fpac-hw > div:nth-child(2) {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 760px) {
    .fpac {
        font-size:16px;
    }

    .fpac-nav-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        border-radius: 8px;
        border: 1px solid var(--fp-teal);
        background: transparent;
        color: var(--fp-tealsoft);
        font-weight: 600;
        font-size: 16px;
        font-family: inherit;
    }

    .fpac-tabs-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 8px;
    }

    .fpac-tabs.is-open .fpac-tabs-list {
        display: flex;
    }

    .fpac-tab {
        width: 100%;
    }

    .fpac-tab-logout {
        margin-left: 0 !important;
    }

    .fpac-table {
        display: block;
        overflow-x: auto;
    }

    .fpac-rows--3 > div {
        grid-template-columns: 1fr;
    }

    .fpac-sec > div {
        grid-template-columns: 1fr auto;
    }
}

/* Account tab: two columns, the password form folds open under its row. */
.fpac-grid2 {
    align-items: start;
}

.fpac-grid2 > .fpac-card {
    margin: 0;
}

.fpac-sec > form {
    padding: 12px 0;
    border-bottom: 1px solid var(--fp-line);
}

.fpac [hidden] {
    display: none !important;
}

.fpac-upgrade--row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
}

/* -- 1.6.0: the full report first, the deck in full screen, the Trends banner, AI texts ---- */
.fpac-pkg-top {
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.fpac-deckwrap:focus {
    outline: none;
}

.fpac-deckwrap:fullscreen {
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4vh 6vw;
}

.fpac-deckwrap:fullscreen .fpac-slide {
    aspect-ratio: 16/9;
    max-height: 84vh;
    max-width: calc(84vh * 16 / 9);
    margin: 0 auto;
    width: 100%;
    padding: 5vh 6vw;
}

.fpac-deckwrap:fullscreen .fpac-slide h4 {
    font-size: 3.2vw;
}

.fpac-deckwrap:fullscreen .fpac-slide p {
    font-size: 1.8vw;
}

.fpac-deckwrap:fullscreen .fpac-deck-bar {
    justify-content: center;
    margin-top: 2vh;
}

.fpac-notice--trends {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    flex-wrap: wrap;
    background: var(--fp-panel);
    border: 1px solid var(--fp-teal);
    color: var(--fp-ink);
}

.fpac-explain-text p.fpac-ai-line {
    font-size: 13px;
    color: var(--fp-muted);
    margin: 8px 0 0;
}

.fpac-ai-line .fpac-link {
    font-size: inherit;
}

.fpac-ai-how {
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid var(--fp-line2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--fp-ink2);
}

.fpac-ai-how b {
    color: var(--fp-ink);
}

.fpac-ai-how p {
    margin: 6px 0 0;
}

/* Blocks with a look of their own: What is new, the tools of this month's actions, the lead's own courses */
.fpac-card--new {
    border-color: var(--fp-orange);
}

.fpac-tools-actions {
    background: var(--fp-panel2);
    border: 1px solid var(--fp-line2);
    border-left: 4px solid var(--fp-teal);
    border-radius: 14px;
    padding: 16px 18px 18px;
    margin: 0 0 20px;
}

.fpac-tools-actions > .fpac-h3 {
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--fp-tealsoft) !important;
    padding: 0;
    border: 0;
    margin: 0 0 12px;
}

.fpac-tools-actions .fpac-tool {
    background: var(--fp-frame);
}

/* Four kinds of block, each with one look: content (the plain card), yours (teal edge, a step lighter), offer (warm, orange title) and notice (orange border, .fpac-card--new above) */
.fpac[data-tab="learning"] section.fpac-card.fpac-card--mine, .fpac-card--own, .fpac-results {
    background: var(--fp-panel2);
    border: 1px solid var(--fp-line2);
    border-left: 4px solid var(--fp-teal);
    border-radius: 14px;
    padding: 20px 22px;
}

.fpac-card--mine > .fpac-card-title, .fpac-card--own > .fpac-kick, .fpac-card--own > .fpac-card-title, .fpac-results > .fpac-h3 {
    color: var(--fp-tealsoft) !important;
}

.fpac-results > .fpac-h3 {
    padding: 0;
    border: 0;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.fpac-card--offer {
    background: var(--fp-offer);
    border-color: var(--fp-offer-line);
}

.fpac-card--offer > .fpac-kick, .fpac-card--offer > .fpac-card-title {
    color: var(--fp-orange) !important;
}

.fpac-card--offer .fpac-btn:not(.fpac-btn--secondary):not(.fpac-btn--quiet) {
    background: var(--fp-orange);
    border-color: var(--fp-orange);
}

.fpac-card--new {
    border-width: 2px;
}

.fpac-trends-optin {
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.fpac-dpa {
    max-height: 420px;
    overflow: auto;
    padding: 16px 18px;
    border: 1px solid var(--fp-line2);
    border-radius: 10px;
    background: var(--fp-frame);
    font-size: 14px;
    color: var(--fp-ink2);
}

.fpac-dpa h4 {
    font-size: 15px;
    margin: 16px 0 6px;
}

.fpac-dpa p {
    margin: 6px 0;
}

.fpac-dpa-form {
    margin-top: 14px;
}

.fpac-dpa-form .fpac-check {
    margin: 0 0 12px;
}

.fpac-dpa-accepted {
    margin-top: 18px;
    font-size: 14px;
}

.fpac-dpa-accepted > summary {
    cursor: pointer;
    color: var(--fp-tealsoft);
}

.fpac-cart-note {
    margin: 10px 0 0;
}
