/* =============================================================
   Taskip Free Tools — Shared Styles
   Version: 1.0.0
   ============================================================= */

/* ── Reset & Base ── */
.taskip-tool-wrap *,
.taskip-tool-wrap *::before,
.taskip-tool-wrap *::after {
    box-sizing: border-box;
}

.taskip-tool-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 15px;
    color: #1a1f36;
    line-height: 1.6;
    max-width: 980px;
    margin: 0 auto 48px;
}

/* ── Tool Header ── */
.taskip-tool-header {
    text-align: center;
    margin-bottom: 36px;
}

.taskip-tool-badge {
    display: inline-block;
    background: #e8f5ff;
    color: #0070f3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.taskip-tool-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.25;
}

.taskip-tool-subtitle {
    font-size: 15px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Tool Body Layout ── */
.taskip-tool-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 720px) {
    .taskip-tool-body {
        grid-template-columns: 1fr;
    }
}

/* ── Panels ── */
.taskip-tool-inputs,
.taskip-tool-results {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.taskip-section-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* ── Form Fields ── */
.taskip-field-group {
    margin-bottom: 14px;
}

.taskip-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1.4;
}

.taskip-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.taskip-input-prefix {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
    pointer-events: none;
}

.taskip-tool-wrap input[type="text"],
.taskip-tool-wrap input[type="number"],
.taskip-tool-wrap input[type="url"],
.taskip-tool-wrap textarea,
.taskip-tool-wrap select {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: #1a1f36;
    background: #fafafa;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
    margin: 0;
    -moz-appearance: textfield;
    appearance: auto;
    box-shadow: none;
}

.taskip-tool-wrap textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
    -moz-appearance: none;
    appearance: none;
}

/* Inputs with a $ prefix get left padding to clear the symbol */
.taskip-input-wrap input[type="text"],
.taskip-input-wrap input[type="number"] {
    padding-left: 28px;
}

.taskip-tool-wrap select {
    cursor: pointer;
}

.taskip-tool-wrap input[type="number"]::-webkit-outer-spin-button,
.taskip-tool-wrap input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.taskip-tool-wrap input[type="text"]:focus,
.taskip-tool-wrap input[type="number"]:focus,
.taskip-tool-wrap input[type="url"]:focus,
.taskip-tool-wrap textarea:focus,
.taskip-tool-wrap select:focus {
    border-color: #0070f3;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.12);
    background: #fff;
}

.taskip-hint {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Toggle Checkbox ── */
.taskip-toggle-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.taskip-toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #0070f3;
    flex-shrink: 0;
}

.taskip-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.taskip-badge-info {
    font-size: 10px;
    font-weight: 600;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Buttons ── */
.taskip-btn-calculate {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #0070f3 0%, #0057d9 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.12s;
    margin-top: 8px;
    letter-spacing: 0.01em;
}

.taskip-btn-calculate:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.taskip-btn-calculate:active {
    transform: translateY(0);
}

.taskip-btn-secondary {
    background: none;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 16px;
    transition: border-color 0.15s, color 0.15s;
}

.taskip-btn-secondary:hover {
    border-color: #0070f3;
    color: #0070f3;
}

/* ── Disclaimer ── */
.taskip-disclaimer {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 10px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.5;
}

.taskip-disclaimer svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #cbd5e1;
}

/* ── Results Summary Hero ── */
.taskip-results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.taskip-result-hero {
    background: linear-gradient(135deg, #0070f3 0%, #0057d9 100%);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
}

.taskip-result-hero.secondary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.taskip-result-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.taskip-result-hero-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* ── Breakdown Table ── */
.taskip-result-breakdown {
    margin-bottom: 20px;
}

.taskip-result-breakdown h4 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
}

.taskip-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 13px;
}

.taskip-breakdown-row:last-child {
    border-bottom: none;
}

.taskip-breakdown-label {
    color: #64748b;
}

.taskip-breakdown-value {
    font-weight: 600;
    color: #1a1f36;
}

.taskip-breakdown-row.deduction .taskip-breakdown-label {
    color: #94a3b8;
    font-size: 12.5px;
}

.taskip-breakdown-row.deduction .taskip-breakdown-value {
    color: #16a34a;
    font-size: 12.5px;
}

.taskip-breakdown-row.total-row {
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    margin-top: 4px;
    padding-top: 10px;
}

.taskip-breakdown-row.total-row .taskip-breakdown-label,
.taskip-breakdown-row.total-row .taskip-breakdown-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.taskip-breakdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.taskip-breakdown-row.tax-row .taskip-breakdown-value.highlight {
    color: #dc2626;
}

/* ── Quarterly Box ── */
.taskip-quarterly-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    text-align: center;
}

.taskip-quarterly-box h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}

.taskip-quarterly-subtitle {
    font-size: 12px;
    color: #a16207;
    margin: 0 0 10px;
}

.taskip-quarterly-amount {
    font-size: 26px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}

