@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --tp-cream: #f5f0ea;
    --tp-card: #fffdf9;
    --tp-ink: #202033;
    --tp-muted: #6f6472;
    --tp-line: #e6ded4;
    --tp-sage: #8eae8c;
    --tp-sage-dark: #55754f;
    --tp-sage-soft: #edf5ee;
    --tp-terracotta: #c97758;
    --tp-terracotta-dark: #a55238;
    --tp-warning-bg: #fff7df;
    --tp-warning: #9b6a12;
    --tp-danger-bg: #fff0ed;
    --tp-danger: #b94735;
    --tp-shadow: 0 16px 34px rgba(69, 51, 36, 0.09);
    --tp-font-ui: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tp-font-display: Fraunces, Georgia, "Times New Roman", serif;
}

body {
    background: var(--tp-cream);
}

body.tp-mi-pilates-authenticated .elementor-location-header,
body.tp-mi-pilates-authenticated header[data-elementor-type="header"],
body.tp-mi-pilates-authenticated .site-header,
body.tp-mi-pilates-authenticated #masthead {
    display: none !important;
}

.tp-portal {
    max-width: 1380px;
    margin: 0 auto;
    padding: 16px 16px 28px;
    color: var(--tp-ink);
    font-family: var(--tp-font-ui);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.tp-portal * {
    box-sizing: border-box;
}

.tp-portal button,
.tp-portal input,
.tp-portal select,
.tp-portal textarea {
    font-family: var(--tp-font-ui);
}

.tp-portal-topbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    max-width: 1120px;
    margin: 0 0 16px;
    border: 1px solid var(--tp-line);
    border-radius: 18px;
    padding: 9px 10px 9px 13px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 14px 30px rgba(69, 51, 36, 0.07);
}

.tp-portal-brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: var(--tp-ink) !important;
    text-decoration: none !important;
}

.tp-portal-brand img {
    width: 54px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
}

.tp-portal-brand span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.tp-portal-brand small {
    color: var(--tp-sage-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tp-portal-brand strong {
    overflow: hidden;
    color: var(--tp-ink);
    font-size: 18px;
    font-weight: 750;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-portal-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.tp-portal-menu a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    padding: 7px 13px;
    background: #fff;
    color: var(--tp-sage-dark) !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none !important;
}

.tp-portal-menu a:hover,
.tp-portal-menu a:focus,
.tp-portal-menu a.is-active {
    border-color: var(--tp-sage);
    background: var(--tp-sage-soft);
}

.tp-notification-menu {
    position: relative;
}

.tp-notification-menu summary {
    position: relative;
    display: inline-flex;
    width: 38px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tp-sage-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    list-style: none;
}

.tp-notification-menu summary::-webkit-details-marker {
    display: none;
}

.tp-notification-menu summary:hover,
.tp-notification-menu summary:focus,
.tp-notification-menu summary.is-active {
    border-color: var(--tp-sage);
    background: var(--tp-sage-soft);
}

.tp-notification-menu summary em {
    position: absolute;
    top: -7px;
    right: -6px;
    display: inline-flex;
    min-width: 20px;
    min-height: 20px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--tp-terracotta);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.tp-notification-menu summary .dashicons {
    width: auto;
    height: auto;
    font-size: 17px;
    line-height: 1;
}

.tp-notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    gap: 6px;
    width: min(320px, calc(100vw - 24px));
    border: 1px solid var(--tp-line);
    border-radius: 14px;
    padding: 8px;
    background: var(--tp-card);
    box-shadow: var(--tp-shadow);
}

.tp-notification-dropdown-item,
.tp-notification-dropdown p {
    display: grid;
    gap: 3px;
    min-height: auto;
    justify-content: stretch;
    border: 1px solid var(--tp-line);
    border-radius: 10px;
    padding: 9px 10px;
    background: #fbf8f4;
    color: var(--tp-ink) !important;
    text-align: left;
    text-decoration: none !important;
}

.tp-notification-dropdown-item {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
    align-items: start;
}

.tp-notification-dropdown-item a {
    display: grid;
    gap: 3px;
    min-width: 0;
    color: var(--tp-ink) !important;
    text-align: left;
    text-decoration: none !important;
}

.tp-notification-dropdown-item.is-unread {
    border-color: #b9d2b8;
    background: var(--tp-sage-soft);
}

.tp-notification-dismiss {
    display: inline-flex;
    width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: var(--tp-muted);
    cursor: pointer;
}

.tp-notification-dismiss:hover,
.tp-notification-dismiss:focus {
    border-color: var(--tp-line);
    background: #fff;
    color: var(--tp-danger);
}

.tp-notification-dismiss .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.tp-notification-dropdown strong {
    font-size: 13px;
}

.tp-notification-dropdown span,
.tp-notification-dropdown p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 12px;
    line-height: 1.35;
}

.tp-notification-dropdown .tp-notification-view-all {
    place-items: center;
    min-height: 34px;
    border-color: var(--tp-sage);
    background: #fff;
    color: var(--tp-sage-dark) !important;
    font-weight: 750;
    text-align: center;
}

.tp-portal-menu .tp-portal-logout {
    border-color: #e4b2a9;
    background: var(--tp-danger-bg);
    color: var(--tp-danger) !important;
}

.tp-portal-menu .tp-portal-logout:hover,
.tp-portal-menu .tp-portal-logout:focus {
    border-color: var(--tp-danger);
    background: var(--tp-danger);
    color: #fff !important;
}

.tp-portal-hero {
    max-width: 1120px;
    margin: 0 0 14px;
    border-top: 3px solid var(--tp-sage);
    padding-top: 8px;
}

