.isd-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.isd-wrap * { box-sizing: border-box; }

/* Dark theme */
.isd-wrap.isd-dark {
    background: transparent;
    border-radius: 12px;
    padding: 0.5rem;
}

/* Hide internal widget header — page provides its own */
.isd-dark .isd-eyebrow,
.isd-dark .isd-headline,
.isd-dark .isd-subhead { display: none; }

/* Typography */
.isd-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.85rem;
}

.isd-headline {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}
.isd-dark .isd-headline { color: #f0f0f0; }

.isd-subhead {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}
.isd-dark .isd-subhead { color: #aaa; }

/* Area grid — Step 1 */
.isd-area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.isd-area-card {
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-align: left;
    position: relative;
}
.isd-area-card::after {
    content: '→';
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 14px;
    color: #B7950B;
    opacity: 0.5;
    transition: opacity 0.15s, transform 0.15s;
}
.isd-area-card:hover {
    border-color: #B7950B;
    background: #FEFBF0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183,149,11,0.15);
}
.isd-area-card:hover::after {
    opacity: 1;
    transform: translateX(3px);
}
.isd-area-card:active {
    transform: translateY(0);
    box-shadow: none;
}

.isd-tap-prompt {
    font-size: 12px;
    text-align: center;
    color: #999;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.isd-dark .isd-area-card {
    background: #161c26;
    border-color: #2a3245;
    color: #f0f0f0;
}
.isd-dark .isd-area-card:hover {
    border-color: #D4AC0D;
    background: #2a2200;
}
.isd-dark .isd-area-card::after { color: #D4AC0D; }

.isd-area-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 8px;
}
.isd-area-label {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    display: block;
    margin-bottom: 3px;
}
.isd-dark .isd-area-label { color: #f0f0f0; }
.isd-area-hint {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.isd-dark .isd-area-hint { color: #888; }

/* Statements — Step 2 */
.isd-stmt-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 1.5rem;
}

.isd-stmt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.isd-stmt:hover {
    border-color: #B7950B;
    background: #FEFBF0;
}
.isd-stmt.isd-selected {
    border-color: #B7950B;
    background: #FEFBF0;
}
.isd-dark .isd-stmt {
    background: #161c26;
    border-color: #2a3245;
}
.isd-dark .isd-stmt:hover,
.isd-dark .isd-stmt.isd-selected {
    border-color: #D4AC0D;
    background: #2a2200;
}

.isd-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 2px;
}
.isd-stmt.isd-selected .isd-check {
    background: #B7950B;
    border-color: #B7950B;
}
.isd-check::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.15s;
}
.isd-stmt.isd-selected .isd-check::after { opacity: 1; }

.isd-stmt-text {
    font-size: 15px;
    color: #222;
    line-height: 1.55;
}
.isd-dark .isd-stmt-text { color: #e0e0e0; }

/* Buttons */
.isd-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    background: #B7950B;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.15s;
    display: block;
    text-align: center;
    text-decoration: none;
}
.isd-btn.isd-active {
    opacity: 1;
    pointer-events: all;
}
.isd-btn.isd-active:hover { opacity: 0.88; }

.isd-back {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
}

/* Result box */
.isd-result-box {
    padding: 1.5rem;
    border: 1px solid #D4AC0D;
    border-radius: 10px;
    background: #FEFBF0;
    margin-bottom: 0.5rem;
}
.isd-dark .isd-result-box {
    background: #2a2200;
    border-color: #D4AC0D;
}

.isd-result-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #B7950B;
    margin: 0 0 0.6rem;
}
.isd-result-headline {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin: 0 0 0.85rem;
}
.isd-dark .isd-result-headline { color: #f0f0f0; }
.isd-result-body {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 0.85rem;
}
.isd-dark .isd-result-body { color: #bbb; }
.isd-result-truth {
    font-size: 14px;
    font-style: italic;
    color: #222;
    line-height: 1.6;
    padding: 12px 16px;
    border-left: 3px solid #B7950B;
    margin: 0 0 1.25rem;
    background: rgba(183,149,11,0.06);
    border-radius: 0 6px 6px 0;
}
.isd-dark .isd-result-truth { color: #e0e0e0; background: rgba(212,172,13,0.08); }

/* Sections */
.isd-section { display: none; }
.isd-section.isd-active { display: block; }

@media (max-width: 480px) {
    .isd-area-grid { grid-template-columns: 1fr; }
}
