.tz-table {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.tz-row {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f0f0ee;
    gap: 0.75rem;
    position: relative;
    min-height: 4rem;
}
.tz-row:first-child { border-radius: 10px 10px 0 0; }
.tz-row:last-child { border-bottom: none; border-radius: 0 0 10px 10px; }
.tz-row:only-child { border-radius: 10px; }
.tz-row.source { background: #fafaf8; }
.tz-row.editing { box-shadow: inset 3px 0 0 #f59e0b; background: #fffdf5; }

.tz-city-wrap { flex: 1; min-width: 0; position: relative; }
.tz-city-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    padding: 0;
    width: 100%;
}
.tz-city-btn {
    border: 1.5px solid #ddd;
    border-radius: 7px;
    padding: 0.2rem 0.4rem;
}
.tz-city-btn:hover {
    border-color: #bbb;
}
.tz-city-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tz-city-btn:hover .tz-city-name { color: #555; }
.tz-offset {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.1rem;
}

.tz-time-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    width: 130px;
    flex-shrink: 0;
}
.tz-time-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.tz-time {
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    white-space: nowrap;
}
.tz-time-input {
    font-size: 1.2rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    outline: none;
    background: transparent;
    font-family: inherit;
    text-align: right;
    width: 100px;
    padding: 0.2rem 0.4rem;
}
.tz-time-input:focus { border-color: #666; }
.tz-diff {
    font-size: 0.75rem;
    color: #666;
}

.tz-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #ddd;
    font-size: 1.1rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.12s;
    flex-shrink: 0;
}
.tz-remove-btn:hover { color: #999; }

/* City search — inline */
.city-search-inline {
    width: 100%;
    padding: 0.4rem 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1.5px solid #f59e0b;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #1a1a1a;
    box-sizing: border-box;
}
.city-search-inline:focus { border-color: #d97706; }
.city-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 7px;
    background: #fff;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}
.city-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid #f5f5f3;
    transition: background 0.1s;
}
.city-suggestion:last-child { border-bottom: none; }
.city-suggestion:hover, .city-suggestion.active { background: #f5f5f3; }
.city-suggestion .sug-country { color: #bbb; font-size: 0.8rem; margin-left: 0.4em; }

.add-city-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    color: #999;
    padding: 0.85rem 1rem;
    width: 100%;
    transition: color 0.12s;
}
.add-city-btn:hover { color: #555; }

/* Live indicator */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 1rem;
}
.live-dot {
    width: 6px; height: 6px;
    background: #5db389;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.reset-time-btn {
    display: none;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-family: inherit;
    color: #999;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: border-color 0.12s, color 0.12s;
}
.reset-time-btn:hover { border-color: #bbb; color: #555; }
.reset-time-btn.visible { display: block; }

@media (max-width: 370px) {
    .tz-time-wrap { width: 100px; }
    .tz-time-input { width: 100px; font-size: 1rem; }
    .tz-time { font-size: 1rem; }
}

/* Time format toggle */
.time-format-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 0.5rem;
}