.tp-portal-hero h1 {
    margin: 0;
    color: var(--tp-ink);
    font-family: var(--tp-font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.05;
}

.tp-portal-hero p {
    max-width: 760px;
    margin: 5px 0 0;
    color: var(--tp-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.tp-kicker {
    margin: 0 0 6px !important;
    color: var(--tp-sage-dark) !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tp-portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
    align-items: start;
}

.tp-portal-main,
.tp-portal-side {
    min-width: 0;
}

.tp-window {
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 15px;
    background: var(--tp-card);
    box-shadow: var(--tp-shadow);
}

.tp-window-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    background: var(--tp-sage);
    color: #fff;
}

.tp-window-bar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.tp-window-bar strong {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 700;
}

.tp-window-body {
    padding: 13px;
}

.tp-section-title {
    display: flex;
    align-items: center;
    margin: 14px 0 8px;
    border-bottom: 2px solid var(--tp-sage);
    padding-bottom: 6px;
}

.tp-portal-main > .tp-section-title,
.tp-portal-side > .tp-section-title:first-child {
    margin-top: 0;
}

.tp-section-title + .tp-window {
    margin-bottom: 12px;
}

.tp-section-title h2 {
    margin: 0;
    color: var(--tp-sage-dark);
    font-family: var(--tp-font-ui);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.tp-portal-message {
    max-width: 1120px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 500;
}

.tp-portal-message-success {
    border: 1px solid #c4dfc2;
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark);
}

.tp-portal-message-warning {
    border: 1px solid #ead38f;
    background: var(--tp-warning-bg);
    color: var(--tp-warning);
}

.tp-portal-message-error,
.tp-portal-alert {
    border: 1px solid #e4b2a9;
    background: var(--tp-danger-bg);
    color: var(--tp-danger);
}

.tp-week-control {
    margin-bottom: 10px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: #fbf8f4;
}

.tp-week-control-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid var(--tp-line);
}

.tp-week-control-head > div {
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
}

.tp-week-control-head span {
    color: var(--tp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-week-control-head strong {
    font-size: 16px;
}

.tp-week-arrow {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tp-sage-dark) !important;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none !important;
}

.tp-week-arrow:hover,
.tp-week-arrow:focus {
    border-color: var(--tp-sage);
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark) !important;
}

.tp-week-arrow.is-disabled {
    opacity: 0.36;
}

.tp-week-picker {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px;
}

.tp-week-chip {
    display: inline-grid;
    gap: 4px;
    min-width: 96px;
    min-height: 40px;
    align-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 6px 8px;
    background: transparent;
    color: var(--tp-ink) !important;
    text-decoration: none !important;
}

.tp-week-chip span {
    color: var(--tp-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-week-chip strong {
    color: inherit;
    font-size: 13px;
    line-height: 1.15;
}

.tp-week-chip:hover,
.tp-week-chip:focus {
    border-color: var(--tp-sage);
    background: var(--tp-sage-soft);
    color: var(--tp-ink);
}

.tp-week-chip.is-selected {
    border-color: var(--tp-terracotta);
    background: var(--tp-terracotta);
    color: #fff !important;
}

.tp-week-chip.is-selected span {
    color: rgba(255, 255, 255, 0.78);
}

.tp-history-note {
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 11px 13px;
    border: 1px solid #ead38f;
    border-radius: 12px;
    background: var(--tp-warning-bg);
}

.tp-history-note strong {
    color: var(--tp-warning);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-history-note span {
    color: var(--tp-muted);
    font-size: 13px;
}

.tp-button,
.tp-portal button,
.tp-portal input[type="submit"] {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tp-line);
    border-radius: 999px;
    padding: 5px 11px;
    background: #fff;
    color: var(--tp-sage-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.tp-button:hover,
.tp-button:focus,
.tp-portal button:hover,
.tp-portal button:focus,
.tp-portal input[type="submit"]:hover,
.tp-portal input[type="submit"]:focus {
    border-color: var(--tp-sage);
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark);
}

.tp-button-primary,
.tp-portal input[type="submit"] {
    border-color: var(--tp-terracotta);
    background: var(--tp-terracotta);
    color: #fff;
}

.tp-button-primary:hover,
.tp-button-primary:focus,
.tp-portal input[type="submit"]:hover,
.tp-portal input[type="submit"]:focus {
    border-color: var(--tp-terracotta-dark);
    background: var(--tp-terracotta-dark);
    color: #fff;
}

.tp-button-soft {
    border-color: #b9d2b8;
    background: #edf5ee;
    color: var(--tp-sage-dark) !important;
    text-decoration: none !important;
}

.tp-button-soft:hover,
.tp-button-soft:focus {
    border-color: var(--tp-sage);
    background: #dcebdd;
    color: var(--tp-sage-dark) !important;
    text-decoration: none !important;
}

.tp-button-month {
    border-color: #ead38f;
    background: var(--tp-warning-bg);
    color: var(--tp-warning);
}

.tp-button-month:hover,
.tp-button-month:focus {
    border-color: #d7b65a;
    background: #fff0bf;
    color: var(--tp-warning);
}

.tp-booking-days {
    display: grid;
    gap: 8px;
}

.tp-booking-day {
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: #fbf8f4;
}

.tp-booking-day > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--tp-line);
    background: #f1ebe4;
}

.tp-booking-day > header span {
    color: var(--tp-sage-dark);
    font-family: var(--tp-font-display);
    font-size: 18px;
}

.tp-booking-day > header strong {
    color: var(--tp-muted);
}

.tp-booking-slots {
    display: grid;
    gap: 5px;
    padding: 7px;
}

.tp-booking-slot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid var(--tp-line);
    border-radius: 10px;
    background: var(--tp-card);
}

.tp-booking-slot.is-reserved {
    border-color: #a9c8a7;
    background: var(--tp-sage-soft);
}

.tp-booking-slot.is-recovery {
    border-color: #e7c878;
    background: var(--tp-warning-bg);
}

.tp-booking-slot.is-missed {
    border-color: #e4b2a9;
    background: var(--tp-danger-bg);
}

.tp-booking-slot > div {
    display: flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
}

.tp-booking-slot strong {
    font-size: 15px;
}

.tp-booking-slot span,
.tp-empty-state,
.tp-absence-form p {
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 400;
}

.tp-booking-slot form {
    margin: 0;
}

.tp-booking-slot .tp-button {
    min-height: 26px;
    padding: 4px 9px;
}

.tp-slot-booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.tp-slot-booking-actions form {
    margin: 0;
}

.tp-slot-reserved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.tp-slot-reserved-actions form {
    margin: 0;
}

.tp-button-ghost {
    min-height: 24px;
    border-color: transparent;
    background: transparent;
    color: var(--tp-danger) !important;
    font-size: 11px;
}

.tp-button-ghost:hover,
.tp-button-ghost:focus {
    border-color: #e4b2a9;
    background: var(--tp-danger-bg);
    color: var(--tp-danger) !important;
}

.tp-profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.tp-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f1ede8;
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
}