.taskip-quarterly-dates {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.taskip-quarterly-dates span {
    font-size: 11px;
    font-weight: 600;
    color: #a16207;
    background: #fef3c7;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ── Monthly Set-Aside ── */
.taskip-setaside-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.taskip-setaside-label {
    font-size: 13px;
    font-weight: 500;
    color: #166534;
}

.taskip-setaside-amount {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}

/* ── Tax Bracket Badge ── */
.taskip-bracket-badge {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 4px;
}

.taskip-bracket-badge strong {
    color: #0070f3;
}

/* ── CTA Banner ── */
.taskip-tool-cta {
    margin-top: 28px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 24px 28px;
}

.taskip-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.taskip-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.taskip-cta-text strong {
    font-size: 15px;
    color: #f8fafc;
    font-weight: 700;
}

.taskip-cta-text span {
    font-size: 13px;
    color: #94a3b8;
}

.taskip-cta-btn {
    display: inline-block;
    background: #0070f3;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.18s, transform 0.12s;
}

.taskip-cta-btn:hover {
    background: #0057d9;
    transform: translateY(-1px);
}

/* ── Advanced / Custom Rates Panel ── */
.taskip-advanced-toggle {
    margin-bottom: 6px;
}

.taskip-advanced-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
}
.taskip-advanced-btn:hover { color: #0070f3; }
.taskip-advanced-btn svg { transition: transform 0.2s; }
.taskip-advanced-btn.is-open svg { transform: rotate(180deg); }

.taskip-advanced-panel {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.taskip-advanced-notice {
    font-size: 12px;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

.taskip-field-default-badge {
    font-size: 10px;
    font-weight: 600;
    background: #e8f5ff;
    color: #0070f3;
    border: 1px solid #bfdbfe;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* =============================================================
   Tax Calculator — Placeholder Panel
   ============================================================= */

.taskip-tc-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8faff;
    border: 1.5px dashed #c7d9f5;
    border-radius: 14px;
    padding: 28px 24px;
    align-items: center;
    text-align: center;
}

/* Icon + heading */
.taskip-tc-ph-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.taskip-tc-ph-header p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1f36;
}

/* Step list */
.taskip-tc-ph-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}
.taskip-tc-ph-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}
.taskip-tc-ph-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #0070f3;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* Blurred preview box */
.taskip-tc-ph-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    text-align: left;
}
.taskip-tc-ph-preview-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.taskip-tc-ph-preview-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.taskip-tc-ph-hero {
    background: linear-gradient(135deg, #0070f3 0%, #0050c8 100%);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.taskip-tc-ph-hero.secondary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}
.taskip-tc-ph-hero-label {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
}
.taskip-tc-ph-hero-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}
.taskip-tc-ph-preview-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.taskip-tc-ph-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-tc-ph-row.bold {
    font-weight: 700;
    color: #1a1f36;
    border-bottom: none;
    padding-top: 6px;
}
/* Blur overlay on preview */
.taskip-tc-ph-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to bottom, rgba(248,250,255,0) 0%, rgba(248,250,255,0.97) 100%);
    pointer-events: none;
}

/* Feature badges */
.taskip-tc-ph-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.taskip-tc-ph-badges span {
    background: #e8f5ff;
    color: #0050c8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* =============================================================
   Follow-Up Email Generator — Scoped Form Styles
   All rules use .taskip-fue-form prefix to avoid ANY theme conflict.
   ============================================================= */

/* Form wrapper — resets everything inside */
.taskip-fue-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── NUCLEAR MARGIN/PADDING RESET inside form ──
   Kills ALL theme-injected spacing on every element inside .taskip-fue-form.
   We then add back only what we explicitly need below. */
.taskip-fue-form *,
.taskip-fue-form *::before,
.taskip-fue-form *::after {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Scenario fields wrapper — transparent to layout */
.taskip-scenario-fields {
    display: contents;
}

/* Individual field row — add back only bottom spacing */
.taskip-fue-field {
    display: flex !important;
    flex-direction: column !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

/* Label — restore only bottom spacing after nuclear reset */
.taskip-fue-label {
    display: block !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    background: none !important;
    border: none !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
}

/* Text inputs — fully self-contained, ignores theme.
   padding shorthand overrides the nuclear reset's padding-top/bottom. */
.taskip-fue-input {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #1a1f36 !important;
    background: #fafafa !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.5 !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.taskip-fue-input.has-prefix {
    padding-left: 26px !important;
}
.taskip-fue-input:focus {
    border-color: #0070f3 !important;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1) !important;
    background: #fff !important;
}

/* Select — padding shorthand overrides nuclear reset */
.taskip-fue-select {
    display: block !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    color: #1a1f36 !important;
    background: #fafafa !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    transition: border-color 0.15s !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
}
.taskip-fue-select:focus {
    border-color: #0070f3 !important;
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1) !important;
    background: #fff !important;
}

/* Prefix wrap ($ symbol) — padding explicitly 0 since nuclear reset
   would have already zeroed it; just be explicit. */
.taskip-fue-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}
.taskip-fue-prefix {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

/* Optional badge inline */
.taskip-fue-optional {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    margin-left: 3px !important;
}

/* ── Placeholder Panel (right side, before generation) ── */
.taskip-fue-placeholder {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    border: 1.5px dashed #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
}

.taskip-fue-ph-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-fue-ph-header p {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

/* Steps */
.taskip-fue-ph-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.taskip-fue-ph-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
}
.taskip-fue-ph-num {
    width: 22px;
    height: 22px;
    background: #0070f3;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Sample preview */
.taskip-fue-ph-preview {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.taskip-fue-ph-preview-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    padding: 10px 14px 6px;
}
.taskip-fue-ph-preview-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
}
.taskip-fue-ph-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e8f5ff;
    color: #0070f3;
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}
.taskip-fue-ph-preview-body {
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #374151;
    max-height: 120px;
    overflow: hidden;
}
/* Fade/blur overlay on the sample */
.taskip-fue-ph-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}

/* Feature badges */
.taskip-fue-ph-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.taskip-fue-ph-badges span {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
}

/* =============================================================
   Follow-Up Email Generator — Output & Interaction Styles
   ============================================================= */

/* Scenario Bar */
.taskip-scenario-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.taskip-scenario-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.taskip-scenario-btn:hover {
    border-color: #0070f3;
    color: #0070f3;
    background: #f0f7ff;
}
.taskip-scenario-btn.is-active {
    background: #0070f3;
    border-color: #0070f3;
    color: #fff;
    font-weight: 600;
}
/* .taskip-scenario-icon removed — emojis not used */

