/* Shared tool shell and intro */
.tnv-tool {
    display: block;
    margin: 0;
    max-width: none;
    padding: 0 0 32px;
    width: 100%;
}

.tnv-tool,
.tnv-tool * {
    box-sizing: border-box;
}

.tnv-tool-boundary {
    display: none !important;
}

.ck-content > p:has(> .tnv-tool-boundary),
.ck-content > .tnv-tool + p:empty {
    display: none;
    margin: 0;
}

.tnv-tool-intro {
    margin-bottom: clamp(24px, 4vw, 38px);
}

.ck-content .tnv-tool-intro .tnv-tool-intro__title,
.tnv-tool-intro .tnv-tool-intro__title {
    color: #161b2d;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 10px;
}

.ck-content .tnv-tool-intro .tnv-tool-intro__description,
.tnv-tool-intro .tnv-tool-intro__description {
    color: #55585b;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    margin: 0;
}

/* Password Generator */
.tnv-password-generator {
    --tnv-pg-primary: var(--primary-color, #0c55aa);
    --tnv-pg-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-pg-heading: #1f2937;
    --tnv-pg-text: #4b5563;
    --tnv-pg-muted: #6b7280;
    --tnv-pg-border: #dfe3e8;
    --tnv-pg-surface: #fff;
    color: var(--tnv-pg-heading);
}

.tnv-password-generator [hidden] {
    display: none !important;
}

.tnv-password-generator__workspace {
    align-items: start;
    display: grid;
    gap: clamp(18px, 2vw, 26px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.tnv-password-generator__card {
    background: var(--tnv-pg-surface);
    border: 1px solid var(--tnv-pg-border);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.tnv-password-generator__results {
    position: sticky;
    top: 20px;
}

.tnv-password-generator__card-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(20px, 3vw, 30px);
}

.tnv-password-generator__results-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.ck-content .tnv-password-generator h2,
.tnv-password-generator h2 {
    color: var(--tnv-pg-heading);
    font-size: clamp(21px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 7px;
}

.ck-content .tnv-password-generator__card p,
.tnv-password-generator__card p {
    color: var(--tnv-pg-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-password-generator__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tnv-password-generator__button,
.tnv-password-generator__submit {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 650;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 42px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tnv-password-generator__button {
    background: #fff;
    border: 1px solid #d8dde3;
    color: var(--tnv-pg-heading);
}

.tnv-password-generator__button:hover,
.tnv-password-generator__button:focus-visible {
    border-color: var(--tnv-pg-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.11);
    color: var(--tnv-pg-primary);
    outline: 0;
}

.tnv-password-generator__button:disabled,
.tnv-password-generator__submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.tnv-password-generator__button svg,
.tnv-password-generator__submit svg {
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.tnv-password-generator__output {
    min-width: 0;
}

.tnv-password-generator__password,
.tnv-password-generator__passwords {
    background: #fbfcfe;
    border: 1px solid #d6dce3;
    border-radius: 10px;
    color: #374151;
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    width: 100%;
}

.tnv-password-generator__password {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    justify-content: space-between;
    min-height: 58px;
    padding: 13px 16px;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ck-content .tnv-password-generator__password code,
.tnv-password-generator__password code {
    background: transparent;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
    padding: 0;
}

.tnv-password-generator__password svg {
    color: var(--tnv-pg-muted);
    flex: 0 0 auto;
    height: 20px;
    margin-left: 16px;
    width: 20px;
}

.tnv-password-generator__password:hover,
.tnv-password-generator__password:focus-visible,
.tnv-password-generator__password.is-copied,
.tnv-password-generator__passwords:focus {
    border-color: var(--tnv-pg-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.11);
    color: var(--tnv-pg-primary);
    outline: 0;
}

.tnv-password-generator__passwords {
    font-size: 15px;
    line-height: 1.65;
    min-height: 210px;
    padding: 14px 16px;
    resize: vertical;
}

.ck-content .tnv-password-generator__notice,
.tnv-password-generator__notice {
    align-items: flex-start;
    color: var(--tnv-pg-muted) !important;
    display: flex;
    font-size: 13px !important;
    gap: 8px;
}

.tnv-password-generator__notice svg {
    flex: 0 0 auto;
    height: 17px;
    margin-top: 2px;
    width: 17px;
}

.ck-content .tnv-password-generator__status,
.tnv-password-generator__status {
    color: #15803d !important;
    font-size: 13px !important;
    font-weight: 650;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tnv-password-generator__status.is-visible {
    opacity: 1;
}

.tnv-password-generator__status.is-error {
    color: #be123c !important;
}

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

.tnv-password-generator__field {
    display: grid;
    gap: 9px;
}

.tnv-password-generator__field > span,
.tnv-password-generator__fieldset legend {
    color: var(--tnv-pg-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.tnv-password-generator .form-control {
    color: var(--tnv-pg-heading);
    font-size: 14px;
    min-width: 0;
}

.tnv-password-generator .form-control-sm {
    border-radius: 8px;
    height: 40px;
    min-height: 40px;
}

.tnv-password-generator__field input[type="number"] {
    appearance: textfield;
    width: 100%;
}

.tnv-password-generator__field input[type="number"]::-webkit-inner-spin-button,
.tnv-password-generator__field input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

.tnv-password-generator__fieldset {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.tnv-password-generator__fieldset legend {
    margin-bottom: 13px;
    padding: 0;
}

.tnv-password-generator__choice-grid {
    display: grid;
    gap: 13px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tnv-password-generator__radio-list {
    display: grid;
    gap: 13px;
}

.tnv-password-generator__choice {
    align-items: flex-start;
    color: var(--tnv-pg-heading);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    line-height: 1.5;
    min-width: 0;
}

.tnv-password-generator__choice input {
    appearance: none;
    background: #fff;
    border: 1.5px solid #c9cfd6;
    cursor: pointer;
    flex: 0 0 auto;
    height: 20px;
    margin: 1px 0 0;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    width: 20px;
}

.tnv-password-generator__choice input[type="checkbox"] {
    border-radius: 5px;
}

.tnv-password-generator__choice input[type="radio"] {
    border-radius: 50%;
}

.tnv-password-generator__choice input:checked {
    background: var(--tnv-pg-primary);
    border-color: var(--tnv-pg-primary);
}

.tnv-password-generator__choice input[type="checkbox"]:checked::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 10px;
    left: 6px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 5px;
}

.tnv-password-generator__choice input[type="radio"]:checked::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: 4.5px;
    position: absolute;
    top: 4.5px;
    width: 8px;
}

.tnv-password-generator__choice input:focus-visible {
    box-shadow: 0 0 0 3px rgba(var(--tnv-pg-primary-rgb), 0.15);
    outline: 0;
}

.tnv-password-generator__error {
    align-items: flex-start;
    background: #fff1f2;
    border-radius: 9px;
    color: #be123c;
    display: flex;
    font-size: 14px;
    gap: 8px;
    line-height: 1.55;
    padding: 11px 13px;
}

.tnv-password-generator__error svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.tnv-password-generator__submit-row {
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    padding-top: 22px;
}

.tnv-password-generator__submit {
    background: var(--tnv-pg-primary);
    border: 1px solid var(--tnv-pg-primary);
    color: #fff;
    min-height: 46px;
    padding: 11px 18px;
}

.tnv-password-generator__submit:hover,
.tnv-password-generator__submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--tnv-pg-primary-rgb), 0.17);
    filter: brightness(0.94);
    outline: 0;
}

@media (max-width: 991px) {
    .tnv-password-generator__workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-password-generator__results {
        position: static;
    }
}

@media (max-width: 639px) {
    .tnv-password-generator__number-grid,
    .tnv-password-generator__choice-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-password-generator__actions {
        width: 100%;
    }

    .tnv-password-generator__button {
        flex: 1 1 auto;
    }

    .tnv-password-generator__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnv-password-generator *,
    .tnv-password-generator *::before,
    .tnv-password-generator *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Compound Interest */
.tnv-compound-interest {
    --tnv-ci-primary: var(--primary-color, #0989ff);
    --tnv-ci-primary-rgb: var(--primary-color-rgb, 9, 137, 255);
    --tnv-ci-heading: #161b2d;
    --tnv-ci-text: #55585b;
    --tnv-ci-muted: #6b7280;
    --tnv-ci-border: #e1e5e9;
    --tnv-ci-surface: #fff;
    color: var(--tnv-ci-heading);
}

.tnv-compound-interest [hidden] {
    display: none !important;
}

.tnv-compound-interest__card {
    background: var(--tnv-ci-surface);
    border: 1px solid var(--tnv-ci-border);
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.045);
    min-width: 0;
}

.tnv-compound-interest__form {
    display: block;
    margin: 0;
}

.tnv-compound-interest__form-row {
    align-items: start;
    display: grid;
    gap: clamp(20px, 4vw, 54px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    padding: clamp(20px, 3vw, 30px);
}

.tnv-compound-interest__form-row + .tnv-compound-interest__form-row {
    border-top: 1px solid var(--tnv-ci-border);
}

.tnv-compound-interest__step-copy {
    align-items: flex-start;
    display: flex;
    gap: 13px;
}

.tnv-compound-interest__step {
    align-items: center;
    background: rgba(var(--tnv-ci-primary-rgb), 0.1);
    border-radius: 50%;
    color: var(--tnv-ci-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 750;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.ck-content .tnv-compound-interest h2,
.tnv-compound-interest h2 {
    color: var(--tnv-ci-heading);
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 1px 0 5px;
}

.ck-content .tnv-compound-interest__step-copy p,
.tnv-compound-interest__step-copy p {
    color: var(--tnv-ci-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-compound-interest__field,
.tnv-compound-interest__period-field {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.tnv-compound-interest__field > span:first-child {
    color: var(--tnv-ci-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.tnv-compound-interest__field-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnv-compound-interest__input-group {
    border-radius: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.tnv-compound-interest .form-control,
.tnv-compound-interest .form-select {
    color: var(--tnv-ci-heading);
    font-size: 14px;
    min-width: 0;
}

.tnv-compound-interest .input-group-sm > .form-control,
.tnv-compound-interest .input-group-sm > .input-group-text,
.tnv-compound-interest .form-select-sm {
    height: 40px;
    min-height: 40px;
}

.tnv-compound-interest .input-group-sm > .form-control:first-child {
    border-radius: 8px 0 0 8px;
}

.tnv-compound-interest .input-group-sm > .input-group-text:last-child {
    border-radius: 0 8px 8px 0;
}

.tnv-compound-interest .form-select-sm {
    border-radius: 8px;
}

.tnv-compound-interest .input-group-text {
    color: var(--tnv-ci-muted);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.tnv-compound-interest__input-group input[type="number"] {
    appearance: textfield;
}

.tnv-compound-interest__input-group input[type="number"]::-webkit-inner-spin-button,
.tnv-compound-interest__input-group input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
}

.ck-content .tnv-compound-interest__hint,
.tnv-compound-interest__hint {
    align-items: flex-start;
    background: #f7f9fb;
    border-radius: 9px;
    color: var(--tnv-ci-text);
    display: flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.55;
    margin: 0;
    padding: 11px 12px;
}

.tnv-compound-interest__hint svg {
    color: var(--tnv-ci-primary);
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.tnv-compound-interest__form-footer {
    align-items: center;
    border-top: 1px solid var(--tnv-ci-border);
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    padding: clamp(20px, 3vw, 28px);
}

.tnv-compound-interest__error {
    align-items: flex-start;
    background: #fff1f2;
    border-radius: 9px;
    color: #be123c;
    display: flex;
    flex: 1 1 auto;
    font-size: 14px;
    gap: 8px;
    line-height: 1.55;
    padding: 11px 13px;
}

.tnv-compound-interest__error svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

.tnv-compound-interest__submit {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: 11px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tnv-compound-interest__submit {
    background: var(--tnv-ci-primary);
    border: 1px solid var(--tnv-ci-primary);
    color: #fff;
}

.tnv-compound-interest__submit:hover,
.tnv-compound-interest__submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(var(--tnv-ci-primary-rgb), 0.17);
    filter: brightness(0.94);
    outline: 0;
}

.tnv-compound-interest__submit svg {
    height: 18px;
    width: 18px;
}

.tnv-compound-interest__results {
    display: grid;
    gap: 18px;
    margin-top: clamp(22px, 4vw, 34px);
    scroll-margin-top: 96px;
}

.tnv-compound-interest__summary-card {
    padding: clamp(20px, 3vw, 30px);
}

.tnv-compound-interest__result-header {
    text-align: center;
}

.ck-content .tnv-compound-interest__result-header p,
.tnv-compound-interest__result-header p {
    color: var(--tnv-ci-text);
    font-size: 16px;
    margin: 0 0 5px;
}

.ck-content .tnv-compound-interest__result-header h2,
.tnv-compound-interest__result-header h2 {
    color: var(--tnv-ci-primary);
    font-size: clamp(26px, 4vw, 38px);
    font-variant-numeric: tabular-nums;
    margin: 0;
    overflow-wrap: anywhere;
}

.tnv-compound-interest__metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.tnv-compound-interest__metric {
    background: #f8fafc;
    border-radius: 10px;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 16px;
}

.tnv-compound-interest__metric span {
    color: var(--tnv-ci-muted);
    font-size: 13px;
    font-weight: 600;
}

.tnv-compound-interest__metric strong {
    color: var(--tnv-ci-heading);
    font-size: clamp(15px, 1.7vw, 18px);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.tnv-compound-interest__metric--interest {
    background: #ecfdf5;
}

.tnv-compound-interest__metric--interest span,
.tnv-compound-interest__metric--interest strong {
    color: #047857;
}

.tnv-compound-interest__metric--future {
    background: #eff6ff;
}

.tnv-compound-interest__metric--future span,
.tnv-compound-interest__metric--future strong {
    color: #1d4ed8;
}

.tnv-compound-interest__chart {
    border-top: 1px solid var(--tnv-ci-border);
    margin-top: 26px;
    padding-top: 24px;
}

.tnv-compound-interest__chart-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ck-content .tnv-compound-interest__chart h3,
.tnv-compound-interest__chart h3 {
    color: var(--tnv-ci-heading);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.tnv-compound-interest__legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.tnv-compound-interest__legend span {
    align-items: center;
    color: var(--tnv-ci-text);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
}

.tnv-compound-interest__legend i {
    background: #10b981;
    border-radius: 50%;
    display: block;
    height: 9px;
    width: 9px;
}

.tnv-compound-interest__legend .is-future {
    background: #3b82f6;
}

.tnv-compound-interest__chart-canvas {
    min-height: 310px;
    overflow: visible;
    width: 100%;
}

.tnv-compound-interest__chart-plot {
    position: relative;
    width: 100%;
}

.tnv-compound-interest__chart-canvas svg {
    display: block;
    height: auto;
    max-width: none;
    overflow: visible;
    width: 100%;
}

.tnv-compound-interest__chart-grid {
    stroke: #e5e7eb;
    stroke-width: 1;
}

.tnv-compound-interest__chart-axis-label {
    fill: #6b7280;
    font-family: inherit;
    font-size: 12px;
}

.tnv-compound-interest__chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.tnv-compound-interest__chart-line--principal {
    stroke: #10b981;
}

.tnv-compound-interest__chart-line--future {
    stroke: #3b82f6;
}

.tnv-compound-interest__chart-hit {
    cursor: crosshair;
    fill: none;
    outline: none;
    pointer-events: stroke;
    stroke: transparent;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 22;
}

.tnv-compound-interest__chart-hit:focus-visible {
    stroke: rgba(var(--tnv-ci-primary-rgb), 0.18);
}

.tnv-compound-interest__chart-point {
    stroke: #fff;
    stroke-width: 1.5;
    transition: r 0.15s ease;
}

.tnv-compound-interest__chart-point:hover {
    r: 5;
}

.tnv-compound-interest__chart-point--principal {
    fill: #10b981;
}

.tnv-compound-interest__chart-point--future {
    fill: #3b82f6;
}

.tnv-compound-interest__chart-selection {
    pointer-events: none;
}

.tnv-compound-interest__chart-cursor {
    stroke: #64748b;
    stroke-dasharray: 4 4;
    stroke-width: 1.5;
}

.tnv-compound-interest__chart-selected-point {
    stroke: #fff;
    stroke-width: 2.5;
}

.tnv-compound-interest__chart-selected-point--principal {
    fill: #10b981;
}

.tnv-compound-interest__chart-selected-point--future {
    fill: #3b82f6;
}

.tnv-compound-interest__chart-tooltip {
    background: #111827;
    border-radius: 9px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
    color: #fff;
    display: grid;
    font-size: 13px;
    gap: 5px;
    line-height: 1.45;
    max-width: calc(100% - 8px);
    min-width: 210px;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 3;
}

.tnv-compound-interest__chart-tooltip::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #111827;
    bottom: -6px;
    content: "";
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.tnv-compound-interest__chart-tooltip strong {
    color: #fff;
    font-size: 14px;
}

.tnv-compound-interest__chart-tooltip span {
    align-items: center;
    color: #e5e7eb;
    display: flex;
    gap: 7px;
    white-space: nowrap;
}

.tnv-compound-interest__chart-tooltip span::before {
    background: #10b981;
    border-radius: 50%;
    content: "";
    flex: 0 0 auto;
    height: 8px;
    width: 8px;
}

.tnv-compound-interest__chart-tooltip span.is-future::before {
    background: #3b82f6;
}

.tnv-compound-interest__table-wrap {
    overflow-x: auto;
}

.tnv-compound-interest__details table {
    border-collapse: collapse;
    font-size: 14px;
    margin: 0;
    min-width: 660px;
    width: 100%;
}

.tnv-compound-interest__details th,
.tnv-compound-interest__details td {
    border: 0;
    border-bottom: 1px solid #edf0f3;
    color: var(--tnv-ci-text);
    font-variant-numeric: tabular-nums;
    padding: 14px 18px;
    text-align: right;
    vertical-align: middle;
}

.tnv-compound-interest__details th {
    background: #f8fafc;
    color: var(--tnv-ci-heading);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tnv-compound-interest__details th:first-child,
.tnv-compound-interest__details td:first-child {
    text-align: left;
}

.tnv-compound-interest__details td:last-child {
    color: var(--tnv-ci-heading);
    font-weight: 700;
}

.tnv-compound-interest__details tbody tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 899px) {
    .tnv-compound-interest__form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-compound-interest__field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .tnv-compound-interest__field-grid,
    .tnv-compound-interest__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .tnv-compound-interest__form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .tnv-compound-interest__submit {
        width: 100%;
    }

    .tnv-compound-interest__chart-canvas {
        min-height: 250px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tnv-compound-interest *,
    .tnv-compound-interest *::before,
    .tnv-compound-interest *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Two-factor Tool */
.tnv-two-factor {
    --tnv-2fa-primary: var(--primary-color, #0c55aa);
    --tnv-2fa-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-2fa-heading: #0f172a;
    --tnv-2fa-text: #475569;
    --tnv-2fa-border: #dfe5ec;
    color: var(--tnv-2fa-heading);
}

.tnv-two-factor [hidden] {
    display: none !important;
}

.ck-content .tnv-two-factor p,
.tnv-two-factor p {
    color: var(--tnv-2fa-text);
    line-height: 1.65;
    margin: 0;
}

.tnv-two-factor__table-wrap {
    background: #fff;
    border: 1px solid var(--tnv-2fa-border);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.tnv-two-factor__label-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tnv-two-factor__label-row label {
    font-size: 14px;
    font-weight: 700;
}

.tnv-two-factor__paste {
    align-items: center;
    background: #fff;
    border: 1px solid var(--tnv-2fa-border);
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 7px;
    padding: 8px 13px;
}

.tnv-two-factor__paste svg {
    height: 17px;
    width: 17px;
}

.tnv-two-factor__paste:hover,
.tnv-two-factor__paste:focus-visible {
    border-color: var(--tnv-2fa-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-2fa-primary-rgb), .12);
    color: var(--tnv-2fa-primary);
    outline: 0;
}

.tnv-two-factor__textarea {
    background: #fbfdff;
    border-radius: 8px;
    color: var(--tnv-2fa-heading);
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    height: auto;
    line-height: 1.6;
    min-height: 128px;
    padding: 8px;
    resize: vertical;
    width: 100%;
}

.tnv-two-factor__textarea:focus {
    background: #fff;
}

.tnv-two-factor__error {
    background: #fff1f2;
    border-radius: 10px;
    color: #be123c;
    font-size: 14px;
    margin-top: 14px;
    padding: 11px 13px;
}

.ck-content .tnv-two-factor__privacy,
.tnv-two-factor__privacy {
    font-size: 13px;
    margin-top: 14px;
}

.tnv-two-factor__results {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.tnv-two-factor__results-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
}

.ck-content .tnv-two-factor h3,
.tnv-two-factor h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 4px;
}

.tnv-two-factor__status {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.tnv-two-factor__table-wrap {
    overflow-x: auto;
}

.ck-content .tnv-two-factor__table,
.tnv-two-factor__table {
    border: 0;
    border-collapse: collapse;
    margin: 0;
    min-width: 720px;
    width: 100%;
}

.ck-content .tnv-two-factor__table th,
.ck-content .tnv-two-factor__table td,
.tnv-two-factor__table th,
.tnv-two-factor__table td {
    border: 0;
    border-bottom: 1px solid #edf1f5;
    padding: 16px 20px;
    text-align: left;
    vertical-align: middle;
}

.ck-content .tnv-two-factor__table th,
.tnv-two-factor__table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.ck-content .tnv-two-factor__table th:nth-child(2),
.ck-content .tnv-two-factor__table td:nth-child(2),
.tnv-two-factor__table th:nth-child(2),
.tnv-two-factor__table td:nth-child(2) {
    text-align: center;
}

.tnv-two-factor__table tbody tr:last-child td {
    border-bottom: 0;
}

.tnv-two-factor__code {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #cdd9e6;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: .16em;
    padding: 12px 14px 12px 16px;
}

.tnv-two-factor__code svg {
    height: 18px;
    width: 18px;
}

.tnv-two-factor__code:hover,
.tnv-two-factor__code:focus-visible {
    border-color: var(--tnv-2fa-primary);
    color: var(--tnv-2fa-primary);
    outline: 0;
}

.tnv-two-factor__countdown {
    color: #dc2626;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

.tnv-two-factor__invalid {
    background: #fff1f2;
    border-radius: 999px;
    color: #be123c;
    display: inline-block;
    font-size: 13px;
    font-weight: 650;
    padding: 7px 10px;
}

.tnv-two-factor__key {
    background: transparent;
    color: var(--tnv-2fa-text);
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 767px) {
    .tnv-two-factor__results {
        margin-top: 22px;
    }

    .tnv-two-factor__results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* QR Code Generator */
.tnv-qr-generator {
    --tnv-qr-primary: var(--primary-color, #0c55aa);
    --tnv-qr-primary-rgb: var(--primary-color-rgb, 12, 85, 170);
    --tnv-qr-heading: #1f2937;
    --tnv-qr-text: #4b5563;
    --tnv-qr-muted: #6b7280;
    --tnv-qr-border: #dfe3e8;
    --tnv-qr-surface: #fff;
    color: var(--tnv-qr-heading);
}

.tnv-qr-generator [hidden] {
    display: none !important;
}

.tnv-qr-generator__workspace {
    align-items: start;
    display: grid;
    gap: clamp(18px, 2vw, 26px);
    grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
}

.tnv-qr-generator__card {
    background: var(--tnv-qr-surface);
    border: 1px solid var(--tnv-qr-border);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, .045);
    min-width: 0;
}

.tnv-qr-generator__preview-card {
    position: sticky;
    top: 20px;
}

.tnv-qr-generator__card-inner {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: clamp(20px, 3vw, 30px);
}

.ck-content .tnv-qr-generator h2,
.tnv-qr-generator h2 {
    color: var(--tnv-qr-heading);
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 7px;
}

.ck-content .tnv-qr-generator__card p,
.tnv-qr-generator__card p {
    color: var(--tnv-qr-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.tnv-qr-generator__types {
    background: #f4f6f8;
    border: 1px solid #e4e8ed;
    border-radius: 11px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px;
}

.tnv-qr-generator__type {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--tnv-qr-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    min-height: 40px;
    padding: 8px 7px;
    transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tnv-qr-generator__type:hover,
.tnv-qr-generator__type:focus-visible {
    color: var(--tnv-qr-primary);
    outline: 0;
}

.tnv-qr-generator__type.is-active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
    color: var(--tnv-qr-primary);
}

.tnv-qr-generator__panels {
    min-height: 82px;
}

.tnv-qr-generator__field,
.tnv-qr-generator__color {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tnv-qr-generator__field + .tnv-qr-generator__field {
    margin-top: 15px;
}

.tnv-qr-generator__field > span:first-child,
.tnv-qr-generator__color > span:first-child {
    color: var(--tnv-qr-heading);
    font-size: 14px;
    font-weight: 700;
}

.tnv-qr-generator__field small {
    color: var(--tnv-qr-muted);
    font-size: 12px;
    font-weight: 500;
}

.tnv-qr-generator__field .form-control,
.tnv-qr-generator__field .form-select {
    background-color: #fbfdff;
    border-color: #d6dce3;
    border-radius: 8px;
    color: var(--tnv-qr-heading);
    font-size: 14px;
    min-height: 42px;
    padding: 8px 11px;
}

.tnv-qr-generator__field .form-control:focus,
.tnv-qr-generator__field .form-select:focus {
    background-color: #fff;
    border-color: var(--tnv-qr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-qr-primary-rgb), .11);
}

.tnv-qr-generator__textarea {
    line-height: 1.55;
    min-height: 110px;
    resize: vertical;
}

.tnv-qr-generator__field-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, .8fr);
    margin-bottom: 15px;
}

.tnv-qr-generator__field-grid > .tnv-qr-generator__field + .tnv-qr-generator__field {
    margin-top: 0;
}

.tnv-qr-generator__check {
    align-items: center;
    color: var(--tnv-qr-heading);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    margin-top: 15px;
}

.tnv-qr-generator__check input {
    accent-color: var(--tnv-qr-primary);
    height: 17px;
    width: 17px;
}

.tnv-qr-generator__divider {
    border-top: 1px solid #edf0f3;
}

.tnv-qr-generator__design-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tnv-qr-generator__color-control {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #d6dce3;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    min-height: 42px;
    padding: 6px 9px;
}

.tnv-qr-generator__design-grid .tnv-qr-generator__color-control,
.tnv-qr-generator__design-grid .form-select {
    height: 56px;
    min-height: 56px;
}

.tnv-qr-generator__color-control input {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid #d6dce3;
    border-radius: 50%;
    cursor: pointer;
    height: 34px;
    overflow: hidden;
    padding: 0;
    width: 34px;
}

.tnv-qr-generator__color-control input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.tnv-qr-generator__color-control input::-webkit-color-swatch {
    border: 0;
    border-radius: 50%;
}

.tnv-qr-generator__color-control input::-moz-color-swatch {
    border: 0;
    border-radius: 50%;
}

.tnv-qr-generator__color-control output {
    color: var(--tnv-qr-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.tnv-qr-generator__submit,
.tnv-qr-generator__download {
    align-items: center;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 43px;
    padding: 10px 15px;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.tnv-qr-generator__submit {
    background: var(--tnv-qr-primary);
    border: 1px solid var(--tnv-qr-primary);
    color: #fff;
    width: 100%;
}

.tnv-qr-generator__submit:hover,
.tnv-qr-generator__submit:focus-visible {
    box-shadow: 0 7px 18px rgba(var(--tnv-qr-primary-rgb), .2);
    filter: brightness(.96);
    outline: 0;
}

.tnv-qr-generator__submit:disabled,
.tnv-qr-generator__download:disabled {
    cursor: wait;
    opacity: .55;
}

.tnv-qr-generator__submit svg,
.tnv-qr-generator__download svg {
    height: 18px;
    width: 18px;
}

.tnv-qr-generator__error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    color: #be123c;
    font-size: 14px;
    line-height: 1.5;
    padding: 11px 13px;
}

.tnv-qr-generator__preview {
    align-items: center;
    aspect-ratio: 1;
    background-color: #f6f8fa;
    background-image:
        linear-gradient(45deg, #eef1f4 25%, transparent 25%),
        linear-gradient(-45deg, #eef1f4 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef1f4 75%),
        linear-gradient(-45deg, transparent 75%, #eef1f4 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
    border: 1px solid #e2e7ec;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: clamp(12px, 3vw, 22px);
}

.tnv-qr-generator__preview canvas {
    box-shadow: 0 8px 25px rgba(15, 23, 42, .1);
    display: block;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    width: 100%;
}

.ck-content .tnv-qr-generator__status,
.tnv-qr-generator__status {
    color: #15803d;
    font-size: 13px;
    font-weight: 650;
    min-height: 21px;
    text-align: center;
}

.tnv-qr-generator__downloads {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tnv-qr-generator__download {
    background: #fff;
    border: 1px solid #d6dce3;
    color: var(--tnv-qr-heading);
}

.tnv-qr-generator__download:hover,
.tnv-qr-generator__download:focus-visible {
    border-color: var(--tnv-qr-primary);
    box-shadow: 0 0 0 3px rgba(var(--tnv-qr-primary-rgb), .11);
    color: var(--tnv-qr-primary);
    outline: 0;
}

.tnv-qr-generator__encoded {
    background: #f8fafc;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    padding: 12px 13px;
}

.tnv-qr-generator__encoded > span {
    color: var(--tnv-qr-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ck-content .tnv-qr-generator__encoded code,
.tnv-qr-generator__encoded code {
    background: transparent;
    color: var(--tnv-qr-heading);
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    max-height: 72px;
    overflow: auto;
    overflow-wrap: anywhere;
    padding: 0;
    white-space: pre-wrap;
}

.ck-content .tnv-qr-generator__privacy,
.tnv-qr-generator__privacy {
    align-items: flex-start;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    color: #166534;
    display: flex;
    font-size: 13px;
    gap: 9px;
    padding: 11px 12px;
}

.tnv-qr-generator__privacy svg {
    flex: 0 0 auto;
    height: 18px;
    margin-top: 1px;
    width: 18px;
}

@media (max-width: 991px) {
    .tnv-qr-generator__workspace {
        grid-template-columns: 1fr;
    }

    .tnv-qr-generator__preview-card {
        position: static;
    }

    .tnv-qr-generator__preview {
        margin-inline: auto;
        max-width: 520px;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .tnv-qr-generator__types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tnv-qr-generator__field-grid,
    .tnv-qr-generator__design-grid {
        grid-template-columns: 1fr;
    }

    .tnv-qr-generator__field-grid {
        margin-bottom: 15px;
    }

    .tnv-qr-generator__downloads {
        grid-template-columns: 1fr;
    }
}
