
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background: #f4f7fc;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        h1 {
            font-size: 2.2rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            background: linear-gradient(150deg, #0f2b45, #1c4e7a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 4px;
        }

        .subtitle {
            color: #3e5a77;
            font-size: 1rem;
            font-weight: 400;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid #cfddee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .badge {
            background: #dfe9f5;
            color: #1a4a7a;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 8px;
        }

        .card {
            background: white;
            border-radius: 32px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 8px 24px rgba(0, 25, 45, 0.06);
            border: 1px solid #e3eefb;
            transition: box-shadow 0.2s;
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 650;
            color: #0c2c48;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-left: 5px solid #1f5985;
            padding-left: 16px;
        }

        .section-title .emoji {
            font-size: 1.7rem;
        }

        select, input {
            width: 100%;
            padding: 16px 18px;
            background: #f9fcff;
            border: 1.5px solid #d2e2f5;
            border-radius: 30px;
            font-size: 1rem;
            color: #102b40;
            margin-bottom: 16px;
            transition: 0.15s;
        }

        select:focus, input:focus {
            border-color: #1f5985;
            outline: none;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(31,89,133,0.15);
        }

        select {
            appearance: none;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%231e4b74" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg>');
            background-repeat: no-repeat;
            background-position: right 18px center;
            background-size: 18px;
        }

        .row {
            display: flex;
            gap: 16px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .row > * {
            flex: 1 1 200px;
        }

        .range-container {
            margin: 16px 0 20px;
        }

        .range-header {
            display: flex;
            justify-content: space-between;
            color: #1c3f5e;
            font-weight: 600;
            margin-bottom: 8px;
        }

        input[type=range] {
            width: 100%;
            height: 8px;
            background: #d2e2f5;
            border-radius: 20px;
            -webkit-appearance: none;
            padding: 0;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 28px;
            height: 28px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 4px 12px rgba(0,30,60,0.25);
            border: 3px solid #1f5985;
            cursor: pointer;
            margin-top: -10px;
        }

        .asset-card {
            background: #f9fcff;
            border-radius: 28px;
            padding: 20px;
            margin-bottom: 16px;
            border: 1px solid #d2e2f5;
            transition: 0.2s;
        }

        .asset-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            font-weight: 600;
            color: #1a3f5e;
            gap: 12px;
        }
        .asset-header input {
            padding: 10px 16px;
            margin-bottom: 0;
            width: 60%;
            font-weight: 500;
        }

        .asset-inputs {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .asset-inputs input {
            margin-bottom: 0;
            padding: 12px;
            flex: 1 1 180px;
        }

        .debt-input {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #b13e2d;
            font-size: 0.95rem;
            flex-wrap: wrap;
        }

        .debt-input input {
            flex: 2 1 200px;
            padding: 12px;
        }

        .separate-row {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-top: 12px;
            background: #ecf3fa;
            padding: 12px 16px;
            border-radius: 40px;
        }
        .separate-row label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
            color: #102b40;
        }
        .separate-row input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin: 0;
            accent-color: #1f5b88;
        }

        .remove-asset {
            color: #b13e2d;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            padding: 0 10px;
            line-height: 1;
            border-radius: 40px;
        }
        .remove-asset:hover {
            background: #ffe8e3;
        }

        .add-asset-btn {
            width: 100%;
            padding: 16px;
            background: #edf5ff;
            border: 2px dashed #9bb4d0;
            border-radius: 40px;
            color: #1f5985;
            font-weight: 700;
            cursor: pointer;
            margin-top: 8px;
            font-size: 1rem;
        }

        .results-panel {
            background: #0a2338;
            border-radius: 36px;
            padding: 28px 24px;
            color: white;
            margin: 24px 0 16px;
            display: none;
        }

        .result-section {
            margin-bottom: 24px;
        }

        .result-section-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: #a5c0db;
            margin-bottom: 16px;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #264d72;
        }

        .result-label {
            font-size: 1rem;
            opacity: 0.8;
        }

        .result-value {
            font-size: 1.3rem;
            font-weight: 600;
        }

        .total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 16px;
            padding-top: 20px;
            border-top: 2px solid #3f6792;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .party-total {
            color: #fdd978;
            font-size: 2rem;
            font-weight: 800;
        }

        .allocation-container {
            background: #f2f8ff;
            border-radius: 32px;
            padding: 20px;
            margin: 20px 0 10px;
        }

        .allocation-header {
            display: flex;
            justify-content: space-between;
            font-weight: 700;
            color: #1a3f5e;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .party-labels {
            display: flex;
            justify-content: space-between;
            margin-bottom: 6px;
            font-size: 0.95rem;
        }

        .tax-note {
            background: #e9f2fc;
            border-radius: 24px;
            padding: 16px;
            font-size: 0.95rem;
            color: #1c4f7a;
            margin: 16px 0 0;
        }

        .btn {
            width: 100%;
            padding: 18px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.1rem;
            border: none;
            cursor: pointer;
            transition: 0.2s;
            margin-bottom: 14px;
        }

        .btn-primary {
            background: #1f5985;
            color: white;
            box-shadow: 0 6px 14px rgba(25,85,130,0.25);
        }
        .btn-primary:active { background: #12426a; }

        .btn-recalc {
            background: #2d6b4b;
            color: white;
        }
        .btn-recalc:active { background: #1e5038; }

        .btn-secondary {
            background: #ecf3fa;
            color: #1f5985;
            border: 1.5px solid #bdd2ea;
        }

        .disclaimer {
            font-size: 0.75rem;
            color: #5d738f;
            text-align: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid #d4e2f2;
        }

        .warning-note {
            background: #fbeae5;
            border-left: 5px solid #c4452b;
            padding: 16px;
            border-radius: 20px;
            margin: 16px 0 0;
            font-size: 0.95rem;
            color: #712e1f;
            display: none;
        }

        .separator-note {
            background: #f0f4fa;
            border-radius: 16px;
            padding: 12px;
            font-size: 0.9rem;
            margin: 12px 0 0;
            color: #124267;
        }

        .hidden { display: none; }

        /* simple bar chart */
        .simple-chart {
            display: flex;
            height: 40px;
            border-radius: 40px;
            overflow: hidden;
            margin: 16px 0 8px;
            background: #d9e2f0;
        }
        .chart-bar1 { background: #1f7b9a; height: 100%; }
        .chart-bar2 { background: #f4b740; height: 100%; }
        .chart-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.95rem;
            font-weight: 600;
            color: #1a3f5e;
            margin-bottom: 10px;
        }

