body {
    background: linear-gradient(165deg, #93a9b8 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
:root {
    --omanu-blue: #93a9b8;
    --omanu-black: #242424;
    --omanu-white: #F7F7F7;
    --omanu-gray: #696969;
    /* Shared corner radius for action buttons — a gentle, toned-down round
       rather than a full pill. Single source of truth so every CTA stays
       consistent (filled, outline, and .rounded-pill buttons all reference it). */
    --omanu-btn-radius: 8px;
}
.nav-item a{ color: var(--omanu-white);
}
.nav-item a:hover{
    color: var(--omanu-blue);
}

.card{
    background-color: var(--omanu-black);
}
.auth-card {
    border: none;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-card .card-body {
    padding: 2.5rem;
}

.idea-card-link {
    display: block;
    color: inherit;
    border-radius: 5px;
}
.idea-card-link:focus {
    outline: none;
}
.idea-card {
    background-color: #E8E8E8;
    color: var(--omanu-black);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.idea-card-link:hover .idea-card,
.idea-card-link:focus-visible .idea-card {
    background: #F8F8F8;
    color: var(--omanu-black);
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.idea-card-link:focus-visible .idea-card {
    outline: 2px solid var(--omanu-blue);
    outline-offset: 2px;
}
.idea-card__summary {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.idea-card__location {
    font-size: 1rem;
    font-weight: 500;
    color: var(--omanu-gray);
}
.idea-card__status {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
    font-weight: 600;
    padding: 0.4em 0.75em;
}
.idea-card__footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--omanu-gray);
}
@media (min-width: 768px) {
    .idea-card__summary {
        font-size: 1.6rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .idea-card {
        transition: none;
    }
    .idea-card-link:hover .idea-card,
    .idea-card-link:focus-visible .idea-card {
        transform: none;
    }
}
#details-card{
    background-color: #CCCCCC;
    color: var(--omanu-black);
}

.auth-header {
    color: var(--omanu-black);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.form-control {
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: #000000;
    color: black;
}

.btn-primary {
    border-radius: var(--omanu-btn-radius);
    padding: 12px 30px;
    background: var(--omanu-blue);
    color: var(--omanu-black);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    /* Keep the pressed / focused state on-theme instead of reverting to the
       default Bootstrap primary blue. */
    --bs-btn-active-bg: var(--omanu-blue);
    --bs-btn-active-border-color: var(--omanu-blue);
    --bs-btn-active-color: var(--omanu-white);
    --bs-btn-focus-shadow-rgb: 147, 169, 184;
}

.btn-primary:hover {
    background: var(--omanu-blue);
    color: var(--omanu-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background: var(--omanu-blue);
    color: var(--omanu-black);
    border: none;
    opacity: 0.75;
}

.btn-secondary{
    border-radius: var(--omanu-btn-radius);
    padding: 12px 30px;
    background: var(--omanu-blue);
    color: var(--omanu-white);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    --bs-btn-active-bg: var(--omanu-black);
    --bs-btn-active-border-color: var(--omanu-blue);
    --bs-btn-active-color: var(--omanu-blue);
    --bs-btn-focus-shadow-rgb: 147, 169, 184;
}
.btn-secondary:hover {
     background: var(--omanu-black);
    color: var(--omanu-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary{
    color: var(--omanu-white);
    background-color: var(--omanu-blue);
    border-color: var(--omanu-blue);
    --bs-btn-active-bg: var(--omanu-blue);
    --bs-btn-active-border-color: var(--omanu-blue);
    --bs-btn-active-color: var(--omanu-black);
    --bs-btn-focus-shadow-rgb: 147, 169, 184;
}
.btn-outline-primary:hover{
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
    border-color: var(--omanu-blue);
}

.btn-outline-secondary{
    color: var(--omanu-blue);
    border-color: var(--omanu-blue);
    --bs-btn-active-bg: var(--omanu-blue);
    --bs-btn-active-border-color: var(--omanu-blue);
    --bs-btn-active-color: var(--omanu-black);
    --bs-btn-focus-shadow-rgb: 147, 169, 184;
}
.btn-outline-secondary:hover{
    color: var(--omanu-black);
    background-color: var(--omanu-blue);
    border-color: var(--omanu-blue);
}

.btn-outline-delete{
    color: 	var(--omanu-gray);
    border-color: var(--omanu-gray);
    --bs-btn-active-bg: var(--omanu-gray);
    --bs-btn-active-border-color: var(--omanu-gray);
    --bs-btn-active-color: var(--omanu-white);
    --bs-btn-focus-shadow-rgb: 105, 105, 105;
}
.btn-outline-delete:hover{
    color: var(--omanu-white);
    background-color: var(--omanu-gray);
    border-color: var(--omanu-gray);
}

/* Tone down pill-shaped buttons to the shared, gentler corner. Scoped to
   buttons (.btn) so non-button `.rounded-pill` elements — badges, avatars,
   count bubbles — keep their full pill. `!important` is needed to beat
   Bootstrap's `.rounded-pill` utility, which sets the radius with !important. */
.btn.rounded-pill {
    border-radius: var(--omanu-btn-radius) !important;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--omanu-white);
}

.auth-link a {
    color: var(--omanu-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    color: var(--omanu-white);
    text-decoration: none;
}
.forgot-password-link{
    color: var(--omanu-white);
    text-decoration: none;
}

.forgot-password-link:hover{
    color: var(--omanu-blue);
}

.brand-title {
    color: var(--omanu-white);
    font-weight: 700;
    letter-spacing: 2px;
}

.mb-3 label {
    font-weight: 600;
    color: var(--omanu-blue);
    margin-bottom: 0.5rem;
}

.manage-idea-details {
    color: var(--omanu-white);

}
.home-header{
    color: var(--omanu-black);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.password-reset-header{
    color: var(--omanu-black);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.delete-task{
    color: var(--omanu-white);
    border:none;
}

.error-code {
    color: var(--omanu-blue);
    font-size: 6rem;
    font-weight: 700;
}

.error-title {
    color: var(--omanu-blue);
    font-weight: 600;
}

.error-message {
    color: var(--omanu-gray);
}

/* --- Password visibility toggle --- */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 48px;
}
.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--omanu-blue);
    cursor: pointer;
    border-radius: 0 25px 25px 0;
    transition: color 0.2s ease;
}
.password-toggle:hover {
    color: var(--omanu-black);
}
.password-toggle:focus-visible {
    outline: 2px solid var(--omanu-blue);
    outline-offset: -2px;
}
.password-toggle__icon {
    display: inline-flex;
}
.password-toggle__icon--hide {
    display: none;
}
.password-toggle.is-visible .password-toggle__icon--show {
    display: none;
}
.password-toggle.is-visible .password-toggle__icon--hide {
    display: inline-flex;
}
@media (prefers-reduced-motion: reduce) {
    .password-toggle {
        transition: none;
    }
}

.idea-filters .form-select {
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
}
.idea-filters .form-select:focus {
    border-color: #000000;
    color: black;
    box-shadow: none;
}

.idea-card-skeleton {
    background-color: #E8E8E8;
    border-radius: 5px;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 180px;
}
.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, #d4d4d4 25%, #ececec 50%, #d4d4d4 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line--lg {
    height: 1.5rem;
    width: 80%;
    margin: 0 auto 1rem;
}
.skeleton-line--md { width: 60%; }
.skeleton-line--sm { width: 40%; }

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .skeleton-line { animation: none; }
}

#idea-list-error {
    background-color: rgba(40, 40, 40, 0.85);
    border-color: var(--omanu-gray);
    color: var(--omanu-white);
}

/* --- Business idea detail: hero + tabbed body --- */
.detail-hero {
    margin-bottom: 1.5rem;
}
.detail-hero .card-body {
    padding: 1.75rem;
}
.detail-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.detail-hero__title-block {
    flex: 1 1 60%;
    min-width: 0;
}
.detail-hero__title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--omanu-white);
    margin: 0 0 0.5rem 0;
    word-break: break-word;
}
.detail-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: rgba(247, 247, 247, 0.7);
    margin: 0 0 0.25rem 0;
}
.detail-hero__location-icon {
    flex-shrink: 0;
    color: var(--omanu-blue);
}
.detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.detail-hero__meta {
    font-size: 0.8rem;
    color: rgba(247, 247, 247, 0.55);
    margin: 0;
}
@media (min-width: 768px) {
    .detail-hero__title {
        font-size: 2.25rem;
    }
}

/* Tab navigation */
.detail-tabs-wrapper {
    margin-bottom: 1rem;
}
.detail-tabs {
    border-bottom: 1px solid rgba(247, 247, 247, 0.15);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar {
    display: none;
}
.detail-tabs .nav-link {
    color: var(--omanu-white);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 1.1rem;
    border-radius: 0;
    font-weight: 500;
    white-space: nowrap;
}
.detail-tabs .nav-link:hover {
    color: var(--omanu-blue);
    border-color: var(--omanu-blue);
}
.detail-tabs .nav-link.active {
    color: var(--omanu-blue);
    background: transparent;
    border-color: var(--omanu-blue);
    font-weight: 600;
}
.detail-tabs .nav-link:focus-visible {
    outline: 2px solid var(--omanu-blue);
    outline-offset: -2px;
}
.detail-tab-pane {
    padding-top: 1.25rem;
}

/* Overview pane */
.overview-section {
    margin-bottom: 1.5rem;
}
.overview-section:last-child {
    margin-bottom: 0;
}
.overview-section__title {
    color: var(--omanu-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.overview-section__body {
    color: var(--omanu-white);
    margin-bottom: 0;
    line-height: 1.55;
}

/* Filter chip count */
.task-filter-chip__count {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background-color: rgba(247, 247, 247, 0.12);
    color: var(--omanu-white);
    font-size: 0.7rem;
    line-height: 1.45;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
}
.task-filter-chips .btn-check:checked + .btn .task-filter-chip__count {
    background-color: var(--omanu-black);
    color: var(--omanu-blue);
}

/* Progress stepper */
.idea-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    gap: 0;
}
.idea-progress__step {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 0.7rem;
    color: rgba(247, 247, 247, 0.5);
    min-width: 0;
}
.idea-progress__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background-color: transparent;
    color: rgba(247, 247, 247, 0.4);
    font-weight: 700;
    border: 2px solid rgba(247, 247, 247, 0.15);
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}
.idea-progress__step::after {
    content: '';
    position: absolute;
    top: calc(1rem - 1px);
    left: calc(50% + 1rem);
    right: calc(-50% + 1rem);
    height: 2px;
    background: rgba(247, 247, 247, 0.15);
    z-index: 0;
}
.idea-progress__step:last-child::after {
    display: none;
}
.idea-progress__step.is-complete .idea-progress__marker {
    background: var(--omanu-blue);
    border-color: var(--omanu-blue);
    color: var(--omanu-black);
}
.idea-progress__step.is-complete::after {
    background: var(--omanu-blue);
}
.idea-progress__step.is-current .idea-progress__marker {
    background: transparent;
    color: var(--omanu-blue);
    border-color: var(--omanu-blue);
}
.idea-progress__step.is-current .idea-progress__label,
.idea-progress__step.is-complete .idea-progress__label {
    color: var(--omanu-white);
    font-weight: 600;
}
.idea-progress__label {
    display: block;
    line-height: 1.2;
    padding: 0 0.15rem;
    word-break: break-word;
}

/* Idea completion banner (shown on the detail hero at states '40'/'50') */
.idea-complete-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(147, 169, 184, 0.12);
    border: 1px solid rgba(147, 169, 184, 0.35);
}
.idea-complete-banner--done {
    background: rgba(64, 145, 108, 0.14);
    border-color: rgba(64, 145, 108, 0.45);
}
.idea-complete-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--omanu-blue);
    color: var(--omanu-black);
}
.idea-complete-banner--done .idea-complete-banner__icon {
    background: #40916c;
    color: var(--omanu-white);
}
.idea-complete-banner__text {
    flex: 1 1 14rem;
    min-width: 0;
}
.idea-complete-banner__title {
    margin: 0;
    color: var(--omanu-white);
    font-weight: 700;
    font-size: 1.05rem;
}
.idea-complete-banner__sub {
    margin: 0.15rem 0 0;
    color: rgba(247, 247, 247, 0.75);
    font-size: 0.9rem;
}
.idea-complete-banner__action {
    flex: 0 0 auto;
}
@media (max-width: 575.98px) {
    .idea-complete-banner__action {
        width: 100%;
    }
}

