/* ==========================================================================
   StenoAbhyas - 5 Free SEO Traffic Tools Styles
   ========================================================================== */

.sa-tool-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 16px 80px;
}

.sa-tool-header {
    text-align: center;
    margin-bottom: 32px;
}

.sa-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 16px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #BFDBFE;
    margin-bottom: 12px;
}

.sa-tool-header h1 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    line-height: 1.25;
}

.sa-tool-header p {
    color: #64748B;
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Tool Main Card */
.sa-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -4px rgba(15,23,42,0.06);
    padding: 28px;
    margin-bottom: 32px;
}

/* Controls Grid */
.sa-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sa-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sa-form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.sa-select, .sa-input {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.sa-select:focus, .sa-input:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.sa-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 1rem;
    line-height: 1.6;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sa-textarea:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* Audio Player Box in Custom Dictation */
.sa-audio-player-box {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: 16px;
    padding: 24px;
    color: #FFFFFF;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sa-audio-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.sa-lead-in-badge {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38BDF8;
    background: rgba(56,189,248,0.12);
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(56,189,248,0.3);
}

.sa-audio-status {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sa-audio-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sa-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    background: #10B981;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.sa-btn-play:hover {
    background: #059669;
    transform: translateY(-1px);
}

.sa-btn-stop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #EF4444;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.sa-btn-stop:hover {
    background: #DC2626;
}

/* Audio Visualizer Waves */
.sa-wave-bars {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 32px;
}

.sa-wave-bar {
    width: 4px;
    height: 8px;
    background: #38BDF8;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.sa-wave-bar.speaking {
    animation: saWavePulse 0.5s infinite alternate ease-in-out;
}

@keyframes saWavePulse {
    0% { height: 6px; }
    100% { height: 28px; }
}

/* Sample Text Selector Pills */
.sa-sample-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sa-sample-btn {
    padding: 6px 14px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-sample-btn:hover {
    background: #E2E8F0;
    color: #1E293B;
}

/* Result Diff Markup */
.sa-diff-result {
    padding: 24px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    margin-top: 24px;
}

.sa-diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
}

.sa-diff-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563EB;
}

.sa-diff-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
}

.sa-diff-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1E293B;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
}

.sa-mk-full {
    background: #FFE4E6;
    color: #9F1239;
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: line-through;
    font-weight: 700;
}

.sa-mk-half {
    background: #FEF3C7;
    color: #92400E;
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom: 2px dashed #D97706;
    font-weight: 600;
}

.sa-mk-add {
    background: #E0E7FF;
    color: #3730A3;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Steno Calculator Cards */
.sa-calc-result-banner {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 28px;
    transition: all 0.3s;
}

.sa-calc-result-banner.passed {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 2px solid #10B981;
    color: #065F46;
}

.sa-calc-result-banner.failed {
    background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
    border: 2px solid #F43F5E;
    color: #9F1239;
}

.sa-calc-status-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.sa-calc-status-desc {
    font-size: 1.05rem;
    font-weight: 600;
}

.sa-calc-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sa-calc-kpi-card {
    padding: 20px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    text-align: center;
}

.sa-calc-kpi-val {
    font-size: 2rem;
    font-weight: 800;
    color: #0F172A;
}

.sa-calc-kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748B;
    margin-top: 4px;
}

/* Exam Hub Cards */
.sa-exam-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 28px;
}

.sa-exam-tab-btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-exam-tab-btn:hover {
    background: #F1F5F9;
}

.sa-exam-tab-btn.is-active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

.sa-exam-pane {
    display: none;
    animation: saFadeIn 0.3s ease;
}

.sa-exam-pane.is-active {
    display: block;
}

@keyframes saFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sa-exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sa-exam-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sa-exam-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}

.sa-exam-specs {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: #475569;
}

.sa-exam-specs li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 4px;
}

.sa-exam-specs strong {
    color: #0F172A;
}

.sa-exam-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.sa-exam-card-footer .sa-btn-primary,
.sa-exam-card-footer .sa-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sa-exam-card-footer .sa-btn-primary {
    background: #2563EB;
    color: #FFFFFF !important;
    border: 1px solid #1D4ED8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.sa-exam-card-footer .sa-btn-primary:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.sa-exam-card-footer .sa-btn-secondary {
    background: #F8FAFC;
    color: #334155 !important;
    border: 1px solid #CBD5E1;
}

.sa-exam-card-footer .sa-btn-secondary:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A !important;
    transform: translateY(-1px);
}

