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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1d1d1f;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   HEADER
   ============================================================ */
.app-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 32px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: -0.3px;
    padding: 4px 0;
}

.logo span {
    color: #4285f4;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-left: auto;
}

.main-nav .nav-step {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    cursor: default;
    letter-spacing: 0.2px;
}

.main-nav .nav-step.active {
    color: #1d1d1f;
    border-bottom-color: #4285f4;
}

.main-nav .nav-step.completed {
    color: #4285f4;
}

.main-nav .nav-step:hover:not(.active) {
    color: #5f6368;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main-content {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px 40px;
    width: 100%;
}

/* ============================================================
   RECEPTION PAGE (Step 1 - Google-inspired)
   ============================================================ */
.reception-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 10px 0;
}

.reception-header {
    text-align: center;
    margin-bottom: 28px;
}

.reception-logo {
    font-size: 72px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.reception-logo span {
    color: #4285f4;
}

.reception-subtitle {
    font-size: 16px;
    color: #5f6368;
    font-weight: 300;
    letter-spacing: 0.2px;
}

.reception-content {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.reception-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.reception-description {
    font-size: 16px;
    color: #5f6368;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.search-box-wrapper {
    width: 100%;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 14px 22px;
    font-size: 16px;
    border: 2px solid #e8eaed;
    border-radius: 28px;
    outline: none;
    background: #ffffff;
    transition: all 0.25s ease;
    color: #1d1d1f;
    font-family: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.search-box:hover {
    border-color: #d2d5d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-box:focus {
    border-color: #4285f4;
    box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

.search-box::placeholder {
    color: #9aa0a6;
}

.search-box.error {
    border-color: #ff3b30;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 50;
    padding: 4px 0;
}

.search-suggestions.visible {
    display: block;
}

.suggestion-item {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid #f5f5f7;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item.selected {
    background: #f1f3f4;
}

.suggestion-icon {
    color: #9aa0a6;
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.suggestion-text {
    font-size: 14px;
    color: #1d1d1f;
    flex: 1;
}

.suggestion-text strong {
    background: #e8f0fe;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.search-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.search-btn {
    padding: 10px 28px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.search-btn:hover {
    background: #f1f3f4;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-btn-primary {
    background: #4285f4;
    color: #ffffff;
    border-color: #4285f4;
}

.search-btn-primary:hover {
    background: #3367d6;
    border-color: #3367d6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.search-btn-secondary {
    background: transparent;
    color: #5f6368;
    border-color: #e8eaed;
}

.search-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #dadce0;
}

.reception-hint {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #9aa0a6;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 20px auto;
    background: #ffffff;
    padding: 14px 20px 12px 20px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: #e8eaed;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34c759);
    border-radius: 9999px;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
    transform: translateX(-100%);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: #86868b;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.progress-step {
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    color: #1d1d1f;
    font-weight: 600;
}

.progress-step.completed {
    opacity: 0.8;
    color: #4285f4;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 13px;
    color: #5f6368;
}

.progress-percentage {
    font-weight: 600;
    color: #1d1d1f;
    background: #f8f9fa;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* ============================================================
   STEP CONTAINER (Steps 2-5)
   ============================================================ */
.step-container {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 4px 0;
}

.step-content {
    padding: 0 2px;
}

.step-header {
    margin-bottom: 20px;
}

.step-title {
    font-size: 26px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
}

/* ============================================================
   FRIENDLY SELECTION SCREENS (Steps 2 & 3)
   ============================================================ */

/* Context badge showing what the user confirmed */
.selection-context {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid #e8eaed;
}

.context-label {
    font-size: 13px;
    color: #5f6368;
}

.context-count {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    background: #e8f0fe;
    padding: 2px 14px;
    border-radius: 14px;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

@media (max-width: 600px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
}

/* Selection Card - Friendly, Warm, Approachable */
.selection-card {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e8eaed;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    position: relative;
}

.selection-card:hover {
    background: #fafbfc;
    border-color: #d2d5d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.selection-card:active {
    transform: scale(0.98);
}

.selection-card.selected {
    border-color: #4285f4;
    background: #e8f0fe;
    box-shadow: 0 2px 12px rgba(66, 133, 244, 0.10);
}

.selection-card .card-check {
    font-size: 18px;
    width: 26px;
    flex-shrink: 0;
    text-align: center;
    color: #c5c8cc;
    transition: all 0.25s ease;
    margin-top: 1px;
}

.selection-card.selected .card-check {
    color: #4285f4;
}

.selection-card .card-text {
    font-size: 14px;
    color: #1d1d1f;
    flex: 1;
    line-height: 1.5;
}

.selection-card .card-number {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #9aa0a6;
    background: #f5f5f7;
    padding: 1px 8px;
    border-radius: 10px;
    margin-top: 2px;
}

.selection-card.selected .card-number {
    background: #d2e4f5;
    color: #4285f4;
}

/* Selection Footer */
.selection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.selection-count {
    font-size: 14px;
    color: #5f6368;
}

.selection-count span {
    font-weight: 600;
    color: #1d1d1f;
}

.selection-actions {
    display: flex;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #4285f4;
    color: #ffffff;
}

.btn-primary:hover {
    background: #3367d6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.btn-secondary:hover {
    background: #e5e5e8;
}

.btn-back {
    background: transparent;
    color: #5f6368;
    border: 1px solid #d2d2d7;
}

.btn-back:hover {
    background: #f5f5f7;
}

.btn-continue {
    background: #4285f4;
    color: #ffffff;
}

.btn-continue:hover {
    background: #3367d6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================================
   SYNTHESIZE PAGE (Step 4)
   ============================================================ */
.synthesize-content {
    max-width: 720px;
    margin: 0 auto;
}

.synthesize-confidence {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px solid #e8eaed;
}

.confidence-gauge {
    display: flex;
    align-items: center;
    gap: 20px;
}

.confidence-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #e8eaed;
    flex-shrink: 0;
    transition: border-color 0.8s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.confidence-ring.high {
    border-color: #34c759;
}

.confidence-ring.moderate {
    border-color: #ffcc00;
}

.confidence-ring.low {
    border-color: #ff9500;
}

.confidence-ring.inconclusive {
    border-color: #ff3b30;
}

.confidence-value {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.confidence-label {
    font-size: 9px;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-breakdown {
    flex: 1;
}

.confidence-breakdown span {
    font-size: 13px;
    color: #5f6368;
}

.confidence-bar {
    width: 100%;
    height: 5px;
    background: #e8eaed;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 10px;
}

.confidence-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.synthesize-primary {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 2px solid #4285f4;
    box-shadow: 0 2px 12px rgba(66, 133, 244, 0.08);
}

.primary-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4285f4;
    font-weight: 600;
}

.primary-name {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 2px 0 2px 0;
}

.primary-category {
    font-size: 13px;
    color: #5f6368;
}

.synthesize-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #e8eaed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.synthesize-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.synthesize-section p {
    font-size: 14px;
    color: #3c4043;
    line-height: 1.7;
}

.synthesize-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.synthesize-section ul li {
    padding: 5px 0;
    font-size: 14px;
    color: #3c4043;
    border-bottom: 1px solid #f5f5f7;
    line-height: 1.5;
}

.synthesize-section ul li:last-child {
    border-bottom: none;
}

/* Actions */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-block {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.04);
}

.action-block h5 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.start-block {
    background: #f0faf0;
}
.start-block h5 { color: #34c759; }

.stop-block {
    background: #fdf2f2;
}
.stop-block h5 { color: #ff3b30; }

.continue-block {
    background: #e8f0fe;
}
.continue-block h5 { color: #4285f4; }

.action-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.action-block ul li {
    padding: 3px 0;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.action-block ul li:last-child {
    border-bottom: none;
}

/* Outcomes */
.outcome-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.outcome-item {
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #3c4043;
    border-left: 3px solid #4285f4;
}

.outcome-timeframe {
    margin-top: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

/* Archetype */
.archetype-display {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.archetype-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.archetype-info {
    flex: 1;
}

.archetype-name {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.archetype-desc {
    font-size: 13px;
    color: #5f6368;
    margin-top: 2px;
}

/* Synthesize Footer */
.synthesize-footer {
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
    margin-top: 4px;
}

.footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================================
   ACT PAGE (Step 5)
   ============================================================ */
.act-content {
    max-width: 680px;
    margin: 0 auto;
}

.act-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
}

.act-friction {
    font-weight: 600;
    font-size: 14px;
    color: #1d1d1f;
}

.act-confidence {
    font-size: 12px;
    color: #5f6368;
    background: #e8f0fe;
    padding: 2px 12px;
    border-radius: 12px;
}

.act-section {
    margin-bottom: 20px;
}

.act-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.act-section h4 .optional {
    font-weight: 400;
    color: #5f6368;
    font-size: 12px;
}

.act-actor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.actor-btn {
    padding: 10px 8px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.actor-btn:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.actor-btn.selected {
    border-color: #4285f4;
    background: #e8f0fe;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.12);
}

.actor-icon {
    font-size: 22px;
}

.actor-label {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
}

.actor-desc {
    font-size: 9px;
    color: #5f6368;
}

.act-format-select {
    width: 100%;
}

.act-format-select select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8eaed;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
}

.act-format-select select:hover,
.act-format-select select:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.08);
}

.act-footer {
    display: flex;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e8eaed;
    flex-wrap: wrap;
}

.act-preview {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.act-preview h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.preview-content {
    background: #ffffff;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    font-size: 12px;
    line-height: 1.7;
    color: #3c4043;
    white-space: pre-wrap;
    max-height: 350px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
    background: #f8f9fa;
    border-top: 1px solid #e8eaed;
    padding: 16px 32px;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    padding: 2px 0;
}

.footer-links a:hover {
    color: #1d1d1f;
}

.footer-copy {
    font-size: 12px;
    color: #9aa0a6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .app-header {
        padding: 0 16px;
        height: 48px;
    }

    .header-content {
        gap: 10px;
    }

    .main-nav {
        gap: 8px;
    }

    .main-nav .nav-step {
        font-size: 9px;
    }

    #main-content {
        padding: 16px 12px 28px;
    }

    .reception-container {
        min-height: calc(100vh - 160px);
        padding: 6px 0;
    }

    .reception-logo {
        font-size: 32px;
    }

    .reception-subtitle {
        font-size: 12px;
    }

    .reception-title {
        font-size: 20px;
    }

    .reception-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .search-box {
        padding: 10px 16px;
        font-size: 14px;
    }

    .search-buttons {
        flex-direction: column;
        align-items: center;
    }

    .search-btn {
        width: 100%;
        max-width: 240px;
        text-align: center;
        padding: 10px 20px;
        font-size: 13px;
    }

    .step-title {
        font-size: 22px;
    }

    .step-description {
        font-size: 13px;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .selection-card {
        padding: 12px 14px;
    }

    .selection-card .card-text {
        font-size: 13px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

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

    .selection-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .selection-actions {
        justify-content: flex-end;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .synthesize-confidence .confidence-gauge {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-actions {
        flex-direction: column;
    }
    .footer-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .act-footer {
        flex-direction: column;
    }
    .act-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .progress-bar-container {
        padding: 10px 12px 8px 12px;
    }

    .progress-steps {
        font-size: 9px;
    }

    .synthesize-primary {
        padding: 14px 16px;
    }

    .primary-name {
        font-size: 18px;
    }

    .confidence-ring {
        width: 60px;
        height: 60px;
    }
    .confidence-value {
        font-size: 16px;
    }

    .step-container {
        padding: 2px 0;
    }
}

@media (max-width: 480px) {
    .main-nav {
        gap: 4px;
    }
    .main-nav .nav-step {
        font-size: 8px;
    }

    .logo {
        font-size: 14px;
    }

    .reception-logo {
        font-size: 26px;
    }

    .suggestion-item {
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    .suggestion-text {
        font-size: 13px;
    }

    .act-actor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .actor-btn {
        padding: 8px 6px;
    }
    .actor-icon {
        font-size: 18px;
    }
    .actor-label {
        font-size: 11px;
    }

    .selection-card {
        padding: 10px 12px;
    }
    .selection-card .card-check {
        font-size: 16px;
        width: 22px;
    }
    .selection-card .card-text {
        font-size: 12px;
    }

    .search-box {
        padding: 10px 14px;
        font-size: 13px;
    }

    .search-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .btn {
        font-size: 12px;
        padding: 8px 16px;
    }
}