/* Tasks panel */
.tasks-card .card-body {
    padding: 1.5rem;
}
.tasks-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tasks-card__title {
    color: var(--omanu-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

/* Task stats strip */
.task-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.task-stats__item {
    background-color: rgba(247, 247, 247, 0.06);
    border: 1px solid rgba(247, 247, 247, 0.12);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    text-align: center;
    min-width: 0;
}
.task-stats__value {
    display: block;
    color: var(--omanu-white);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}
.task-stats__label {
    display: block;
    color: var(--omanu-blue);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* Task filter form */
.task-filters {
    margin-bottom: 1rem;
}
.task-filters__label {
    color: var(--omanu-white);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: block;
}
/* Extra top gap when a second filter group (category) follows the status one. */
.task-filters__label--spaced {
    margin-top: 1rem;
}
.task-filters .form-control {
    padding: 10px 18px;
}
.task-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.task-filter-chips .btn-check + .btn {
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: transparent;
    color: var(--omanu-white);
    border: 1px solid var(--omanu-blue);
}
.task-filter-chips .btn-check:checked + .btn {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
    font-weight: 600;
}
.task-filter-chips .btn-check:focus-visible + .btn {
    outline: 2px solid var(--omanu-white);
    outline-offset: 2px;
}

/* Task list skeleton */
.task-skeleton {
    background-color: rgba(247, 247, 247, 0.04);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(247, 247, 247, 0.08);
    margin-bottom: 0.75rem;
}

/* Empty / status message inside tasks panel */
.tasks-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--omanu-white);
}
.tasks-empty__icon {
    font-size: 2rem;
    color: var(--omanu-blue);
    margin-bottom: 0.5rem;
}
.tasks-empty p {
    color: var(--omanu-white);
    margin-bottom: 0;
}

#task-list-error {
    background-color: rgba(40, 40, 40, 0.85);
    border-color: var(--omanu-gray);
    color: var(--omanu-white);
}

