* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: #f8f9fa;
    color: #212529;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: #ffffff;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    gap: 24px;
}

.logo-header {
    display: flex;
    align-items: center;
}

.logo-header h1 {
    margin: 0;
    color: #212529;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
}

h1 {
    color: #212529;
    font-size: 32px;
    font-weight: 600;
}

h2 {
    color: #212529;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
}

h3 {
    color: #212529;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

#landing-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: flex-end;
}

#landing-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

#landing-nav a:hover {
    color: #212529;
}

#landing-nav .cta-btn {
    background: #0d6efd;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
}

#landing-nav .cta-btn:hover {
    background: #0b5ed7;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

#user-email {
    color: #212529;
    font-weight: 500;
    font-size: 14px;
}

.user-status {
    color: #198754;
    font-size: 12px;
}

.primary-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
    touch-action: manipulation;
}

.primary-btn:hover {
    background: #0b5ed7;
}

.primary-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    background: #ffffff;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
    touch-action: manipulation;
}

.secondary-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.secondary-btn:active {
    transform: scale(0.98);
}

.danger-btn {
    background: #ffffff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.danger-btn:hover {
    background: #dc3545;
    color: white;
}

.auth-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #e9ecef;
}

.auth-form h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: 24px;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-form button:hover {
    background: #0b5ed7;
}

.auth-form p {
    text-align: center;
    margin-top: 24px;
    color: #6c757d;
    font-size: 14px;
}

.auth-form a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.auth-form a:hover {
    text-decoration: underline;
}

.password-requirements {
    margin: 12px 0 16px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
    margin: 6px 0;
    transition: all 0.2s;
}

.requirement.met {
    color: #198754;
}