.tp-pill-active {
    background: #dff0df;
    color: var(--tp-sage-dark);
}

.tp-pill-warning {
    background: var(--tp-warning-bg);
    color: var(--tp-warning);
}

.tp-pill-danger {
    background: var(--tp-danger-bg);
    color: var(--tp-danger);
}

.tp-pill-recovery {
    background: var(--tp-warning-bg);
    color: var(--tp-warning);
}

.tp-mini-list h3 {
    margin: 0 0 8px;
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tp-mini-reservation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--tp-line);
}

.tp-mini-reservation:last-child {
    border-bottom: 0;
}

.tp-mini-reservation div {
    display: grid;
    gap: 3px;
}

.tp-mini-reservation span:not(.tp-pill) {
    color: var(--tp-muted);
}

.tp-week-total {
    display: grid;
    gap: 7px;
    margin-top: 2px;
    padding: 12px 14px;
    border: 1px solid var(--tp-line);
    border-radius: 13px;
    background: #fbf8f4;
}

.tp-week-total + .tp-week-total {
    margin-top: 10px;
}

.tp-week-total-recovery {
    border-color: #ecd8a4;
    background: #fff9e9;
}

.tp-week-total > span {
    color: var(--tp-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tp-week-total strong {
    color: var(--tp-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.tp-week-total p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-progress-recovery i {
    background: var(--tp-terracotta);
}

.tp-week-total-extra {
    padding-top: 4px;
    border-top: 1px solid var(--tp-line);
}

.tp-dashboard-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.tp-dashboard-shortcuts .tp-button {
    width: 100%;
    min-height: 34px;
    font-size: 13px;
    font-weight: 750;
}

.tp-portal-achievements {
    display: grid;
    gap: 7px;
}

.tp-portal-achievement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: flex-start;
    padding: 9px 10px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: #fbf8f4;
}

.tp-portal-achievement > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.tp-portal-achievement strong {
    overflow: hidden;
    color: var(--tp-ink);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-portal-achievement span:not(.tp-pill),
.tp-portal-achievement p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 12px;
    line-height: 1.35;
}

.tp-portal-achievement .tp-pill {
    justify-self: end;
}

.tp-portal-notifications {
    display: grid;
    gap: 10px;
}

.tp-portal-notifications article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--tp-line);
    border-radius: 13px;
    background: #fbf8f4;
}

.tp-portal-notifications article.is-unread {
    border-color: #b9d2b8;
    background: var(--tp-sage-soft);
}

.tp-portal-notifications article {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tp-portal-notifications article.is-removing {
    opacity: 0;
    transform: translateX(10px);
}

.tp-portal-notifications article > div:first-child {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.tp-portal-notifications strong {
    color: var(--tp-ink);
    font-size: 15px;
}

.tp-portal-notifications p {
    margin: 0;
    color: var(--tp-muted);
    line-height: 1.45;
}

.tp-portal-notifications small {
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-portal-notification-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.tp-portal-notification-actions form {
    margin: 0;
}

.tp-portal-action-icon,
.tp-portal-action-icon:hover,
.tp-portal-action-icon:focus {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
    padding: 0;
    box-shadow: none;
    transform: none;
}

.tp-portal-action-icon {
    border-color: rgba(127, 163, 121, 0.28);
    background: #fff;
    color: var(--tp-sage-dark);
}

.tp-portal-action-icon:hover,
.tp-portal-action-icon:focus {
    border-color: var(--tp-sage-dark);
    background: var(--tp-sage-dark);
    color: #fff;
}

.tp-portal-action-icon-danger {
    border-color: rgba(185, 71, 53, 0.24);
    background: #fff8f6;
    color: var(--tp-danger);
}

.tp-portal-action-icon-danger:hover,
.tp-portal-action-icon-danger:focus {
    border-color: var(--tp-danger);
    background: var(--tp-danger);
    color: #fff;
}

.tp-portal-action-icon .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.tp-portal-action-icon[disabled] {
    cursor: wait;
    opacity: 0.58;
}

.tp-progress {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #eee8df;
}

.tp-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tp-sage);
}

.tp-empty-state {
    margin: 0;
    padding: 10px;
    border: 1px dashed var(--tp-line);
    border-radius: 12px;
    text-align: center;
}

.tp-public-agenda-days {
    display: grid;
    gap: 8px;
}

.tp-public-agenda-day {
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    background: #fbf8f4;
}

.tp-public-agenda-day > header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--tp-line);
    background: #f1ebe4;
}

.tp-public-agenda-day > header span {
    color: var(--tp-sage-dark);
    font-family: var(--tp-font-display);
    font-size: 18px;
}

.tp-public-agenda-day > header strong {
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-public-agenda-slots {
    display: grid;
    gap: 6px;
    padding: 7px;
}

.tp-public-agenda-slot {
    overflow: hidden;
    border: 1px solid var(--tp-line);
    border-radius: 10px;
    background: var(--tp-card);
}

.tp-public-agenda-slot-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
    padding: 7px 9px;
    border-bottom: 1px solid var(--tp-line);
}

