* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f7;
  color: #1a1a1a;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.4rem;
  margin: 0;
}

#user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

.tabs {
  display: flex;
  margin-bottom: 12px;
  border-bottom: 1px solid #ddd;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 1rem;
  color: #888;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: #0060df;
  border-bottom-color: #0060df;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

input, textarea {
  font-size: 1rem;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  font-family: inherit;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

button {
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #0060df;
  color: #fff;
  cursor: pointer;
}

button.danger {
  background: #d70022;
}

#logout-btn {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.error {
  color: #d70022;
  font-size: 0.85rem;
  margin: 0;
  min-height: 1em;
}

#items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item strong {
  font-size: 1.05rem;
  word-break: break-word;
}

.item p {
  margin: 0;
  color: #444;
  white-space: pre-wrap;
  word-break: break-word;
}

.item .row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.item button {
  flex: 1;
  padding: 8px;
  font-size: 0.9rem;
}
