:root {
    --left-panel-width: 390px;
    --right-panel-width: 340px;
    --splitter-width: 12px;
    --color-primary: #005aa8;
    --color-primary-light: #dcecff;
    --color-secondary: #6ca0dc;
    --color-accent: #ffd700;
    --color-background: #f5f7fb;
    --color-card-bg: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-strong: 0 14px 36px rgba(15, 23, 42, 0.14);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    height: 100vh;
    overflow: hidden;
}

button, input, select { font: inherit; }

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0.34rem;
    padding: 0.45rem;
}

.header, .panel, .footer-panel {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 0.8rem 1rem;
}

.header-badges { min-width: 290px; }

.content-row {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
}

.panel {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    overflow: hidden;
}

.panel-splitter {
    position: relative;
    flex: 0 0 var(--splitter-width);
    width: var(--splitter-width);
    min-width: var(--splitter-width);
    border-radius: 999px;
    cursor: col-resize;
    align-self: stretch;
    background: transparent;
}

.panel-splitter::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 90, 168, 0.12), rgba(0, 90, 168, 0.3), rgba(0, 90, 168, 0.12));
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panel-splitter:hover::before {
    transform: translateX(-50%) scaleX(1.15);
    box-shadow: 0 0 0 4px rgba(0, 90, 168, 0.08);
    background: linear-gradient(180deg, rgba(0, 90, 168, 0.2), rgba(0, 90, 168, 0.45), rgba(0, 90, 168, 0.2));
}

body.is-resizing-panels,
body.is-resizing-panels * {
    cursor: col-resize !important;
    user-select: none !important;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-background);
}

#control-panel {
    flex: 0 0 var(--left-panel-width);
    width: var(--left-panel-width);
    min-width: 300px;
    max-width: none;
    overflow-y: auto;
}

#map-container {
    flex: 1 1 auto;
    min-width: 360px;
}

#assistant-panel {
    flex: 0 0 var(--right-panel-width);
    width: var(--right-panel-width);
    min-width: 290px;
    max-width: none;
    min-height: 0;
}

.assistant-panel-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.12rem;
}

.route-panel, .info-card, .integration-card {
    background: var(--color-background);
    border-radius: 0.78rem;
    border-left: 4px solid var(--color-primary);
    padding: 0.72rem;
    margin-bottom: 0.65rem;
}

.compact-panel { padding: 0.7rem; }
.route-panel h6, .section-header h6 { font-size: 0.9rem; margin-bottom: 0; }
.compact-header { margin-bottom: 0.55rem; }

.badge-soft {
    background: rgba(0, 90, 168, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(0, 90, 168, 0.12);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
}


.helper-line { line-height: 1.36; }
.text-end.header-badges .small + .small { opacity: 0.92; }
.search-box, .transport-buttons, .metrics-grid.two-cols, .action-row { display: flex; gap: 0.4rem; }
.search-box input { flex: 1; }
.action-row .btn { white-space: nowrap; }
.action-row { align-items: stretch; }

.suggest-field {
    position: relative;
    min-width: 0;
}

.suggestions-panel {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;
}

.suggestion-item {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    background: #fff;
    padding: 0.62rem 0.72rem;
    text-align: left;
    display: grid;
    gap: 0.15rem;
    cursor: pointer;
}

.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover { background: #f7fbff; }
.suggestion-title { font-size: 0.82rem; font-weight: 600; color: var(--color-text); }
.suggestion-meta { font-size: 0.71rem; color: var(--color-text-muted); }

.compact-settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.compact-field,
.compact-toggle { min-width: 0; }

.toggle-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.7rem;
    padding: 0.62rem 0.68rem;
}

.route-point {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.58rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.route-point:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 90, 168, 0.25);
    box-shadow: 0 10px 24px rgba(0, 90, 168, 0.08);
}

.route-point.point-armed {
    border-color: rgba(0, 90, 168, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 90, 168, 0.12);
}

.route-point.point-updated { animation: pointCardPulse 0.9s ease; }
.route-point-body { flex: 1; min-width: 0; }
.route-point-title { font-size: 0.7rem; color: var(--color-text-muted); margin-bottom: 0.22rem; }

.route-point-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.route-point-marker::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
}