/* Optional label */
.taskip-optional {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 3px;
}

/* Tone selector */
.taskip-tone-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.taskip-tone-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: all 0.15s;
    user-select: none;
}
.taskip-tone-option input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #0070f3;
}
.taskip-tone-option:has(input:checked) {
    background: #e8f5ff;
    border-color: #0070f3;
    color: #0070f3;
}

/* Output panel */
.taskip-fue-output {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.taskip-fue-output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.taskip-fue-actions {
    display: flex;
    gap: 8px;
}

.taskip-fue-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}
.taskip-fue-action-btn:hover {
    border-color: #0070f3;
    color: #0070f3;
}

/* Section label row with inline copy button */
.taskip-fue-section {
    margin-bottom: 16px;
}
.taskip-fue-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 8px;
}

/* Subject lines */
.taskip-fue-subject-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.taskip-fue-subject-text {
    flex: 1;
    color: #1a1f36;
    font-weight: 500;
    line-height: 1.4;
}

/* Email body */
.taskip-fue-body-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    overflow: auto;
    max-height: 360px;
}
.taskip-fue-body {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1a1f36;
    margin: 0;
}

/* Inline copy button */
.taskip-copy-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    flex-shrink: 0;
}
.taskip-copy-inline:hover { border-color: #0070f3; color: #0070f3; }
.taskip-copy-inline.copied { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }

/* Tips box */
.taskip-fue-tips {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 4px;
}
.taskip-fue-tips-title {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
}
.taskip-fue-tip {
    font-size: 12px;
    color: #a16207;
    line-height: 1.6;
    margin-bottom: 3px;
}

@media (max-width: 600px) {
    .taskip-scenario-bar   { padding: 8px; gap: 6px; }
    .taskip-scenario-btn   { padding: 7px 10px; font-size: 12px; }
    .taskip-tool-inputs,
    .taskip-tool-results {
        padding: 20px 16px;
    }
    .taskip-tool-title {
        font-size: 22px;
    }
    .taskip-results-summary {
        grid-template-columns: 1fr;
    }
    .taskip-cta-content {
        flex-direction: column;
        text-align: center;
    }
    .taskip-cta-btn {
        width: 100%;
        text-align: center;
    }
    .taskip-quarterly-dates {
        gap: 8px;
    }
    .taskip-range-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .taskip-range-number {
        width: 100% !important;
    }
    .taskip-rate-ladder {
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================================
   Rate Calculator — Range Sliders, Rate Ladder & Placeholder
   ============================================================= */

/* ── Range slider row ── */
.taskip-range-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.taskip-range-wrap input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
}
.taskip-range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #0070f3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 112, 243, 0.35);
    transition: background 0.15s, transform 0.1s;
}
.taskip-range-wrap input[type="range"]::-webkit-slider-thumb:hover {
    background: #005fd4;
    transform: scale(1.1);
}
.taskip-range-wrap input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #0070f3;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 112, 243, 0.35);
}

/* Number input beside slider */
.taskip-range-number {
    width: 80px !important;
    flex-shrink: 0;
    position: relative;
}
.taskip-range-number input[type="number"] {
    padding-right: 30px !important;
    text-align: right;
}
.taskip-input-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
}

/* Optional badge on label */
.taskip-optional-badge {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
}

/* ── Rate Ladder grid ── */
.taskip-rate-ladder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.taskip-rate-item {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.taskip-rate-period {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}
.taskip-rate-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #0070f3;
    line-height: 1.2;
}

/* Reality check text */
.taskip-rc-reality-text {
    font-size: 13px;
    font-weight: 400;
    color: #374151;
    line-height: 1.6;
    margin-top: 4px;
}

/* ── Rate Calculator Placeholder ── */
.taskip-rc-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8faff;
    border: 1.5px dashed #c7d9f5;
    border-radius: 14px;
    padding: 28px 24px;
    align-items: center;
    text-align: center;
}

.taskip-rc-ph-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.taskip-rc-ph-header p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1f36;
}

.taskip-rc-ph-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}
.taskip-rc-ph-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}
.taskip-rc-ph-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #0070f3;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.taskip-rc-ph-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    text-align: left;
}
.taskip-rc-ph-preview-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.taskip-rc-ph-preview-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.taskip-rc-ph-hero {
    background: linear-gradient(135deg, #0070f3 0%, #0050c8 100%);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.taskip-rc-ph-hero.secondary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.taskip-rc-ph-hero-label {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}
.taskip-rc-ph-hero-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.taskip-rc-ph-preview-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.taskip-rc-ph-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-rc-ph-row.bold {
    font-weight: 700;
    color: #1a1f36;
    border-bottom: none;
    padding-top: 6px;
}
.taskip-rc-ph-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.97) 100%);
    pointer-events: none;
}