.tp-public-agenda-slot-head strong {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.tp-public-agenda-slot-head span {
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.tp-public-agenda-students {
    display: grid;
}

.tp-public-agenda-student {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 9px;
    border-bottom: 1px solid var(--tp-line);
}

.tp-public-agenda-student:last-child {
    border-bottom: 0;
}

.tp-public-agenda-student strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-public-agenda-student > span {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.tp-public-agenda-student .tp-pill {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 11px;
    font-style: normal;
}

.tp-absence-form {
    display: grid;
    gap: 12px;
}

.tp-absence-form label,
.tp-portal-login label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-absence-form select,
.tp-absence-form textarea,
.tp-portal-login input[type="text"],
.tp-portal-login input[type="password"] {
    width: 100%;
    border: 1px solid var(--tp-line);
    border-radius: 10px;
    background: #fbf8f4;
    color: var(--tp-ink);
}

.tp-absence-form select {
    min-height: 42px;
}

.tp-absence-form textarea {
    min-height: 88px;
}

.tp-absence-form .tp-button {
    width: 100%;
    min-height: 38px;
}

.tp-portal-login {
    max-width: 1120px;
}

.tp-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 34px;
    align-items: center;
    min-height: 520px;
    border-top: 3px solid var(--tp-sage);
    padding-top: 26px;
}

.tp-login-copy h1 {
    max-width: 560px;
    margin: 0;
    color: var(--tp-ink);
    font-family: var(--tp-font-display);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.02;
}

.tp-login-copy p {
    max-width: 560px;
    margin: 12px 0 0;
    color: var(--tp-muted);
    font-size: 18px;
    line-height: 1.45;
}

.tp-login-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.tp-login-highlights span {
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark);
    font-size: 13px;
    font-weight: 600;
}

.tp-login-card {
    width: 100%;
}

.tp-login-form {
    display: grid;
    gap: 14px;
    margin: 0 0 14px;
}

.tp-login-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--tp-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-login-form input[type="email"],
.tp-login-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fbf8f4;
    color: var(--tp-ink);
    font-size: 16px;
    font-weight: 400;
}

.tp-password-field {
    position: relative;
    display: block;
}

.tp-login-form .tp-password-field input[type="password"],
.tp-login-form .tp-password-field input[type="text"] {
    padding-right: 48px;
}

.tp-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 34px;
    height: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    border: 0 !important;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: var(--tp-sage-dark);
    box-shadow: none !important;
    line-height: 1;
    cursor: pointer;
}

.tp-password-toggle:hover,
.tp-password-toggle:focus {
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark);
}

.tp-password-toggle .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.tp-login-form input:focus {
    border-color: var(--tp-sage);
    outline: none;
    box-shadow: 0 0 0 1px var(--tp-sage);
}

.tp-login-form .login-remember {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
}

.tp-login-form .login-remember input {
    margin: 0;
}

.tp-login-form .tp-button {
    min-height: 44px;
    justify-self: start;
    padding-inline: 22px;
}

.tp-muted-link {
    color: var(--tp-muted);
    font-size: 13px;
}

.tp-install-app {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 99990;
}

.tp-install-app[hidden],
.tp-install-modal[hidden] {
    display: none !important;
}

.tp-install-app-button {
    min-height: 44px !important;
    border-color: var(--tp-terracotta) !important;
    padding: 10px 16px !important;
    background: var(--tp-terracotta) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(69, 51, 36, 0.18);
    font-size: 14px !important;
    font-weight: 750 !important;
}

.tp-install-app-button:hover,
.tp-install-app-button:focus {
    border-color: var(--tp-terracotta-dark) !important;
    background: var(--tp-terracotta-dark) !important;
    color: #fff !important;
}

.tp-install-modal {
    position: fixed;
    inset: 0;
    z-index: 99991;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(32, 32, 51, 0.38);
}

.tp-install-dialog {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--tp-line);
    border-radius: 14px;
    padding: 22px;
    background: var(--tp-card);
    box-shadow: 0 24px 60px rgba(32, 32, 51, 0.22);
}

.tp-install-dialog h2 {
    margin: 0;
    color: var(--tp-ink);
    font-family: var(--tp-font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.08;
}

.tp-install-dialog ol {
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
    padding-left: 22px;
    color: var(--tp-muted);
    font-size: 15px;
    line-height: 1.45;
}

.tp-install-dialog [data-tp-install-dismiss] {
    width: 100%;
    min-height: 44px !important;
    border-color: var(--tp-sage) !important;
    border-radius: 999px !important;
    background: var(--tp-sage-soft) !important;
    color: var(--tp-sage-dark) !important;
    box-shadow: none !important;
}

.tp-install-dialog [data-tp-install-dismiss]:hover,
.tp-install-dialog [data-tp-install-dismiss]:focus {
    border-color: var(--tp-sage-dark) !important;
    background: var(--tp-sage) !important;
    color: #fff !important;
}

.tp-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    min-height: 34px !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--tp-muted) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.tp-install-close:hover,
.tp-install-close:focus {
    background: var(--tp-sage-soft) !important;
    color: var(--tp-sage-dark) !important;
}

@media (max-width: 980px) {
    .tp-portal-shell {
        grid-template-columns: 1fr;
    }

    .tp-portal-main {
        order: 2;
    }

    .tp-portal-side {
        order: 1;
    }

    .tp-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tp-login-copy h1 {
        font-size: 40px;
    }

    .tp-week-picker {
        padding-bottom: 10px;
    }

    .tp-portal-hero h1 {
        font-size: 34px;
    }
}

