/**
 * Module Góc Tâm Lý Ẩn Danh - giao diện ngoài site (ưu tiên điện thoại)
 */
.ss-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-size: 15px;
}
.ss-wrap [hidden] {
    display: none !important;
}
.ss-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.ss-topbar .ss-panic {
    flex-shrink: 0;
}
.ss-panic-hint {
    line-height: 1.4;
}
.ss-chat-actions + .ss-panic-hint {
    margin: 6px 0 0;
}
.ss-header {
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}
.ss-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 6px;
    color: #2e7d32;
}
.ss-intro {
    margin: 0;
    color: #37474f;
}
.ss-tabs {
    margin-bottom: 0;
}
.ss-tabs > li > a {
    font-weight: bold;
}
.ss-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.ss-step {
    margin-bottom: 18px;
}
.ss-step-title {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1565c0;
}
.ss-radio,
.ss-check {
    display: block;
    font-weight: normal;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}
.ss-radio input,
.ss-check input {
    margin-right: 6px;
}
.ss-stress-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #607d8b;
}
.ss-stress-value {
    font-size: 22px;
    font-weight: bold;
    color: #2e7d32;
}
.ss-stress-value.ss-mid {
    color: #ef6c00;
}
.ss-stress-value.ss-high {
    color: #c62828;
}
.ss-range {
    width: 100%;
    margin: 8px 0;
}
.ss-textarea {
    font-size: 16px;
    border-radius: 8px;
}
.ss-note {
    color: #607d8b;
    margin-top: 6px;
}
.ss-pin-input {
    max-width: 160px;
    font-size: 20px;
    letter-spacing: 8px;
    text-align: center;
}
.ss-captcha img {
    vertical-align: middle;
}
.ss-captcha .fcode {
    display: inline-block;
    width: 120px;
    vertical-align: middle;
}
.ss-submit {
    border-radius: 8px;
    font-weight: bold;
}
.ss-commit {
    margin-top: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}
.ss-code-input {
    font-family: "Courier New", monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ss-qr-btn {
    border-style: dashed;
}

/* Thẻ Bí Mật */
.ss-card-title {
    font-weight: bold;
    text-align: center;
}
.ss-card-code-label {
    text-align: center;
    color: #607d8b;
}
.ss-card-code {
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    word-break: break-all;
    margin: 4px 0 10px;
}
.ss-card-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}
.ss-card-pin {
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
}
.ss-card-actions > div {
    margin-bottom: 8px;
}
.ss-urgent {
    border-width: 2px;
}
.ss-urgent-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.ss-urgent-list li {
    margin-bottom: 6px;
}

/* Khung chat */
.ss-chat-head {
    background: #263238;
    color: #fff;
    border-radius: 12px 12px 0 0;
    padding: 10px 14px;
}
.ss-chat-title {
    font-weight: bold;
}
.ss-chat-head .text-muted {
    color: #b0bec5;
}
.ss-mask {
    font-family: "Courier New", monospace;
}
.ss-chat-box {
    background: #eceff1;
    height: 55vh;
    min-height: 260px;
    overflow-y: auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
}
.ss-msg {
    max-width: 82%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.ss-msg-me {
    margin-left: auto;
    background: #c8e6c9;
    border-bottom-right-radius: 4px;
}
.ss-msg-counselor {
    margin-right: auto;
    background: #fff;
    border-bottom-left-radius: 4px;
}
.ss-msg-who {
    font-size: 12px;
    font-weight: bold;
    color: #455a64;
}
.ss-msg-time {
    font-size: 11px;
    color: #78909c;
    text-align: right;
    margin-top: 2px;
}
.ss-chat-form {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    padding: 8px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 12px;
}
.ss-chat-input {
    display: flex;
    gap: 6px;
}
.ss-chat-input textarea {
    flex: 1;
    font-size: 16px;
    resize: vertical;
}
.ss-chat-input .btn {
    white-space: nowrap;
}
.ss-chat-actions > div {
    margin-bottom: 8px;
}
@media (max-width: 480px) {
    .ss-title {
        font-size: 17px;
    }
    .ss-tabs > li > a {
        padding: 8px 8px;
        font-size: 13px;
    }
    .ss-msg {
        max-width: 92%;
    }
}