.taskip-rc-ph-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.taskip-rc-ph-badges span {
    background: #e8f5ff;
    color: #0050c8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* =============================================================
   Platform Fee Calculator
   ============================================================= */

/* Platform info banner */
.taskip-pfc-info-bar {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--pfc-color, #0070f3);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
}
.taskip-pfc-info-name {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* Result platform label */
.taskip-pfc-results-platform {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f0f4ff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
}

/* Gross-up grid */
.taskip-pfc-grossup-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.taskip-pfc-grossup-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    gap: 8px;
}
.taskip-pfc-grossup-arrow {
    color: #94a3b8;
    flex-shrink: 0;
}

/* ── Platform Fee Calculator Placeholder ── */
.taskip-pfc-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8faff;
    border: 1.5px dashed #c7d9f5;
    border-radius: 14px;
    padding: 28px 24px;
    align-items: center;
    text-align: center;
}
.taskip-pfc-ph-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.taskip-pfc-ph-header p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1f36;
}
.taskip-pfc-ph-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}
.taskip-pfc-ph-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}
.taskip-pfc-ph-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #0070f3;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}
.taskip-pfc-ph-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    text-align: left;
}
.taskip-pfc-ph-preview-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.taskip-pfc-ph-preview-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.taskip-pfc-ph-hero {
    background: linear-gradient(135deg, #14a800 0%, #0d7a00 100%);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.taskip-pfc-ph-hero.secondary {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.taskip-pfc-ph-hero-label {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}
.taskip-pfc-ph-hero-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.taskip-pfc-ph-preview-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.taskip-pfc-ph-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-pfc-ph-row.bold {
    font-weight: 700;
    color: #1a1f36;
    border-bottom: none;
    padding-top: 6px;
}
.taskip-pfc-ph-blur {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.97) 100%);
    pointer-events: none;
}
.taskip-pfc-ph-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.taskip-pfc-ph-badges span {
    background: #e8f5ff;
    color: #0050c8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* =============================================================
   Agency Profit Margin Calculator
   ============================================================= */

/* Mode panels */
.taskip-pmc-mode { display: block; }

/* Margin rating badge */
.taskip-pmc-rating {
    margin: 8px 0 14px;
}
.taskip-pmc-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid;
    letter-spacing: 0.03em;
}

/* ── Placeholder ── */
.taskip-pmc-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #f8faff;
    border: 1.5px dashed #c7d9f5;
    border-radius: 14px;
    padding: 28px 24px;
    align-items: center;
    text-align: center;
}
.taskip-pmc-ph-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.taskip-pmc-ph-header p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a1f36;
}
.taskip-pmc-ph-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
    text-align: left;
}
.taskip-pmc-ph-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
}
.taskip-pmc-ph-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #0070f3;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}
.taskip-pmc-ph-preview {
    position: relative;
    width: 100%;
    max-width: 320px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    text-align: left;
}
.taskip-pmc-ph-preview-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.taskip-pmc-ph-preview-heroes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.taskip-pmc-ph-hero {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.taskip-pmc-ph-hero.secondary {
    background: linear-gradient(135deg, #0070f3 0%, #0050c8 100%);
}
.taskip-pmc-ph-hero-label {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}
.taskip-pmc-ph-hero-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.taskip-pmc-ph-preview-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.taskip-pmc-ph-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #4b5563;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-pmc-ph-row.bold {
    font-weight: 700;
    color: #1a1f36;
    border-bottom: none;
    padding-top: 6px;
}
.taskip-pmc-ph-blur {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 100%);
    pointer-events: none;
}
.taskip-pmc-ph-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.taskip-pmc-ph-badges span {
    background: #e8f5ff;
    color: #0050c8;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* =============================================================
   Project Budget Calculator
   ============================================================= */

/* Body override — budget builder is a different layout */
.taskip-pbc-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 820px) {
    .taskip-pbc-body {
        grid-template-columns: 1fr;
    }
}

/* ── Left panel (inputs) ── */
.taskip-pbc-inputs .taskip-field-group input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1f36;
    background: #fff;
    box-sizing: border-box;
}
.taskip-pbc-inputs .taskip-field-group input[type="text"]:focus {
    border-color: #0070f3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,112,243,0.1);
}

