:root {
    --tblr-font-sans-serif: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --brand-navy: #1b263b;
    --brand-gold: #c5a059;
}

body {
    font-size: .8125rem;
}

.navbar-brand-image {
    height: 1.75rem;
}

/* Slimmer controls per design feedback: buttons/fields felt bulky */
.btn {
    --tblr-btn-padding-x: .75rem;
    --tblr-btn-padding-y: .375rem;
    --tblr-btn-font-size: .8125rem;
    font-weight: 600;
}

.btn-icon {
    --tblr-btn-padding-x: .375rem;
    width: 2rem;
    height: 2rem;
}

.form-control,
.form-select {
    --tblr-form-control-padding-y: .375rem;
    --tblr-form-control-padding-x: .625rem;
    font-size: .8125rem;
}

.form-label {
    margin-bottom: .25rem;
    font-size: .75rem;
    font-weight: 600;
}

.card {
    --tblr-card-spacer-y: 1rem;
    --tblr-card-spacer-x: 1rem;
}

.icon,
.ti {
    font-size: 1.1rem;
}

/* Icons inside buttons inherit button font-size for proportional scaling */
.btn .ti {
    font-size: 1em;
}

/* Goal journey stepper */
.goal-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.goal-stepper-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--tblr-body-color);
}

.goal-stepper-step .step-index {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--tblr-secondary-bg);
    color: var(--tblr-secondary);
    font-size: .6875rem;
}

.goal-stepper-step.is-done {
    border-color: var(--tblr-success);
    background: rgba(var(--tblr-success-rgb), .06);
}

.goal-stepper-step.is-done .step-index {
    background: var(--tblr-success);
    color: #fff;
}

.goal-stepper-step:hover {
    border-color: var(--brand-gold);
}

.goal-stepper-arrow {
    display: flex;
    align-items: center;
    color: var(--tblr-secondary);
}

/* Reflection / quote blocks (Grand Why, blocker history) */
.quote-block {
    padding: .75rem 1rem;
    border-left: 3px solid var(--brand-gold);
    background: var(--tblr-secondary-bg);
    font-size: .8125rem;
}

.believer-canvas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flip-card {
    width: 260px;
    height: 320px;
    perspective: 1200px;
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
    border-radius: var(--tblr-border-radius);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    border-radius: var(--tblr-border-radius);
    backface-visibility: hidden;
}

.flip-card-front {
    align-items: flex-end;
    background-color: var(--tblr-secondary-bg);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.flip-card-front span {
    width: 100%;
    padding: .75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
}

.flip-card-back {
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--brand-navy);
    color: #fff;
    text-align: center;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.hope-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.hope-list-item {
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-bg-surface, #fff);
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hope-list-item:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.hope-list-row {
    display: flex;
    align-items: center;
    padding: 0 .875rem;
}

.hope-list-toggle {
    display: flex;
    align-items: center;
    gap: .625rem;
    flex: 1;
    padding: .625rem 0;
    appearance: none;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.hope-list-chevron {
    color: var(--tblr-secondary);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.hope-list-toggle[aria-expanded="true"] .hope-list-chevron {
    transform: rotate(90deg);
    color: var(--brand-gold);
}

.hope-list-title {
    flex: 1;
    font-weight: 600;
    font-size: .875rem;
    color: var(--brand-navy);
}

.hope-list-edit {
    flex-shrink: 0;
}

.hope-list-statement {
    padding: 0 .875rem 1rem 2.375rem;
    font-size: .875rem;
    color: var(--tblr-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Coach FAB + impersonation banner */
.coach-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1030;
}

.coach-fab summary {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-gold);
    color: #fff;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .25);
}

.coach-fab summary::-webkit-details-marker {
    display: none;
}

.coach-fab-form {
    width: 280px;
    margin-top: .5rem;
    padding: 1rem;
    border-radius: var(--tblr-border-radius);
    background: #fff;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}

.coach-fab-session {
    bottom: 5rem;
}

.coach-fab-session .coach-fab-form {
    position: absolute;
    right: 0;
    bottom: 3.5rem;
    margin-top: 0;
}

.coach-fab-form-wide {
    width: min(340px, calc(100vw - 3rem));
    max-height: 70vh;
    overflow-y: auto;
}

.coaching-dialog {
    width: min(520px, calc(100vw - 2rem));
    max-height: 90vh;
    padding: 1.5rem;
    border: none;
    border-radius: var(--tblr-border-radius);
    background: #fff;
    overflow-y: auto;
}

.coaching-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}

.clarity-modal {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, .6);
    /* Reset the <dialog> user-agent defaults (border, max-width/height,
       centering via absolute positioning) so a native <dialog open> element
       renders identically to the previous <div role="dialog">. */
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    color: inherit;
}

.clarity-modal-card {
    width: min(100%, 420px);
    padding: 1.5rem;
    border-radius: var(--tblr-border-radius);
    background: #fff;
    text-align: center;
}

.burnout-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(var(--tblr-danger-rgb), .1);
    color: var(--tblr-danger);
    font-size: .6875rem;
    font-weight: 800;
}

/* Manifesto — consulting-grade executive document */

.manifesto-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--tblr-border-radius);
    background: #fff;
    border: 1px solid var(--tblr-border-color);
    color: #212529;
}