/* Printable Sheets */
.sa-print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.sa-sheet-preview-card {
    border-radius: 14px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sa-sheet-thumb {
    width: 100%;
    height: 200px;
    border: 1px solid #E2E8F0;
    background: #FAF5FF;
    border-radius: 8px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

/* Printable Notebook Paper Styling for Print Engine */
.sa-print-paper {
    background: #FFFFFF;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

.sa-steno-ruled-page {
    border: 1px solid #94A3B8;
    background-color: #FFFFFF;
    background-image: linear-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 100% 32px; /* 8.5mm steno ruling */
    min-height: 960px;
    position: relative;
    padding-top: 32px;
}

.sa-steno-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: #F43F5E; /* Classic red center line */
}

.sa-sheet-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #0F172A;
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 700;
}

/* Pure CSS Print Rules */
@media print {
    body * {
        visibility: hidden;
    }
    .sa-print-paper, .sa-print-paper * {
        visibility: visible;
    }
    .sa-print-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .steno-navbar, .steno-footer, .sa-tool-header, .sa-controls-grid, .sa-action-row {
        display: none !important;
    }
}

/* FAQ Accordion */
.sa-faq-section {
    margin-top: 48px;
    border-top: 1px solid #E2E8F0;
    padding-top: 32px;
}

.sa-faq-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 20px;
    text-align: center;
}

.sa-faq-item {
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    margin-bottom: 12px;
    overflow: hidden;
}

