#psbg-wrap {
    max-width: 420px;
    border: 1px solid #e0dfd8;
    border-radius: 10px;
    padding: 1.25rem;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

#psbg-wrap * {
    box-sizing: border-box;
}

.psbg-row {
    margin-bottom: 0.75rem;
}

.psbg-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
    font-weight: normal;
}

.psbg-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.psbg-input {
    flex: 1;
    height: 38px;
    padding: 0 10px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: #111;
    outline: none;
    transition: border-color 0.15s;
}

.psbg-input:focus {
    border-color: #aaa;
}

.psbg-unit {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    min-width: 44px;
    justify-content: center;
}

.psbg-swap-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.5rem 0;
}

.psbg-line {
    flex: 1;
    height: 1px;
    background: #eee;
}

.psbg-swap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.15s;
}

.psbg-swap:hover {
    background: #ebebeb;
}

.psbg-result {
    background: #f7f7f5;
    border-radius: 7px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
}

.psbg-result-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 3px;
}

.psbg-result-val {
    font-size: 24px;
    font-weight: 500;
    color: #111;
}

.psbg-result-unit {
    font-size: 14px;
    color: #888;
    margin-left: 3px;
}

.psbg-pills {
    display: flex;
    gap: 6px;
    margin-top: 0.75rem;
}

.psbg-pill {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #999;
    background: #f7f7f5;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 6px 4px;
    line-height: 1.6;
}

.psbg-pill strong {
    display: block;
    font-size: 12px;
    color: #444;
    font-weight: 500;
}