.manifesto-page.is-gold {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, .2);
}

.manifesto-header {
    position: relative;
    text-align: center;
    border-bottom: 2px solid var(--brand-navy);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.manifesto-esq-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: .3rem .7rem;
    border: 1px solid var(--brand-navy);
    border-radius: 999px;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--brand-navy);
}

.manifesto-page.is-gold .manifesto-esq-badge {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.manifesto-supertitle {
    margin: 0 0 .75rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.manifesto-title {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
}

.manifesto-why {
    max-width: 34rem;
    margin: .9rem auto 0;
    font-style: italic;
    font-size: .9375rem;
    color: var(--tblr-secondary);
    line-height: 1.6;
}

.manifesto-engine {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.manifesto-hope {
    margin-bottom: 1.25rem;
}

.manifesto-hope:last-child {
    margin-bottom: 0;
}

.manifesto-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    margin-bottom: .75rem;
}

.manifesto-belief {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--brand-navy);
    margin: .35rem 0;
}

.manifesto-engine-action {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manifesto-subblock h4,
.manifesto-risk-card h4,
.manifesto-anchor-card h4 {
    margin-bottom: .6rem;
    font-size: .6875rem;
    font-weight: 800;
    color: var(--tblr-secondary);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.manifesto-bullets {
    margin: 0;
    padding-left: 1.1rem;
    font-size: .8125rem;
    line-height: 1.7;
}

.manifesto-strategy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.manifesto-risk-card,
.manifesto-anchor-card {
    padding: 1.1rem;
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-secondary-bg);
}

.manifesto-risk-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .55rem 0;
    font-size: .8125rem;
    line-height: 1.5;
}

.manifesto-risk-item i {
    margin-top: .15rem;
    color: var(--brand-navy);
    flex-shrink: 0;
}

.manifesto-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 1rem;
}

.manifesto-checklist li {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .4rem 0;
    font-size: .8125rem;
    break-inside: avoid;
}

.manifesto-checklist li.is-filled i {
    color: var(--tblr-success, #2fb344);
}

.manifesto-checklist li.is-filled span {
    font-weight: 600;
}

.manifesto-checklist li.is-muted {
    color: var(--tblr-secondary);
}

.manifesto-checklist li.is-muted i {
    color: var(--tblr-border-color);
}

.manifesto-signature {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 3px solid var(--brand-navy);
}

.manifesto-signature-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: .75rem;
    color: var(--tblr-secondary);
    line-height: 1.5;
}