/* Dropdown menu theming for detail page hero */
.detail-hero .dropdown-menu {
    background-color: var(--omanu-black);
    border: 1px solid var(--omanu-gray);
}
.detail-hero .dropdown-item {
    color: var(--omanu-white);
}
.detail-hero .dropdown-item:hover,
.detail-hero .dropdown-item:focus {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
}
.detail-hero .dropdown-item.text-danger {
    color: #f08a8a;
}
.detail-hero .dropdown-item.text-danger:hover,
.detail-hero .dropdown-item.text-danger:focus {
    background-color: var(--omanu-gray);
    color: var(--omanu-white);
}

/* Validation tab */
.validation-verdict {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    border-left-width: 4px;
    margin-bottom: 1.5rem;
}
.validation-verdict--valid {
    background-color: rgba(147, 169, 184, 0.22);
    border-color: rgba(147, 169, 184, 0.5);
    border-left-color: var(--omanu-blue);
    color: var(--omanu-white);
}
.validation-verdict--review {
    background-color: rgba(240, 138, 138, 0.18);
    border-color: rgba(240, 138, 138, 0.45);
    border-left-color: #f08a8a;
    color: var(--omanu-white);
}
.validation-verdict__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}
.validation-verdict--valid .validation-verdict__icon {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
}
.validation-verdict--review .validation-verdict__icon {
    background-color: #f08a8a;
    color: var(--omanu-black);
}
.validation-verdict__text {
    min-width: 0;
    flex: 1 1 auto;
}
.validation-verdict__label {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--omanu-white);
    letter-spacing: 0.01em;
}
.validation-verdict__sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--omanu-white);
    line-height: 1.5;
}
.validation-reasoning .overview-section__body {
    white-space: pre-line;
}
.validation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(247, 247, 247, 0.1);
}

