.shiroi-invest-app {
    --shiroi-blue: #0f172a;
    --shiroi-panel: #ffffff;
    --shiroi-muted: #64748b;
    --shiroi-line: #dbe3ef;
    --shiroi-green: #16a34a;
    --shiroi-green-dark: #15803d;
    --shiroi-soft: #f5f8fc;
    color: var(--shiroi-blue);
    font-family: Inter, Arial, sans-serif;
    max-width: 1120px;
    margin: 0 auto;
}

.shiroi-invest-app * {
    box-sizing: border-box;
}

.shiroi-invest-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a 0%, #123b54 58%, #14532d 100%);
    color: #ffffff;
    margin-bottom: 22px;
}

.shiroi-invest-hero h2 {
    color: #ffffff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    margin: 6px 0 12px;
}

.shiroi-invest-hero p {
    color: #dbeafe;
    margin: 0;
    max-width: 680px;
}

.shiroi-invest-eyebrow {
    color: #86efac !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.shiroi-invest-hero-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 150px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, .08);
}

.shiroi-invest-hero-card span,
.shiroi-invest-hero-card small {
    color: #dbeafe;
}

.shiroi-invest-hero-card strong {
    color: #ffffff;
    font-size: 24px;
}

.shiroi-invest-workspace {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.shiroi-invest-panel {
    border: 1px solid var(--shiroi-line);
    border-radius: 8px;
    background: var(--shiroi-panel);
    padding: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.shiroi-invest-heading h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 6px;
}

.shiroi-invest-heading p {
    color: var(--shiroi-muted);
    margin: 0 0 18px;
}

.shiroi-invest-heading .shiroi-invest-help-link {
    margin: -8px 0 18px;
}

.shiroi-invest-help-link a {
    color: #15803d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.shiroi-invest-help-link a:hover {
    text-decoration: underline;
}

.shiroi-invest-form,
.shiroi-invest-lead {
    display: grid;
    gap: 14px;
}

.shiroi-invest-form label,
.shiroi-invest-lead label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.shiroi-invest-form input,
.shiroi-invest-form select,
.shiroi-invest-lead input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
}

.shiroi-invest-form input:focus,
.shiroi-invest-form select:focus,
.shiroi-invest-lead input:focus {
    outline: 3px solid rgba(22, 163, 74, .16);
    border-color: var(--shiroi-green);
}

.shiroi-money-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.shiroi-money-field span {
    padding: 0 0 0 12px;
    color: #475569;
    font-weight: 800;
}

.shiroi-money-field input {
    border: 0 !important;
    min-height: 42px;
    padding-left: 8px !important;
}

.shiroi-money-field:focus-within {
    outline: 3px solid rgba(22, 163, 74, .16);
    border-color: var(--shiroi-green);
}

.shiroi-money-field input:focus {
    outline: none !important;
}

.shiroi-invest-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shiroi-invest-form button,
.shiroi-invest-lead button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    background: var(--shiroi-green);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.shiroi-invest-form button:hover,
.shiroi-invest-lead button:hover {
    background: var(--shiroi-green-dark);
}

.shiroi-invest-form button[disabled],
.shiroi-invest-lead button[disabled] {
    cursor: wait;
    opacity: .72;
}

.shiroi-invest-winner {
    display: grid;
    gap: 6px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 18px;
    background: #f0fdf4;
    margin-bottom: 16px;
}

.shiroi-invest-winner span {
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.shiroi-invest-winner strong {
    color: #14532d;
    font-size: 24px;
}

.shiroi-invest-winner p {
    color: #166534;
    margin: 0;
}

.shiroi-invest-winner.is-empty {
    border-color: #e2e8f0;
    background: var(--shiroi-soft);
}

.shiroi-invest-winner.is-empty span,
.shiroi-invest-winner.is-empty strong {
    color: #475569;
}

.shiroi-invest-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shiroi-invest-card {
    border: 1px solid var(--shiroi-line);
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
}

.shiroi-invest-card.is-best {
    border-color: #86efac;
    box-shadow: inset 4px 0 0 var(--shiroi-green);
}

.shiroi-invest-card h4 {
    font-size: 18px;
    margin: 0 0 10px;
}

.shiroi-invest-metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-top: 1px solid #eef2f7;
    padding-top: 9px;
    margin-top: 9px;
    color: #475569;
    font-size: 14px;
}

.shiroi-invest-metric strong {
    color: #0f172a;
}

.shiroi-invest-note {
    color: var(--shiroi-muted);
    font-size: 13px;
    margin: 12px 0 0;
}

.shiroi-invest-guidance {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.shiroi-invest-guidance p {
    border-left: 4px solid #38bdf8;
    background: #f0f9ff;
    color: #0f172a;
    margin: 0;
    padding: 10px 12px;
}

.shiroi-invest-lead {
    margin-top: 18px;
    border-top: 1px solid var(--shiroi-line);
    padding-top: 18px;
}

.shiroi-invest-lead h3 {
    margin: 0;
    font-size: 20px;
}

.shiroi-invest-lead p {
    color: var(--shiroi-muted);
    margin: 0;
}

.shiroi-invest-disclaimer {
    margin-top: 18px;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fffbeb;
    color: #713f12;
    font-size: 14px;
}

.shiroi-invest-error {
    border-radius: 8px;
    padding: 12px;
    background: #fef2f2;
    color: #991b1b;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .shiroi-invest-hero,
    .shiroi-invest-workspace {
        grid-template-columns: 1fr;
    }

    .shiroi-invest-hero {
        padding: 22px;
    }
}

@media (max-width: 620px) {
    .shiroi-invest-grid-2,
    .shiroi-invest-cards {
        grid-template-columns: 1fr;
    }

    .shiroi-invest-panel {
        padding: 18px;
    }
}