@media (min-width: 1180px) {
    .tp-booking-days,
    .tp-public-agenda-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 640px) {
    .tp-portal {
        padding: 14px 10px 28px;
    }

    .tp-portal-topbar {
        position: relative;
        align-items: stretch;
        flex-direction: column;
        overflow: visible;
    }

    .tp-portal-menu {
        justify-content: flex-start;
    }

    .tp-portal-brand img {
        width: 48px;
        height: 38px;
    }

    .tp-window-body {
        padding: 12px;
    }

    .tp-week-chip {
        min-width: 108px;
        scroll-snap-align: start;
    }

    .tp-booking-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .tp-booking-day > header,
    .tp-mini-reservation,
    .tp-portal-achievement,
    .tp-portal-notifications article,
    .tp-public-agenda-student {
        grid-template-columns: 1fr;
    }

    .tp-booking-day > header,
    .tp-booking-slot > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .tp-booking-slot {
        grid-template-columns: 1fr;
        align-content: start;
        gap: 8px;
        min-height: 124px;
        padding: 8px;
    }

    .tp-booking-slot strong {
        font-size: 16px;
    }

    .tp-booking-slot .tp-button {
        width: 100%;
        min-height: 28px;
        padding: 4px 6px;
        font-size: 11px;
    }

    .tp-slot-reserved-actions {
        justify-content: flex-start;
    }

    .tp-slot-booking-actions {
        display: grid;
        width: 100%;
        justify-content: stretch;
    }

    .tp-slot-booking-actions form {
        width: 100%;
    }

    .tp-public-agenda-slot-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .tp-public-agenda-student > span {
        justify-content: flex-start;
    }

    .tp-portal-achievement .tp-pill {
        justify-self: start;
    }

    .tp-notification-menu {
        position: static;
    }

    .tp-notification-dropdown {
        top: calc(100% + 8px);
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .tp-portal-notification-actions {
        justify-content: flex-start;
    }

    .tp-booking-slot > div {
        gap: 3px;
    }

    .tp-install-app {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .tp-install-app-button {
        width: 100%;
    }

    .tp-install-dialog {
        padding: 20px;
    }

    .tp-install-dialog h2 {
        font-size: 28px;
    }
}

/* Premium PWA refresh. Keeps behavior intact while modernizing the shell and interactions. */
body.tp-mi-pilates-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #fbf8f2 0%, #f4eee6 50%, #efe7de 100%);
}

body.tp-mi-pilates-page .elementor-location-header,
body.tp-mi-pilates-page header[data-elementor-type="header"],
body.tp-mi-pilates-page .site-header,
body.tp-mi-pilates-page #masthead,
body.tp-mi-pilates-page .elementor-location-footer,
body.tp-mi-pilates-page footer[data-elementor-type="footer"],
body.tp-mi-pilates-page .site-footer,
body.tp-mi-pilates-page #colophon {
    display: none !important;
}

.tp-portal {
    --tp-surface: #fffefa;
    --tp-surface-raised: #ffffff;
    --tp-surface-muted: #f7f3ec;
    --tp-ink: #171822;
    --tp-muted: #6d6670;
    --tp-line: #e6ded4;
    --tp-sage: #7fa379;
    --tp-sage-dark: #365d3f;
    --tp-sage-soft: #edf7ef;
    --tp-terracotta: #c97556;
    --tp-terracotta-dark: #9f4e37;
    --tp-aqua: #58aebc;
    --tp-radius: 8px;
    --tp-shadow: 0 20px 54px rgba(39, 32, 24, 0.1);
    --tp-shadow-soft: 0 10px 24px rgba(39, 32, 24, 0.065);
    max-width: 1240px;
    padding: 18px 16px 42px;
    color: var(--tp-ink);
    font-size: 14px;
    letter-spacing: 0;
}

.tp-portal a,
.tp-portal button,
.tp-portal input,
.tp-portal select,
.tp-portal textarea {
    letter-spacing: 0;
}

.tp-portal-topbar {
    position: sticky;
    top: 12px;
    z-index: 30;
    max-width: none;
    margin: 0 0 18px;
    border-color: rgba(142, 124, 104, 0.22);
    border-radius: var(--tp-radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--tp-shadow-soft);
    backdrop-filter: blur(14px);
}

.tp-portal-brand {
    gap: 10px;
}

.tp-portal-brand img {
    width: 44px;
    height: 34px;
    border-radius: 6px;
    object-fit: contain;
}