@media (max-width: 575.98px) {
    .validation-verdict {
        padding: 1rem;
        gap: 0.75rem;
    }
    .validation-verdict__icon {
        width: 2rem;
        height: 2rem;
    }
    .validation-verdict__label {
        font-size: 1rem;
    }
    .validation-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .validation-actions .btn,
    .validation-actions form {
        width: 100%;
    }
    .validation-actions .btn {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .detail-hero .card-body {
        padding: 1.25rem;
    }
    .detail-hero__top {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    .detail-hero__actions {
        width: 100%;
    }
    .detail-hero__actions .dropdown,
    .detail-hero__actions .dropdown-toggle,
    .detail-hero__actions form {
        flex: 1 1 auto;
    }
    .detail-hero__title {
        font-size: 1.5rem;
    }
    .tasks-card .card-body {
        padding: 1rem;
    }
    .idea-progress__step {
        font-size: 0.6rem;
    }
    .idea-progress__marker {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }
    .idea-progress__step::after {
        top: calc(0.8rem - 1px);
        left: calc(50% + 0.8rem);
        right: calc(-50% + 0.8rem);
    }
    .task-stats__value {
        font-size: 1.2rem;
    }
    .task-stats__label {
        font-size: 0.6rem;
    }
    .detail-tabs .nav-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
    }
}

/* --- Flash / feedback messages --- */
.app-messages {
    margin-bottom: 1.25rem;
}

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border: none;
    border-left: 4px solid var(--omanu-blue);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    color: var(--omanu-white);
    background-color: rgba(36, 36, 36, 0.88);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: app-alert-in 0.25s ease-out;
}

.app-alert:last-child {
    margin-bottom: 0;
}

.app-alert__icon {
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--omanu-blue);
}

.app-alert__body {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.45;
    word-break: break-word;
}

.app-alert__close {
    flex-shrink: 0;
    margin: 0;
    padding: 0.25rem;
    opacity: 0.7;
}

.app-alert__close:hover {
    opacity: 1;
}

/* Level variants (map to Django message level tags) */
.app-alert--success {
    border-left-color: #2ec27e;
}
.app-alert--success .app-alert__icon {
    color: #2ec27e;
}

.app-alert--error,
.app-alert--danger {
    border-left-color: #e5534b;
}
.app-alert--error .app-alert__icon,
.app-alert--danger .app-alert__icon {
    color: #e5534b;
}

.app-alert--warning {
    border-left-color: #e0a52e;
}
.app-alert--warning .app-alert__icon {
    color: #e0a52e;
}

@keyframes app-alert-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-alert {
        animation: none;
    }
}

/* --- Task detail: two-column workbench --- */
.task-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}
.task-breadcrumb a {
    color: var(--omanu-blue);
    text-decoration: none;
    font-weight: 600;
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.task-breadcrumb a:hover {
    color: var(--omanu-white);
    text-decoration: underline;
}
.task-breadcrumb__sep {
    color: rgba(247, 247, 247, 0.45);
}
.task-breadcrumb__current {
    color: rgba(247, 247, 247, 0.7);
}

.task-workbench {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 991.98px) {
    .task-workbench {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 992px) {
    .task-panel {
        position: sticky;
        top: 1.5rem;
    }
}

/* Task panel header row: breadcrumb + actions */
.task-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.task-panel__top .task-breadcrumb {
    margin-bottom: 0;
    min-width: 0;
}
.task-panel__actions {
    flex-shrink: 0;
}
.task-panel__heading {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--omanu-white);
    margin: 0 0 0.75rem 0;
    white-space: pre-line;
    word-break: break-word;
}
.task-panel__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}
.task-panel__created {
    font-size: 0.8rem;
    color: rgba(247, 247, 247, 0.55);
}

/* Actions dropdown theming (mirrors the business-idea hero dropdown) */
.task-panel .dropdown-menu {
    background-color: var(--omanu-black);
    border: 1px solid var(--omanu-gray);
}
.task-panel .dropdown-item {
    color: var(--omanu-white);
}
.task-panel .dropdown-item:hover,
.task-panel .dropdown-item:focus {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
}

