:root {
  --oishiru-green: #167a4a;
  --oishiru-green-dark: #0f5e39;
  --oishiru-mint: #e9f7ef;
  --oishiru-orange: #f08a24;
  --oishiru-ink: #1f2a24;
  --oishiru-muted: #66736c;
  --oishiru-line: #dbe5df;
  --oishiru-bg: #ffffff;
}

.oishiru-chat,
.oishiru-chat * {
  box-sizing: border-box;
}

.oishiru-chat {
  width: min(100%, 420px);
  margin: 28px auto;
  color: var(--oishiru-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.oishiru-chat__panel {
  overflow: hidden;
  border: 1px solid var(--oishiru-line);
  border-radius: 8px;
  background: var(--oishiru-bg);
  box-shadow: 0 12px 28px rgba(31, 42, 36, 0.12);
}

.oishiru-chat__header {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--oishiru-green);
  color: #fff;
}

.oishiru-chat__mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--oishiru-green);
  font-weight: 800;
}

.oishiru-chat__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.oishiru-chat__subtitle {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.oishiru-chat__messages {
  display: flex;
  min-height: 300px;
  max-height: 460px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(180deg, #fbfdfb 0%, #ffffff 100%);
}

.oishiru-chat__bubble {
  max-width: 92%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.oishiru-chat__bubble--bot {
  align-self: flex-start;
  border: 1px solid var(--oishiru-line);
  background: #fff;
}

.oishiru-chat__bubble--user {
  align-self: flex-end;
  background: var(--oishiru-mint);
  color: var(--oishiru-green-dark);
}

.oishiru-chat__choices {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  background: #fff;
}

.oishiru-chat__choice,
.oishiru-chat__line,
.oishiru-chat__restart {
  min-height: 44px;
  border: 1px solid var(--oishiru-line);
  border-radius: 8px;
  background: #fff;
  color: var(--oishiru-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.oishiru-chat__choice {
  padding: 11px 12px;
}

.oishiru-chat__choice:hover,
.oishiru-chat__choice:focus {
  border-color: var(--oishiru-green);
  background: var(--oishiru-mint);
  outline: none;
}

.oishiru-chat__line {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border-color: var(--oishiru-orange);
  background: var(--oishiru-orange);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.oishiru-chat__line:hover,
.oishiru-chat__line:focus {
  background: #d97417;
  outline: none;
  transform: translateY(-1px);
}

.oishiru-chat__restart {
  width: 100%;
  padding: 11px 14px;
  color: var(--oishiru-muted);
  text-align: center;
}

.oishiru-chat__meta {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--oishiru-line);
  color: var(--oishiru-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .oishiru-chat {
    width: 100%;
    margin: 20px 0;
  }

  .oishiru-chat__panel {
    border-radius: 8px;
  }

  .oishiru-chat__messages {
    max-height: 420px;
  }
}