.req-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.upload-section, .files-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.2s;
    margin-bottom: 16px;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.file-upload-area:active {
    transform: scale(0.99);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-hint {
    pointer-events: none;
}

.upload-hint span {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.upload-hint small {
    color: #6c757d;
    font-size: 13px;
}

.format-examples {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

#upload-btn, #logout-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s;
}

#upload-btn:hover, #logout-btn:hover {
    background: #0b5ed7;
}

#cleanup-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

#cleanup-btn:hover {
    background: #bb2d3b !important;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

#progress-fill, #processing-progress-fill {
    height: 100%;
    background: #0d6efd;
    width: 0%;
    transition: width 0.3s;
    border-radius: 3px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-with-button {
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-title-with-button h3 {
    margin: 0;
}

.usage-stats {
    font-size: 14px;
    color: #6c757d;
}

.file-item, .file-item-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.file-item:hover, .file-item-new:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-item-new {
    margin-left: 32px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 6px;
    color: #212529;
    cursor: pointer;
    transition: color 0.2s;
}

.file-name:hover {
    color: #0d6efd;
}

.file-meta {
    font-size: 13px;
    color: #6c757d;
}

.file-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.delete-btn {
    background: #ffffff;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    background: #dc3545;
    color: white;
}

.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.folder-item:hover {
    background: #e9ecef;
}

.folder-icon {
    font-size: 24px;
    margin-right: 12px;
}

.folder-name {
    font-weight: 500;
    color: #212529;
    flex: 1;
}

.folder-contents {
    margin-left: 20px;
}

#folder-creation {
    margin: 12px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.folder-creation-form {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.folder-creation-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.folder-suggestions {
    margin-bottom: 12px;
}

.suggestion-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.folder-suggestion {
    background: #e7f1ff;
    color: #0d6efd;
    border: 1px solid #b6d4fe;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.folder-suggestion:hover {
    background: #cfe2ff;
}

.folder-actions {
    display: flex;
    gap: 8px;
}

.onboarding-guide {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.guide-header h3 {
    margin: 0;
    color: #664d03;
    font-size: 18px;
}

.close-guide {
    background: none;
    border: none;
    font-size: 24px;
    color: #664d03;
    cursor: pointer;
    padding: 4px 8px;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.guide-step .step-number {
    background: #ffc107;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.step-content strong {
    color: #664d03;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.step-content p {
    color: #856404;
    margin: 0;
    font-size: 13px;
}

.processing-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.processing-steps {
    display: flex;
    justify-content: space-around;
    margin: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    min-width: 140px;
}

.step.active {
    background: #e7f1ff;
    border-color: #0d6efd;
}

.step.completed {
    background: #d1e7dd;
    border-color: #198754;
}

.step-icon {
    font-size: 24px;
}

.step-text {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.step-status {
    font-size: 18px;
}

.processing-progress {
    margin-top: 24px;
}

#processing-message {
    margin-top: 12px;
    font-weight: 500;
    color: #495057;
    font-size: 15px;
}

.time-remaining {
    margin-top: 8px;
    font-size: 13px;
    color: #0d6efd;
    font-weight: 500;
    background: #e7f1ff;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #b6d4fe;
}

.fun-message {
    margin-top: 8px;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.processing-tips {
    margin-top: 24px;
    padding: 16px;
    background: #e7f1ff;
    border-radius: 6px;
    border: 1px solid #b6d4fe;
}

.processing-tips h4 {
    margin: 0 0 8px 0;
    color: #084298;
    font-size: 15px;
}

.processing-tips div {
    color: #052c65;
    font-size: 14px;
}

.analysis-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.results-header {
    text-align: center;
    margin-bottom: 24px;
}

.results-header h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
}

.results-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-size: 15px;
}

.tab-btn.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.tab-btn:hover {
    color: #0d6efd;
}

#analysis-results {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid #e9ecef;
    max-height: 500px;
    overflow-y: auto;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.summary-card {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.summary-value {
    font-size: 28px;
    font-weight: 600;
    color: #0d6efd;
    display: block;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.analysis-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.save-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.save-section label {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.export-section {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#folder-select {
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

#folder-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

#error-message {
    background: #f8d7da;
    color: #842029;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #f5c2c7;
}

.success-message {
    background: #d1e7dd;
    color: #0f5132;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: 1px solid #badbcc;
}

#loading {
    text-align: center;
    padding: 32px;
    font-size: 16px;
    color: #6c757d;
}

.hero {
    margin-bottom: 120px;
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 80px 0;
}

.feature {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature p {
    color: #6c757d;
    font-size: 17px;
    line-height: 1.6;
}

.content-section {
    max-width: 900px;
    margin: 80px auto;
    text-align: center;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.content-section p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 16px;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin: 48px auto;
    max-width: 800px;
}

.mission-point {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mission-point h4 {
    color: #0d6efd;
    font-size: 18px;
    margin-bottom: 8px;
}

.mission-point p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.how-it-works, .benefits, .testimonials, .cta-section {
    margin: 100px 0;
    text-align: center;
}

.steps-grid, .benefits-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.steps-grid {
    grid-template-columns: repeat(4, 1fr);
}

.step-card, .benefit, .testimonial {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step-card:hover, .benefit:hover, .testimonial:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-card .step-number {
    width: 56px;
    height: 56px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step-card h4, .benefit h4 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-card p, .benefit p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.testimonial {
    text-align: left;
    position: relative;
    padding: 36px;
}

.testimonial::before {
    content: '"';
    font-size: 56px;
    color: #0d6efd;
    position: absolute;
    top: -8px;
    left: 20px;
    font-family: Georgia, serif;
}

.quote {
    color: #212529;
    font-size: 18px;
    margin-bottom: 16px;
    font-style: italic;
    padding-left: 20px;
    line-height: 1.6;
}

.author {
    color: #0d6efd;
    font-weight: 500;
    font-size: 16px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.partner-link {
    display: block;
    transition: transform 0.2s, opacity 0.2s;
}

.partner-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.partner-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.partner-placeholder {
    background: white;
    border: 2px solid #0d6efd;
    border-radius: 12px;
    padding: 32px 64px;
    font-size: 24px;
    font-weight: 600;
    color: #0d6efd;
    text-align: center;
}

.cta-section {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 12px;
    padding: 64px 32px;
}

.cta-section h2 {
    margin-bottom: 16px;
    font-size: 40px;
}

.cta-section p {
    color: #6c757d;
    font-size: 24px;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-menu-btn {
    display: none;
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

.hidden {
    display: none !important;
}

.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.feature-icon .icon {
    width: 56px;
    height: 56px;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    header {
        padding: 12px 16px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
    }
    
    .logo-header h1 {
        font-size: 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu-btn[style*="display: none"] {
        display: none !important;
    }
    
    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: #495057;
        margin: 3px 0;
        border-radius: 2px;
    }
    
    #landing-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        padding: 16px;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    #landing-nav.mobile-open {
        display: flex;
    }
    
    #landing-nav a {
        padding: 16px 8px;
        border-bottom: 1px solid #e9ecef;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .hero {
        margin-bottom: 48px;
        padding: 24px 0;
    }
    
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons button {
        width: 100%;
    }
    
    h2 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .primary-btn, .secondary-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .features, .steps-grid, .benefits-grid, .testimonials-grid, .mission-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature, .step-card, .benefit, .testimonial, .mission-point {
        padding: 24px;
    }
    
    .auth-form {
        padding: 24px;
        max-width: 100%;
        margin: 0;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .auth-form input {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .auth-form button {
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .content-section {
        margin: 32px auto;
        padding: 0 12px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .how-it-works, .benefits, .testimonials, .cta-section {
        margin: 48px 0;
    }
    
    .cta-section {
        padding: 32px 20px;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons button {
        width: 100%;
    }
    
    .upload-section, .files-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title-with-button {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }
    
    .section-title-with-button h3 {
        font-size: 18px;
    }
    
    #create-folder-btn {
        width: 100%;
        justify-content: center;
    }
    
    .file-upload-area {
        padding: 20px;
    }
    
    .upload-hint span {
        font-size: 15px;
    }
    
    .upload-hint small {
        font-size: 12px;
    }
    
    #upload-btn, #logout-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .file-item, .file-item-new {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 12px;
    }
    
    .file-info {
        width: 100%;
    }
    
    .file-name {
        font-size: 15px;
        word-break: break-word;
    }
    
    .file-meta {
        font-size: 12px;
    }
    
    .file-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }
    
    .file-actions button {
        flex: 0 0 auto;
    }
    
    .folder-item {
        padding: 12px;
    }
    
    .folder-name {
        font-size: 15px;
    }
    
    .processing-container, .analysis-container {
        padding: 20px;
    }
    
    .processing-steps {
        flex-direction: column;
        gap: 12px;
    }
    
    .step {
        width: 100%;
        min-width: auto;
    }
    
    .results-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .detailed-prefix,
    .edit-prefix {
        display: none;
    }
    
    #analysis-results {
        padding: 16px;
        font-size: 14px;
        max-height: 400px;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-value {
        font-size: 24px;
    }
    
    .analysis-actions {
        flex-direction: column;
        gap: 16px;
    }
    
    .save-section {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .save-section label {
        font-size: 14px;
    }
    
    #folder-select {
        width: 100%;
        min-width: auto;
        padding: 12px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .export-section {
        flex-direction: column;
        width: 100%;
    }
    
    .export-section button {
        width: 100%;
        justify-content: center;
    }
    
    #save-analysis-btn {
        width: 100%;
    }
    
    #edit-transcript-area {
        font-size: 14px;
        min-height: 300px;
    }
    
    .edit-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .edit-actions button {
        width: 100%;
    }
    
    .speaker-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .speaker-selection-container {
        padding: 16px;
    }
    
    .speaker-selection-container h3 {
        font-size: 22px;
    }
    
    .speaker-card {
        padding: 16px;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    #user-email {
        font-size: 13px;
    }
    
    .partner-logo {
        max-width: 300px;
    }
    
    .delete-btn {
        padding: 8px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .folder-creation-form {
        padding: 12px;
    }
    
    .folder-creation-form input {
        padding: 12px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .folder-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .folder-actions button {
        width: 100%;
    }
    
    .folder-suggestion {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* Speaker Selection Styles */
.speaker-selection-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 900px;
    margin: 0 auto;
}

.speaker-selection-container h3 {
    text-align: center;
    margin-bottom: 16px;
    font-size: 28px;
}

.speaker-selection-container > p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 32px;
    font-size: 16px;
}

.speaker-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.speaker-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.speaker-card:hover {
    border-color: #0d6efd;
    background: #e7f1ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.speaker-header {
    margin-bottom: 16px;
}

.speaker-header h4 {
    margin: 0;
    color: #212529;
    font-size: 20px;
}

.speaker-preview {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 16px;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    min-height: 100px;
    font-style: italic;
}

.speaker-card button {
    width: 100%;
}

.speaker-selection-container > .secondary-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 32px;
}

@media (max-width: 768px) {
    .speaker-cards {
        grid-template-columns: 1fr;
    }
    
    .speaker-selection-container {
        padding: 20px;
    }
}


/* Analysis markdown rendering styles */
.analysis-h1 {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin: 16px 0 12px 0;
}

.analysis-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    margin: 14px 0 10px 0;
}

.analysis-h3 {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin: 12px 0 8px 0;
}

.analysis-p {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    margin: 8px 0;
}

.analysis-bold {
    font-weight: 600;
    color: #212529;
}

.analysis-ul {
    margin: 8px 0;
    padding-left: 24px;
}

.analysis-li {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    margin: 4px 0;
}


/* Transcript editor styles */
.edit-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid #e9ecef;
}

.edit-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #212529;
}

#transcript-editor {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 12px;
}

#transcript-editor:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.edit-actions {
    display: flex;
    gap: 8px;
}

#edit-transcript-area {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

#edit-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 16px 0;
    border: 1px solid #e9ecef;
}


/* File selected indicator */
.file-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #d1e7dd;
    border: 2px solid #198754;
    border-radius: 8px;
    color: #0f5132;
    font-weight: 500;
    pointer-events: none;
}

.file-selected .icon {
    width: 24px;
    height: 24px;
    color: #198754;
}

.file-selected span {
    font-size: 15px;
}