/* Collapsible AI reasoning */
.task-reasoning {
    margin-top: 1.25rem;
    border: 1px solid rgba(247, 247, 247, 0.12);
    border-radius: 8px;
    background-color: rgba(247, 247, 247, 0.04);
    padding: 0.5rem 0.85rem;
}
.task-reasoning__summary {
    cursor: pointer;
    color: var(--omanu-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    list-style-position: inside;
}
.task-reasoning__summary:focus-visible {
    outline: 2px solid var(--omanu-blue);
    outline-offset: 2px;
}
.task-reasoning[open] .task-reasoning__summary {
    margin-bottom: 0.5rem;
}
.task-reasoning__body {
    color: rgba(247, 247, 247, 0.85);
    font-style: italic;
    line-height: 1.55;
    margin: 0;
}

/* Category badge on the (dark) task panel — the shared badge is tuned for the
   light list cards (dark text), so lift the text to the panel's blue accent. */
.task-panel .task-category-badge {
    color: var(--omanu-blue);
    border-color: rgba(147, 169, 184, 0.45);
}

/* Complexity + time-estimate chips on the (dark) task panel — the shared chips
   are tuned for the light list cards, so lighten the text/borders for contrast
   against the dark workbench card. */
.task-panel .task-estimates {
    margin-top: 1rem;
    margin-bottom: 0;
}
.task-panel .task-complexity--1 {
    background-color: rgba(75, 192, 142, 0.14);
    color: #7bd7af;
    border-color: rgba(75, 192, 142, 0.4);
}
.task-panel .task-complexity--2 {
    background-color: rgba(255, 205, 86, 0.14);
    color: #f0c560;
    border-color: rgba(255, 205, 86, 0.4);
}
.task-panel .task-complexity--3 {
    background-color: rgba(255, 107, 107, 0.14);
    color: #f08a8a;
    border-color: rgba(255, 107, 107, 0.4);
}
.task-panel .task-estimate-time {
    background-color: rgba(247, 247, 247, 0.06);
    color: rgba(247, 247, 247, 0.85);
    border-color: rgba(247, 247, 247, 0.2);
}

/* Sources on the (dark) task panel — re-theme the shared reference-link chips
   for the dark workbench card so they read like the "Why this task?" block
   rather than the light list cards they were originally styled for. */
.task-panel .reference-links {
    margin-top: 1.25rem;
    margin-bottom: 0;
}
.task-panel .reference-links__summary {
    color: var(--omanu-blue);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.task-panel .reference-links__summary:hover {
    color: var(--omanu-white);
}
.task-panel .reference-links__count {
    background-color: rgba(247, 247, 247, 0.14);
    color: var(--omanu-white);
}
.task-panel .reference-link-chip {
    border-color: rgba(247, 247, 247, 0.2);
    background-color: rgba(247, 247, 247, 0.05);
    color: rgba(247, 247, 247, 0.85);
}
.task-panel .reference-link-chip:hover,
.task-panel .reference-link-chip:focus-visible {
    background-color: var(--omanu-blue);
    border-color: var(--omanu-blue);
    color: var(--omanu-black);
}

/* Segmented status controls */
.task-status-controls {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(247, 247, 247, 0.1);
}
.task-status-controls__label {
    display: block;
    color: var(--omanu-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.task-status-controls__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.task-status-controls__none {
    color: rgba(247, 247, 247, 0.6);
    font-size: 0.85rem;
}

/* Notes workspace */
.notes-workspace__header {
    margin-bottom: 1rem;
}
.notes-workspace .tasks-card__title {
    font-size: 1.5rem;
}

/* Inline note composer */
.note-composer {
    margin-bottom: 1.25rem;
}
.note-composer__label {
    display: block;
    color: var(--omanu-white);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.note-composer__input {
    border-radius: 12px;
    padding: 0.65rem 1rem;
    resize: vertical;
}
.note-composer__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

/* Notes list + cards */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.note-card {
    background-color: rgba(247, 247, 247, 0.05);
    border: 1px solid rgba(247, 247, 247, 0.1);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.note-card:hover,
.note-card:focus-within {
    border-color: rgba(147, 169, 184, 0.5);
    background-color: rgba(247, 247, 247, 0.08);
}
.note-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.note-card__time {
    color: rgba(247, 247, 247, 0.55);
    font-size: 0.75rem;
}
.note-card__actions {
    transition: opacity 0.15s ease;
}
.note-card__body {
    color: var(--omanu-white);
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
}
.note-card__footer {
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(247, 247, 247, 0.08);
}
.note-card__task-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    color: rgba(247, 247, 247, 0.6);
    font-size: 0.8rem;
    font-style: italic;
    text-decoration: none;
    transition: color 0.2s ease;
}
.note-card__task-link:hover,
.note-card__task-link:focus-visible {
    color: var(--omanu-white);
    text-decoration: underline;
}
.note-card__task-icon {
    flex-shrink: 0;
    opacity: 0.8;
}
.note-card__task-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.note-card--skeleton {
    pointer-events: none;
}

/* Edit/Delete are always visible by default so touch and keyboard users can
   reach them. Only on devices that can actually hover (with a fine pointer)
   do we hide them until the card is hovered or focused, to reduce clutter. */
@media (hover: hover) and (pointer: fine) {
    .note-card__actions {
        opacity: 0;
    }
    .note-card:hover .note-card__actions,
    .note-card:focus-within .note-card__actions {
        opacity: 1;
    }
    /* While editing in place the actions are gone, so never dim the card. */
    .note-card--editing .note-card__actions {
        opacity: 1;
    }
}

/* Inline edit form (click-to-edit) */
.note-card--editing {
    border-color: rgba(147, 169, 184, 0.5);
    background-color: rgba(247, 247, 247, 0.08);
}
.note-edit-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* Infinite-scroll sentinel just holds a loading skeleton */
.notes-list__sentinel {
    margin: 0;
}

.notes-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: rgba(247, 247, 247, 0.7);
}
.notes-empty p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .note-card,
    .note-card__actions,
    .note-card__task-link {
        transition: none;
    }
}

/* Dark-themed modal (e.g. the note delete confirmation) */
.modal-dark {
    --bs-modal-bg: var(--omanu-black);
    --bs-modal-color: var(--omanu-white);
    --bs-modal-border-color: var(--omanu-gray);
    --bs-modal-header-border-color: rgba(247, 247, 247, 0.15);
    --bs-modal-footer-border-color: rgba(247, 247, 247, 0.15);
}
.modal-dark .modal-title {
    color: var(--omanu-white);
}
.modal-dark .text-muted {
    color: rgba(247, 247, 247, 0.6) !important;
}

/* --- "Create my Plan" confirmation modal --- */
/* Roomier padding + vertical rhythm between the modal's elements so the copy,
   cost preview, and actions read comfortably rather than crowding together. */
#createPlanModal .modal-header,
#createPlanModal .modal-footer {
    padding: 1.25rem 1.5rem;
}
#createPlanModal .modal-body {
    padding: 1.5rem;
}
#createPlanModal .modal-body > p:first-child {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
#createPlanModal .modal-footer {
    gap: 0.75rem;
}

