/* Workload calculator — two-column dashboard */

.wl-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.25rem;
    align-items: start;
    text-align: right;
}

@media (max-width: 1100px) {
    .wl-app {
        grid-template-columns: 1fr;
    }

    .wl-sidebar {
        order: -1;
    }
}

.wl-main {
    min-width: 0;
}

.wl-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 5.5rem;
}

/* Status banner */
.wl-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--kbi-radius-sm, 13px);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #047857;
}

.wl-status__saved {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.wl-status__saved .ri-icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #10b981;
}

.wl-status__copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    background: #fff;
    color: var(--kbi-ink-2, #404057);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease;
}

.wl-status__copy:hover {
    background: #f9fafb;
    color: var(--kbi-ink, #1a1a2e);
}

.wl-status__copy .ri-icon {
    width: 1rem;
    height: 1rem;
}

/* Record name */
.wl-record {
    margin-bottom: 1.5rem;
}

.wl-record__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--kbi-ink-2, #404057);
    margin-bottom: 0.4rem;
}

.wl-record__wrap {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.wl-record__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    background: #f8f9fb;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--kbi-ink-3, #6b7280);
    direction: ltr;
}

.wl-record__input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    padding: 0.7rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--kbi-ink, #1a1a2e);
    background: #fff;
}

.wl-record__input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.wl-record__input:focus {
    outline: none;
    border-color: var(--kbi-indigo, oklch(0.48 0.20 282));
    box-shadow: 0 0 0 3px var(--kbi-indigo-50, #eef2ff);
}

.wl-record__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--kbi-ink-3, #6b7280);
}

/* Sections */
.wl-section {
    background: var(--kbi-surface, #fff);
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-lg, 16px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--kbi-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}

.wl-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--kbi-ink, #1a1a2e);
    margin: 0 0 1rem;
}

.wl-section__num {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 6px;
    background: var(--kbi-indigo, oklch(0.48 0.20 282));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wl-assump-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

@media (max-width: 640px) {
    .wl-assump-grid {
        grid-template-columns: 1fr;
    }
}

.wl-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--kbi-ink-2, #404057);
    margin-bottom: 0.35rem;
}

.wl-input-wrap {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    direction: rtl;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    overflow: hidden;
    background: #fff;
}