.route-point.point-updated .route-point-marker::after { animation: ringPulse 0.9s ease; }
.start-marker { background: linear-gradient(135deg, #0084ff, var(--color-primary)); }
.end-marker { background: linear-gradient(135deg, #0f3460, #003366); }
.route-input { border-radius: 0.55rem; }

.transport-btn {
    flex: 1;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 0.55rem;
    padding: 0.45rem 0.35rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.transport-btn:hover { background: var(--color-primary-light); }
.transport-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.point-info { line-height: 1.38; }

.compact-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.compact-tab {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 0.65rem;
    padding: 0.46rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.compact-tab.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.compact-metrics { margin-bottom: 0; }
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.metric-box {
    background: #fff;
    border-radius: 0.7rem;
    border: 1px solid var(--color-border);
    padding: 0.6rem;
}

.metric-label { font-size: 0.72rem; color: var(--color-text-muted); margin-bottom: 0.18rem; }
.metric-value { font-size: 0.88rem; font-weight: 700; color: var(--color-primary); }
.small-value { font-size: 0.88rem; }
.insight-line { margin-top: 0.55rem; }
.insight-text { font-size: 0.81rem; line-height: 1.42; }

.alternatives-list { display: grid; gap: 0.5rem; }
.compact-alternatives { max-height: 420px; overflow-y: auto; }

.alternative-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    padding: 0.68rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.alternative-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); }
.alternative-card.selected { border-color: rgba(0, 90, 168, 0.45); box-shadow: 0 0 0 3px rgba(0, 90, 168, 0.10); }
.alternative-card.optimal { background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%); }

.alternative-card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.32rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.alternative-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    margin-top: 0.5rem;
}

.alternative-card-meta div {
    background: var(--color-background);
    border-radius: 0.5rem;
    padding: 0.38rem 0.48rem;
    font-size: 0.64rem;
}

.alternative-description {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.empty-alternatives {
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: 0.7rem;
    padding: 0.85rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.map-shell { position: relative; width: 100%; flex: 1; min-height: 0; }
#map {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
}



.map-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.7rem;
    background: var(--color-background);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.72rem;
}

.assistant-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.65rem;
}

.summary-chip {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(0, 90, 168, 0.15);
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.integration-card { border-left-color: rgba(255, 193, 7, 0.75); }
.integration-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.28rem; color: var(--color-primary); }
.compact-card { padding: 0.65rem; }

#ai-chat {
    flex: 1;
    min-height: 240px;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    background: var(--color-background);
    padding: 0.7rem;
}

.chat-message {
    max-width: 94%;
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.68rem;
    border-radius: 0.8rem;
    line-height: 1.4;
    font-size: 0.82rem;
    white-space: normal;
}