/* The primary create action: lighter text for stronger contrast on the blue
   fill. (The gentler corner now comes from the shared button radius token.) */
.btn.create-plan-btn,
.btn.create-plan-btn:disabled {
    color: var(--omanu-white);
}

/* Estimated-cost preview inside the modal. */
.plan-cost {
    border: 1px solid rgba(36, 36, 36, 0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    background: rgba(147, 169, 184, 0.12);
}
.plan-cost__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.plan-cost__row + .plan-cost__row {
    margin-top: 0.6rem;
}
.plan-cost__label {
    color: var(--omanu-gray);
}
.plan-cost__value {
    font-weight: 600;
    color: var(--omanu-black);
    white-space: nowrap;
}
.plan-cost__warning {
    margin-top: 1.25rem;
    color: #8a5300;
    font-size: 0.9rem;
    line-height: 1.5;
}
.plan-cost__note {
    margin-top: 1.5rem;
    color: var(--omanu-gray);
    font-size: 0.8rem;
}

/* --- Admin business idea dashboard --- */
.admin-idea-filters .card-body {
    padding: 1.5rem;
}
.admin-idea-filters__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--omanu-blue);
    margin-bottom: 0.35rem;
}
.admin-idea-filters .form-select {
    border-radius: 25px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
}
.admin-idea-filters .form-select:focus {
    border-color: #000;
    box-shadow: none;
}
.admin-idea-filters__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* TomSelect controls inside the filter bar, aligned to the rounded inputs */
.admin-idea-filters .ts-wrapper {
    margin-bottom: 0;
}
.admin-idea-filters .ts-control {
    border-radius: 25px;
    border: 1px solid #e0e0e0;
    padding: 10px 18px;
    min-height: 50px;
    box-shadow: none;
}
.admin-idea-filters .ts-wrapper.focus .ts-control {
    border-color: #000;
    box-shadow: none;
}

