/* ==========================================================================
   Risel – ATS Resume Scanner & Optimizer CSS
   Design System: Sora + Inter, Modern SaaS, Glass Panels, Above-The-Fold Spacing
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.ats-main {
    display: block;
    flex: none;
    min-height: 0;
    padding-bottom: 32px;
}

.tool-hero,
.ats-hero {
    padding: 12px 0 0;
    text-align: center;
    position: relative;
}

.ats-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.tool-hero-badge,
.ats-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary, #0066FF);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.tool-hero-title,
.ats-hero-heading {
    font-family: 'Sora', sans-serif;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.8px;
    color: var(--text-main, #0f172a);
    margin: 0 0 6px;
    padding-top: 4px;
    overflow: visible;
}

.tool-hero-accent,
.ats-hero-accent {
    background: linear-gradient(135deg, var(--primary, #0066FF) 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.tool-hero-desc,
.ats-hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary, #64748b);
    max-width: 640px;
    margin: 0 auto;
}

/* --- SPLIT WORKSPACE GRID --- */
.ats-workspace-section {
    padding: 16px 0 32px;
}

.ats-grid,
.ats-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 24px;
    align-items: start;
}

/* --- PANELS & CARDS --- */
.ats-input-card,
.ats-results-card,
.ats-panel {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.ats-card-header,
.ats-panel-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.ats-card-title,
.ats-panel-title {
    font-family: 'Sora', sans-serif;
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    line-height: 1.2;
    margin: 0 0 2px;
}

.ats-card-sub,
.ats-panel-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

.ats-btn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

/* --- LEFT INPUT FORM STYLING --- */
.ats-form-group {
    margin-bottom: 10px;
}

.ats-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ats-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #0f172a);
}

.ats-required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 2px;
}

