
        :root {
            --primary: #2563eb;
            --primary-dark: #1d4ed8;
            --secondary: #16a34a;
            --bg: #f1f5f9;
            --card-bg: #ffffff;
            --text: #0f172a;
            --text-light: #475569;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --radius: 16px;
        }
        body {
            background: var(--bg);
            color: var(--text);
            line-height: 1.5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        .estimator {
            max-width: 900px;
            width: 100%;
            margin: 0 auto;
        }
        .title-block {
	background: linear-gradient(135deg, #1e293b, #0f172a);
	color: white;
            border-radius: var(--radius);
	margin-bottom: 10px;
            box-shadow: var(--shadow);
	text-align: center;
	margin-top: 10px;
	padding: 15;
        }
        .title-block h1 {
            font-size: 1.7rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }
        .title-block p {
            margin-top: 0.35rem;
            opacity: 0.9;
            font-size: 0.85rem;
        }
        @media (min-width: 500px) {
            .title-block h1 { font-size: 2rem; }
            .title-block p { font-size: 1rem; }
        }
        .progress {
            display: flex;
            background: var(--card-bg);
            padding: 0.75rem 0.5rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 1.25rem;
        }
        .progress-step {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            font-size: 0.7rem;
        }
        @media (min-width: 480px) {
            .progress-step { font-size: 0.85rem; }
        }
        .progress-step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 1rem;
            right: -50%;
            width: 100%;
            height: 2px;
            background: var(--border);
            z-index: 0;
        }
        .step-badge {
            width: 2rem;
            height: 2rem;
            background: var(--border);
            color: var(--text-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            margin-bottom: 0.25rem;
            z-index: 1;
            transition: 0.2s;
        }
        .step-badge.active {
            background: var(--primary);
            color: white;
        }
        .step-label {
            color: var(--text-light);
            font-weight: 500;
        }
        .step-label.active {
            color: var(--primary);
            font-weight: 600;
        }
        .card {
            background: var(--card-bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 1.5rem 1.2rem;
            margin-bottom: 1.5rem;
            display: none;
        }
        .card.active {
            display: block;
            animation: fade 0.3s;
        }
        @keyframes fade { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
        .card h2 {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 1.3rem;
            color: var(--primary);
            margin-bottom: 1.5rem;
            border-bottom: 2px solid var(--border);
            padding-bottom: 0.6rem;
        }
        .card h2 span { display: none; }
        .form-row {
            margin-bottom: 1.5rem;
        }
        .label-group {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text);
        }
        .hint {
            font-size: 0.85rem;
            color: var(--text-light);
            margin-top: 0.25rem;
        }
        select, input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 1rem;
            background: white;
        }
        /* state select now enabled */
        select:enabled {
            background: white;
            cursor: pointer;
        }
        .income-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        @media (min-width: 500px) {
            .income-grid { grid-template-columns: 1fr 1fr; }
        }
        .income-box {
            background: #f8fafc;
            padding: 1.2rem 1rem;
            border-radius: 16px;
            border-left: 4px solid var(--primary);
        }
        .radio-group {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
        }
        .radio-item {
            flex: 1 1 130px;
        }
        .radio-item input { display: none; }
        .radio-item label {
            display: block;
            background: #f1f5f9;
            text-align: center;
            padding: 0.75rem 0.5rem;
            border-radius: 30px;
            font-weight: 500;
            cursor: pointer;
            transition: 0.2s;
            border: 1px solid transparent;
            font-size: 0.9rem;
        }
        .radio-item input:checked + label {
            background: var(--primary);
            color: white;
        }
        .slider-container {
            padding: 0.5rem 0 1rem;
        }
        .slider-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-light);
        }
        .custody-value {
            background: #f1f5f9;
            padding: 0.7rem;
            border-radius: 30px;
            text-align: center;
            font-weight: 600;
            color: var(--primary);
            margin-top: 1rem;
        }
        input[type=range] {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            -webkit-appearance: none;
        }
        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            background: white;
            border: 2px solid var(--primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }
        .expenses-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        @media (min-width: 500px) {
            .expenses-grid { grid-template-columns: 1fr 1fr; }
        }
        .nav-buttons {
            display: flex;
            gap: 0.8rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        .btn {
            flex: 1 1 auto;
            padding: 0.9rem 1rem;
            border: none;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            transition: 0.2s;
            background: #e2e8f0;
            color: var(--text);
        }
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        .btn-success {
            background: var(--secondary);
            color: white;
        }
        .btn:hover { transform: translateY(-2px); filter: brightness(0.98); box-shadow: var(--shadow); }
        .result-summary {
            background: #f8fafc;
            border-radius: 24px;
            padding: 1.2rem;
            text-align: center;
            margin-bottom: 1.8rem;
        }
        .support-amount {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1.2;
        }
        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 0.7rem 0;
            border-bottom: 1px dashed var(--border);
            font-size: 0.95rem;
        }
        .breakdown-item.total {
            font-weight: 700;
            font-size: 1.1rem;
            border-top: 2px solid var(--primary);
            border-bottom: none;
            padding-top: 0.9rem;
            margin-top: 0.3rem;
        }
        .copy-area {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 0.9rem 1.2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin: 1.5rem 0;
            border: 1px solid var(--border);
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .copy-btn {
            background: white;
            border: 1px solid var(--border);
            padding: 0.5rem 1.2rem;
            border-radius: 30px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            transition: 0.2s;
        }
        .copy-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
        .disclaimer {
            background: #fff7ed;
            border-left: 4px solid #f97316;
            padding: 0.9rem;
            border-radius: 12px;
            font-size: 0.8rem;
            color: #7c2d12;
            margin-top: 1.5rem;
        }
        .calc-detail {
            background: #f1f5f9;
            border-radius: 16px;
            padding: 1rem;
            margin: 1.5rem 0;
            font-size: 0.85rem;
            word-break: break-word;
        }
        .help {
            display: inline-block;
            margin-left: 0.3rem;
            cursor: help;
            color: var(--primary);
            font-size: 1rem;
        }
