.tsb-container {
    max-width: 1000px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

.tsb-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tsb-header h2 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 26px;
}

.tsb-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.tsb-golden-rules {
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid #f1c40f;
    padding: 15px 20px;
    border-radius: 6px;
}

.tsb-golden-rules h4 {
    margin: 0 0 10px 0;
    color: #f1c40f;
}

.tsb-golden-rules ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
}

.tsb-card {
    background: #ffff;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.tsb-couple-status {
    display: flex;
    justify-content: space-between;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.tsb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
    overflow-x: auto;
}

.tsb-tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tsb-tab-btn.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
}

.tsb-tab-pane {
    display: none;
}

.tsb-tab-pane.active {
    display: block;
}

.tsb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .tsb-grid-2 {
        grid-template-columns: 1fr;
    }
}

.tsb-form-group {
    margin-bottom: 18px;
}

.tsb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.tsb-input, .tsb-textarea, .tsb-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.tsb-textarea {
    min-height: 85px;
    resize: vertical;
}

.tsb-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.tsb-btn-primary {
    background: #1e3c72;
    color: #fff;
}

.tsb-btn-primary:hover {
    background: #162c54;
}

.tsb-btn-secondary {
    background: #27ae60;
    color: #fff;
}

.tsb-btn-secondary:hover {
    background: #219150;
}

.tsb-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.tsb-cycle-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.tsb-partner-node {
    width: 38%;
    background: #ffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tsb-partner-node h5 {
    margin: 0 0 8px 0;
    color: #1e3c72;
}

.tsb-cycle-hub {
    text-align: center;
    width: 20%;
}

.tsb-badge-cycle {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.tsb-script-output {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    padding: 18px;
    border-radius: 6px;
    margin-top: 20px;
}

.tsb-script-output blockquote {
    margin: 10px 0 0 0;
    font-style: italic;
    color: #795548;
}

.tsb-slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.tsb-slider {
    flex-grow: 1;
}

/* SOS Emergency Component */
.tsb-sos-modal {
    background: #2c3e50;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.tsb-sos-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tsb-sos-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 25px;
    text-align: left;
}

.tsb-step {
    background: rgba(255,255,255,0.08);
    padding: 15px;
    border-radius: 8px;
}

.tsb-step h4 {
    margin: 0 0 8px 0;
    color: #f1c40f;
}

.tsb-breath-circle {
    width: 70px;
    height: 70px;
    background: #3498db;
    border-radius: 50%;
    margin: 15px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* ===== v1.2.1 additions: combined results view, save status, meters ===== */
.tsb-save-status {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1e8449;
}

.tsb-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .tsb-compare-grid {
        grid-template-columns: 1fr;
    }
}

.tsb-compare-col {
    background: #f8fafc;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    padding: 18px;
}

.tsb-compare-col h4 {
    margin: 0 0 12px 0;
    color: #1e3c72;
}

.tsb-compare-col h5 {
    margin: 14px 0 6px 0;
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tsb-compare-field {
    margin-bottom: 12px;
}

.tsb-compare-field p {
    margin: 4px 0 0 0;
    font-size: 14px;
}

.tsb-meter {
    height: 10px;
    background: #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0;
}

.tsb-meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #e67e22, #e74c3c);
}

.tsb-checkin-entry {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.tsb-checkin-entry h5 {
    margin: 0 0 8px 0;
    color: #1e3c72;
}

.tsb-checkin-entry p {
    margin: 4px 0;
    font-size: 13.5px;
}

.tsb-shared-loop-card .tsb-loop-summary {
    background: #f4efe8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 15px;
    line-height: 1.6;
}

.tsb-shared-loop-card .tsb-loop-wayforward {
    background: #eef7ee;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 15px;
    line-height: 1.6;
}

.tsb-shared-loop-card .tsb-loop-wayforward ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.tsb-shared-loop-card .tsb-loop-wayforward li {
    margin-bottom: 8px;
}

.tsb-shared-loop-notice {
    margin: 0 0 20px 0;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff8e6;
    color: #66512b;
}