.wl-input-wrap:focus-within {
    border-color: var(--kbi-indigo, oklch(0.48 0.20 282));
    box-shadow: 0 0 0 3px var(--kbi-indigo-50, #eef2ff);
}

.wl-input-wrap input {
    flex: 1;
    border: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 400;
    text-align: right;
    direction: rtl;
    min-width: 0;
    background: transparent;
}

.wl-input-wrap input:focus {
    outline: none;
}

.wl-input-suffix {
    display: flex;
    align-items: center;
    padding: 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--kbi-ink-3, #6b7280);
    background: #f8f9fb;
    border-inline-start: 1px solid var(--kbi-border, #e8eaed);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tasks table */
.wl-tasks-scroll {
    overflow-x: auto;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

.wl-tasks-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    font-size: 0.8125rem;
}

.wl-tasks-table th {
    font-weight: 500;
    color: var(--kbi-ink-3, #6b7280);
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
}

.wl-tasks-table td {
    padding: 0.15rem 0.35rem;
    vertical-align: middle;
}

.wl-tasks-table .wl-idx {
    width: 2rem;
    text-align: center;
    font-weight: 500;
    color: var(--kbi-ink-3, #6b7280);
}

.wl-tasks-table input[type='text'],
.wl-tasks-table input[type='number'],
.wl-tasks-table select {
    width: 100%;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    padding: 0.5rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 400;
    background: #fff;
}

.wl-tasks-table input:focus,
.wl-tasks-table select:focus {
    outline: none;
    border-color: var(--kbi-indigo);
    box-shadow: 0 0 0 2px var(--kbi-indigo-50);
}

.wl-tasks-table input[type='number'] {
    direction: ltr;
    text-align: right;
}

.wl-remove-task {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.wl-remove-task:hover {
    background: #fef2f2;
    color: #ef4444;
}

.wl-remove-task .ri-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.wl-add-task {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem;
    border: 1px dashed var(--kbi-border-2, #d1d5db);
    border-radius: var(--kbi-radius-sm, 13px);
    background: transparent;
    color: var(--kbi-ink-2, #404057);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wl-add-task:hover {
    border-color: var(--kbi-indigo);
    background: var(--kbi-indigo-50, #eef2ff);
    color: var(--kbi-indigo);
}

.wl-add-task .ri-icon {
    width: 1rem;
    height: 1rem;
}

/* Footer actions */
.wl-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.wl-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: var(--kbi-radius-sm, 13px);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.wl-btn .ri-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.wl-btn--primary {
    background: var(--kbi-indigo, oklch(0.48 0.20 282));
    color: #fff;
    box-shadow: 0 4px 14px -4px oklch(0.48 0.20 282 / 0.5);
}

.wl-btn--primary:hover:not(:disabled) {
    background: var(--kbi-indigo-2, #4338ca);
}

.wl-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.wl-btn--outline {
    background: #fff;
    border-color: var(--kbi-border-2, #d1d5db);
    color: var(--kbi-ink-2, #404057);
}

.wl-btn--outline:hover {
    background: #f8f9fb;
}

.wl-btn--success {
    background: #16a34a;
    color: #fff;
}

.wl-btn--success:hover {
    background: #15803d;
}

/* Sidebar — summary hero */
.wl-summary-hero {
    background: linear-gradient(165deg, oklch(0.32 0.14 282) 0%, oklch(0.42 0.18 270) 45%, oklch(0.48 0.16 255) 100%);
    border-radius: var(--kbi-radius-lg, 16px);
    padding: 1.35rem 1.25rem;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.wl-summary-hero__label {
    font-size: 0.8125rem;
    font-weight: 400;
    opacity: 0.88;
    margin: 0 0 0.35rem;
}

.wl-summary-hero__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.wl-summary-hero__meta {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

.wl-donut {
    --wl-pct: 0;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: conic-gradient(
        #fff 0deg,
        #fff calc(var(--wl-pct) * 3.6deg),
        rgba(255, 255, 255, 0.22) calc(var(--wl-pct) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.wl-donut::after {
    content: '';
    position: absolute;
    inset: 0.55rem;
    border-radius: 50%;
    background: oklch(0.38 0.16 278);
}

.wl-donut__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.2;
}

.wl-donut__pct {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
}

.wl-donut__lbl {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Distribution card */
.wl-distribution {
    background: var(--kbi-surface, #fff);
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-lg, 16px);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--kbi-shadow-sm);
}

.wl-distribution__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--kbi-ink, #1a1a2e);
    margin: 0 0 1rem;
}

.wl-bar-row {
    margin-bottom: 0.85rem;
}

.wl-bar-row:last-child {
    margin-bottom: 0;
}

.wl-bar-row__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
}

.wl-bar-row__label {
    font-weight: 500;
    color: var(--kbi-ink-2, #404057);
}

.wl-bar-row__val {
    font-weight: 600;
    color: var(--kbi-ink, #1a1a2e);
    direction: ltr;
}

.wl-bar-row__track {
    height: 6px;
    border-radius: 999px;
    background: #eef0f3;
    overflow: hidden;
}

.wl-bar-row__fill {
    height: 100%;
    border-radius: 999px;
    width: 0%;
    transition: width 0.35s ease;
}

.wl-bar-row__fill--indigo { background: var(--kbi-indigo, oklch(0.48 0.20 282)); }
.wl-bar-row__fill--blue { background: #3b82f6; }
.wl-bar-row__fill--green { background: #16a34a; }
.wl-bar-row__fill--gray { background: #94a3b8; }

/* Sidebar actions */
.wl-sidebar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.wl-sidebar-actions .wl-btn--primary {
    flex: 1;
    padding: 0.85rem 1rem;
}

.wl-sidebar-icon-btn {
    flex-shrink: 0;
    width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--kbi-border-2, #d1d5db);
    border-radius: var(--kbi-radius-sm, 13px);
    background: #fff;
    color: var(--kbi-ink-2, #404057);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wl-sidebar-icon-btn:hover {
    background: #f8f9fb;
}

.wl-sidebar-icon-btn .ri-icon {
    width: 1.15rem;
    height: 1.15rem;
}

/* Guest banner */
.wl-guest-banner {
    background: #fff;
    border: 1px solid #ffd86e;
    border-radius: 17px;
    box-shadow: 0 3px 10px rgba(255, 196, 35, 0.12);
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.wl-guest-banner__text {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
}

.wl-guest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wl-guest-actions .spr-guest-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ffc423;
    border: none;
    border-radius: 30px;
    font-weight: 400;
    font-size: 0.9rem;
    color: #000;
    padding: 0.45rem 1.1rem;
}

.wl-guest-actions .spr-guest-btn-login:hover {
    background-color: #f0b420;
    color: #000;
}

.wl-guest-actions .spr-guest-btn-register {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #9ca3af;
    border-radius: 30px;
    font-weight: 400;
    font-size: 0.9rem;
    color: #374151;
    padding: 0.45rem 1.1rem;
}

.wl-guest-actions .spr-guest-btn-register:hover {
    background: #f9fafb;
    color: #111827;
}

.wl-alert {
    border-radius: var(--kbi-radius-sm, 13px);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.wl-topbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wl-topbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wl-topbar__links a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--kbi-indigo);
}

.wl-topbar__links a:hover {
    text-decoration: underline;
}

/* Project selector */
.wl-project {
    margin-bottom: 1.5rem;
}

.wl-project__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--kbi-ink-2, #404057);
    margin-bottom: 0.4rem;
}

.wl-project__wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius-sm, 13px);
    background: #fff;
    overflow: hidden;
}

.wl-project__folder {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-inline: 0.5rem;
    border-radius: 10px;
    pointer-events: none;
}

.wl-project__folder .ri-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.wl-project__folder--indigo {
    background: #eef2ff;
    color: #4f46e5;
}

.wl-project__folder--amber {
    background: #fffbeb;
    color: #d97706;
}

.wl-project__folder--emerald {
    background: #ecfdf5;
    color: #059669;
}

.wl-project__folder--slate {
    background: #f1f5f9;
    color: #64748b;
}

.wl-project__select {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--kbi-ink, #1a1a2e);
    appearance: none;
    cursor: pointer;
}

.wl-project__select:has(option[value=""]:checked) {
    color: #9ca3af;
    font-weight: 400;
}

.wl-project__select:focus {
    outline: none;
}

.wl-project__status {
    flex-shrink: 0;
    margin-inline-end: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--kbi-indigo-50, #eef2ff);
    color: var(--kbi-indigo-2, #4338ca);
    pointer-events: none;
}

.wl-project__status.is-archived {
    background: #f1f5f9;
    color: #64748b;
}

.wl-project__chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding-inline: 0.65rem;
    color: var(--kbi-ink-3, #6b7280);
    pointer-events: none;
}

.wl-project__chevron .ri-icon {
    width: 1rem;
    height: 1rem;
}

.wl-project__new {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--kbi-indigo-2, #4338ca);
    text-decoration: none;
}

.wl-project__new:hover {
    color: var(--kbi-indigo, oklch(0.48 0.20 282));
}

.wl-project__new .ri-icon {
    width: 0.95rem;
    height: 0.95rem;
}

.wl-project--empty {
    padding: 0.85rem 1rem;
    border: 1px dashed var(--kbi-border-2, #d1d5db);
    border-radius: var(--kbi-radius-sm, 13px);
    background: var(--kbi-bg, #f8f9fb);
}

.wl-project__empty-text {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--kbi-ink-3, #6b7280);
}

/* Results section (main column) */
.wl-results {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.wl-results.is-visible {
    display: flex;
}

.wl-results-status {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: var(--kbi-radius, 12px);
    border: 1px solid transparent;
}

.wl-results-status--low {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.wl-results-status--medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.wl-results-status--high {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wl-results-status__main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.wl-results-status__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
}

.wl-results-status__icon-item {
    display: none;
}

.wl-results-status__icon-item.is-active {
    display: inline-flex;
}

.wl-results-status__icon .ri-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.wl-results-status__title {
    margin: 0 0 0.35rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.wl-results-status__desc {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
    opacity: 0.92;
}

.wl-results-status__quick-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0 0;
}

.wl-results-status__quick {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.92;
}

.wl-results-status__quick-icon.ri-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.wl-results-status__pct {
    flex-shrink: 0;
    align-self: center;
    min-width: 4.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--kbi-radius-sm, 13px);
    background: rgba(255, 255, 255, 0.65);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.wl-results-tasks {
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid var(--kbi-border, #e8eaed);
    border-radius: var(--kbi-radius, 12px);
}

.wl-results-tasks__title {
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--kbi-ink, #1a1a2e);
}

.wl-results-tasks__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wl-results-task {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wl-results-task__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.wl-results-task__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--kbi-ink, #1a1a2e);
}

.wl-results-task__meta {
    font-size: 0.75rem;
    color: var(--kbi-ink-3, #6b7280);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wl-results-task__track {
    height: 8px;
    border-radius: 999px;
    background: #f1f3f5;
    overflow: hidden;
}

.wl-results-task__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.3s ease;
}

.wl-results-task__fill--low {
    background: #10b981;
}

.wl-results-task__fill--medium {
    background: #f59e0b;
}

.wl-results-task__fill--high {
    background: #ef4444;
}

.wl-results-tip {
    padding: 1rem 1.15rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--kbi-radius, 12px);
}

.wl-results-tip__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #92400e;
}

.wl-results-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.wl-results-cta-wrap {
    display: inline-block;
}

.wl-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wl-sidebar-panel[hidden] {
    display: none !important;
}

/* Sidebar — post-calculation status */
.wl-sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--kbi-radius, 12px);
    border: 1px solid transparent;
}

.wl-sidebar-status--low {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.wl-sidebar-status--medium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}

.wl-sidebar-status--high {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.wl-sidebar-status__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wl-sidebar-status__icon-item {
    display: none;
}

.wl-sidebar-status__icon-item.is-active {
    display: inline-flex;
}

.wl-sidebar-status__icon .ri-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.wl-sidebar-status__title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.wl-sidebar-cta-wrap {
    display: block;
    width: 100%;
}

.wl-btn--block {
    width: 100%;
    justify-content: center;
}

.wl-sidebar-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--kbi-border, #e8eaed);
}

.wl-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--kbi-ink-2, #404057);
    text-decoration: none;
}

.wl-sidebar-link:hover {
    color: var(--kbi-indigo, oklch(0.48 0.20 282));
}

.wl-sidebar-link .ri-icon {
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 640px) {
    .wl-results-status {
        flex-direction: column;
        align-items: stretch;
    }

    .wl-results-status__pct {
        align-self: stretch;
        width: 100%;
    }

    .wl-results-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wl-results-actions .wl-btn {
        width: 100%;
        justify-content: center;
    }
}
