.tk-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .tk-layout { grid-template-columns: 1fr; } }

.tk-input-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.tk-input-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    font-size: 0.78rem;
    color: var(--text-secondary);
    flex-wrap: wrap; gap: 0.5rem;
}
.tk-lang-pill {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(100,181,246,0.12);
    color: var(--hl-blue);
}
.tk-textarea {
    width: 100%;
    min-height: 360px;
    padding: 1rem;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}
.tk-textarea::placeholder { color: var(--text-muted); }

.tk-side {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}
.tk-side h3 {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tk-field { margin-bottom: 1rem; }
.tk-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.tk-select, .tk-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}
.tk-select:focus, .tk-input:focus { border-color: var(--accent); }
.tk-select option { background: #1a1a1a; color: var(--text); padding: 0.4rem; }
.tk-select option:checked, .tk-select option:hover { background: var(--accent); color: #fff; }
.tk-hint {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.25rem;
}

.tk-stats {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}
.tk-stat {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}
.tk-stat:last-child { border-bottom: 0; }
.tk-stat .label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.tk-stat .value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.tk-stat.total .value {
    color: var(--accent);
    font-size: 1.05rem;
}

.tk-actions {
    display: flex; flex-direction: column; gap: 0.4rem;
    margin-top: 1rem;
}
.tk-action-btn {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--t);
}
.tk-action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tk-action-btn svg { width: 14px; height: 14px; }

.tk-compare {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}
.tk-compare h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 1rem;
}
.tk-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.tk-compare-table th {
    text-align: left;
    padding: 0.55rem 0.7rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    white-space: nowrap;
}
.tk-compare-table th.right, .tk-compare-table td.right { text-align: right; }
.tk-compare-table td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}
.tk-compare-table tr:last-child td { border-bottom: 0; }
.tk-compare-table tr.selected td { background: var(--accent-soft); }
.tk-compare-table .provider {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tk-compare-table .total { color: var(--accent); font-weight: 700; }
.tk-compare-table .cheap { color: var(--green); font-weight: 700; }

.tk-disclaimer {
    background: rgba(255,235,59,0.06);
    border: 1px solid rgba(255,235,59,0.18);
    border-radius: var(--radius-xs);
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    margin-top: 1.25rem;
}

.tk-empty-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 1rem;
}
.tk-empty-icon {
    width: 44px; height: 44px;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 0.85rem;
}
.tk-empty-title {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.tk-empty-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 280px;
}

@media (max-width: 700px) {
    .tk-compare { overflow-x: auto; padding: 1rem; }
    .tk-compare-table { min-width: 580px; }
}