.tp-portal-brand small,
.tp-kicker,
.tp-week-chip span,
.tp-week-control-head span,
.tp-week-total > span,
.tp-login-form label,
.tp-absence-form label,
.tp-history-note strong {
    color: #766d76 !important;
    font-family: var(--tp-font-ui);
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.tp-portal-brand strong {
    color: var(--tp-ink);
    font-size: 17px;
    font-weight: 800;
}

.tp-portal-menu {
    gap: 6px;
}

.tp-portal-menu a,
.tp-notification-menu summary,
.tp-button,
.tp-portal button,
.tp-portal input[type="submit"],
.tp-week-arrow {
    min-height: 38px;
    border-color: rgba(127, 163, 121, 0.34);
    border-radius: 999px;
    background: #fff;
    color: var(--tp-sage-dark) !important;
    font-weight: 800;
    box-shadow: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tp-portal-menu a:hover,
.tp-portal-menu a:focus,
.tp-portal-menu a.is-active,
.tp-notification-menu summary:hover,
.tp-notification-menu summary:focus,
.tp-notification-menu summary.is-active,
.tp-button:hover,
.tp-button:focus,
.tp-portal button:hover,
.tp-portal button:focus,
.tp-portal input[type="submit"]:hover,
.tp-portal input[type="submit"]:focus,
.tp-week-arrow:hover,
.tp-week-arrow:focus {
    transform: translateY(-1px);
    border-color: var(--tp-sage-dark);
    background: var(--tp-sage-dark);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(54, 93, 63, 0.18);
}

.tp-portal-menu a.is-active {
    background: var(--tp-sage-dark);
    color: #fff !important;
}

.tp-portal-menu .tp-portal-logout {
    border-color: rgba(185, 71, 53, 0.22);
    background: #fff8f6;
    color: var(--tp-danger) !important;
}

.tp-portal-menu .tp-portal-logout:hover,
.tp-portal-menu .tp-portal-logout:focus {
    border-color: var(--tp-danger);
    background: var(--tp-danger);
    color: #fff !important;
}

.tp-notification-menu summary {
    width: 40px;
}

.tp-notification-menu summary em {
    top: -6px;
    right: -4px;
    border-color: #fff;
    background: var(--tp-terracotta);
}

.tp-notification-dropdown {
    width: min(360px, calc(100vw - 24px));
    border-color: rgba(142, 124, 104, 0.2);
    border-radius: var(--tp-radius);
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--tp-shadow);
    backdrop-filter: blur(14px);
}

.tp-notification-dropdown-item,
.tp-notification-dropdown p {
    border-color: rgba(142, 124, 104, 0.16);
    border-radius: var(--tp-radius);
    background: var(--tp-surface);
}

.tp-notification-dropdown-item.is-unread {
    border-color: rgba(127, 163, 121, 0.34);
    background: linear-gradient(90deg, var(--tp-sage-soft), #fffefa);
}

.tp-notification-dropdown .tp-notification-dropdown-item {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    align-items: center;
    border-radius: var(--tp-radius);
    padding: 10px;
    background: #fffefa;
}

.tp-notification-dropdown .tp-notification-dropdown-item.is-unread {
    border-color: rgba(127, 163, 121, 0.28);
    background: linear-gradient(90deg, #f2faf3, #fffefa);
}

.tp-notification-dropdown .tp-notification-dropdown-item a,
.tp-notification-dropdown .tp-notification-dropdown-item a:hover,
.tp-notification-dropdown .tp-notification-dropdown-item a:focus {
    display: grid;
    gap: 4px;
    min-height: auto;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    color: var(--tp-ink) !important;
    box-shadow: none !important;
    text-align: left;
    text-decoration: none !important;
    transform: none !important;
}

.tp-notification-dropdown .tp-notification-dropdown-item a:hover strong,
.tp-notification-dropdown .tp-notification-dropdown-item a:focus strong {
    color: var(--tp-sage-dark);
}

.tp-notification-dropdown strong {
    color: var(--tp-ink);
    font-weight: 850;
}

.tp-notification-dropdown span {
    color: #625b66;
    font-weight: 650;
}

.tp-notification-dropdown .tp-notification-dismiss,
.tp-notification-dropdown .tp-notification-dismiss:hover,
.tp-notification-dropdown .tp-notification-dismiss:focus {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 999px;
    padding: 0;
    box-shadow: none !important;
    transform: none !important;
}

.tp-notification-dropdown .tp-notification-dismiss {
    border-color: rgba(127, 163, 121, 0.24);
    background: #fff;
    color: #625b66;
}

.tp-notification-dropdown .tp-notification-dismiss:hover,
.tp-notification-dropdown .tp-notification-dismiss:focus {
    border-color: rgba(185, 71, 53, 0.32) !important;
    background: #fff8f6 !important;
    color: var(--tp-danger) !important;
}

.tp-portal-hero {
    max-width: 820px;
    margin: 0 0 16px;
    border: 0;
    padding-top: 0;
}

.tp-portal-hero::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin: 0 0 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tp-sage), var(--tp-aqua), rgba(201, 117, 86, 0.72), rgba(201, 117, 86, 0));
}

.tp-portal-hero h1,
.tp-login-copy h1,
.tp-install-dialog h2,
.tp-booking-day > header span,
.tp-public-agenda-day > header span {
    font-family: var(--tp-font-display);
    letter-spacing: 0;
}

.tp-portal-hero h1 {
    color: var(--tp-ink);
    font-size: 48px;
    font-weight: 650;
    line-height: 1;
}

.tp-portal-hero p {
    font-size: 15px;
    line-height: 1.58;
}

.tp-portal-shell {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
}

.tp-window,
.tp-portal-message,
.tp-week-control,
.tp-booking-day,
.tp-public-agenda-day,
.tp-booking-slot,
.tp-public-agenda-slot,
.tp-week-total,
.tp-portal-achievement,
.tp-portal-notifications article,
.tp-history-note,
.tp-empty-state {
    border-color: rgba(142, 124, 104, 0.2);
    border-radius: var(--tp-radius);
}

.tp-window {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--tp-shadow);
    backdrop-filter: blur(10px);
}

.tp-window-bar {
    min-height: 42px;
    border-bottom: 1px solid rgba(142, 124, 104, 0.16);
    padding: 0 16px;
    background:
        linear-gradient(90deg, rgba(127, 163, 121, 0.16), rgba(88, 174, 188, 0.08)),
        var(--tp-surface-raised);
    color: var(--tp-ink);
}

.tp-window-bar span {
    width: 7px;
    height: 7px;
    background: var(--tp-sage);
    opacity: 0.38;
}

.tp-window-bar span:nth-child(2) {
    background: var(--tp-terracotta);
}

.tp-window-bar strong {
    color: var(--tp-ink);
    font-size: 14px;
    font-weight: 800;
}

.tp-window-body {
    padding: 14px;
}

.tp-section-title {
    gap: 8px;
    margin: 18px 0 10px;
    border: 0;
    padding: 0;
}

.tp-section-title h2 {
    color: var(--tp-sage-dark);
    font-family: var(--tp-font-ui);
    font-size: 18px;
    font-weight: 850;
}

.tp-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    min-width: 36px;
    background: linear-gradient(90deg, rgba(127, 163, 121, 0.48), rgba(231, 224, 215, 0));
}

.tp-portal-message {
    max-width: none;
    padding: 13px 15px;
    font-weight: 700;
    box-shadow: var(--tp-shadow-soft);
}

.tp-week-control {
    background: var(--tp-surface);
    overflow: hidden;
}

.tp-week-control-head {
    min-height: 78px;
    padding: 10px 12px;
    border-bottom-color: rgba(142, 124, 104, 0.16);
    background:
        linear-gradient(90deg, rgba(127, 163, 121, 0.08), rgba(255, 255, 255, 0)),
        #fffefa;
}

.tp-week-control-head strong {
    color: var(--tp-ink);
    font-size: 18px;
    font-weight: 850;
}

.tp-week-picker {
    gap: 6px;
    padding: 8px;
    scroll-snap-type: x proximity;
}

.tp-week-chip {
    min-width: 122px;
    border-radius: var(--tp-radius);
    padding: 9px 10px;
    scroll-snap-align: start;
}

.tp-week-chip:hover,
.tp-week-chip:focus,
.tp-week-chip.is-selected {
    border-color: var(--tp-terracotta-dark);
    background: var(--tp-terracotta-dark);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(159, 78, 55, 0.22);
}

.tp-week-chip strong {
    font-weight: 850;
}

