.box {
  margin-top: 2rem;
}

.columns.is-vcentered.is-mobile.mb-0 {
  border-bottom: 1px solid #f5f5f5;
  padding: 0.25rem 0;
}

.columns.is-vcentered.is-mobile.mb-0:last-child {
  border-bottom: none;
}

.purpose-preview {
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  min-height: 6rem;
  overflow-wrap: break-word;
}

.purpose-preview:empty::before {
  content: "Preview will appear here...";
  color: #b5b5b5;
}

/* Quake Console */
.quake-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid #dbdbdb;
  padding: 0.5rem 1rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

.quake-panel {
  position: fixed;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  top: 3.25rem;
  z-index: 39;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  border-top: 1px solid #dbdbdb;
}

.quake-panel.is-open {
  transform: translateY(0);
}

.quake-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f5f5f5;
  flex-shrink: 0;
}

.quake-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1rem;
}

.chat-bubble {
  display: flex;
  margin-bottom: 0.75rem;
}

.chat-bubble-user {
  justify-content: flex-end;
}

.chat-bubble-assistant {
  justify-content: flex-start;
}

.chat-bubble-content {
  max-width: 80%;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-bubble-user .chat-bubble-content {
  background-color: #485fc7;
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.chat-bubble-assistant .chat-bubble-content {
  background-color: #f5f5f5;
  color: #363636;
  border-bottom-left-radius: 0.25rem;
}

.chat-bubble-content ol,
.chat-bubble-content ul {
  margin-left: 1.5rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.chat-bubble-assistant .chat-bubble-content p:last-child {
  margin-bottom: 0;
}

.chat-bubble-content img {
  max-width: 100%;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.chat-bubble-assistant .chat-bubble-content strong {
  color: #485fc7;
  font-weight: 700;
}

.chat-form {
  flex-shrink: 0;
}

/* Shopping List Items */
.shopping-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: none;
  border-bottom: 1px solid #f5f5f5;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
  gap: 0.75rem;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.shopping-item:active {
  background-color: #f5f5f5;
}

.shopping-item:last-child {
  border-bottom: none;
}

.shopping-item-check {
  font-size: 1.25rem;
  line-height: 1;
  color: #485fc7;
  flex-shrink: 0;
}

.shopping-item-purchased .shopping-item-check {
  color: #48c78e;
}

.shopping-item-name {
  flex: 1;
  min-width: 0;
}

.shopping-item-qty {
  flex-shrink: 0;
  color: #363636;
  font-size: 0.9rem;
  font-weight: 600;
}

.shopping-item-unit {
  color: #7a7a7a;
  font-weight: 600;
}

.shopping-item-purchased .shopping-item-name,
.shopping-item-purchased .shopping-item-qty {
  text-decoration: line-through;
  color: #b5b5b5;
}

/* Typing indicator */
.chat-typing-indicator .chat-bubble-content {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 1.2rem;
}

.chat-typing-indicator .chat-bubble-content span {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #aaa;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.chat-typing-indicator .chat-bubble-content span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing-indicator .chat-bubble-content span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-0.35rem); opacity: 1; }
}

@media screen and (max-width: 768px) {
  .button,
  .input,
  .textarea,
  .select select {
    min-height: 44px;
    font-size: 1rem;
  }
}