.admin-idea-results__summary {
    color: rgba(247, 247, 247, 0.75);
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

.admin-idea-card {
    color: var(--omanu-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-idea-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.admin-idea-card .card-body {
    padding: 1.5rem;
}
.admin-idea-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.admin-idea-card__state {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
    font-weight: 600;
    padding: 0.4em 0.75em;
}
.admin-idea-card__valid {
    font-weight: 600;
    padding: 0.4em 0.75em;
}
.admin-idea-card__valid.is-valid {
    background-color: #2e7d32;
    color: #fff;
}
.admin-idea-card__valid.is-not-valid {
    background-color: var(--omanu-gray);
    color: var(--omanu-white);
}
.admin-idea-card__summary {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
.admin-idea-card__title-link {
    color: var(--omanu-white);
    text-decoration: none;
}
.admin-idea-card__title-link:hover,
.admin-idea-card__title-link:focus-visible {
    color: var(--omanu-blue);
    text-decoration: underline;
}
.admin-idea-card__meta {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 0.75rem 0;
}
.admin-idea-card__meta-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
}
.admin-idea-card__meta-row dt {
    min-width: 64px;
    margin: 0;
    font-weight: 600;
    color: rgba(247, 247, 247, 0.6);
}
.admin-idea-card__meta-row dd {
    margin: 0;
    color: var(--omanu-white);
    word-break: break-word;
}
.admin-idea-card__desc {
    color: rgba(247, 247, 247, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.admin-idea-card__reasoning {
    margin-bottom: 0.75rem;
}
.admin-idea-card__reasoning summary {
    cursor: pointer;
    color: var(--omanu-blue);
    font-size: 0.85rem;
    font-weight: 600;
}
.admin-idea-card__reasoning p {
    margin: 0.5rem 0 0 0;
    color: rgba(247, 247, 247, 0.8);
    font-size: 0.85rem;
}
.admin-idea-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(247, 247, 247, 0.12);
}
.admin-idea-card__created {
    color: rgba(247, 247, 247, 0.55);
}
.admin-idea-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (prefers-reduced-motion: reduce) {
    .admin-idea-card {
        transition: none;
    }
    .admin-idea-card:hover {
        transform: none;
    }
}

/* --- Task category badge (on the white task cards) --- */
.task-category-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background-color: rgba(147, 169, 184, 0.18);
    color: #36464f;
    border: 1px solid rgba(147, 169, 184, 0.5);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    white-space: nowrap;
}

/* --- Task list item card --- */
/* Roomier than Bootstrap's default .list-group-item padding so the card content
   (header, description, estimates, action row) has breathing space. */
.task-card {
    padding: 1.25rem 1.5rem;
}

/* --- Task list item: action row --- */
/* A hairline separator + top spacing lifts the controls off the content above,
   and the buttons get a touch more padding than btn-sm so they read less cramped. */
.task-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(147, 169, 184, 0.25);
    row-gap: 0.6rem;
    column-gap: 0.6rem;
}
.task-actions .btn {
    --bs-btn-padding-y: 0.45rem;
    --bs-btn-padding-x: 0.95rem;
}

/* --- Task list item: quiet action / status links --- */
/* Demoted "Notes", "Not Doing", "Reset" actions: read as text links, not buttons,
   so each card keeps one filled "hero" + one outline anchor as the only buttons. */
.task-actions .task-action-link {
    color: var(--omanu-gray);
    font-weight: 600;
    text-decoration: none;
    box-shadow: none;
}
.task-actions .task-action-link:hover,
.task-actions .task-action-link:focus {
    color: var(--omanu-black);
    text-decoration: underline;
}

/* --- Task list item: mobile layout --- */
/* On phones the wrapping inline row gets fiddly and the tap targets are small.
   Stack the two real buttons full-width (big, unambiguous targets) and let the
   quiet links flow in a comfortable row beneath them. */
@media (max-width: 575.98px) {
    .task-card {
        padding: 1.15rem 1.15rem;
    }
    .task-actions .btn-outline-secondary,
    .task-actions .btn-outline-primary {
        flex: 1 1 100%;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .task-actions .task-action-link {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}

/* --- Task complexity + time-estimate chips (on the white task cards) --- */
.task-estimates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.task-complexity,
.task-estimate-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    line-height: 1.4;
    white-space: nowrap;
}
.task-estimates__label {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    opacity: 0.65;
}
.task-estimates__value {
    font-weight: 700;
}
.task-estimate-time__icon {
    flex-shrink: 0;
    opacity: 0.7;
}
/* Complexity colour-coded by level: low = calm green, medium = amber, high = red */
.task-complexity--1 {
    background-color: rgba(25, 135, 84, 0.12);
    color: #146c43;
    border-color: rgba(25, 135, 84, 0.35);
}
.task-complexity--2 {
    background-color: rgba(255, 193, 7, 0.16);
    color: #946c00;
    border-color: rgba(255, 193, 7, 0.45);
}
.task-complexity--3 {
    background-color: rgba(220, 53, 69, 0.12);
    color: #b02a37;
    border-color: rgba(220, 53, 69, 0.35);
}
.task-estimate-time {
    background-color: rgba(147, 169, 184, 0.18);
    color: #36464f;
    border-color: rgba(147, 169, 184, 0.5);
}

/* --- Reference links (source chips) --- */
/* Shared "Sources" chips for AI-grounded content: a task group's reference
   links on task cards, and a business idea's validation reference links on the
   detail page's Validation tab. Rendered inside white cards on a light
   background, so colours are tuned for that; the dark task-detail panel
   re-themes them via the `.task-panel .reference-links*` overrides above. */
.reference-links {
    margin-bottom: 0.75rem;
}
.reference-links__summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--omanu-gray);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    list-style: none;
}
.reference-links__summary::-webkit-details-marker {
    display: none;
}
.reference-links__summary::marker {
    content: "";
}
.reference-links__summary:hover {
    color: var(--omanu-black);
}
.reference-links__summary:focus-visible {
    outline: 2px solid var(--omanu-blue);
    outline-offset: 2px;
    border-radius: 4px;
}
.reference-links__icon {
    flex-shrink: 0;
    opacity: 0.85;
}
.reference-links__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.1rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background-color: rgba(33, 37, 41, 0.08);
    color: var(--omanu-black);
    font-size: 0.68rem;
    line-height: 1;
}
.reference-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0;
}
.reference-link-chip {
    display: inline-block;
    max-width: 16rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(33, 37, 41, 0.15);
    border-radius: 999px;
    background-color: rgba(33, 37, 41, 0.03);
    color: var(--omanu-gray);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.reference-link-chip:hover,
.reference-link-chip:focus-visible {
    background-color: var(--omanu-blue);
    border-color: var(--omanu-blue);
    color: var(--omanu-black);
}
.reference-link-chip:focus-visible {
    outline: 2px solid var(--omanu-blue);
    outline-offset: 2px;
}
@media (max-width: 575.98px) {
    .reference-link-chip {
        max-width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .reference-link-chip {
        transition: none;
    }
}

/* --- AI-generated content disclaimer --- */
/* Small muted notice shown wherever AI-generated content is displayed.
   Tuned for light cards by default; lifted for the dark task-detail panel. */
.ai-disclaimer {
    margin: 0.75rem 0 0;
    color: var(--omanu-gray);
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.4;
}
/* On the dark task-detail panel the muted gray is too low-contrast. */
.task-panel .ai-disclaimer {
    color: rgba(247, 247, 247, 0.6);
}

/* ===== Task accomplishment / celebration layer ===== */

/* Plan-progress bar on the Tasks tab. The fill animates up from 0 on every
   render (incl. each OOB swap after a status change), so completing a task
   reads as the bar visibly "filling up". */
.task-progress {
    margin-bottom: 1.25rem;
}
.task-progress__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.task-progress__label {
    color: var(--omanu-blue);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.task-progress__count {
    color: var(--omanu-white);
    font-size: 0.8rem;
    font-weight: 700;
}
.task-progress__track {
    height: 0.6rem;
    border-radius: 999px;
    background: rgba(247, 247, 247, 0.1);
    overflow: hidden;
}
.task-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--omanu-blue);
    width: var(--fill-pct, 0%);
    animation: task-progress-grow 0.7s ease-out;
}
.task-progress__fill--complete {
    background: #40916c;
}
@keyframes task-progress-grow {
    from { width: 0; }
    to { width: var(--fill-pct, 0%); }
}

/* Green flash on a task card the moment it's completed (when it stays on
   screen, i.e. the Completed filter is active). */
.task-item--just-completed {
    animation: task-complete-flash 1.2s ease-out;
}
@keyframes task-complete-flash {
    0% {
        background-color: rgba(64, 145, 108, 0.35);
        border-color: rgba(64, 145, 108, 0.7);
    }
    100% {
        background-color: transparent;
    }
}

/* A category chip whose tasks are all done turns gold. */
.task-filter-chip__count--complete {
    background-color: #a28834 !important;
    color: var(--omanu-black) !important;
}

/* Transient toast announcing a cleared category. */
.celebration-toast {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translate(-50%, -1rem);
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--omanu-black);
    border: 1px solid rgba(162, 136, 52, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: var(--omanu-white);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.celebration-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.celebration-toast__emoji {
    font-size: 1.25rem;
}
.celebration-toast__text {
    font-size: 0.95rem;
}
.celebration-toast__text strong {
    color: #d4af37;
}

/* All-tasks-done payoff page. */
.tasks-done__badge {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #40916c;
    color: var(--omanu-white);
    animation: tasks-done-pop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes tasks-done-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.tasks-done__title {
    color: var(--omanu-blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.tasks-done__lead {
    color: var(--omanu-white);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.tasks-done__idea {
    color: rgba(247, 247, 247, 0.75);
    font-style: italic;
    margin-bottom: 1.5rem;
}
.tasks-done__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    padding: 0;
}
.tasks-done__stat {
    flex: 1 1 7rem;
    max-width: 10rem;
    background: rgba(247, 247, 247, 0.06);
    border: 1px solid rgba(247, 247, 247, 0.12);
    border-radius: 10px;
    padding: 1rem 0.75rem;
}
.tasks-done__stat-value {
    display: block;
    color: var(--omanu-white);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}
.tasks-done__stat-label {
    margin: 0.25rem 0 0;
    color: var(--omanu-blue);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tasks-done__next {
    color: var(--omanu-white);
    margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    .task-progress__fill,
    .task-item--just-completed,
    .tasks-done__badge {
        animation: none;
    }
    .celebration-toast {
        transition: opacity 0.35s ease;
    }
}

/* ---------- Transaction dashboard (staff) ---------- */
.transaction-summary__title {
    color: var(--omanu-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.transaction-summary__note {
    color: rgba(247, 247, 247, 0.6);
    font-size: 0.8rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
.transaction-summary-table__total th,
.transaction-summary-table__total td {
    color: var(--omanu-white);
    font-weight: 700;
    border-top: 2px solid rgba(247, 247, 247, 0.25);
}

/* Read-only ledger / summary tables sit on the dark .card background, so the
   default Bootstrap (light) table colours are overridden to the omanu palette
   with a transparent body so the card shows through. */
.transaction-table {
    color: var(--omanu-white);
    --bs-table-bg: transparent;
    --bs-table-color: var(--omanu-white);
    margin-bottom: 0;
}
.transaction-table thead th {
    color: var(--omanu-blue);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-color: rgba(247, 247, 247, 0.18);
    white-space: nowrap;
}
.transaction-table tbody th,
.transaction-table tbody td {
    color: var(--omanu-white);
    border-top-color: rgba(247, 247, 247, 0.08);
    border-bottom-color: rgba(247, 247, 247, 0.08);
    vertical-align: middle;
}
.transaction-table tbody th {
    font-weight: 600;
}
.transaction-table__date,
.transaction-table__model {
    white-space: nowrap;
    color: rgba(247, 247, 247, 0.8);
    font-size: 0.85rem;
}
.transaction-table__staff-badge {
    background-color: var(--omanu-blue);
    color: var(--omanu-black);
    font-weight: 600;
    padding: 0.35em 0.6em;
}
.transaction-summary-table tbody th {
    color: var(--omanu-white);
}

/* First-run empty state on the business-idea list. The title sits directly on
   the dark page background with a letterpress effect; each step is a distinct
   light card matching the idea cards, led by a numbered badge instead of an
   icon to stay consistent with the rest of the (icon-free) app. */
.onboarding-empty {
    max-width: 46rem;
    margin: 2rem auto;
    padding: 3rem 2rem;
    text-align: center;
}
.onboarding-empty__title {
    color: var(--omanu-white);
    font-size: 1.4rem;
    margin-bottom: 2.25rem;
    /* Engraved / letterpress effect against the dark background. */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.onboarding-empty__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* Stretch so every card matches the tallest one's height, keeping the row
       uniform regardless of how much text each step holds. */
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.onboarding-empty__step {
    flex: 1 1 12rem;
    max-width: 13rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #E8E8E8;
    color: var(--omanu-black);
    border-radius: 5px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.onboarding-empty__step-number {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--omanu-blue);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    /* Short underline tick gives the numeral structure without a chip/circle. */
    border-bottom: 2px solid rgba(147, 169, 184, 0.45);
}
.onboarding-empty__step-text {
    display: block;
    font-size: 0.9rem;
    color: var(--omanu-black);
}

/* Stack the steps into a single column on mobile viewports. Stretch so every
   card spans the full column width and stays uniform, matching the equal-size
   behavior of the desktop row. */
@media (max-width: 575.98px) {
    .onboarding-empty__steps {
        flex-direction: column;
        align-items: stretch;
    }
    .onboarding-empty__step {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