.tp-week-chip:hover span,
.tp-week-chip:focus span,
.tp-week-chip.is-selected span {
    color: #fff !important;
}

.tp-week-chip:hover strong,
.tp-week-chip:focus strong,
.tp-week-chip.is-selected strong {
    color: #fff;
}

.tp-booking-days,
.tp-public-agenda-days {
    gap: 10px;
}

.tp-booking-day,
.tp-public-agenda-day {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--tp-shadow-soft);
}

.tp-booking-day > header,
.tp-public-agenda-day > header {
    border-bottom-color: rgba(142, 124, 104, 0.16);
    padding: 11px 13px;
    background:
        linear-gradient(90deg, rgba(127, 163, 121, 0.12), rgba(255, 255, 255, 0)),
        var(--tp-surface-muted);
}

.tp-booking-day > header span,
.tp-public-agenda-day > header span {
    color: var(--tp-sage-dark);
    font-size: 21px;
    font-weight: 650;
}

.tp-booking-slots,
.tp-public-agenda-slots {
    gap: 7px;
    padding: 8px;
}

.tp-booking-slot,
.tp-public-agenda-slot {
    background: #fffefa;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.tp-booking-slot {
    min-height: 44px;
    padding: 8px 10px;
}

.tp-booking-slot:hover {
    border-color: rgba(127, 163, 121, 0.34);
    box-shadow: 0 8px 20px rgba(39, 32, 24, 0.065);
}

.tp-booking-slot strong,
.tp-public-agenda-slot-head strong {
    color: var(--tp-ink);
    font-size: 16px;
    font-weight: 850;
}