/* Items header row */
.taskip-pbc-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    margin-top: 4px;
}
.taskip-pbc-add-phase-btn {
    background: #0070f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.taskip-pbc-add-phase-btn:hover { background: #005fd4; }

/* ── Phase block ── */
.taskip-pbc-phase {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.taskip-pbc-phase-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8faff;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 14px;
}
.taskip-pbc-phase-name {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #1a1f36;
    outline: none;
    padding: 2px 4px;
    border-radius: 4px;
}
.taskip-pbc-phase-name:focus { background: #fff; border: 1px solid #c7d9f5; }
.taskip-pbc-remove-phase {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.taskip-pbc-remove-phase:hover { background: #fee2e2; color: #ef4444; }

/* Column labels row */
.taskip-pbc-items-labels {
    display: grid;
    grid-template-columns: 1fr 70px 90px 80px 28px;
    gap: 6px;
    padding: 6px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

/* ── Line item row ── */
.taskip-pbc-item {
    display: grid;
    grid-template-columns: 1fr 70px 90px 80px 28px;
    gap: 6px;
    padding: 5px 14px;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}
.taskip-pbc-item:first-of-type { border-top: none; }

.taskip-pbc-item input {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1f36;
    background: #fafafa;
    box-sizing: border-box;
    width: 100%;
}
.taskip-pbc-item input:focus {
    border-color: #0070f3;
    outline: none;
    background: #fff;
}
.taskip-pbc-item-total {
    font-size: 13px;
    font-weight: 600;
    color: #0070f3;
    text-align: right;
}
.taskip-pbc-remove-item {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    padding: 3px;
    border-radius: 4px;
    line-height: 1;
}
.taskip-pbc-remove-item:hover { background: #fee2e2; color: #ef4444; }

/* Add item button */
.taskip-pbc-add-item-btn {
    background: none;
    border: none;
    color: #0070f3;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    width: 100%;
    text-align: left;
    border-top: 1px solid #f1f5f9;
}
.taskip-pbc-add-item-btn:hover { background: #f0f7ff; }

/* Adjustments grid */
.taskip-pbc-adjustments {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.taskip-pbc-adj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 560px) {
    .taskip-pbc-adj-grid { grid-template-columns: 1fr; }
}

/* ── Right panel: live summary ── */
.taskip-pbc-summary {
    background: #f8faff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

/* Empty state */
.taskip-pbc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 0;
    color: #64748b;
}
.taskip-pbc-empty p { margin: 0; font-size: 14px; font-weight: 600; color: #1a1f36; }
.taskip-pbc-empty-steps {
    font-size: 12px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Summary title */
.taskip-pbc-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Phase summary rows */
.taskip-pbc-phase-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding: 5px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.taskip-pbc-phase-summary-row span:first-child {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}
.taskip-pbc-phase-summary-row span:last-child { font-weight: 600; color: #0070f3; }

/* Totals section */
.taskip-pbc-totals {
    margin-top: 12px;
    border-top: 1.5px solid #e2e8f0;
    padding-top: 10px;
}
.taskip-pbc-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
}
.taskip-pbc-total-row.deduction span:last-child { color: #ef4444; }
.taskip-pbc-total-row.grand {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    border-top: 2px solid #1a1f36;
    margin-top: 6px;
    padding-top: 8px;
}
.taskip-pbc-total-row.grand span:last-child { color: #0070f3; }

/* Stats grid */
.taskip-pbc-period-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════════════
   BILLABLE HOURS CALCULATOR
   ═══════════════════════════════════════════════════════════════════════ */

/* Layout */
.taskip-bhc-body {
    grid-template-columns: 1fr 320px;
}
@media (max-width: 820px) {
    .taskip-bhc-body { grid-template-columns: 1fr; }
}

/* ── Placeholder ────────────────────────────────────────────────────── */
.taskip-bhc-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 10px;
}
.taskip-bhc-ph-icon {
    width: 64px; height: 64px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.taskip-bhc-ph-title {
    font-size: 15px; font-weight: 700; color: #1a1f36; margin: 0;
}
.taskip-bhc-ph-sub {
    font-size: 13px; color: #64748b; margin: 0; max-width: 240px;
}

/* Steps */
.taskip-bhc-ph-steps {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; margin-top: 4px;
}
.taskip-bhc-ph-step {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #475569;
    background: #f8fafc; border-radius: 8px;
    padding: 8px 12px; text-align: left;
}
.taskip-bhc-ph-num {
    width: 22px; height: 22px; flex-shrink: 0;
    background: #0070f3; color: #fff;
    border-radius: 50%;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Blurred preview */
.taskip-bhc-ph-preview {
    width: 100%; margin-top: 6px;
    border: 1px solid #e2e8f0; border-radius: 10px;
    overflow: hidden;
}
.taskip-bhc-ph-preview-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px;
    font-size: 13px; color: #374151;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-bhc-ph-preview-row:last-child { border-bottom: none; }
.taskip-bhc-ph-preview-row.highlight {
    background: #eff6ff; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   SHARED: TAB BAR  (.taskip-tab-bar / .taskip-tab)
   Used by Service Pricing Calculator and any future tabbed tools.
   ═══════════════════════════════════════════════════════════════════════ */

.taskip-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
}
.taskip-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}
.taskip-tab:hover {
    border-color: #0070f3;
    color: #0070f3;
    background: #f0f7ff;
}
.taskip-tab.active {
    background: #0070f3;
    border-color: #0070f3;
    color: #fff;
    font-weight: 600;
}
@media (max-width: 640px) {
    .taskip-tab { padding: 7px 10px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   SERVICE PRICING CALCULATOR
   ═══════════════════════════════════════════════════════════════════════ */

/* Layout */
.taskip-spc-body {
    grid-template-columns: 1fr 340px;
}
@media (max-width: 860px) {
    .taskip-spc-body { grid-template-columns: 1fr; }
}

/* ── Price tier hero cards ──────────────────────────────────────────── */
.taskip-spc-price-tiers {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 8px;
}
.taskip-spc-tier {
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    border: 1.5px solid transparent;
}
.taskip-spc-tier--floor {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.taskip-spc-tier--recommended {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59,130,246,.12);
}
.taskip-spc-tier--premium {
    background: #fdf4ff;
    border-color: #a855f7;
}
.taskip-spc-tier-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: 6px;
}
.taskip-spc-tier--recommended .taskip-spc-tier-label { color: #2563eb; }
.taskip-spc-tier--premium     .taskip-spc-tier-label { color: #9333ea; }
.taskip-spc-tier-value {
    font-size: 22px;
    font-weight: 800;
    color: #1a1f36;
    line-height: 1.1;
}
.taskip-spc-tier--recommended .taskip-spc-tier-value { color: #2563eb; font-size: 26px; }
.taskip-spc-tier--premium     .taskip-spc-tier-value { color: #9333ea; }
.taskip-spc-tier-note {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ── Package line items ─────────────────────────────────────────────── */
.taskip-spc-pkg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.taskip-spc-pkg-desc {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #1a1f36;
    background: #fff;
    outline: none;
}
.taskip-spc-pkg-desc:focus { border-color: #0070f3; }
.taskip-spc-pkg-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Placeholder ────────────────────────────────────────────────────── */
.taskip-spc-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 10px;
}
.taskip-spc-ph-icon {
    width: 64px; height: 64px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.taskip-spc-ph-title {
    font-size: 15px; font-weight: 700; color: #1a1f36; margin: 0;
}
.taskip-spc-ph-sub {
    font-size: 13px; color: #64748b; margin: 0; max-width: 260px;
}
.taskip-spc-ph-steps {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; margin-top: 4px;
}
.taskip-spc-ph-step {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #475569;
    background: #f8fafc; border-radius: 8px;
    padding: 8px 12px; text-align: left;
}
.taskip-spc-ph-num {
    width: 22px; height: 22px; flex-shrink: 0;
    background: #0070f3; color: #fff;
    border-radius: 50%;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.taskip-spc-ph-preview {
    width: 100%; margin-top: 6px;
    border: 1px solid #e2e8f0; border-radius: 10px;
    overflow: hidden;
}
.taskip-spc-ph-preview-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px;
    font-size: 13px; color: #374151;
    border-bottom: 1px solid #f1f5f9;
}
.taskip-spc-ph-preview-row:last-child { border-bottom: none; }
.taskip-spc-ph-preview-row.highlight {
    background: #eff6ff; font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════
   CREATIVE BRIEF GENERATOR
   ═══════════════════════════════════════════════════════════════════════ */

/* Layout */
.taskip-cbg-body {
    grid-template-columns: 1fr 420px;
}
@media (max-width: 900px) {
    .taskip-cbg-body { grid-template-columns: 1fr; }
}

/* Results panel — fixed height, sticky, scrollable */
.taskip-cbg-results {
    position: sticky;
    top: 24px;
    height: 620px;
    overflow-y: auto;
    padding: 0 !important;
}

/* ── Placeholder ────────────────────────────────────────────────────── */
.taskip-cbg-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 10px;
}
.taskip-cbg-ph-icon {
    width: 68px; height: 68px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.taskip-cbg-ph-title {
    font-size: 15px; font-weight: 700; color: #1a1f36; margin: 0;
}
.taskip-cbg-ph-sub {
    font-size: 13px; color: #64748b; margin: 0; max-width: 260px; line-height: 1.5;
}
.taskip-cbg-ph-sections {
    display: flex; flex-direction: column; gap: 6px;
    width: 100%; max-width: 260px; margin-top: 6px;
}
.taskip-cbg-ph-section {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #64748b;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 6px;
    text-align: left;
}
.taskip-cbg-ph-dot {
    width: 7px; height: 7px; flex-shrink: 0;
    background: #cbd5e1; border-radius: 50%;
}

/* ── Loading state ──────────────────────────────────────────────────── */
.taskip-cbg-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 12px;
    text-align: center;
}
.taskip-cbg-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0070f3;
    border-radius: 50%;
    animation: taskip-spin 0.85s linear infinite;
}
@keyframes taskip-spin { to { transform: rotate(360deg); } }
.taskip-cbg-loading p {
    font-size: 14px; font-weight: 600; color: #1a1f36; margin: 0;
}
.taskip-cbg-loading-note {
    font-size: 12px; color: #94a3b8;
}
.taskip-cbg-dots { letter-spacing: 1px; }

/* ── Output area ────────────────────────────────────────────────────── */
.taskip-cbg-output {
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.taskip-cbg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.taskip-cbg-output-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
}
.taskip-cbg-toolbar-actions {
    display: flex; gap: 6px;
}
.taskip-cbg-tool-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px; font-weight: 600; color: #475569;
    cursor: pointer;
    transition: all .15s;
}
.taskip-cbg-tool-btn:hover {
    border-color: #0070f3; color: #0070f3; background: #eff6ff;
}
.taskip-cbg-export-btn {
    border-color: #0ea374;
    color: #0ea374;
}
.taskip-cbg-export-btn:hover {
    border-color: #0ea374; color: #fff; background: #0ea374;
}
.taskip-cbg-export-btn:disabled {
    opacity: .6; cursor: default; pointer-events: none;
}

/* Brief content */
.taskip-cbg-content {
    padding: 20px 20px 24px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1a1f36;
}
.taskip-cbg-content .taskip-cbg-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0070f3;
    margin: 22px 0 8px;
    padding: 0;
    border: none;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 5px;
}
.taskip-cbg-content .taskip-cbg-section-title:first-child { margin-top: 0; }
.taskip-cbg-content .taskip-cbg-p {
    margin: 0 0 8px;
    color: #374151;
}
.taskip-cbg-content .taskip-cbg-list {
    margin: 4px 0 10px 0;
    padding-left: 18px;
}
.taskip-cbg-content .taskip-cbg-list li {
    margin-bottom: 4px;
    color: #374151;
}

/* ── Error state ────────────────────────────────────────────────────── */
.taskip-cbg-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 10px;
    margin: 16px;
}
.taskip-cbg-error p {
    font-size: 13px;
    color: #dc2626;
    margin: 0;
    line-height: 1.5;
}

/* =============================================================
   CLIENT INTAKE FORM GENERATOR
   ============================================================= */

/* Layout */
.taskip-cif-body {
    grid-template-columns: 1fr 1fr;
    /* gap: 28px and align-items: start inherited from .taskip-tool-body */
}
@media (max-width: 768px) {
    .taskip-cif-body { grid-template-columns: 1fr; }
}
/* .taskip-cif-inputs — no override; base .taskip-tool-inputs handles card styling + padding */
.taskip-cif-results {
    position: sticky;
    top: 24px;
    height: 620px;
    overflow-y: auto;
    padding: 0 !important;
    /* border, radius, bg, shadow inherited from .taskip-tool-results */
}

/* Placeholder */
.taskip-cif-ph {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    padding: 36px 24px; text-align: center;
    height: 100%;
}
.taskip-cif-ph-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.taskip-cif-ph-title {
    font-size: 15px; font-weight: 600; color: #1a1f36; margin: 0 0 6px;
}
.taskip-cif-ph-sub {
    font-size: 13px; color: #6b7280; margin: 0 0 20px; line-height: 1.5;
}
.taskip-cif-ph-sections {
    display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px;
}
.taskip-cif-ph-section {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #94a3b8;
}
.taskip-cif-ph-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0;
}

/* Loading */
.taskip-cif-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 24px; text-align: center;
}
.taskip-cif-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #0070f3;
    border-radius: 50%;
    animation: taskip-spin 0.8s linear infinite;
    margin-bottom: 16px;
}
.taskip-cif-loading p {
    font-size: 14px; font-weight: 500; color: #475569; margin: 0 0 6px;
}
.taskip-cif-loading-note {
    font-size: 11px; color: #94a3b8;
}

/* Toolbar */
.taskip-cif-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.taskip-cif-output-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #64748b;
}
.taskip-cif-toolbar-actions { display: flex; gap: 6px; }
.taskip-cif-tool-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px; font-weight: 600; color: #475569;
    cursor: pointer;
    transition: all .15s;
}
.taskip-cif-tool-btn:hover {
    border-color: #0070f3; color: #0070f3; background: #eff6ff;
}
.taskip-cif-export-btn { border-color: #0ea374; color: #0ea374; }
.taskip-cif-export-btn:hover { border-color: #0ea374; color: #fff; background: #0ea374; }
.taskip-cif-export-btn:disabled { opacity: .6; cursor: default; pointer-events: none; }

/* Meta line */
.taskip-cif-meta {
    font-size: 11px; color: #94a3b8;
    padding: 6px 16px 0;
    text-align: right;
}

/* Content area */
.taskip-cif-content {
    padding: 16px 20px 24px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #1a1f36;
}
.taskip-cif-section-title {
    font-size: 14px; font-weight: 700;
    color: #0070f3;
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e0eeff;
}
.taskip-cif-section-title:first-child { margin-top: 4px; }

/* Individual question */
.taskip-cif-question {
    display: flex; gap: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.taskip-cif-qnum {
    font-weight: 700; color: #0070f3; flex-shrink: 0; min-width: 20px;
}
.taskip-cif-qtext { color: #1a1f36; }

/* Option / checkbox items */
.taskip-cif-option {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #475569;
    padding: 3px 12px 3px 40px;
}
.taskip-cif-option::before {
    content: '\25a1';
    color: #94a3b8;
    margin-right: 6px;
}

.taskip-cif-p {
    font-size: 13px; color: #64748b; margin: 6px 0;
}

/* Error */
.taskip-cif-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 10px;
    margin: 16px;
}
.taskip-cif-error p {
    font-size: 13px;
    color: #dc2626;
    margin: 0;
    line-height: 1.5;
}

/* Required star */
.taskip-required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input error highlight */
.taskip-tool-wrap input.taskip-input-error,
.taskip-tool-wrap textarea.taskip-input-error,
.taskip-tool-wrap select.taskip-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* =============================================================
   MEETING AGENDA GENERATOR
   ============================================================= */

/* Layout */
.taskip-mag-body {
    grid-template-columns: 1fr 1fr;
    /* gap: 28px and align-items: start inherited from .taskip-tool-body */
}
@media (max-width: 768px) {
    .taskip-mag-body { grid-template-columns: 1fr; }
}
/* .taskip-mag-inputs — no override; base .taskip-tool-inputs handles card styling + padding */
.taskip-mag-results {
    position: sticky;
    top: 24px;
    height: 620px;
    overflow-y: auto;
    padding: 0 !important;
    /* border, radius, bg, shadow inherited from .taskip-tool-results */
}

/* Two-column field row */
.taskip-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) {
    .taskip-field-row { grid-template-columns: 1fr; }
}

/* Placeholder */
.taskip-mag-ph {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    padding: 36px 24px; text-align: center; height: 100%;
}
.taskip-mag-ph-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: #eff6ff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.taskip-mag-ph-title { font-size: 15px; font-weight: 600; color: #1a1f36; margin: 0 0 6px; }
.taskip-mag-ph-sub   { font-size: 13px; color: #6b7280; margin: 0 0 20px; line-height: 1.5; }
.taskip-mag-ph-sections { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 260px; }
.taskip-mag-ph-section  { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; }
.taskip-mag-ph-dot { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }

/* Loading */
.taskip-mag-loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 24px; text-align: center;
}
.taskip-mag-spinner {
    width: 36px; height: 36px;
    border: 3px solid #e2e8f0; border-top-color: #0070f3;
    border-radius: 50%;
    animation: taskip-spin 0.8s linear infinite;
    margin-bottom: 16px;
}
.taskip-mag-loading p { font-size: 14px; font-weight: 500; color: #475569; margin: 0 0 6px; }
.taskip-mag-loading-note { font-size: 11px; color: #94a3b8; }

/* Toolbar */
.taskip-mag-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-bottom: 1px solid #e2e8f0; background: #fff;
}
.taskip-mag-output-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: #64748b;
}
.taskip-mag-toolbar-actions { display: flex; gap: 6px; }
.taskip-mag-tool-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 12px; font-weight: 600; color: #475569;
    cursor: pointer; transition: all .15s;
}
.taskip-mag-tool-btn:hover { border-color: #0070f3; color: #0070f3; background: #eff6ff; }
.taskip-mag-export-btn { border-color: #0ea374; color: #0ea374; }
.taskip-mag-export-btn:hover { border-color: #0ea374; color: #fff; background: #0ea374; }
.taskip-mag-export-btn:disabled { opacity: .6; cursor: default; pointer-events: none; }

/* Meta */
.taskip-mag-meta { font-size: 11px; color: #94a3b8; padding: 6px 16px 0; text-align: right; }

/* Content */
.taskip-mag-content {
    padding: 16px 20px 24px;
    font-size: 13.5px; line-height: 1.7; color: #1a1f36;
}
.taskip-mag-section-title {
    font-size: 14px; font-weight: 700; color: #0070f3;
    margin: 22px 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid #e0eeff;
}
.taskip-mag-section-title:first-child { margin-top: 4px; }
.taskip-mag-sub-title {
    font-size: 13px; font-weight: 600; color: #334155;
    margin: 14px 0 6px;
}
.taskip-mag-p { font-size: 13px; color: #475569; margin: 4px 0; }
.taskip-mag-list { margin: 4px 0 10px 18px; padding: 0; }
.taskip-mag-list li { font-size: 13px; color: #334155; margin-bottom: 4px; }

/* Agenda table (action items etc.) */
.taskip-mag-table {
    width: 100%; border-collapse: collapse;
    margin: 10px 0 16px; font-size: 13px;
}
.taskip-mag-table th,
.taskip-mag-table td {
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #e2e8f0;
}
.taskip-mag-table th {
    background: #eff6ff; font-weight: 700; color: #0070f3;
    font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
}
.taskip-mag-table tr:nth-child(even) td { background: #f8fafc; }

/* Error */
.taskip-mag-error {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 20px; background: #fef2f2; border-radius: 10px; margin: 16px;
}
.taskip-mag-error p { font-size: 13px; color: #dc2626; margin: 0; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════
   WEEKLY STATUS REPORT GENERATOR  (.taskip-wsr-*)
   ═══════════════════════════════════════════════════════════════════ */

/* Layout */
.taskip-wsr-body    { grid-template-columns: 1fr 1fr; }
.taskip-wsr-results {
    position: sticky; top: 24px;
    height: 620px; overflow-y: auto;
    padding: 0 !important;
}

/* ── Placeholder (.taskip-wsr-ph) ─────────────────────────── */
.taskip-wsr-ph {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; min-height: 380px;
    text-align: center; padding: 32px;
}
.taskip-wsr-ph-icon {
    width: 52px; height: 52px; margin-bottom: 16px; opacity: .5;
    display: flex; align-items: center; justify-content: center;
}
.taskip-wsr-ph-title {
    font-size: 15px; font-weight: 600; color: #475569;
    margin: 0 0 6px;
}
.taskip-wsr-ph-sub {
    font-size: 13px; color: #94a3b8; margin: 0 0 20px; line-height: 1.6;
}
.taskip-wsr-ph-sections {
    display: flex; flex-direction: column; gap: 8px;
    width: 100%; max-width: 240px;
}
.taskip-wsr-ph-section {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; color: #94a3b8;
}
.taskip-wsr-ph-dot {
    flex-shrink: 0;
    width: 7px; height: 7px; border-radius: 50%;
    background: #cbd5e1;
}

/* ── Loading ──────────────────────────────────────────────── */
.taskip-wsr-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; min-height: 380px; gap: 14px;
}
.taskip-wsr-spinner {
    width: 38px; height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #0070f3;
    border-radius: 50%;
    animation: taskip-spin 0.8s linear infinite;
}
.taskip-wsr-loading p {
    font-size: 14px; color: #64748b; margin: 0;
}
.taskip-wsr-loading-note {
    font-size: 12px; color: #94a3b8;
}
.taskip-wsr-dots { display: inline-block; min-width: 18px; }

/* ── Output wrapper ───────────────────────────────────────── */
.taskip-wsr-output { height: 100%; display: flex; flex-direction: column; }

/* ── Toolbar ──────────────────────────────────────────────── */
.taskip-wsr-toolbar {
    display: flex; align-items: center;
    padding: 10px 14px; gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}
.taskip-wsr-output-label {
    font-size: 12px; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: .05em;
    flex: 1;
}
.taskip-wsr-toolbar-actions {
    display: flex; align-items: center; gap: 6px;
}
.taskip-wsr-tool-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 7px; border: 1px solid #e2e8f0;
    background: #fff; color: #334155;
    font-size: 12px; font-weight: 500; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.taskip-wsr-tool-btn:hover { background: #f1f5f9; border-color: #cbd5e1; color: #0f172a; }

/* Export button (overrides .taskip-wsr-tool-btn colours) */
.taskip-wsr-export-btn {
    border-color: #0ea374 !important;
    background: #f0fdf8 !important; color: #0ea374 !important;
    font-weight: 600;
}
.taskip-wsr-export-btn:hover { background: #0ea374 !important; color: #fff !important; }
.taskip-wsr-export-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Meta line ────────────────────────────────────────────── */
.taskip-wsr-meta {
    padding: 5px 14px 7px;
    font-size: 11px; color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

/* ── Report content ───────────────────────────────────────── */
.taskip-wsr-content {
    padding: 16px 20px 24px;
    font-size: 13.5px; line-height: 1.7; color: #1a1f36;
    flex: 1;
}
.taskip-wsr-section-title {
    font-size: 14px; font-weight: 700; color: #0070f3;
    margin: 22px 0 10px; padding-bottom: 6px;
    border-bottom: 2px solid #e0eeff;
}
.taskip-wsr-section-title:first-child { margin-top: 4px; }
.taskip-wsr-sub-title {
    font-size: 13px; font-weight: 600; color: #334155;
    margin: 14px 0 6px;
}
.taskip-wsr-p { font-size: 13px; color: #475569; margin: 4px 0; }
.taskip-wsr-list { margin: 4px 0 10px 18px; padding: 0; }
.taskip-wsr-list li { font-size: 13px; color: #334155; margin-bottom: 4px; }

/* ── Status badge ─────────────────────────────────────────── */
.taskip-wsr-status-badge {
    display: inline-block;
    padding: 2px 9px; border-radius: 99px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .03em; line-height: 1.6;
    vertical-align: middle;
}

/* ── Action items table ───────────────────────────────────── */
.taskip-wsr-table {
    width: 100%; border-collapse: collapse;
    margin: 10px 0 16px; font-size: 13px;
}
.taskip-wsr-table th,
.taskip-wsr-table td {
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #e2e8f0;
}
.taskip-wsr-table th {
    background: #eff6ff; font-weight: 700; color: #0070f3;
    font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
}
.taskip-wsr-table tr:nth-child(even) td { background: #f8fafc; }

/* ── Error ────────────────────────────────────────────────── */
.taskip-wsr-error {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 20px; background: #fef2f2; border-radius: 10px; margin: 16px;
}
.taskip-wsr-error p { font-size: 13px; color: #dc2626; margin: 0; line-height: 1.5; }