.ats-panel-section-title {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ats-panel-section-title h3 {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0;
}

.ats-word-count {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 3px 9px;
    border-radius: 100px;
}

.ats-textarea {
    width: 100%;
    height: 110px;
    min-height: 95px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main, #0f172a);
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ats-textarea:focus {
    outline: none;
    border-color: var(--primary, #0066FF);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.ats-btn-primary,
.ats-btn-row .ats-btn-secondary {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ats-btn-primary {
    background: var(--primary, #0066FF);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.2);
    margin-top: 0;
}

.ats-btn-primary:hover {
    background: var(--primary-hover, #0052cc);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.3);
}

.ats-btn-row .ats-btn-secondary {
    background: #ffffff;
    color: var(--text-main, #0f172a);
    border: 1.5px solid #e2e8f0;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ats-btn-row .ats-btn-secondary:hover {
    border-color: var(--primary, #0066FF);
    color: var(--primary, #0066FF);
    background: rgba(0, 102, 255, 0.04);
}

/* --- RIGHT RESULTS PANEL --- */
.ats-results-panel,
.ats-results-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Empty State */
.ats-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
}

.ats-empty-state h3 {
    font-family: 'Sora', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    margin: 0 0 8px;
}

.ats-empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary, #64748b);
    margin: 0;
}

.ats-empty-icon,
.ats-empty-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 102, 255, 0.07);
    color: var(--primary, #0066FF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.ats-empty-heading {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.ats-empty-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ats-empty-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.ats-empty-list li {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.ats-empty-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    opacity: 0.5;
}

/* Skeleton Loading State */
.ats-loading-wrapper {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ats-thinking-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.ats-spin-icon {
    animation: ats-spin 2s linear infinite;
}

@keyframes ats-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ats-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ats-step-item {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ats-step-item::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
}

.ats-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 5px;
    margin-bottom: 10px;
    animation: ats-shimmer 1.5s infinite;
}

.ats-sk-title { height: 18px; width: 40%; margin-bottom: 16px; }
.ats-sk-w100 { width: 100%; }
.ats-sk-w90 { width: 90%; }

@keyframes ats-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Active Results Output */
.ats-results-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: ats-fade 0.3s ease;
}

@keyframes ats-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Score Hero Gauge Card */
.ats-score-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
}

.ats-gauge-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
}

.ats-gauge-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.ats-gauge-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

.ats-score-summary {
    flex: 1;
}

.ats-match-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ats-match-tag.moderate { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.ats-match-tag.needs-improvement { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.ats-verdict-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.ats-verdict-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 4 Metric Sub-Scores Grid */
.ats-subscores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ats-subcard {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
}

.ats-sc-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ats-sc-val {
    font-weight: 700;
    color: var(--text-main);
}

.ats-sc-bg {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.ats-sc-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.8s ease-out;
}

/* Results Tab Bar */
.ats-tabs-bar {
    display: flex;
    gap: 4px;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 8px;
}

.ats-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ats-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Safety Tip Banner */
.ats-safety-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fffbe0;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: #92400e;
}

/* --- TAB 1: KEYWORDS CLOUD --- */
.ats-kw-section {
    margin-bottom: 12px;
}

.ats-kw-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ats-kw-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.ats-badge-count {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.count-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.count-yellow { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.count-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.ats-cloud-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kw-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.kw-pill.missing-hard { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }
.kw-pill.missing-soft { background: rgba(245, 158, 11, 0.08); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.kw-pill.matched { background: rgba(16, 185, 129, 0.08); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }

/* --- TAB 2: DIAGNOSTIC CHECKLIST --- */
.ats-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ats-check-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
}

.ats-check-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ats-check-name {
    font-weight: 600;
    color: var(--text-main);
}

.ats-check-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-pass { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.status-warn { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.status-fail { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* --- TAB 3: ACTION PLAN --- */
.ats-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.ats-action-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
}

.ats-action-num {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ats-action-text {
    flex: 1;
    line-height: 1.45;
}

.ats-action-text strong {
    color: var(--text-main);
}

.ats-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ats-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 102, 255, 0.04);
}

/* --- TAB 4: AI BULLET OPTIMIZER --- */
.ats-autofix-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
}

.ats-autofix-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ats-autofix-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.ats-autofix-sub {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.ats-bullet-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.ats-bullet-card:last-child {
    margin-bottom: 0;
}

.ats-bullet-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.label-before { color: #64748b; }
.label-after { color: var(--primary); }

.ats-bullet-text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-main);
    margin-bottom: 6px;
}

.ats-bullet-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ats-btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ats-btn-mini-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.ats-btn-mini-primary:hover {
    background: var(--primary-hover);
}

.ats-btn-mini-outline {
    background: white;
    color: var(--text-secondary);
    border: 1px solid #cbd5e1;
}

.ats-btn-mini-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- FEATURES / BENEFITS SECTION --- */
.ats-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ats-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.ats-section-header h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.ats-section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.ats-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ats-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ats-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 255, 0.25);
}

.ats-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-blue { background: rgba(0, 102, 255, 0.1); color: #0066FF; }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.ats-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.ats-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* --- SEO SECTION --- */
.ats-seo-section {
    padding: 40px 0;
}

.ats-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.ats-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.ats-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.ats-faq-section {
    padding: 40px 0 60px;
}

.ats-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ats-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.ats-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.06);
}

.ats-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.ats-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.ats-faq-item.active .ats-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.ats-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.ats-faq-item.active .ats-faq-ans {
    display: block;
}

/* --- TOAST NOTIFICATION --- */
.ats-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.ats-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) and (min-width: 769px) {
    .ats-grid,
    .ats-workspace {
        grid-template-columns: 45% 1fr;
        gap: 20px;
    }

    .ats-input-card,
    .ats-results-card,
    .ats-panel {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .ats-grid,
    .ats-workspace {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ats-results-panel,
    .ats-results-card {
        min-height: 380px;
    }

    .ats-input-card,
    .ats-results-card,
    .ats-panel {
        padding: 20px;
    }

    .tool-hero,
    .ats-hero {
        padding: 32px 0 0;
    }
}
    
    .ats-subscores-grid {
        grid-template-columns: 1fr;
    }

    .ats-tabs-bar {
        flex-wrap: wrap;
    }

    .ats-tab-btn {
        flex: 1 1 45%;
    }
}