.tp-booking-slot.is-reserved {
    border-color: rgba(54, 93, 63, 0.22);
    background: linear-gradient(90deg, var(--tp-sage-soft), #fffefa);
}

.tp-booking-slot.is-recovery {
    border-color: rgba(155, 106, 18, 0.2);
    background: linear-gradient(90deg, #fff7df, #fffefa);
}

.tp-booking-slot.is-missed {
    border-color: rgba(185, 71, 53, 0.2);
    background: linear-gradient(90deg, #fff0ed, #fffefa);
}

.tp-button-primary,
.tp-portal input[type="submit"] {
    border-color: var(--tp-sage-dark);
    background: var(--tp-sage-dark);
    color: #fff !important;
}

.tp-button-primary:hover,
.tp-button-primary:focus,
.tp-portal input[type="submit"]:hover,
.tp-portal input[type="submit"]:focus {
    border-color: #24492f;
    background: #24492f;
}

.tp-button-soft {
    border-color: rgba(127, 163, 121, 0.34);
    background: var(--tp-sage-soft);
}

.tp-button-month {
    border-color: rgba(155, 106, 18, 0.24);
    background: #fff8e7;
    color: #8a5f11 !important;
}

.tp-button-ghost {
    border-color: transparent;
    background: transparent;
}

.tp-pill {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 5px 10px;
    background: #efebe5;
    color: var(--tp-muted);
    font-size: 11px;
    font-weight: 800;
}

.tp-pill-active {
    border-color: rgba(54, 93, 63, 0.16);
    background: var(--tp-sage-soft);
    color: var(--tp-sage-dark);
}

.tp-pill-warning,
.tp-pill-recovery {
    border-color: rgba(155, 106, 18, 0.16);
    background: #fff7df;
    color: #8a5f11;
}

.tp-pill-danger {
    border-color: rgba(185, 71, 53, 0.16);
    background: #fff0ed;
    color: var(--tp-danger);
}

.tp-week-total {
    background: linear-gradient(180deg, #fffefa, #f8f5ef);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.tp-week-total strong {
    color: var(--tp-ink);
    font-size: 18px;
    font-weight: 850;
}

.tp-progress {
    height: 9px;
    background: #e9e2d8;
}

.tp-progress i {
    background: linear-gradient(90deg, var(--tp-sage), var(--tp-aqua));
}

.tp-progress-recovery i {
    background: linear-gradient(90deg, var(--tp-terracotta), #d9a16d);
}

.tp-dashboard-shortcuts .tp-button {
    min-height: 38px;
}

.tp-portal-achievement,
.tp-portal-notifications article {
    background: #fffefa;
}

.tp-portal-achievement {
    padding: 11px 12px;
}

.tp-portal-achievement strong {
    font-size: 15px;
    font-weight: 850;
}

.tp-public-agenda-slot-head {
    border-bottom-color: rgba(142, 124, 104, 0.16);
}

.tp-public-agenda-student {
    border-bottom-color: rgba(142, 124, 104, 0.14);
}

.tp-absence-form select,
.tp-absence-form textarea,
.tp-portal-login input[type="text"],
.tp-portal-login input[type="password"],
.tp-login-form input[type="email"],
.tp-login-form input[type="password"],
.tp-login-form .tp-password-field input[type="text"] {
    border-color: rgba(142, 124, 104, 0.28);
    border-radius: var(--tp-radius);
    background: #fffefa;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.tp-login-form input:focus,
.tp-absence-form select:focus,
.tp-absence-form textarea:focus {
    border-color: var(--tp-sage);
    box-shadow: 0 0 0 3px rgba(127, 163, 121, 0.18);
}

.tp-portal-login {
    display: grid;
    min-height: 100svh;
    max-width: 1120px;
    align-items: center;
    padding-block: clamp(18px, 4vw, 44px);
}

.tp-login-shell {
    position: relative;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 410px);
    gap: clamp(24px, 4vw, 56px);
    min-height: min(660px, calc(100svh - 72px));
    border: 0;
    padding: clamp(24px, 4vw, 54px);
    border-radius: var(--tp-radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(247, 243, 236, 0.72)),
        linear-gradient(90deg, rgba(88, 174, 188, 0.11), rgba(201, 117, 86, 0.08));
    box-shadow: 0 32px 78px rgba(69, 51, 36, 0.13);
    overflow: hidden;
}

.tp-login-shell::before {
    content: "MP";
    position: absolute;
    top: clamp(24px, 4vw, 50px);
    left: clamp(24px, 4vw, 54px);
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(127, 163, 121, 0.22);
    border-radius: 8px;
    background: #fffefa;
    box-shadow: 0 14px 30px rgba(69, 51, 36, 0.08);
    color: var(--tp-sage-dark);
    font-family: var(--tp-font-display);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: 0;
}

.tp-login-shell::after {
    content: "";
    position: absolute;
    right: 43%;
    bottom: 0;
    width: 1px;
    height: 76%;
    background: linear-gradient(180deg, rgba(142, 124, 104, 0), rgba(142, 124, 104, 0.2), rgba(142, 124, 104, 0));
}

.tp-login-copy {
    position: relative;
    display: grid;
    align-content: center;
    z-index: 1;
    gap: 18px;
    padding-top: 82px;
    padding-right: clamp(10px, 2vw, 24px);
}

.tp-login-copy::before {
    display: none;
    content: "";
}

.tp-login-copy h1 {
    max-width: 540px;
    color: var(--tp-ink);
    font-size: clamp(48px, 5vw, 74px);
    font-weight: 650;
    line-height: 0.94;
}

.tp-login-copy p {
    max-width: 480px;
    color: var(--tp-muted);
    font-size: 18px;
    line-height: 1.5;
}

.tp-login-copy p::after {
    content: "";
    display: block;
    width: 84px;
    height: 3px;
    margin-top: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tp-sage), var(--tp-aqua), rgba(201, 117, 86, 0.74));
}

.tp-login-highlights {
    gap: 10px;
    margin-top: 10px;
}

.tp-login-highlights span {
    border: 1px solid rgba(127, 163, 121, 0.22);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tp-sage-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    font-weight: 800;
}

.tp-login-card {
    position: relative;
    z-index: 1;
    align-self: center;
    border-color: rgba(142, 124, 104, 0.22);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 22px 54px rgba(69, 51, 36, 0.12);
}

.tp-login-card .tp-window-bar {
    min-height: 54px;
    background:
        linear-gradient(90deg, rgba(127, 163, 121, 0.14), rgba(88, 174, 188, 0.08)),
        rgba(255, 255, 255, 0.7);
}

.tp-login-card .tp-window-bar strong {
    font-size: 16px;
}

.tp-login-card .tp-window-body {
    padding: 24px;
}

.tp-login-form {
    gap: 16px;
}

.tp-login-form input[type="email"],
.tp-login-form input[type="password"],
.tp-login-form .tp-password-field input[type="text"] {
    min-height: 54px;
    border-color: rgba(142, 124, 104, 0.22);
    background: #fffefa;
    font-size: 16px;
}

.tp-login-form .login-remember {
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 800;
}

.tp-login-form .tp-button {
    min-height: 48px;
    padding-inline: 24px;
}

.tp-login-card .tp-muted-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 4px;
    color: #3f93a1;
}

.tp-password-toggle,
.tp-password-toggle:hover,
.tp-password-toggle:focus {
    transform: translateY(-50%) !important;
}

.tp-password-toggle:hover,
.tp-password-toggle:focus {
    border-color: transparent !important;
    background: var(--tp-sage-soft) !important;
    color: var(--tp-sage-dark) !important;
    box-shadow: none !important;
}

.tp-muted-link {
    color: var(--tp-sage-dark);
    font-weight: 750;
}

.tp-install-app-button,
.tp-install-dialog [data-tp-install-dismiss] {
    border-radius: 999px !important;
}

.tp-install-dialog {
    border-radius: var(--tp-radius);
}

@media (min-width: 1180px) {
    .tp-booking-days,
    .tp-public-agenda-days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .tp-portal-shell {
        grid-template-columns: 1fr;
    }

    .tp-portal-side {
        order: 1;
    }

    .tp-portal-main {
        order: 2;
    }

    .tp-login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tp-login-shell::after {
        display: none;
    }

    .tp-login-copy {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .tp-portal {
        padding: 14px 10px 34px;
    }

    .tp-portal-topbar {
        top: 8px;
        gap: 10px;
        padding: 10px;
    }

    .tp-portal-menu {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .tp-portal-menu a,
    .tp-notification-menu summary {
        width: 100%;
        min-width: 0;
        padding: 7px 8px;
        font-size: 13px;
    }

    .tp-notification-menu {
        position: static;
    }

    .tp-notification-dropdown {
        top: calc(100% + 8px);
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .tp-portal-hero h1 {
        font-size: 38px;
    }

    .tp-portal-shell {
        gap: 12px;
    }

    .tp-window-body {
        padding: 12px;
    }

    .tp-week-control-head {
        min-height: 72px;
    }

    .tp-week-chip {
        min-width: 118px;
    }

    .tp-booking-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .tp-booking-day > header {
        align-items: flex-start;
    }

    .tp-booking-slot {
        min-height: 132px;
        padding: 10px;
    }

    .tp-booking-slot > div {
        gap: 4px;
    }

    .tp-booking-slot span,
    .tp-empty-state,
    .tp-absence-form p {
        font-size: 12px;
    }

    .tp-slot-booking-actions {
        gap: 6px;
    }

    .tp-booking-slot .tp-button {
        min-height: 32px;
        font-size: 11px;
    }

    .tp-login-shell {
        padding: 18px;
        min-height: auto;
    }

    .tp-login-shell::before {
        top: 18px;
        left: 18px;
        width: 62px;
        height: 62px;
    }

    .tp-login-copy {
        min-height: auto;
        gap: 12px;
        padding-top: 74px;
    }

    .tp-login-copy h1 {
        font-size: 40px;
    }

    .tp-login-copy p {
        font-size: 15px;
    }

    .tp-login-copy p::after {
        margin-top: 14px;
    }

    .tp-login-highlights {
        display: none;
    }

    .tp-login-card .tp-window-body {
        padding: 16px;
    }
}

@media (max-width: 380px) {
    .tp-portal-menu a,
    .tp-notification-menu summary {
        font-size: 12px;
        padding-inline: 6px;
    }

    .tp-booking-slot {
        min-height: 142px;
    }
}
