/* ===== Korean Study Page Styles ===== */

.study-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.study-container h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--color-text, #1E293B);
}

.study-subtitle {
    text-align: center;
    color: var(--color-text-secondary, #636e72);
    font-size: 0.9em;
    margin-bottom: 24px;
}

/* ===== Topic Tabs ===== */
.study-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    background: var(--color-bg, #FAFAFA);
    padding: 10px 0;
    z-index: 10;
}

.study-tab-btn {
    padding: 8px 16px;
    border: 1.5px solid var(--color-border, #E2E8F0);
    background: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-text-secondary, #636e72);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.study-tab-btn:hover {
    border-color: var(--color-primary, #EA4335);
    color: var(--color-primary, #EA4335);
}

.study-tab-btn.active {
    background: var(--color-primary, #EA4335);
    color: #fff;
    border-color: var(--color-primary, #EA4335);
}

/* ===== Topic Sections ===== */
.study-topic {
    display: none;
}

.study-topic.active {
    display: block;
}

.study-topic h2 {
    font-size: 1.2rem;
    color: var(--color-text, #1E293B);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-topic-desc {
    font-size: 0.85em;
    color: var(--color-text-secondary, #636e72);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ===== Chart Table ===== */
.study-chart-scroll {
    margin-bottom: 20px;
}

.study-chart {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 2px;
    margin-bottom: 0;
}

.study-chart th {
    background: #1E293B;
    color: #fff;
    padding: 6px 4px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    overflow: hidden;
}

.study-chart th.row-header {
    background: #334155;
}

.study-chart th.clickable-header {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255,255,255,0.3);
    user-select: none;
    -webkit-user-select: none;
}

.study-chart th.clickable-header:active {
    opacity: 0.7;
    transform: scale(0.95);
}

.study-chart td {
    text-align: center;
    padding: 6px 4px;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
    font-size: 1.1em;
    font-weight: 500;
    border: 1px solid var(--color-border, #E2E8F0);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.study-chart td:active,
.study-chart td.speaking {
    background: var(--color-primary, #EA4335) !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px var(--color-primary, #EA4335);
}
.study-chart td:active *,
.study-chart td.speaking * {
    color: #fff !important;
}

.study-chart td.empty {
    background: #F8FAFC;
    cursor: default;
    border-color: transparent;
}

.study-chart .char-main {
    display: block;
    font-size: 1.15em;
    line-height: 1.1;
}

.study-chart .char-sub {
    display: none;
}

/* PC: hover effects */
@media (hover: hover) {
    .study-chart td:hover {
        background: var(--color-primary-light, rgba(234, 67, 53, 0.08));
        border-color: var(--color-primary, #EA4335);
    }
    .study-card:hover {
        border-color: var(--color-primary, #EA4335);
        background: var(--color-primary-light, rgba(234, 67, 53, 0.08));
        transform: translateY(-1px);
        box-shadow: 0 2px 8px var(--color-primary-shadow, rgba(234, 67, 53, 0.15));
    }
    .study-vowel-card:hover {
        border-color: #334155;
        background: #F1F5F9;
        transform: translateY(-1px);
    }
    .study-time-example:hover {
        border-color: var(--color-primary, #EA4335);
        background: var(--color-primary-light, rgba(234, 67, 53, 0.08));
    }
}

/* ===== Clickable Cards (for numbers, dates, etc.) ===== */
.study-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.study-card {
    background: #fff;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-md, 10px);
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.study-card:active,
.study-card.speaking {
    background: var(--color-primary, #EA4335) !important;
    color: #fff !important;
    transform: scale(0.97);
}
.study-card:active *,
.study-card.speaking * {
    color: #fff !important;
}

.study-card .card-korean {
    font-size: 1.2em;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.study-card .card-reading {
    font-size: 0.75em;
    color: #94A3B8;
    display: block;
}

.study-card .card-value {
    font-size: 0.8em;
    color: var(--color-text-secondary, #636e72);
    display: block;
    margin-top: 2px;
}

.study-card .card-num {
    font-size: 1.5em;
    font-weight: 700;
    display: block;
    color: var(--color-text, #1E293B);
    line-height: 1.2;
}

.study-card .card-korean-sm {
    font-size: 0.85em;
    color: var(--color-text-secondary, #636e72);
    display: block;
    margin-top: 2px;
}

/* ===== Sub-section Headers ===== */
.study-sub-header {
    font-size: 1em;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary, #EA4335);
}

/* ===== Double Vowel Standalone Cards ===== */
.study-vowel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.study-vowel-card {
    background: #fff;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-md, 10px);
    padding: 10px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.study-vowel-card:active,
.study-vowel-card.speaking {
    background: #334155 !important;
    color: #fff !important;
    transform: scale(0.97);
}
.study-vowel-card:active *,
.study-vowel-card.speaking * {
    color: #fff !important;
}

.study-vowel-card .v-char {
    font-size: 2.4em;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}

.study-vowel-card .v-name {
    font-size: 0.8em;
    color: var(--color-text-secondary, #636e72);
    display: block;
    margin-top: 2px;
}

.study-vowel-card .v-reading {
    font-size: 0.75em;
    color: #94A3B8;
    display: block;
    margin-top: 2px;
}

/* ===== Info Note ===== */
.study-note {
    background: var(--color-info-bg, #e3f2fd);
    border: 1px solid #BAE6FD;
    border-radius: var(--radius-md, 10px);
    padding: 12px 16px;
    font-size: 0.84em;
    color: var(--color-info-text, #1a73e8);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== Time compound display ===== */
.study-time-example {
    background: #fff;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--radius-lg, 12px);
    padding: 14px;
    margin-bottom: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.study-time-example:active,
.study-time-example.speaking {
    background: var(--color-primary, #EA4335) !important;
    color: #fff !important;
}
.study-time-example:active *,
.study-time-example.speaking * {
    color: #fff !important;
}

.study-time-example .time-display {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 4px;
}

.study-time-example .time-korean {
    font-size: 1.1em;
    font-weight: 600;
}

.study-time-example .time-reading {
    font-size: 0.75em;
    color: #94A3B8;
    margin-top: 2px;
}

/* ===== Mobile: compact chart to fit screen ===== */
@media (max-width: 600px) {
    .study-container {
        padding: 14px 6px 30px;
    }
    .study-chart {
        border-spacing: 1px;
    }
    .study-chart th {
        padding: 5px 2px;
        font-size: 0.95em;
    }
    .study-chart td {
        padding: 5px 2px;
        font-size: 0.95em;
    }
    .study-chart .char-main {
        font-size: 1.05em;
    }
    .study-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .study-tabs {
        gap: 4px;
    }
    .study-tab-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* ===== Pronunciation Game ===== */
.game-levels {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
}

.game-level-btn {
    padding: 7px 16px;
    border: 1.5px solid var(--color-border, #E2E8F0);
    background: #fff;
    border-radius: 16px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--color-text-secondary, #636e72);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.game-level-btn.active {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

.game-progress {
    text-align: center;
    font-size: 0.82em;
    color: #94A3B8;
    font-weight: 600;
    margin-bottom: 16px;
}

.game-card {
    background: #fff;
    border: 2px solid var(--color-border, #E2E8F0);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.game-card-text {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-text, #1E293B);
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: keep-all;
}

.game-card-hint {
    font-size: 0.9em;
    color: #94A3B8;
}

.game-auto-mic {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    gap: 6px;
}

.game-auto-mic-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid #334155;
    background: #F1F5F9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.game-auto-mic-icon.listening {
    border-color: #334155;
    animation: mic-listen-pulse 2s ease-in-out infinite;
}

.game-auto-mic-icon.speaking {
    border-color: #10b981;
    background: #D1FAE5;
    color: #10b981;
    animation: mic-speak-pulse 0.6s ease-in-out infinite;
}

.game-auto-mic-icon.processing {
    border-color: #f59e0b;
    background: #FEF3C7;
    color: #f59e0b;
    animation: mic-spin 1s linear infinite;
}

.game-auto-mic-icon.correct-flash {
    border-color: #10b981;
    background: #D1FAE5;
    color: #10b981;
}

.game-auto-mic-icon.wrong-flash {
    border-color: #ef4444;
    background: #FEE2E2;
    color: #ef4444;
}

@keyframes mic-listen-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(51, 65, 85, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(51, 65, 85, 0); }
}

@keyframes mic-speak-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes mic-spin {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.game-auto-mic-label {
    text-align: center;
    font-size: 0.78em;
    color: #94A3B8;
    font-weight: 500;
    min-height: 1.2em;
}

.game-vol-bar {
    width: 120px;
    height: 4px;
    background: var(--color-border, #E2E8F0);
    border-radius: 2px;
    overflow: hidden;
}

.game-vol-fill {
    height: 100%;
    width: 0%;
    background: #94A3B8;
    border-radius: 2px;
    transition: width 0.08s;
}

.game-feedback-icon {
    font-size: 1.8em;
    margin-bottom: 6px;
}

.game-mic-btn {
    display: none;
}

.game-mic-label {
    display: none;
}

.game-listening {
    text-align: center;
    font-size: 0.9em;
    color: #334155;
    font-weight: 600;
    padding: 10px;
}

.game-feedback {
    text-align: center;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 12px;
}

.game-feedback.correct {
    background: var(--color-success-bg, #d4edda);
    color: var(--color-success-text, #155724);
    border: 1px solid #86EFAC;
}

.game-feedback.wrong {
    background: var(--color-danger-bg, #ffebee);
    color: var(--color-danger-text, #c62828);
    border: 1px solid #FECACA;
}

.game-feedback-detail {
    font-size: 0.85em;
    font-weight: 400;
    margin-top: 6px;
    line-height: 1.6;
}

.game-listen-row {
    text-align: center;
    margin-bottom: 16px;
}

.game-listen-btn {
    background: none;
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8em;
    color: var(--color-text-secondary, #636e72);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.game-listen-btn:active {
    background: #F1F5F9;
}

.game-score {
    text-align: center;
    font-size: 0.85em;
    color: var(--color-text-secondary, #636e72);
    font-weight: 600;
}

.game-result {
    text-align: center;
    padding: 40px 20px;
}

.game-result-emoji {
    font-size: 3em;
    margin-bottom: 12px;
}

.game-result-score {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-text, #1E293B);
    margin-bottom: 4px;
}

.game-result-pct {
    font-size: 1em;
    color: var(--color-text-secondary, #636e72);
    margin-bottom: 20px;
}

.game-retry-btn {
    padding: 10px 28px;
    background: #1E293B;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.game-retry-btn:active {
    transform: scale(0.97);
    background: #334155;
}

.game-unsupported {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-warning-bg, #fff3cd);
    border: 1px solid #FCD34D;
    border-radius: 12px;
    color: var(--color-warning-text, #856404);
    font-size: 0.9em;
    line-height: 1.6;
}

.game-start-screen {
    text-align: center;
    padding: 40px 20px;
}

.game-start-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.game-start-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--color-text, #1E293B);
    margin-bottom: 6px;
}

.game-start-desc {
    font-size: 0.9em;
    color: #94A3B8;
    margin-bottom: 24px;
}

.game-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--color-primary, #EA4335);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.game-start-btn:active {
    transform: scale(0.97);
    background: var(--color-primary-hover, #d33426);
}

/* ===== Tab Test Button ===== */
.game-test-btn {
    padding: 8px 16px;
    background: var(--color-primary, #EA4335);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.game-test-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* ===== Fullscreen Game Modal ===== */
.sgm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sgmFadeIn 0.3s ease-out;
}
@keyframes sgmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sgm-container {
    background: #fff;
    border-radius: 24px;
    max-width: 420px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px 20px;
    position: relative;
    animation: sgmSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
@keyframes sgmSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sgm-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.3em;
    color: #94A3B8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s;
    z-index: 1;
}
.sgm-close:active {
    background: #f1f5f9;
    color: #475569;
}

/* Start Screen */
.sgm-start {
    text-align: center;
    padding: 20px 0 10px;
}
.sgm-start-visual {
    margin-bottom: 20px;
}
.sgm-start-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--color-primary, #EA4335), #f59e0b, #10b981, #667eea, var(--color-primary, #EA4335));
    padding: 4px;
    animation: sgmRingSpin 3s linear infinite;
}
@keyframes sgmRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.sgm-start-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    animation: sgmRingSpin 3s linear infinite reverse;
}
.sgm-start-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--color-text, #1E293B);
    margin-bottom: 4px;
}
.sgm-start-sub {
    font-size: 0.9em;
    color: #94A3B8;
    margin-bottom: 24px;
}
.sgm-start-btn {
    padding: 14px 48px;
    background: linear-gradient(135deg, var(--color-primary, #EA4335), #f97316);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.35);
}
.sgm-start-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}

/* Question Screen */
.sgm-progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sgm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary, #EA4335), #f97316);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.sgm-question-num {
    text-align: center;
    font-size: 0.8em;
    color: #94A3B8;
    font-weight: 600;
    margin-bottom: 16px;
}

.sgm-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #E2E8F0;
    border-radius: 20px;
    padding: 32px 16px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.sgm-card-text {
    font-size: 2.4em;
    font-weight: 800;
    color: var(--color-text, #1E293B);
    line-height: 1.2;
    word-break: keep-all;
}
.sgm-card-correct {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    animation: sgmPop 0.3s ease;
}
.sgm-card-wrong {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    animation: sgmShake 0.4s ease;
}
@keyframes sgmPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}
@keyframes sgmShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Waveform */
.sgm-waveform-wrap {
    margin-bottom: 8px;
}
.sgm-waveform {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    background: #f8fafc;
    display: block;
}

.sgm-mic-status {
    text-align: center;
    font-size: 0.82em;
    font-weight: 600;
    color: #94A3B8;
    margin-bottom: 10px;
    min-height: 1.2em;
}

/* Feedback */
.sgm-feedback {
    text-align: center;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 10px;
    animation: sgmPop 0.3s ease;
}
.sgm-feedback.correct {
    background: #ecfdf5;
    color: #065f46;
}
.sgm-feedback.wrong {
    background: #fef2f2;
    color: #991b1b;
}

/* Bottom Row */
.sgm-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sgm-sample-btn {
    background: none;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.82em;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.sgm-sample-btn:active {
    background: #f1f5f9;
}
.sgm-score {
    font-size: 0.85em;
    font-weight: 700;
    color: #64748B;
}

/* Result Screen */
.sgm-result {
    text-align: center;
    padding: 20px 0 10px;
}
.sgm-result-emoji {
    font-size: 3.5em;
    margin-bottom: 8px;
    animation: sgmPop 0.5s ease;
}
.sgm-result-score {
    font-size: 3em;
    font-weight: 800;
    color: var(--color-text, #1E293B);
    line-height: 1;
}
.sgm-result-total {
    font-size: 0.5em;
    font-weight: 600;
    color: #94A3B8;
}
.sgm-result-pct {
    font-size: 1em;
    color: #64748B;
    font-weight: 600;
    margin: 8px 0 16px;
}
.sgm-result-bar {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}
.sgm-result-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}
.sgm-result-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.sgm-btn-primary {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--color-primary, #EA4335), #f97316);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(234, 67, 53, 0.3);
    transition: all 0.15s;
}
.sgm-btn-primary:active {
    transform: scale(0.97);
}
.sgm-btn-secondary {
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.sgm-btn-secondary:active {
    background: #e2e8f0;
}

/* ===== Mypage embed overrides ===== */
.study-embed .study-container {
    padding-top: 10px;
}

.study-embed .study-tabs {
    background: #fff;
}