.sa-faq-q {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1E293B;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sa-faq-a {
    padding: 0 20px 18px;
    color: #475569;
    line-height: 1.6;
    font-size: 0.98rem;
}

/* ==========================================================================
   Kruti Dev 010 <-> Unicode Mangal Converter Styles
   ========================================================================== */
.sa-converter-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -4px rgba(15,23,42,0.06);
    padding: 24px;
    margin-bottom: 24px;
}
.sa-converter-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}
.sa-glass-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sa-glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.sa-glass-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sa-glass-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}
.sa-glass-meta {
    display: flex;
    gap: 6px;
}
.sa-counter-badge {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
}
.sa-font-subnote {
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 12px;
}
.sa-font-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}
.sa-pill-amber { background: #FEF3C7; color: #D97706; border: 1px solid #FDE68A; }
.sa-pill-blue { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.sa-pill-purple { background: #F3E8FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.sa-pill-emerald { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.sa-box-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.sa-action-pill {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sa-action-pill:hover { background: #F1F5F9; border-color: #94A3B8; }
.sa-pill-primary { background: #2563EB !important; color: #FFFFFF !important; border-color: #2563EB !important; }
.sa-pill-primary:hover { background: #1D4ED8 !important; }
.sa-pill-danger:hover { background: #FFE4E6; color: #E11D48; border-color: #FDA4AF; }
.sa-converter-middle-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 0 4px;
}
.sa-btn-swap {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.sa-btn-swap:hover { background: #2563EB; transform: scale(1.05); }
.sa-btn-convert {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: all 0.15s ease;
}
.sa-btn-convert:hover { background: #EFF6FF; border-color: #93C5FD; color: #2563EB; }
.sa-btn-clear-all {
    background: transparent;
    border: 1px dashed #CBD5E1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #64748B;
    cursor: pointer;
}
.sa-btn-clear-all:hover { background: #FEE2E2; border-color: #F87171; color: #B91C1C; }
.sa-sample-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #F1F5F9;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 28px;
}
.sa-sample-label { font-size: 0.88rem; font-weight: 700; color: #334155; }
.sa-sample-font-pill {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563EB;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sa-sample-font-pill:hover { background: #2563EB; color: #FFFFFF; border-color: #2563EB; }
.sa-ref-card { margin-top: 32px; }
.sa-ref-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.sa-ref-title { font-size: 1.25rem; font-weight: 800; color: #0F172A; margin: 0 0 6px 0; }
.sa-ref-sub { font-size: 0.9rem; color: #64748B; margin: 0; }
.sa-ref-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-ref-tab-btn {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}
.sa-ref-tab-btn.is-active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}
.sa-reftab-pane { display: none; }
.sa-reftab-pane.is-active { display: block; }
.sa-key-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.sa-key-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sa-key-box:hover {
    border-color: #2563EB;
    background: #EFF6FF;
    transform: translateY(-2px);
}
.sa-key-box code {
    background: #F1F5F9;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    color: #2563EB;
    font-size: 0.85rem;
}
.sa-key-box span { font-weight: 700; color: #0F172A; font-size: 0.95rem; }

/* Printable Sheets Enhancements */
.sa-sheet-selector-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #E2E8F0;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px -2px rgba(0,0,0,0.05);
}
.sa-sheet-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sa-sheet-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    font-weight: 700;
    font-size: 0.92rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sa-sheet-tab-btn.is-active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
    box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}
.sa-sheet-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}
.sa-print-trigger-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 800;
}
.sa-print-hint { font-size: 0.88rem; color: #64748B; font-weight: 500; }
.sa-thumb-pitman { background-image: linear-gradient(#CBD5E1 1px, transparent 1px); background-size: 100% 24px; }
.sa-thumb-gregg { background-image: linear-gradient(#CBD5E1 1px, transparent 1px); background-size: 100% 20px; }
.sa-thumb-hindi { background-image: linear-gradient(#CBD5E1 1px, transparent 1px); background-size: 100% 24px; }
.sa-thumb-cheat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px;
    font-size: 0.75rem;
    color: #475569;
}
.sa-thumb-center-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
}
.sa-thumb-left-margin {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20%;
    width: 2px;
}
.sa-line-red { background: #E11D48; }
.sa-line-blue { background: #2563EB; }
.sa-line-green { background: #10B981; }

.sa-print-paper-wrapper {
    margin-bottom: 40px;
}
.sa-print-paper {
    display: none;
    background: #FFFFFF;
    width: 100%;
    max-width: 820px;
    min-height: 1080px;
    margin: 0 auto;
    padding: 36px 44px;
    box-sizing: border-box;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.sa-print-paper.is-active {
    display: block;
}
.sa-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #0F172A;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #334155;
}
.sa-paper-brand strong { color: #0F172A; font-size: 1rem; }
.sa-paper-meta { display: flex; gap: 16px; font-weight: 600; }
.sa-paper-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #CBD5E1;
    padding-top: 10px;
    margin-top: 24px;
    font-size: 0.78rem;
    color: #64748B;
}
.sa-ruled-canvas {
    position: relative;
    min-height: 880px;
    border-left: 1px solid #CBD5E1;
    border-right: 1px solid #CBD5E1;
}
.sa-ruled-pitman {
    background-image: linear-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 100% 34px; /* 8.5mm authentic steno ruling */
}
.sa-ruled-gregg {
    background-image: linear-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 100% 28px;
}
.sa-ruled-hindi {
    background-image: linear-gradient(#CBD5E1 1px, transparent 1px);
    background-size: 100% 34px;
}
.sa-center-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
}
.sa-red-divider { background: #E11D48; }
.sa-blue-divider { background: #2563EB; }
.sa-left-margin-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 1.5px;
    background: #10B981;
}
.sa-ruled-row {
    height: 34px;
    position: relative;
}
.sa-row-num {
    position: absolute;
    left: 8px;
    top: 6px;
    font-size: 0.75rem;
    color: #94A3B8;
    user-select: none;
}
.sa-cheat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.sa-cheat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dotted #CBD5E1;
    padding: 4px 6px;
    font-size: 0.85rem;
}
.sa-cheat-no { font-size: 0.75rem; color: #94A3B8; width: 22px; }
.sa-cheat-word { color: #0F172A; min-width: 60px; }
.sa-cheat-glyph {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2563EB;
    min-width: 30px;
    text-align: center;
}
.sa-cheat-rule { font-size: 0.75rem; color: #64748B; }

@media (max-width: 820px) {
    .sa-converter-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .sa-converter-middle-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 8px 0;
    }
    .sa-btn-swap {
        min-height: 44px;
        padding: 12px 24px;
        font-size: 14px;
    }
    .sa-cheat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sa-textarea,
    .sa-select,
    .sa-input,
    textarea,
    select,
    input {
        font-size: 16px !important;
    }
    .sa-calc-kpis {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .sa-card {
        padding: 18px 14px !important;
    }
    .sa-tool-container {
        padding: 16px 12px 60px !important;
    }
    .sa-exam-tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    .sa-exam-tab-btn {
        white-space: nowrap !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
}

/* 100% Clean Pure Print Rules */
@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }
    html, body {
        background: #FFFFFF !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body * {
        visibility: hidden !important;
    }
    .sa-print-paper.is-active, .sa-print-paper.is-active * {
        visibility: visible !important;
    }
    .sa-print-paper.is-active {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        border: none !important;
        box-shadow: none !important;
    }
    .steno-navbar, .steno-footer, .sa-tool-header, .sa-sheet-selector-card, .sa-print-grid, .sa-faq-section {
        display: none !important;
    }
}
