/* ── Owner bar (own trip open) ── */
.owner-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
}
.owner-bar[hidden] { display: none; }

.ob-btn {
  border: 1.5px solid #ddd8c4;
  border-radius: 999px;
  background: #f0ead6;
  color: #555;
  font-size: 0.75rem;
  padding: 6px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ob-btn:hover { border-color: #999; color: #1a1a1a; }
.ob-btn.danger { color: #a5503c; }

/* ── Inline edit forms ── */
.edit-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  padding: 16px;
  margin: 0 16px 36px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edit-form input, .edit-form textarea {
  border: 1.5px solid #ddd8c4;
  border-radius: 10px;
  background: #faf8f0;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  width: 100%;
}
.edit-form input:focus, .edit-form textarea:focus { border-color: #999; }
.edit-form textarea { min-height: 90px; resize: vertical; line-height: 1.6; }

.ef-row { display: flex; gap: 8px; }
.ef-row > * { flex: 1; min-width: 0; }

.ef-label { font-size: 0.68rem; color: #999; text-align: left; }

/* transport / emoji pickers */
.ef-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ef-pick {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid #ddd8c4;
  background: #f0ead6;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.ef-pick.selected { border-color: #1a1a1a; box-shadow: 0 0 0 2px rgba(0,0,0,0.12); }

.ef-actions { display: flex; gap: 8px; margin-top: 2px; }
.ef-actions .btn-primary { flex: 1; }

.btn-secondary {
  background: none;
  border: 1.5px solid #ddd8c4;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { border-color: #999; color: #1a1a1a; }
.btn-danger-line {
  background: none;
  border: none;
  color: #a5503c;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 6px 0 0;
  -webkit-tap-highlight-color: transparent;
}

/* own items get a subtle edit hint */
.tl-card.editable, .tl-note-card.editable { cursor: pointer; }

/* ── Note attachments (editor) ── */
.att-wrap { display: flex; flex-direction: column; gap: 8px; }
.att-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.att-chip {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f2ea;
  border: 1.5px solid #ddd8c4;
  border-radius: 10px;
  padding: 8px 28px 8px 10px;
  font-size: 0.75rem;
  color: #555;
}
.att-chip.photo { padding: 0; overflow: hidden; width: 64px; height: 64px; }
.att-chip.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(26,26,26,0.65);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.att-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.att-btn {
  border: 1.5px solid #ddd8c4;
  border-radius: 999px;
  background: #f0ead6;
  color: #555;
  font-size: 0.75rem;
  padding: 6px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.att-btn:hover { border-color: #999; color: #1a1a1a; }
.att-btn:disabled { opacity: 0.6; cursor: default; }
.att-btn.recording { border-color: #a5503c; color: #a5503c; animation: att-pulse 1.2s infinite; }
@keyframes att-pulse { 50% { background: #f7e3dd; } }
.att-error { font-size: 0.72rem; color: #a5503c; }
