/* ── Page structure ── */
.page-header{padding:max(1rem,env(safe-area-inset-top)) 1.25rem .75rem;}
.add-btn{background:var(--primary);color:#fff;border:none;border-radius:12px;padding:.5rem .9rem;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap;}

/* ── Ideas / Kanban ── */

.ideas-tabs {
  display: flex;
  gap: .4rem;
  padding: .75rem 1rem .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ideas-tab {
  flex-shrink: 0;
  padding: .4rem .9rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ideas-tab.active {
  background: var(--primary-lt);
  color: var(--primary);
  border-color: var(--primary-md);
}

.ideas-list {
  padding: .5rem 1rem 6rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.idea-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
  padding: .85rem 1rem;
  cursor: pointer;
  transition: box-shadow .15s;
}
.idea-card:active { opacity: .85; }

.idea-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}
.idea-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  flex: 1;
}
.priority-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.priority-high   { background: var(--red-lt);   color: var(--red);   }
.priority-medium { background: var(--amber-lt); color: var(--amber); }
.priority-low    { background: var(--green-lt); color: var(--green); }

.idea-card-notes {
  font-size: 12px;
  color: var(--muted);
  margin-top: .35rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea-card-meta {
  margin-top: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 11px;
  color: var(--muted);
}
.idea-card-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ideas-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 13px;
}
.ideas-empty-icon {
  font-size: 36px;
  margin-bottom: .5rem;
}

/* ── Modal fields ── */
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: .55rem .75rem;
  outline: none;
  -webkit-appearance: none;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--primary-md);
}
.field-textarea {
  resize: vertical;
  min-height: 80px;
}
.field-select {
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888780'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
}

.delete-link {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .5rem;
  background: none;
  border: none;
  color: var(--red);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.delete-link:active { background: var(--red-lt); }
