/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-accent: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #475569;
    --shadow: rgba(0, 0, 0, 0.3);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease, font-family 0.3s ease;
}

[data-font="sans-serif"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Architects Daughter', cursive;
    font-weight: 400;
}

/* Header */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-mobile {
    display: none;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.clear-btn {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.theme-toggle {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--border);
    transform: scale(1.05);
}

.font-toggle {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Main */
main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-number {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.progress-step.active .progress-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.progress-step.completed .progress-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.progress-step.active .progress-label {
    color: var(--primary);
    font-weight: 600;
}

/* Wizard Content */
.wizard-content {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px var(--shadow);
}

.step-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.note {
    font-size: 0.95rem;
    padding: 1rem;
    background: var(--bg-accent);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Info Box */
.info-boxes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-box {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    flex: 1;
}

.box-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.box-link {
    text-align: center;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    margin: 0;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.box-link:hover {
    color: var(--primary-dark);
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
}

.link-btn:hover {
    color: var(--primary-dark);
}

.helper-modal {
    max-width: 900px;
}

.helper-section {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.helper-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.helper-section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.helper-section li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.policy-examples {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.policy-example-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
}

.policy-example-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.policy-example-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.helper-tip {
    background: var(--bg-accent);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    line-height: 1.7;
}

.info-box h3 {
    margin-bottom: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
    color: var(--text-secondary);
}

.info-box li {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-box:not(.info-box-features) li::before {
    content: "✓";
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--success);
    flex-shrink: 0;
    line-height: 1.6;
}

.emoji-icon {
    flex-shrink: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Discipline Grid */
.discipline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0;
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-accent);
    border-radius: 8px;
}

.discipline-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.discipline-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.discipline-card.selected {
    border-color: var(--primary);
    background: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.discipline-icon {
    font-size: 2rem;
    margin-bottom: 0;
}

.discipline-card h3 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.3;
}

/* Policy List */
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.policy-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.policy-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 8px var(--shadow);
}

.policy-card.selected {
    border-color: var(--primary);
    background: var(--bg-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.policy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-desc {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.policy-when {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.policy-example {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tools Grid */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tool-chip {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.tool-chip:hover {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.tool-chip.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Assignment List & Form */
.assignment-list {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.assignment-list h3 {
    margin-bottom: 1rem;
}

.assignment-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.assignment-item:last-child {
    margin-bottom: 0;
}

.remove-btn {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.assignment-form {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.assignment-form h3 {
    margin-bottom: 1rem;
}

.assignment-form input,
.assignment-form textarea {
    width: 100%;
    margin-bottom: 1rem;
}

.add-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #059669;
}

/* Form Elements */
.form-section {
    margin: 2rem 0;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 400;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Preview Box */
.preview-box {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.preview-box h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Statement Preview */
.statement-preview {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    max-height: 500px;
    overflow-y: auto;
}

.statement-preview pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Buttons */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.welcome-step .button-group {
    justify-content: center;
}

button {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

button.primary {
    background: var(--primary);
    color: white;
}

button.primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow);
}

button.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button.secondary {
    background: var(--bg-accent);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

button.secondary:hover {
    background: var(--border);
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.action-btn {
    padding: 1rem;
    background: var(--bg-accent);
    border: 2px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
}

.close-btn {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.policy-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.legend-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.legend-items {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.legend-badge {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
}

.legend-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.example-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--bg-accent);
    border-bottom: 1px solid var(--border);
}

.example-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 280px;
}

.card-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex: 1;
}

.card-policy {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    background: var(--bg-accent);
    border-radius: 4px;
    white-space: nowrap;
}

.example-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.example-card.active {
    border-color: var(--primary);
    background: var(--bg-accent);
}

.example-card.active .card-label {
    color: var(--primary);
}

.example-card.active .card-policy {
    background: var(--primary);
    color: white;
}

.modal-body {
    padding: 2rem;
}

.example-item {
    background: var(--bg-accent);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-item h3 {
    margin-bottom: 1rem;
}

.example-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* Style markdown-style headings in examples */
.example-item h2,
.example-item h3 {
    font-family: 'Architects Daughter', cursive;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 400;
}

.example-item h2 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.example-item h3 {
    font-size: 1.2rem;
}

.example-item p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.example-item li {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.example-item strong {
    font-weight: 700;
    color: var(--text-primary);
}

.example-stem-no-ai {
    font-family: 'Bitter', serif;
    font-size: 0.95rem;
}

.example-humanities-limited {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
}

.example-social-sciences-ok {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    line-height: 1.9;
}

.example-sciences-required {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2rem 0 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-credit {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.footer-credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.footer-copyright {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-feedback {
    margin: 0.5rem 0;
}

.footer-feedback a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    transition: color 0.2s ease;
}

.footer-feedback a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-ai-statement {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0.5rem 0;
    font-size: 0.85rem;
    max-width: 700px;
    line-height: 1.6;
}

.footer-copy-btn {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.footer-copy-btn:hover {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.footer-copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
}

/* Dark mode footer behavior */
[data-theme="dark"] .footer-logo-link,
[data-theme="dark"] .footer-credit {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo-full {
        display: none;
    }

    .logo-mobile {
        display: inline;
        font-size: 0.85rem;
    }

    .theme-toggle,
    .clear-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .wizard-content {
        padding: 2rem 1.5rem;
    }

    .progress-indicator {
        overflow-x: auto;
        padding: 1rem 0.5rem 1rem;
        margin-top: 1rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .progress-step {
        min-width: 60px;
    }

    .progress-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }

    .progress-label {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .info-boxes-container {
        grid-template-columns: 1fr;
    }

    .discipline-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-group {
        flex-direction: column;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .step-content h1 {
        font-size: 1.5rem;
    }

    .step-content h2 {
        font-size: 1.25rem;
    }

    .tools-grid {
        gap: 0.5rem;
    }

    .tool-chip {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .policy-legend {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-items {
        gap: 1rem;
    }

    .legend-badge {
        font-size: 0.7rem;
    }

    .legend-desc {
        font-size: 0.75rem;
    }

    .example-cards {
        padding: 1rem;
        gap: 0.75rem;
    }

    .example-card {
        padding: 0.75rem 1rem;
        flex: 1 1 100%;
        min-width: unset;
    }

    .card-label {
        font-size: 0.85rem;
    }

    .card-policy {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .helper-modal {
        max-width: 100%;
    }

    .helper-section {
        padding: 1rem;
    }

    .helper-section h3 {
        font-size: 1rem;
    }

    .link-btn {
        font-size: 0.85rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-credit,
    .footer-copyright,
    .footer-ai-statement {
        font-size: 0.8rem;
    }

    .footer-copy-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
}