.manifesto-signature-box {
    flex-shrink: 0;
    padding-top: 1.5rem;
    min-width: 12rem;
    border-top: 1px solid var(--tblr-secondary);
    text-align: center;
    font-size: .6875rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Grand Why — AI reflection mirroring (minimalist, monochrome, no chrome) */
.gw-reflection {
    max-width: 640px;
    margin: 1.5rem 0;
}

.gw-reflection-meta {
    margin-bottom: .5rem;
    color: var(--tblr-secondary);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
}

.gw-question {
    margin-bottom: 1.5rem;
    color: var(--brand-navy);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.6;
}

.gw-textarea {
    display: block;
    width: 100%;
    margin-bottom: 1.25rem;
    padding: .5rem 0;
    border: none;
    border-bottom: 1px solid var(--tblr-border-color);
    background: transparent;
    color: var(--tblr-body-color);
    font-size: .9375rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color .15s ease;
}

.gw-textarea:focus {
    border-bottom-color: var(--brand-navy);
    outline: none;
    box-shadow: none;
}

.gw-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.gw-action-muted {
    padding: 0;
    color: var(--tblr-secondary);
    font-weight: 600;
    text-decoration: none;
}

.gw-action-muted:hover {
    color: var(--tblr-body-color);
}

.gw-loading-text {
    animation: gw-fade 1.1s ease-in-out infinite;
}

@keyframes gw-fade {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@media (max-width: 767.98px) {
    .manifesto-engine,
    .manifesto-strategy {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .manifesto-engine > *,
    .manifesto-strategy > * {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .table-responsive:has(> .table-stack) {
        overflow-x: visible;
    }

    .table-stack,
    .table-stack tbody,
    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }

    .table-stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table-stack tr {
        padding: .5rem 0;
        border-bottom: 1px solid var(--tblr-border-color);
    }

    .table-stack td {
        padding: .25rem 0;
        border: 0;
        overflow-wrap: anywhere;
    }

    .table-stack td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        font-weight: 500;
        letter-spacing: 0;
        color: var(--tblr-secondary);
    }
}

@media print {
    .no-print,
    .navbar-vertical,
    .navbar.d-print-none,
    .footer {
        display: none !important;
    }

    .page-wrapper {
        margin: 0 !important;
    }

    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background: #fff;
        font-size: 11pt;
    }

    .container-xl {
        max-width: none;
        padding: 0;
    }

    .manifesto-page {
        max-width: none;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .manifesto-page.is-gold {
        box-shadow: none;
    }

    .manifesto-header,
    .manifesto-esq-badge {
        border-color: #000 !important;
        color: #000 !important;
    }

    .manifesto-title {
        color: #000;
    }

    .manifesto-engine,
    .manifesto-strategy {
        break-inside: avoid;
    }

    .manifesto-engine-visual,
    .manifesto-subblock,
    .manifesto-risk-card,
    .manifesto-anchor-card {
        break-inside: avoid;
    }

    .manifesto-risk-card,
    .manifesto-anchor-card {
        background: #fff !important;
        border: 1px solid #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .manifesto-belief,
    .manifesto-risk-item i {
        color: #000 !important;
    }

    .manifesto-checklist li.is-filled i {
        color: #000 !important;
    }

    .manifesto-image {
        max-height: 160px;
    }

    .manifesto-signature {
        break-inside: avoid;
    }
}

.js-datepicker-wrap {
    position: relative;
}

.js-datepicker-wrap .js-datepicker {
    padding-right: 2rem;
}

.js-datepicker-wrap .js-datepicker-icon {
    position: absolute;
    top: 50%;
    right: .625rem;
    transform: translateY(-50%);
    color: var(--tblr-secondary);
    pointer-events: none;
}

.goal-milestone-row .js-datepicker-wrap {
    flex: 0 0 140px;
}

/* Halaman auth publik (login, lupa/reset password, undangan, check-in): bahasa visual
 * dan tipografi mengikuti halaman publik (latar krem, Cinzel untuk judul, skala 14/16).
 * Lihat docs/Public_Page_Standard.md. */
body.auth-page {
  background: #f9f7f2;
}

body.auth-page .navbar-brand {
  color: #1b263b;
  font-family: "Cinzel", serif;
  font-size: 22px;
  font-weight: 700;
}

body.auth-page .card {
  border: 1px solid #e7dfd1;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(27, 38, 59, .06);
}

body.auth-page .card-title {
  color: #1b263b;
  font-family: "Cinzel", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

body.auth-page .text-secondary,
body.auth-page .text-muted,
body.auth-page .small,
body.auth-page .alert {
  font-size: 14px;
  line-height: 1.6;
}

body.auth-page .form-label {
  font-size: 14px;
  font-weight: 600;
}

body.auth-page .form-control {
  font-size: 16px;
}

body.auth-page .btn {
  font-size: 16px;
  font-weight: 700;
}
