.home-inbox-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.home-inbox-head {
  padding: 8px 18px 4px;
}

.home-inbox-head h2 {
  margin: 0;
  font: 700 20px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.03em;
  color: var(--c-text, #fff);
}

.home-inbox-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px calc(88px + env(safe-area-inset-bottom));
}

.inbox-section + .inbox-section {
  margin-top: 18px;
}

.inbox-section h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 0 2px;
  font: 700 11px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted, #6f6884);
}

.inbox-section h3::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

#inboxQuestionsTitle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/%3E%3Cpath d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

#inboxHelpTitle::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/%3E%3Cpath d='M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/%3E%3Cpath d='M7.828 13.07A3 3 0 0 1 12 8.764a3 3 0 0 1 5.004 2.224 3 3 0 0 1-.832 2.083l-3.447 3.62a1 1 0 0 1-1.45-.001z'/%3E%3C/svg%3E");
}

.inbox-list {
  display: grid;
  gap: 8px;
}

.inbox-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: var(--c-bg-surface, #1e1b2e);
  text-align: left;
  cursor: pointer;
}

.inbox-row--question {
  border-color: rgba(123, 87, 255, 0.18);
  background: linear-gradient(145deg, rgba(123, 87, 255, 0.1), rgba(30, 27, 46, 0.95));
}

.inbox-row--help {
  border-color: rgba(62, 207, 142, 0.16);
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.08), rgba(30, 27, 46, 0.95));
}

.inbox-row--help.is-selected {
  border-color: rgba(62, 207, 142, 0.42);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.18), 0 8px 24px rgba(62, 207, 142, 0.12);
}

.inbox-row-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.inbox-row-category-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.inbox-row--help.is-selected .inbox-row-icon {
  background: rgba(62, 207, 142, 0.18);
  color: #3ecf8e;
  font-weight: 700;
}

.inbox-row-body {
  min-width: 0;
}

.inbox-row-body strong {
  display: block;
  font: 600 15px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: -0.02em;
  color: var(--c-text, #fff);
  line-height: 1.35;
}

.inbox-signal-body {
  display: grid;
  gap: 5px;
}

.inbox-row-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--c-text-muted, #6f6884);
  font: 800 11px var(--font-ui, 'Pretendard', sans-serif);
}

.inbox-row-place b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row-mainline {
  display: block;
  min-width: 0;
}

.inbox-row-mainline strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row-time {
  color: var(--c-text-muted, #6f6884);
  font: 800 11px var(--font-ui, 'Pretendard', sans-serif);
  white-space: nowrap;
}

.inbox-row-body em {
  display: block;
  margin-top: 4px;
  font: 500 12px/1.45 var(--font-ui, 'Pretendard', sans-serif);
  font-style: normal;
  color: var(--c-text-muted, #6f6884);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-row-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
}

.inbox-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font: 700 10px var(--font-ui, 'Pretendard', sans-serif);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.inbox-badge--offers {
  background: rgba(123, 87, 255, 0.2);
  color: #c4b5fd;
}

.inbox-badge--chat {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-secondary, #a099b0);
}

.inbox-badge--selected {
  background: rgba(62, 207, 142, 0.2);
  color: #3ecf8e;
}

.inbox-badge--waiting {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text-muted, #6f6884);
}

.inbox-badge--warning {
  background: rgba(255, 91, 62, 0.18);
  color: #ff5b3e;
}

.inbox-row-arrow {
  font-size: 20px;
  color: var(--c-text-muted, #6f6884);
  line-height: 1;
}

.inbox-empty {
  margin: 32px 0 0;
  text-align: center;
  font: 500 14px var(--font-ui, 'Pretendard', sans-serif);
  color: var(--c-text-muted, #6f6884);
}