.chat-message strong { display: block; font-size: 0.7rem; opacity: 0.8; margin-bottom: 0.16rem; }
.ai-message { background: #eef3f8; border-bottom-left-radius: 0.25rem; }
.user-message { background: #dcecff; margin-left: auto; border-bottom-right-radius: 0.25rem; }

.hint-list { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.hint-btn {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.62rem;
    font-size: 0.74rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.hint-btn:hover { background: var(--color-primary-light); border-color: rgba(0, 90, 168, 0.25); }
.footer-panel { padding: 0.34rem 0.5rem; }
.footer-status { display: flex; flex-wrap: wrap; gap: 0.62rem; justify-content: space-between; font-size: 0.8rem; color: var(--color-text-muted); }

.map-marker {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    border: 3px solid rgba(255, 255, 255, 0.92);
    transform: translateZ(0);
    animation: markerPop 0.42s ease;
}

.map-marker-a { background: linear-gradient(135deg, #0099ff 0%, var(--color-primary) 100%); }
.map-marker-b { background: linear-gradient(135deg, #12385f 0%, #001d3d 100%); }

.map-marker__pulse {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(0, 90, 168, 0.26);
    animation: markerPulse 1.8s ease-out infinite;
}

.map-marker-b .map-marker__pulse { border-color: rgba(0, 29, 61, 0.26); }

@keyframes pointCardPulse {
    0% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 168, 0.18); }
    45% { transform: translateY(-1px) scale(1.01); box-shadow: 0 0 0 7px rgba(0, 90, 168, 0.08); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 0 0 0 rgba(0, 90, 168, 0); }
}

@keyframes ringPulse {
    0% { opacity: 0.9; transform: scale(0.85); }
    100% { opacity: 0; transform: scale(1.6); }
}

@keyframes markerPop {
    0% { opacity: 0; transform: scale(0.45); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes markerPulse {
    0% { opacity: 0.95; transform: scale(0.75); }
    100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 1380px) {
    :root {
        --left-panel-width: 360px;
        --right-panel-width: 320px;
    }
}

@media (max-width: 1100px) {
    body { overflow: auto; }
    .main-container { height: auto; min-height: 100vh; }
    .content-row { flex-direction: column; gap: 0.45rem; }
    .panel-splitter { display: none; }
    #control-panel, #map-container, #assistant-panel {
        max-width: 100%;
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
    #map { min-height: 380px; }
    .footer-status { gap: 0.6rem; flex-direction: column; }
}

@media (max-width: 768px) {
    .search-box, .action-row { flex-wrap: wrap; }
    .metrics-grid, .alternative-card-meta { grid-template-columns: 1fr; }
    .compact-tabs { grid-template-columns: 1fr; }
    .map-stats { flex-direction: column; gap: 0.45rem; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb { background: var(--color-text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

.assistant-upload {
    margin-top: 0.25rem;
}

.assistant-upload-preview {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.65rem;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: #fff;
}

.assistant-upload-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.6rem;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    background: #f8fafc;
}

.assistant-upload-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}

.assistant-upload-name {
    font-size: 0.72rem;
    color: var(--color-text);
    word-break: break-word;
    line-height: 1.35;
}

.assistant-status-line {
    display: block;
    margin-top: 0.55rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.65rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(0, 90, 168, 0.12);
    font-size: 0.74rem;
    line-height: 1.35;
}

.assistant-status-line.is-error {
    background: rgba(220, 53, 69, 0.10);
    color: #a61d2d;
    border-color: rgba(220, 53, 69, 0.20);
}

.assistant-status-line.is-busy {
    background: rgba(255, 193, 7, 0.16);
    color: #8a6a00;
    border-color: rgba(255, 193, 7, 0.28);
}

.assistant-debug-panel {
    margin-top: 0.55rem;
    border: 1px dashed var(--color-border);
    border-radius: 0.8rem;
    background: #fbfcfe;
    padding: 0.55rem 0.65rem;
    overflow: auto;
}

.assistant-debug-panel summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.45rem;
}

.assistant-debug-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    color: var(--color-text);
}

.assistant-debug-block {
    margin-top: 0.45rem;
}

.assistant-debug-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
}

.assistant-debug-panel pre {
    margin: 0;
    padding: 0.5rem;
    font-size: 0.68rem;
    line-height: 1.35;
    white-space: pre-wrap;
    word-break: break-word;
    background: #0f172a;
    color: #dbeafe;
    border-radius: 0.65rem;
    max-height: 180px;
    overflow: auto;
}


.developer-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.38rem 0.56rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(233, 244, 255, 0.82) 100%);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.developer-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 42%), radial-gradient(circle at bottom right, rgba(0, 90, 168, 0.12), transparent 36%);
    pointer-events: none;
}

.developer-contacts {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.premium-footer-content {
    position: relative;
    z-index: 1;
}

.footer-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.46rem;
    border-radius: 0.78rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 248, 255, 0.88) 100%);
    border: 1px solid rgba(0, 90, 168, 0.10);
    box-shadow: 0 10px 24px rgba(0, 90, 168, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.footer-metric-icon {
    width: 30px;
    height: 30px;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    background: linear-gradient(135deg, rgba(0, 90, 168, 0.14) 0%, rgba(108, 160, 220, 0.18) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.footer-metric-main {
    display: grid;
    gap: 0.08rem;
}

.footer-metric-live {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    font-size: 0.64rem;
    color: var(--color-text-muted);
}

.metric-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.45);
    animation: metricPulse 1.8s ease-in-out infinite;
}

.footer-metric-counter-row {
    display: flex;
    align-items: baseline;
    gap: 0.34rem;
    line-height: 1;
}

.footer-metric-counter {
    font-size: 1.02rem;
    line-height: 1;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.footer-metric-caption {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 700;
}

.developer-links {
    display: flex;
    gap: 0.38rem;
    flex-wrap: wrap;
    align-items: center;
}

.premium-links {
    justify-content: flex-end;
}

.developer-link {
    text-decoration: none;
    color: var(--color-text);
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.premium-link {
    position: relative;
    padding: 0.34rem 0.7rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.86) 100%);
    border: 1px solid rgba(0, 90, 168, 0.10);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.developer-link i {
    color: var(--color-primary);
    font-size: 0.86rem;
}

.premium-link:hover {
    color: var(--color-primary);
    border-color: rgba(0, 90, 168, 0.24);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 90, 168, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-link:active {
    transform: translateY(-1px);
}

.footer-system-state { display: none !important; }

@keyframes metricPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.35); }
    70% { box-shadow: 0 0 0 8px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@media (max-width: 1100px) {
    .developer-footer { padding: 0.36rem 0.5rem; }
    .developer-contacts { align-items: flex-start; }
    .footer-metric-pill { width: auto; }
}

@media (max-width: 768px) {
    .developer-contacts { flex-direction: column; align-items: stretch; }
    .developer-links, .premium-links { justify-content: flex-start; }
    .footer-metric-pill { width: 100%; }
    .premium-link { justify-content: center; }
    .footer-metric-counter { font-size: 0.96rem; }
}
.footer-developer-block {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-developer-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .footer-developer-block {
        justify-content: flex-start;
    }

    .footer-developer-label {
        width: 100%;
        margin-bottom: 0.1rem;
    }
}
.assistant-input-group #btn-ai-voice {
    min-width: 42px;
}

.assistant-input-group #btn-ai-voice.is-recording {
    color: #a61d2d;
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.10);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.assistant-input-group #btn-ai-voice:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


